Mirror

Blitz3D Forums/Blitz3D Beginners Area/Mirror

_PJ_(Posted 2013) [#1]
Vertices reflected by mirrors seem to be lit as real objects, rather than a reflection of the original.
Whilst I can understand that naturally a mirror itself would be subject to lighting, I don't believe this was intended and may be a bug?


Yasha(Posted 2013) [#2]
If you mean mirrors created by the CreateMirror command, that's because they are actually real objects. When you use builtin mirrors the engine duplicates the entire scene's geometry and flips it around. Because it's real geometry and the same render pass, the same lights apply to it. (i.e. yes it's a bug, but not one that can be easily fixed.)

Builtin mirrors have a lot of unintended behaviours and really shouldn't be used for anything other than the most simple scenes. In most circumstances you'd do better to use something like cubemapped reflections.