Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...\shaders\composite1.fsh\
- Line 1118 (visibility) --" fogFactor = pow(fogFactor, 2.00f);
- Note that "2.0" is your custom number. This is the one you already know and already made a tutorial for
- ...\shaders\composite1.fsh\
- Line 1121 (intensity) --" finalComposite.rgb = mix(finalComposite.rgb, fogColor * 0.010f, vec3(fogFactor));
- Note that "0.010f" is your custom number. This number IS affected by visibility and, for a soft effect, should be around 1/200 of the visibility number, but you can go up to values like 1/10 for a foggy effect.
- The MORE TRANSPARENCY(visibility) it has, the HIGHER this number should be.
- Final example (lines 1118-1121):
- ---
- fogFactor = pow(fogFactor, 3.5f);
- finalComposite.rgb = mix(finalComposite.rgb, fogColor * 0.025f, vec3(fogFactor));
- ---
Advertisement
Add Comment
Please, Sign In to add comment