Among several new features in MoBu 2015 we have a new dynamic lighting shader with shadows. But this shader inherit bug from his elder brother, dynamic lighting shader. The bug appears when you are trying to put a spot light on a model with normal map assigned.

The result is like that

MoBu_dynamicLighting_bug

To fix that, you can make some changes in shader code. The source file of a shader you can find in MotionBuilder\bin\System\shaders folder. You will need to change LightingPS.cg and LightingShadowMapPS.cg (for MoBu 2015). Make some copies before. Changes code I have uploaded on my github gists.

After that I have a much better picture with my spot light.

MoBu_dynamicLighting_afterFix

 

 

Spotlight bug in dynamic lighting shader
Tagged on:                 

One thought on “Spotlight bug in dynamic lighting shader

  • Thursday August 14th, 2014 at 04:03 AM
    Permalink

    Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *