Transparent Layer over Entire screen

Hi,

I’m making a solar based racegame, and therefore I also need to implement clouds. Now the general idea was to draw a black rectangle over the entire screen with onScreenImage and manually setting the alpha of that image based on the ‘Cloudpercentage’ variable. Does anyone know how to accomplish this? Some help is greatly appreciated :wink:

Thanks in advance,
Zaegra

solar based race game sounds fine. but if you want to dimm the entire scene youcould just manipulate the color/colorscale of your scene’s nodepath.

render.setColorScale(.8,.8,.8,1)

if thats the effect you’r looking for.