lightmaps for shaders?

Posted By: MPQ

lightmaps for shaders? - 12/31/11 12:40

Hi,

I want to use lightmaps for model and csg level geometry. Before I was using shaders I just baked the shadows onto my models. But when I looked up in the manual I found that eg (spec)bump shader supports light maps.
So my question: where do I put the lightmap in? At the moment I am using 24bit texture + 32bit bump + specmap in the alpha channel.

Thanks in advance!!
Posted By: WretchedSid

Re: lightmaps for shaders? - 12/31/11 12:44

Put it into the second UV set.
Posted By: MPQ

Re: lightmaps for shaders? - 12/31/11 13:17

ok thank you for the short answer, but It's a bit too short for me wink

what does "second uv set" mean? the second texture? I am already using the second texture for bump and specmap?!
Posted By: Hummel

Re: lightmaps for shaders? - 12/31/11 14:00

The engine puts the lightmap in entSkin2. Also you have to sample it with the second UV-Texcoord set (in float2 LMapTex : TEXCOORD1) as Sid already mentioned.
Posted By: MPQ

Re: lightmaps for shaders? - 01/02/12 10:54

thank you, it's working!!!
© 2024 lite-C Forums