Question about using single pass lighting

Hi
For using single pass lighting is it enough to do :

renderManager.setPreferredLightMode(TechniqueDef.LightMode.SinglePass);
renderManager.setSinglePassLightBatchSize(5);//ex : 5

or I need to add this for every material source like below :

Technique {

        LightMode SinglePass
      
        }

or anything else ?

Thanks a lot to adding support for LightCull and SinglePass Lighting ,… to JME . Really Cool. :+1:

If you’re using the built-in lighting material (Lighting.j3md), it’s enough to do just the first part.

1 Like