I’m not sure if this is a new bug but if not i’m surprised if this hasn’t been caught earlier - basically, when using a Fresnel function in a default lit masked material, I’m finding the shadows of my model are disappearing at certain angles in a very unusual way:
So I would look at making your material for the leaves ‘Two-Sided’ by checking that in the material properties.
Are you attempting to use the regular Fresnel node and not the function node? The fresnel function node works a bit differently than a regular fresnel which is why I ask.
The best way for me to assist you would be for you to provide me with this simple test project so I can open it up and take a look at how you have your scene and materials completely set up.
Hi Andrew, thanks for your reply, to answer some of your questions:
So I would look at making your
material for the leaves ‘Two-Sided’ by
checking that in the material
properties.
Two sided lessens the effect somewhat, but it still is happening to a degree that is pretty noticeable.
Are you attempting to use the regular
Fresnel node and not the function
node? The fresnel function node works
a bit differently than a regular
fresnel which is why I ask.
I have tried both the Fresnel function node and the Fresnel node and both produce the same results. purely speculating, but it seems to me that alpha Fresnel for the shadows is being calculated with a Dot product of the Light Vector and Normal Vector rather than Player view vector and Normal Vector?
The best way for me to assist you
would be for you to provide me with
this simple test project so I can open
it up and take a look at how you have
your scene and materials completely
set up.
Ugg it seems like I’ve hit another snag - although the custom code node works for realtime lighting, BAKED static lighting still breaks when using the fresnel node:
Ok it seems all I need to do is use the LightmassReplace node to ignore the fresnel part and now it works perfectly with baked and real-time perfectly! Thanks so much everyone!