Unlit Gouraud/Phong Shading Material

Unlit implementation of a Gouraud/Phong lighting model. Supports directional, point and spot lights with a Blueprint interface for control.

Category:
Tags: , , , , , , , , , , , , , , , , , ,

Description

UPDATE 2.3: Blinn-Phong specular support has been added and is set to be enabled by default, this can be toggled in a material instance. Also fixed custom specular colour not being applied for point/spot lights.

UPDATE 2.2: Support for spot lights. Spot lights can be activated by changing the ‘Spot Angle’ variable on a point light. Setting this value to 0 will revert the light back to a point light. Added a new showcase level for spot lights. Also fixed specular not working with point lights.

UPDATE 2.1: New demo level for landscape materials and the new material fog function.

UPDATE 2.0: Complete re-write of the shader to be cleaner and more performant. Point lights now use a proper quadratic attenuation for light falloff. The point lighting system has been overhauled entirely and now uses a new Blueprint system to automatically enable and disable lights around the player Pawn.

Unlit implementation of a Gouraud/Phong lighting model. Supports directional, point and spot lights with a Blueprint interface for control.

This shading model allows the creation of games using vertex based Gouraud lighting or per pixel Phong lighting with a classical diffuse/specular format. Re-create the look of games from the 6th (Gouraud) and 7th (Phong) generation of consoles, or use it for cheap mobile rendering. All materials are unlit and use a Material Parameter Collection to control light and material options.

Included is an example scene made using the techniques of the 6th generation consoles; relying upon vertex colouring and vertex alpha to blend between textures. This pack is intended to be used as a base, so only some basic examples are included. Use your imagination and get creative with your usage.

Pairs well with: Stylized Retro Water Material

DISCLAIMER: Landscapes DO NOT support the Vertex Interpolator node required to use Gouraud mode. Landscapes will only work with Phong mode.

Technical Details

Number of Unique Materials and Material Instances: 26

Number of Material Functions: 12

Number of Textures: 13

Texture Resolutions: 256×256, 512×256, 1024×1024, 2048×2048

Supported Development Platforms:

Windows: Yes

Mac: Yes

Documentation: Included in material functions

Supported Engine Versions

4.26 – 4.27, 5.0 – 5.3