|
I have a HLSL shader I wrote with 3 point lights in it and it works fine.
However, sometimes the lighting seems to use incorrect positions or the view direction (camera matrix?) is wrong as the specular highlights will appear from some weird angles.
Once this happens I can’t seem to revert it back to normal however creating a new scene and using the same shader will work again. Its as if the lights become “unsynced”. I have not found a reliable way to make this happen.
A possibly related problem exists where if you connect a light/locator etc to the shader using the attribute editor UI and then disconnect it, the light will stay at the previous position and not update as the object/camera moves. I would have expected the light to disappear. Reconnecting it will make it update again as usual.
Does anyone know if these are known issues with the maya hlsl support or if I forgot to set something somewhere?
Thanks!
|
|
|