⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slp.shader

📁 《光线引擎演示程序》执行程序+源代码,《光线引擎演示程序》执行程序+源代码
💻 SHADER
字号:
//*******************************************************
//*              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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -