[SOLVED] Applying SceneSettings editing Rendering Intensity

Hello Team!

I am thinking of a use case where I would want to slowly dim the scene using tween. I don’t really know about the performance impact yet but I would favor a way to edit only rendering.intensity. Is this possible?

pc.Application.applySceneSettings seems to do the trick!

Is there a way to edit single values instead of applying all configurations? If I leave out the gravity or physics property the engine throws a null error because it is expecting all properties.


PS:Nothing nicer than spending the easter holidays with Playcanvas :smiley:

Hi @Sebastian,

Sure, you can change that value by accessing the scene instance in any of your scripts:

this.app.scene.skyboxIntensity = 2;

There is no performance impact in doing so.

1 Like

Good Evening @Leonidas,

reply after 5min? jeez, I knew I should have read the API longer. The SceneObject didn’t occur to me because I thought of the rendering settings as being global thus looking at pc.Application. We don’t use different scenes yet so this idea really skipped my mind.

Anyhow, now I have a really nice effect going and our 3DModels guy is truly impressed of how fast one can implement his ideas in playcanvas :stuck_out_tongue:

There is no performance impact in doing so.

Very happy to read this :smiling_face_with_three_hearts:

Keep it going!

1 Like