Browse Source

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).
pull/72/head
Darryl Pogue 7 years ago
parent
commit
4066dff6ae
No known key found for this signature in database
GPG Key ID: CB824715C3E6FD41
  1. 2
      korman/exporter/material.py

2
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:

Loading…
Cancel
Save