hi!! Extremely intriguing exchange happy that I ran over such useful post. Keep doing awesome. Happy to be a piece of your net group.igloo counter top ice maker
Wow, the YouTube video was released in November. How have I never seen it before? I've probably watched it three times in the past hour. It's an absolutely amazing production. What was the budget for this?
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.