Comments

Log in with itch.io to leave a comment.

Hi, I'm trying to make the pixelated clouds transparent and fluffy. The only way I've managed it is to draw the clouds to a surface, then apply a blur shader to the surface and draw the surface wit ha lower alpha, which isn't very efficient and causes stuttering every 5 seconds. Any tips or tricks to get this working better? 

Hi, is it possible to change the alpha/opacity of the clouds in shader #2 (pixelated clouds)?

Hey! Yes definitely - you can modify this line in the "shd_clouds_pixel" shader:

gl_FragColor = vec4(cloud_color, (cloud_dnsty <= 0.2 ? 0.0 : 1.0));

The "1.0" is the alpha component, so you can change that to be between 0.0 and 1.0 to control the alpha

Perfect, thanks!