From 4066dff6aebe719f807249c4134f7f522d5d586f Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 1 Oct 2017 19:30:23 -0700 Subject: [PATCH] Use Reflection Xform for env maps Refraction Xform causes the camera movement to affect the resulting output differently, leading to an envmap that seems to run around the object in the opposite direction as you turn. Reflection Xform keeps it much more steady, and also matches what PlasmaMax outputs by default (they have a checkbox to use Refract mode). --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 6b64622..32daebb 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -520,7 +520,7 @@ class MaterialConverter: if layer is not None: layer.UVWSrc = plLayerInterface.kUVWReflect - layer.state.miscFlags |= hsGMatState.kMiscUseRefractionXform + layer.state.miscFlags |= hsGMatState.kMiscUseReflectionXform # Because we might be working with a multi-faced env map. It's even worse than have two faces... for i in faces: