View Single Post
Old 07-10-2004, 01:45 AM   #3
wedge2211
Commander, Rogue Squadron
 
wedge2211's Avatar
 
Join Date: Jul 2002
Location: Ithaca, NY
Posts: 2,320
Re: Grass and Shaders

Get rid of surfaceparm nodraw. This section:

Quote:
Originally posted by Arkon11
{
map textures/f0x0r/ss_grassjapan
surfaceSprites vertical 5 20 25 2000
ssVariance 1
ssWind 0.0
alphaFunc GE192
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
rgbGen vertex
}
Is what maps a texture to the surface. (See the "map textures/..." line?) Try making yourself a jpeg that's all black and replacing the stage I highlighted with:

{
map textures/whatever/black
blendfunc add
}

Then you should be able to apply the shader to a brush and just get grass sprites sprouting from an invisible surface.


wedge2211 is offline   you may: quote & reply,