Vertex lit texture question.


(Raven) #1

Here is my shader:

textures/factory/basic1_vertex
{
q3map_shadeangle 65
qer_editorimage textures/factory/basic1
q3map_nolightmap
q3map_nonplanar
{
map textures/factory/basic1
rgbGen exactVertex
}
}

I get sections of my level that have jet black faces where this texture is applied. Many of them look fine though. To get this right so that it looks fine at every angle I need to make several passes to this shader or several shaders for this texture (each with a different shadeangle value)? There must be a way to eliminate those nasty black faces. Thank you for any responses :smile:


(ydnar) #2

Use the -approx switch on light phase. A value of 8-24 as the argument should suffice. That will automatically make lightmapped faces without shadow detail vertex lit, saving gobs of lightmap mem on certain maps.

y


(Raven) #3

Thank you very much Ydnar :smile: I will try out -approx 22 in this next compile.