Broken shadows with animated cutout
Posted: Mon Oct 02, 2017 4:41 pm
Hi Amplify,
I have a simple shader, which has an animated cutout, based on a panning texture and also which is double face with a normal correction depending on the face orientation (double face activated).
But it gives me a weird shadow, like if the U coordinate of my texture was constant. If I remove the normal flip code or if I remove the panner on the texture, everything is fine.
I've attached the shader for you to see the problem.
I've noticed that when it's working it is using the addshadow, otherwise it is using your vertex/fragment code. If I remove the generated vertex/fragment and add addshadow, it's fine, even with both features active.
Thanks
I have a simple shader, which has an animated cutout, based on a panning texture and also which is double face with a normal correction depending on the face orientation (double face activated).
But it gives me a weird shadow, like if the U coordinate of my texture was constant. If I remove the normal flip code or if I remove the panner on the texture, everything is fine.
I've attached the shader for you to see the problem.
I've noticed that when it's working it is using the addshadow, otherwise it is using your vertex/fragment code. If I remove the generated vertex/fragment and add addshadow, it's fine, even with both features active.
Thanks