[SOLVED] I need some help with lighting in my project

Aha! Yes, you are right. Sorry, I don’t know what I didn’t check before. Excellent. Thank you.

1 Like

By the way, no need to do that per frame if you don’t have to. Once on startup should be enough, in initialize:

var Lighting = pc.createScript('lighting');

Lighting.prototype.initialize = function() {
    this.app.scene.ambientLight = new pc.Color(1, 1, 1, 1);
};