slp.shader

来自「《光线引擎演示程序》执行程序+源代码,《光线引擎演示程序》执行程序+源代码」· SHADER 代码 · 共 103 行

SHADER
103
字号
//*******************************************************
//*              Protoskyboxattempt  
//*******************************************************
textures/slp/skybox
{
	surfaceparm noimpact
	surfaceparm nolightmap
//	surfaceparm sky
        q3map_lightimage textures/common/white.tga
	qer_editorimage textures/slp/fine.tga
	q3map_sun	1 1 1 80 -58 58
	//q3map_surfacelight 400
        q3map_surfacelight 80

        skyparms env/fine - -
       {
		map textures/slp/cloud.jpg
		blendfunc GL_ONE GL_ONE
		tcMod scroll 0.05 0.06
		tcMod scale 3 2
	}
}

//*********************************************************
//*      Medium clear calm water.                         *
//*********************************************************
textures/slp/water		
{
        qer_editorimage textures/slp/water00.tga
	qer_trans .5
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	
	cull disable
	deformVertexes wave 64 sin .25 .25 0 .5	
	{ 
		map textures/slp/water00.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod scroll .025 .01
	}
	
	{ 
		map textures/slp/water01.tga
		blendFunc GL_dst_color GL_one
		tcmod scale -.5 -.5
		tcmod scroll .025 .025
	}

	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity		
	}
}

//*********************************************************
//*      Medium waterfall.                         *
//*********************************************************
textures/slp/waterfall		
{
        qer_editorimage textures/slp/waterfall.tga
	qer_trans .5
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	
	cull disable
	deformVertexes wave 64 sin .25 .25 0 .5	
	{ 
		map textures/slp/waterfall.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod scroll .025 .01
	}
	
	{ 
		map textures/slp/waterfall.tga
		blendFunc GL_dst_color GL_one
		tcmod scale -.5 -.5
		tcmod scroll .025 .025
	}

	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity		
	}
}

//*********************************************************
//*      Medium glass.                         *
//*********************************************************
textures/slp/glass
{
        qer_editorimage textures/slp/glass.tga
	surfaceparm nodraw	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?