TBlazeWarriorT

How To Underwater Fog SEUS v10.2

Mar 16th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ...\shaders\composite1.fsh\
  2. Line 1118 (visibility) --" fogFactor = pow(fogFactor, 2.00f);
  3. Note that "2.0" is your custom number. This is the one you already know and already made a tutorial for
  4.  
  5. ...\shaders\composite1.fsh\
  6. Line 1121 (intensity) --" finalComposite.rgb = mix(finalComposite.rgb, fogColor * 0.010f, vec3(fogFactor));
  7. 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.
  8.  
  9. The MORE TRANSPARENCY(visibility) it has, the HIGHER this number should be.
  10.  
  11.  
  12. Final example (lines 1118-1121):
  13. ---
  14. fogFactor = pow(fogFactor, 3.5f);
  15.  
  16.  
  17. finalComposite.rgb = mix(finalComposite.rgb, fogColor * 0.025f, vec3(fogFactor));
  18. ---
Advertisement
Add Comment
Please, Sign In to add comment