Hi,
I’m wondering how to retrieve the current “color” of the sun light at any given setting for the three.js sky.js library.
Example
I’m also looking to resize/replace the sun disk.
How can I get those glsl “variables?” To JavaScript variables then back in?
Setting additional uniforms for them? I’m learning about glsl and would like to know how.
I see where the “sun disc” and some “color” floats at the bottom of the glsl code are.
Here
I’ve got the sun vector3 being used for a directional light properly. Now I want to change the light’s color and intensity according to the shader’s sun light.
Also resize/replace the disc with an optional moon, and retrieve ambient color to feed into the sky arg of my hemisphere light.
Any pointers would be great.
Thanks!