Skip to content

Commit 4a648fa

Browse files
committed
small fix for renderman look
1 parent f970a1e commit 4a648fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ncca/ngl/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def renderman_look_at(eye, look, up):
181181
n.normalize()
182182

183183
# Calculate right vector
184+
up.y = -up.y
184185
v = n.cross(up)
185186
v.normalize()
186187

@@ -209,7 +210,7 @@ def renderman_look_at(eye, look, up):
209210

210211
# Translation (camera position)
211212
result.m[3][0] = -eye.dot(v)
212-
result.m[3][1] = eye.dot(u) # Negated Y component
213+
result.m[3][1] = -eye.dot(u) # Negated Y component
213214
result.m[3][2] = -eye.dot(n)
214215

215216
return result

0 commit comments

Comments
 (0)