Archive 17/01/2023.

Box projection for reflection probes

cmd

Related to discussion:

I had some success implementing the HLSL and GLSL shader code changes to use box projection for the reflection probe. I’ve not generalised it yet, and it probably needs to be made optional for Zone environment (or more generally on TextureCube mapping). It is also currently based on the assumption that the zone bounds matches the required bounds for the box projection, which may not always be the case. Also assumes Zone bounds is in world space. For these reasons I decided not to make a PR out of it yet, but can provide details of what I changed if anyone is interesting in taking it further.

Here is my test scene, prior to my shader changes:

An here is the same scene with my box projection shader changes: