I want to make a map with scrolling textures, like the one you see on sfx/fastwaterold
I have coped the shader for fastwaterold and changed some stuff to suit my texture but it isn't working
Here is the shader for fastwaterold
Quote:
textures/sfx/fastwaterold
{
qer_editorimage textures/sfx/pondwater
qer_trans .5
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
surfaceparm noshadow
sort water
{
map textures/sfx/pondwater.tga
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
{
map textures/sfx/pondwateroverlay.jpg
rgbGen vertex
tcMod transform 3 0 0 3 0 0
tcMod turb 2.03 0.2 1.03
tcMod scroll 0.5 0
blendFunc add
nextbundle
map textures/sfx/pondwateroverlay.jpg
tcMod transform 2 0 0 2 0 0
tcMod turb 0.01 0.2 0.03
tcMod scroll 0.4 0
}
}
And here is the shader for my textures
Quote:
textures/fawltymap/zom_thetrain/grass@ground1
{
qer_editorimage textures/fawltymap/zom_thetrain/grass@ground1.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/grass@ground1.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
{
map textures/fawltymap/zom_thetrain/grass@ground1.dds
rgbGen vertex
tcMod transform 3 0 0 3 0 0
tcMod turb 2.03 0.2 1.03
tcMod scroll 0.5 0
blendFunc add
nextbundle
map textures/fawltymap/zom_thetrain/grass@ground1.dds
tcMod transform 2 0 0 2 0 0
tcMod turb 0.01 0.2 0.03
tcMod scroll 0.4 0
}
}
textures/fawltymap/zom_thetrain/grass@ground2
{
qer_editorimage textures/fawltymap/zom_thetrain/grass@ground2.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/grass@ground2.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
{
map textures/fawltymap/zom_thetrain/grass@ground2.dds
rgbGen vertex
tcMod transform 3 0 0 3 0 0
tcMod turb 2.03 0.2 1.03
tcMod scroll 0.5 0
blendFunc add
nextbundle
map textures/fawltymap/zom_thetrain/grass@ground2.dds
tcMod transform 2 0 0 2 0 0
tcMod turb 0.01 0.2 0.03
tcMod scroll 0.4 0
}
}
textures/fawltymap/zom_thetrain/wood@rail.dds
{
qer_editorimage textures/fawltymap/zom_thetrain/wood@rail.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/wood@rail.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
{
map textures/fawltymap/zom_thetrain/wood@rail.dds
rgbGen vertex
tcMod transform 3 0 0 3 0 0
tcMod turb 2.03 0.2 1.03
tcMod scroll 0.5 0
blendFunc add
nextbundle
map textures/fawltymap/zom_thetrain/wood@rail.dds
tcMod transform 2 0 0 2 0 0
tcMod turb 0.01 0.2 0.03
tcMod scroll 0.4 0
}
}
Have also tried
Quote:
textures/fawltymap/zom_thetrain/grass@ground1
{
qer_editorimage textures/fawltymap/zom_thetrain/grass@ground1.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/grass@ground1.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
}
textures/fawltymap/zom_thetrain/grass@ground2
{
qer_editorimage textures/fawltymap/zom_thetrain/grass@ground2.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/grass@ground2.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
}
textures/fawltymap/zom_thetrain/wood@rail.dds
{
qer_editorimage textures/fawltymap/zom_thetrain/wood@rail.dds
surfaceparm dirt
{
map textures/fawltymap/zom_thetrain/wood@rail.dds
rgbGen exactVertex
tcMod transform 1 0 0 1 0 0
tcMod Scroll 0.60 0.1
blendFunc blend
nextbundle
map $lightmap
}
}
I don't really have a lot of experience with shaders and stuff like this so I'm not entirely sure what I'm doing.
What can I do to get scrolling textures? Any help?