Hi. I edited my shader about grass. I wanted to see grass at long distance at radar map.
models/foliage/grassfoliage1
{
nopicmip
qer_alphafunc greater 0.5
qer_editorimage models/foliage/grassfoliage1.tga
cull disable
// distanceCull <inner> <outer> <alpha threshold>
distanceCull 128 9999 0.49
sort seethrough
surfaceparm pointlight
surfaceparm trans
surfaceparm nomarks
nopicmip
deformVertexes wave 20 triangle 0 1 0 1
{
map models/foliage/grassfoliage1.tga
alphaFunc GE128
rgbGen exactVertex
alphaGen vertex
alphaGen wave inversesawtooth 0 1 0.75 1.5
}
My question is: Can i “resize” a texture using a shader? I think that the grass is too big and i wanna make it looks litle. I know its possible with photoshop. Help me plx
