Thank you for this very nice contribution!
After playing around with this shader, I noticed that the c_trace slows the entity rendering speed down a lot.
I havenīt a clue about shaders, but I remembered a ffp-bumpmapping effekt, wich was everytime as bright as the ground below it, or at least it seemed so.
I took a closer look at it and found vecLight.
I replaced your mtlSkill1 with vecLight and this looks all right in my testlevel (ok itīs a bit brighter then using the trace). So my question is, whatīs wrong with vecLight?

Another thing wich interests me is c_scan cause in the manual it sais:
Quote:


c_scan (VECTOR* pos, ANGLE* dir, VECTOR* sector, var mode);
[...]

The following mode values can be set:
[...]
SCAN_LIGHTS Scans for static lights.
[...]

Modifies:
you Pointer to the closest detected entity.
result Distance to the closest detected object.
target Position of the closest detected object.
bounce Angle of the closest detected level camera position.
tex_color Color of the closest detected static light.

[...]





Are these static lights those placed in WED?

Thanks,
Slin

Last edited by Slin; 04/06/07 22:52.