This is one of my first posts in this very forum
I could not find an answer to this question on my fellow french mapping forums.
Here it is : I designed a nice light emitting window texture that works perfectly... except it won't diffuse light in a single direction.
Let's say I make 4 windows in the walls of a square house. 3 of them will cast light but the fourth won't. Actually, it seems to be a shadow issue, 'cause from a far distance, my windows just look nice. Narrowing them will let the player notice there is no light diffuse around them (exterior wall, ground).
Any clue about this ?
Window's shader :
Code: Select all
textures/vineyard/test_light_window
{
qer_editorimage textures/vineyard/light_frame.tga
qer_keyword utility
qer_keyword window
surfaceparm glass
q3map_surfacelight 1000
// light 1
// test light
{
map $lightmap
rgbGen identity
}
{
map textures/vineyard/light_frame.tga
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map textures/vineyard/light_blend.tga
blendfunc GL_ONE GL_ONE
}
}

