Cube mapping
Blitz3D Forums/Blitz3D Programming/Cube mapping
| ||
I have a entity which I want to both have its own texture but also have it reflect what’s around it using cube mapping. I can do one or the other but not both, it's probably very easy but right now I can figure it out. How's it done? |
| ||
Put the cube map on texture layer zero and the "own" texture on texture layer 1.EntityTexture MyEntity,CubeTexture,0 EntityTexture MyEntity,OwnTexture,1 Play with blend modes to get the effect you want. Probably Additive Blending, but see what you think. You can do it the other way around, but there's a long standing bug with putting cube maps on any layer but layer zero. Doesn't look like being fixed either, so best avoid doing it. |
| ||
Might want to check out my "cubemapping system".Doesnt fix the problem with multitexturing though. |