Post tutorial 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
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.