Does anyone know how to have a model render where the first texture is the diffuse texture and the second one is an environment map of some kind?
The supposedly built-in sphere-mapping would work, except I want to combine the environment map with the normal texture map. Even better, I would like to environment map where I dot the normal of each vector with [1, 0, 0] and [0, 1, 0] to get UV coordinates on the environment map, since the camera is fixed above and this seems like it would be faster.
I tried the EMT_REFLECTION_2_LAYER material type, but this seems to not get any dynamic lighting and not exactly what I'm looking for.
Thanks.
Environment mapping with a normal texture
Re: Environment mapping with a normal texture
dynamic cube maps would be handy right now (hint Niko ) - shaders can be used but talk about over-egging things, we don't all want to use non fixed function pipeline stuff because of older system compatibility.JeffL wrote:Does anyone know how to have a model render where the first texture is the diffuse texture and the second one is an environment map of some kind?
The supposedly built-in sphere-mapping would work, except I want to combine the environment map with the normal texture map. Even better, I would like to environment map where I dot the normal of each vector with [1, 0, 0] and [0, 1, 0] to get UV coordinates on the environment map, since the camera is fixed above and this seems like it would be faster.
I tried the EMT_REFLECTION_2_LAYER material type, but this seems to not get any dynamic lighting and not exactly what I'm looking for.
Thanks.