Jump to content

Home

How do i make my own fog shader


VIO

Recommended Posts

i need to make a dense fog shader for my map but im not sure how to start or exacly what a shader does. do i just have to draw a pic for it and turn it into a shader how do i edit other shaders?

Link to comment
Share on other sites

You can edit/create shaders with every note/textpad.

 

For the fogshader:

 

textures/fogs/yavin

{

qer_editorimage textures/fogs/fog.tga

surfaceparm nonsolid

surfaceparm nonopaque

surfaceparm fog

surfaceparm trans

q3map_nolightmap

fogparms ( 0.541176 0.490196 0.376471 ) 4000.0

}

 

//original Yavin_swamp shader.

 

The number "4000.0" represents the density of the fog, so lower it to 2000.0 maybe and it will reduce your max. viewpoint about 50 %, etc.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...