phong shader on cylinder
Posted: Tue Apr 20, 2010 9:07 pm
I followed Sock's tutorial on creating a phong shader, left it mapping a grey texture for now.
When I apply it to a brush, in this case a curved 1/4 cylinder the coords flip
at the half way point or something, and a hard edge is generated, and an artifact in the shadow map.
What I am doing wrong ?
When I apply it to a brush, in this case a curved 1/4 cylinder the coords flip
at the half way point or something, and a hard edge is generated, and an artifact in the shadow map.
What I am doing wrong ?
Code: Select all
//-----------------------------------------------------
// phong shader for curved brushes in the map
textures/daveo/grey_phong
{
q3map_nonplanar
q3map_shadeangle 360 //--- I tried other shade angles also ...
qer_editorimage textures/daveo/grey_phong_REI.tga
{
map $lightmap
rgbGen identity
}
{
map textures/daveo/grey_phong.tga
blendFunc filter
}
}