TestShadowPass - problem with shadow over Trimesh (ShadowedRenderPass)

Hi!



My problem is with shadow… more especifically with ShadowedRenderPass. I use the JME example TestShadowPass, but the shadow doesnt appear over a Trimesh (red big square - Trimesh)… see my figure example.



Do you know why?



Thanks!

Solution…



Change:



sPass.setLightingMethod(ShadowedRenderPass.LightingMethod.Additive);



For:



sPass.setLightingMethod(ShadowedRenderPass.LightingMethod.Modulative);