Archive 17/01/2023.

How to render shadowcasters backfaces

abhishek.sinha

While going through rendering documentation for shadows I hit a line “Another way of fighting self-shadowing issues is to render shadowcaster backfaces, see Materials”. I went through materials but could not get any insights on how we can render shadowcaster backfaces.

Could anyone give insights as to what is shadowcaster backface and how to use it

cadaver

In the Editor’s Material editor window, scroll down and choose “CW” from the “Shadow cull” dropdown (normal value is CCW, which will render shadow frontfaces)

Or in a material’s xml, add the element:

<shadowcull value="cw" />

If your mesh is not continuous (does not have a bottom) this will cause the shadow to disappear partially. You may also see light bleeding artifacts near the backfaces, so this is not a complete problem-free solution.

abhishek.sinha

Thanks for your response. Was just wondering could it lead to any performance or rendering issues