Hi guys! I'm having a bit of an issue with the headlight glass of my Challenger. As you can see from the screenie with the lights turned off, the glass reflects a bit of the track, such as it should in reality! The problem is that, when I turn on the lights, that reflection should disapear, but it doesn't! I'm tired of tweaking the shader and the alpha quantity on the .tga, but I can't get it right!
Is there any trick to make the reflection disappear when i turn the lights on?
I'm using this shader:
Thanks in advance!
Is there any trick to make the reflection disappear when i turn the lights on?
I'm using this shader:
vf_transparent
{
vertex_shader
{
file=dyn_standard_reflect_window_v.cg
}
fragment_shader
{
file=dyn_standard_reflect_window_f.cg
}
}
shader_glass_light~vf_transparent
{
cast_shadow=0
compression=0
reflect=0.2
sort_offset=1
layer0
{
map=glass_light.tga
blendfunc=blend
}
layer1
{
map=$trackenvmap
alpha_to_coverage=1
}
}
Thanks in advance!