fix normal bug
This commit is contained in:
parent
e4fc439d01
commit
0026741e17
|
@ -514,6 +514,9 @@ function drawScene(gl: any,
|
|||
mat4.rotateZ(normalModelMatrix,
|
||||
normalModelMatrix,
|
||||
params.rot.z);
|
||||
mat4.rotateY(normalModelMatrix,
|
||||
normalModelMatrix,
|
||||
squareRotation);
|
||||
|
||||
const modelMatrix = mat4.create();
|
||||
mat4.translate(modelMatrix,
|
||||
|
@ -523,9 +526,6 @@ function drawScene(gl: any,
|
|||
-params.avg.y,
|
||||
-params.avg.z,
|
||||
]);
|
||||
mat4.rotateY(modelMatrix,
|
||||
modelMatrix,
|
||||
squareRotation);
|
||||
|
||||
// Set the drawing position to the "identity" point, which is
|
||||
// the center of the scene.
|
||||
|
|
Loading…
Reference in New Issue