background color

48 views
Skip to first unread message

Thibaut Lassalle

unread,
Jan 7, 2023, 9:30:45 PMJan 7
to openglobus
how do we change the background color?

`globe.renderer.backgroundColor.set(0.09, 0.09, 0.09)` doesn't work anymore...

Michael Gevlich

unread,
Jan 9, 2023, 2:14:44 AMJan 9
to openglobus
I replaced background color with SimpleSkyBacground plugin. I could make parameters for customization any color you want for the plugin. But if you realy want old background, I can return it too, I think.

Thibaut Lassalle

unread,
Jan 18, 2023, 2:33:56 PMJan 18
to openglobus
oh ok, thanks
is it defined here? src/og/control/SimpleSkyBackground.js:88
```
const vec3 START_COLOR = vec3(1.0);
const vec3 END_COLOR = vec3(0.0, 153.0/255.0, 221.0/255.0);
```
how can I customize this code?

Michael Gevlich

unread,
Jan 20, 2023, 2:51:02 AMJan 20
to openglobus
Yes, this is the place. You need some basics knowledge about glsl. Tibo, I'll make a PR asap(in the weekend), and you will check the "basics". In two words, firstly create user interface (input point), property setter etc. in the plugin, such as set startColor etc. then create shader uniform for the colors, in the shader inside the plugin, and voila, you can change the colors. It's easy, but need some basics. I'll show.

Michael Gevlich

unread,
Jan 21, 2023, 2:41:22 AMJan 21
to openglobus
Reply all
Reply to author
Forward
0 new messages