File:Grey fog in Ren'Py.png
Original file (1,920 × 1,080 pixels, file size: 45 KB, MIME type: image/png)
Summary
An example of a solid-color background and also an example of a shader: the background is grey and the sprite is mixed with grey to make it look like it's in a foggy environment.
Made this myself in Ren'Py using a sprite I drew in a couple of minutes. I didn't want to use a commercial VN but it also seemed selfish to use a published VN made by myself, so I made a VN specifically to take screenshots like this. The license of Ren'Py itself is explained on its website, but it seems the UI itself wouldn't stop me from putting a screenshot under CC-BY-SA-2.5.
Code used in Ren'Py to create the transform used in this image:
init python:
renpy.register_shader("MixFog.MixFog", variables="""
uniform sampler2D tex0;
uniform float u_amount;
uniform vec3 u_col;
varying vec2 v_tex_coord;
""", fragment_300="""
gl_FragColor = texture2D(tex0, v_tex_coord);
gl_FragColor.rgb = mix (gl_FragColor.rgb, u_col, u_amount);
gl_FragColor.rgb *= gl_FragColor.a; // I think Ren'Py may be using premultiplied alpha
""")
transform foggy:
shader "MixFog.MixFog"
u_amount 0.95
u_col (0.5, 0.5, 0.5)
And then to apply the transform, I used show glass worried at foggy.
Licensing
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 09:13, 26 July 2025 | 1,920 × 1,080 (45 KB) | Tale glider (talk | contribs) | An example of a solid-color background and also an example of a shader: the background is grey and the sprite is mixed with grey to make it look like it's in a foggy environment. Made this myself in Ren'Py using a sprite I drew in a couple of minutes. I didn't want to use a commercial VN but it also seemed selfish to use a published VN made by myself, so I made a VN specifically to take screenshots ilke this. The license of Ren'Py itself is [https://www.renpy.org/doc/html/license.html ex... |
You cannot overwrite this file.
File usage
The following 2 pages use this file: