I copied the blood.shader, adjustet a few paths and now it works quite nice. No z-fighting, transparent background and all that stuff.
But if I walk on it, the shadows are screwed.
Can someone help me how I could fix it? I tried adding map $lightmap to the shader, but then its way too bright.
Heres an example of the shader:
- Code: Select all
// new dark blood splats when bleeding or shot //
textures/ut4_boxcity/bloodMark
{
nopicmip // make sure a border remains
polygonOffset
entityMergable // allow all the sprites to be merged together
{
clampmap gfx/damage/blood_stain.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen vertex
alphaGen vertex
}
}
Im using ambient 200 as long as the lighting isnt finished, can this cause this bug?
Just ask if you need more info
Any help would be appreciated
ps: ye the minimap is screwed