Imitating Disney’s Dr. Facilier Shadow in UE4
Subscribe:  iCal  |  Google Calendar
20, Jan — 16, Mar
21, Feb — 23, Feb
Barcelona ES   25, Feb — 1, Mar
Dubai AE   5, Mar — 7, Mar
7, Mar — 1, Jun
Latest comments
by igloo counter top ice maker
7 min ago

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?

Imitating Disney’s Dr. Facilier Shadow in UE4
15 March, 2017
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);

Tom Looman

The material used in the GIF:

Make sure to read the full post on implementing forward shading inside UE4 here

Source: Tom Looman

Leave a Reply

Be the First to Comment!