File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ the `u_world` matrix to re-orient the normals.
415
415
What happens if we scale the world matrix?
416
416
It turns out we get the wrong normals.
417
417
418
- {{{diagram url="resources/normals-scaled.html" caption="click to toggle normals" }}}
418
+ {{{diagram url="resources/normals-scaled.html" caption="click to toggle normals" width="600" }}}
419
419
420
420
I've never bothered to understand
421
421
the solution but it turns out you can get the inverse of the world matrix,
@@ -428,7 +428,7 @@ is scaled and the normals are being multiplied by the world matrix. You
428
428
can see something is wrong. The <span style =" color : #00F ;" >blue</span >
429
429
sphere on the right is using the world inverse transpose matrix.
430
430
431
- Click the diagram to cycle through different representation . You should
431
+ Click the diagram to cycle through different representations . You should
432
432
notice when the scale is extreme it's very easy to see the normals
433
433
on the left (world) are ** not** staying perpendicular to the surface of the sphere
434
434
where as the ones on the right (worldInverseTranspose) are staying perpendicular
You can’t perform that action at this time.
0 commit comments