I lost a year's work when Microsoft deleted my documents folder on their October update I wish this guy luck Adobe are more interested in forcing professionals to use their cloud than improving their products these days.
Balance changes please!
Another incredibly useful breakdown, thanks Simon!
Tom Looman presented his experiments with Forward shading in Unreal Engine 4 inspired by Dr. Facilier’s shadow in The Princess and the Frog.
Enabling forward rendering changes UE4’s default deferred pipeline. Here is Tom’s result:
The implementation is really quite basic, I used the LightAttenuationTexture available only in Forward-rendering of the engine to find which part of affected by light. To access this buffer you need to use the Custom-node in the material editor, and apply the following code:
return Square(Texture2DSampleLevel(LightAttenuationTexture, LightAttenuationTextureSampler, UV, 0));
“UV” is an input parameter (so make sure it’s added to the param list of the custom node) in which we feed the ScreenAlignedUVs node output.
For those interested, I found this snippet in the engine’s shader folder at …/4.14/Engine/Shaders/Common.usf and contains the function GetPerPixelLightAttenuation(float2 UV);
The material used in the GIF:
Make sure to read the full post on implementing forward shading inside UE4 here.