View Single Post
Old 09-14-2005, 07:39 PM   #3
wedge2211
Commander, Rogue Squadron
 
wedge2211's Avatar
 
Join Date: Jul 2002
Location: Ithaca, NY
Posts: 2,320
Code:
textures/atlantis/ocean ***
{
	qer_editorimage	textures/atlantis/ocean
	surfaceparm	nomarks
	surfaceparm	nonsolid
	surfaceparm	nonopaque
	surfaceparm	water
	surfaceparm	trans
	q3map_material	Water
	q3map_onlyvertexlighting
	deformvertexes	wave	100 sin 1 2 2 0.6
    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_ZERO
    }
    {
        map textures/atlantis/ocean ***
        blendFunc GL_DST_COLOR GL_ZERO
        tcMod turb 0.01 0.03 5 0.1
        tcMod stretch noise 1 0.01 1 1
    }
    {
        map textures/atlantis/ocean ***
        blendFunc GL_ONE GL_ONE
        tcMod turb 0.02 -0.06 0 0.1
        tcMod stretch noise 4 1 0 0.01
    }
}
*** - This change makes the shader appear properly as "ocean" under the "atlantis" texture set. What you had before just replaces "water_1" in the "common" texture set, and might have caused problems.
*** - This change makes the water look like your image atlantis/ocean instead of the previous common/water_1.



Last edited by wedge2211; 09-14-2005 at 07:44 PM. Reason: made it preserve proper tabs and added a bit of explanation
wedge2211 is offline   you may: quote & reply,