MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_to_blender

Function bloom_to_blender

tools/cycles_reference/render.py:166–175  ·  view source on GitHub ↗

Convert a Bloom (X, Y_up, Z) vector to Blender's Z-up space. Y-up right-handed (X right, Y up, Z toward viewer) maps to Z-up right-handed (X right, Y into screen, Z up) via: x_b = x_y y_b = -z_y z_b = y_y

(v)

Source from the content-addressed store, hash-verified

164# ---------------------------------------------------------------------------
165
166def bloom_to_blender(v):
167 """Convert a Bloom (X, Y_up, Z) vector to Blender's Z-up space.
168
169 Y-up right-handed (X right, Y up, Z toward viewer) maps to Z-up
170 right-handed (X right, Y into screen, Z up) via:
171 x_b = x_y
172 y_b = -z_y
173 z_b = y_y
174 """
175 return (v[0], -v[2], v[1])
176
177
178# ---------------------------------------------------------------------------

Callers 2

add_sunFunction · 0.85
setup_cameraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected