Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6429,12 +6429,15 @@ class Matrix3 {
/**
* Scales this matrix with the given scalar values.
*
* @deprecated
* @param {number} sx - The amount to scale in the X axis.
* @param {number} sy - The amount to scale in the Y axis.
* @return {Matrix3} A reference to this matrix.
*/
scale( sx, sy ) {

warnOnce( 'Matrix3: .scale() is deprecated. Use .makeScale() instead.' ); // @deprecated r185

this.premultiply( _m3.makeScale( sx, sy ) );

return this;
Expand All @@ -6444,11 +6447,14 @@ class Matrix3 {
/**
* Rotates this matrix by the given angle.
*
* @deprecated
* @param {number} theta - The rotation in radians.
* @return {Matrix3} A reference to this matrix.
*/
rotate( theta ) {

warnOnce( 'Matrix3: .rotate() is deprecated. Use .makeRotation() instead.' ); // @deprecated r185

this.premultiply( _m3.makeRotation( - theta ) );

return this;
Expand All @@ -6458,12 +6464,15 @@ class Matrix3 {
/**
* Translates this matrix by the given scalar values.
*
* @deprecated
* @param {number} tx - The amount to translate in the X axis.
* @param {number} ty - The amount to translate in the Y axis.
* @return {Matrix3} A reference to this matrix.
*/
translate( tx, ty ) {

warnOnce( 'Matrix3: .translate() is deprecated. Use .makeTranslation() instead.' ); // @deprecated r185

this.premultiply( _m3.makeTranslation( tx, ty ) );

return this;
Expand Down Expand Up @@ -67472,7 +67481,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
const HAS_ENVMAP = !! envMap;
const HAS_AOMAP = !! material.aoMap;
const HAS_LIGHTMAP = !! material.lightMap;
const HAS_BUMPMAP = !! material.bumpMap;
const HAS_BUMPMAP = !! material.bumpMap && material.wireframe === false;
const HAS_NORMALMAP = !! material.normalMap;
const HAS_DISPLACEMENTMAP = !! material.displacementMap;
const HAS_EMISSIVEMAP = !! material.emissiveMap;
Expand Down
9 changes: 9 additions & 0 deletions build/three.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6449,12 +6449,15 @@ class Matrix3 {
/**
* Scales this matrix with the given scalar values.
*
* @deprecated
* @param {number} sx - The amount to scale in the X axis.
* @param {number} sy - The amount to scale in the Y axis.
* @return {Matrix3} A reference to this matrix.
*/
scale( sx, sy ) {

warnOnce( 'Matrix3: .scale() is deprecated. Use .makeScale() instead.' ); // @deprecated r185

this.premultiply( _m3.makeScale( sx, sy ) );

return this;
Expand All @@ -6464,11 +6467,14 @@ class Matrix3 {
/**
* Rotates this matrix by the given angle.
*
* @deprecated
* @param {number} theta - The rotation in radians.
* @return {Matrix3} A reference to this matrix.
*/
rotate( theta ) {

warnOnce( 'Matrix3: .rotate() is deprecated. Use .makeRotation() instead.' ); // @deprecated r185

this.premultiply( _m3.makeRotation( - theta ) );

return this;
Expand All @@ -6478,12 +6484,15 @@ class Matrix3 {
/**
* Translates this matrix by the given scalar values.
*
* @deprecated
* @param {number} tx - The amount to translate in the X axis.
* @param {number} ty - The amount to translate in the Y axis.
* @return {Matrix3} A reference to this matrix.
*/
translate( tx, ty ) {

warnOnce( 'Matrix3: .translate() is deprecated. Use .makeTranslation() instead.' ); // @deprecated r185

this.premultiply( _m3.makeTranslation( tx, ty ) );

return this;
Expand Down
2 changes: 1 addition & 1 deletion build/three.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7504,7 +7504,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
const HAS_ENVMAP = !! envMap;
const HAS_AOMAP = !! material.aoMap;
const HAS_LIGHTMAP = !! material.lightMap;
const HAS_BUMPMAP = !! material.bumpMap;
const HAS_BUMPMAP = !! material.bumpMap && material.wireframe === false;
const HAS_NORMALMAP = !! material.normalMap;
const HAS_DISPLACEMENTMAP = !! material.displacementMap;
const HAS_EMISSIVEMAP = !! material.emissiveMap;
Expand Down
2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

Loading
Loading