Post tutorial Report RSS Shader System Usage

The script system is really friendly and easy to use.

Posted by on - Basic Other

Ok first find the Shaders folder and u found this files :

Shaderlist.txt
test.shader

How create a new shader :

Its easy create a new shader file and don't forget add into the shaderlist.txt

How the script is looks :

{ "Building_Temw7" // Texture name in hammer

{
map "gfx/shaders/hqtest/Building_Template002o.tga" // replacement texture name
blend detail // Special Func
}
}

How create Shader passes :

{ "Building_Tem09q"

// Pass 1
{
map "gfx/shaders/shader.tga"
blend GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
flag "texscroll" // Special func
scale 1 // Default is 1 not need to use this line
}
// Manage
{
map "gfx/shaders/hqtest/Building_Trainstation_Template002b.tga"
blend GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: