Skip to content

Commit

Permalink
Clean up (#25711)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Mar 24, 2023
1 parent 8ad8604 commit 75cfd1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/webgl_materials_texture_rotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
offsetY: 0,
repeatX: 0.25,
repeatY: 0.25,
rotation: Math.PI / 4, // positive is counter-clockwise
rotation: Math.PI / 4, // positive is counterclockwise
centerX: 0.5,
centerY: 0.5
};
Expand Down Expand Up @@ -120,11 +120,11 @@
texture.offset.set( API.offsetX, API.offsetY );
texture.repeat.set( API.repeatX, API.repeatY );
texture.center.set( API.centerX, API.centerY );
texture.rotation = API.rotation; // rotation is around [ 0.5, 0.5 ]
texture.rotation = API.rotation; // rotation is around center

} else {

// one way...
// setting the matrix uv transform directly
//texture.matrix.setUvTransform( API.offsetX, API.offsetY, API.repeatX, API.repeatY, API.rotation, API.centerX, API.centerY );

// another way...
Expand Down

0 comments on commit 75cfd1c

Please sign in to comment.