Hello!
I have a problem that my foliage is too bright:
This is my foliage model shader, which is done by a tutorial:
models/mapobjects/plants_sd/grass_green1 //name of the texture
{
surfaceparm trans //The texture will be transparant.
surfaceparm pointlight //This will cast shadows on your terrain.
cull disable //The texture will be visible from both front and backsides.
distanceCull 2048 5096 0.5 //(256) Distance between the player and the model before scaling down, (1536) Distance to not be drawn anymore (scale = 0), (0,5) Fluency (0,5 = most fluency).
{
map models/mapobjects/plants_sd/grass_green1.tga //path to the texture
alphaFunc GE128 //Every pixel equal to and greater than 128 in the alpha-channel will be visible
rgbGen exactVertex
alphaGen vertex
}
}
And this is where I add my foliage to a texture:
textures/mygrass/grass_2
{
qer_editorimage textures/temperate_sd/master_grass_dirt3.tga
implicit textures/temperate_sd/master_grass_dirt3.tga
q3map_foliage models/mapobjects/plants_sd/grass_low.md3 .6 90 .5 .5 //scale, distance between the models, percent filled (decrease for less foliage), 2(unknown variable, for now use 2)
surfaceparm grasssteps
surfaceparm landmine
}
This bright effect is not affected by compile method or ambient light. Is there an easy way to change the lighting of the model or should I just make the texture darker(though it is using a vanilla texture(like in Radar map)).