Well... I only have the 'customize' option for the NM.wdl but not the NM.fx, and this is what I get, though I don't know if it's the proper panel you mention..




Here I tried to turn the ambient to '0,0,0' (not in the picture)

Now, if this is the wrong customize panel, where in the WDL do I adjust the specular so the sun doesnt effect the model?

I see 3 places where specular is listed in the fx file...

Line 17: float4 vecSpecular;

Line 128: float4 sunOut = (inColor*sunDiff + sunSpec*gloss) * sunShadow * vecSpecular;

Line 252: technique SpecularNormalMapping_20

... and in the NM.wdl in the
"function effect_startup()"
Line 75: vec_set(mat_NM.specular_blue, sun_color);

So I guess the question is, where and what do I adjust for the sun not to affect the model?

Thanks for this awesome shader!

- Jason

EDIT: The reason I think the sun shouldnt always effect a model is using Doom3 as an example. the indoor areas have no sun influence, and is all lit by dynamic lights.

The sun has no place indoors. As for 'some' lighting, you have the fantastic 'fake dynamic' lighting implemented, which is great for indoors.

It would be neat to have a feature implemented to choose between sun influence and no sun influence so if you have both indoor and outdoor portions in a level, you can use the same script.

Just my 2 cents


Gamestudio Pro 6.4
Pentium 4 3.0 GHz 800MHz BUS
AtiRadeon 9800 pro 256Mb 21" Monitor
1 Gig DDR RAM
36 Gig RAPTOR SATA+ 120 Gig SATA
SB Audigy 2 w/ 450 watt Logitech Z680 5.1

www.nordicepitaph.com