Hi,
I have a problem with the (shadowed)lightColor.. I turned off the "Cast Shadows" option in the Object-Propertys for my Object and assigned my shader to it.
I just want a completly flat shading only containing drop-shadows of the other objects... basicaly it's working, but at the side of my objects, that's not facing towards the light - it's black..
It is because the normal of the Fragment is not facing towards the light, so the lightColor for this fragment becomes black.. I tried to change the diffuseNormal that's returned in getDiffuseNormal() - that's working.. but only for 1 Light.. as soon as there are more lights, it's not working anymore :/
Is there any way to get this to work?
Aya~
I have a problem with the (shadowed)lightColor.. I turned off the "Cast Shadows" option in the Object-Propertys for my Object and assigned my shader to it.
I just want a completly flat shading only containing drop-shadows of the other objects... basicaly it's working, but at the side of my objects, that's not facing towards the light - it's black..
It is because the normal of the Fragment is not facing towards the light, so the lightColor for this fragment becomes black.. I tried to change the diffuseNormal that's returned in getDiffuseNormal() - that's working.. but only for 1 Light.. as soon as there are more lights, it's not working anymore :/
Is there any way to get this to work?
Aya~
Comment