tremulous:assets

This is an old revision of the document!


Intro to shaders

What is a shader and what does it do, how is it used?

Examples:

<Code:none linenums:0 |Example shader for portal effects: portals.shader> models/fx/portal/bluering {

surfaceparm nodlight
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm nomarks
cull disable
{
	map models/fx/portal/bluering.tga
	blendfunc add
	rgbGen identity
	tcMod scroll -0.2 0
}

}

models/fx/portal/bluecenter {

portal
surfaceparm nodlight
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm nomarks
cull disable
{
	map models/fx/portal/bluecenter.tga
	blendfunc add
	rgbGen identity
	tcMod rotate -5
}

}

</Code>

Image:

  • tremulous/assets.1511998386.txt.gz
  • Last modified: 2017/11/29 15:33
  • by romdos