Skip to content

Commit

Permalink
Updated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 20, 2021
1 parent 96971a6 commit 0d65d31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
12 changes: 7 additions & 5 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -6076,6 +6076,9 @@
Material.prototype = Object.assign(Object.create(EventDispatcher.prototype), {
constructor: Material,
isMaterial: true,
onBuild: function ()
/* shaderobject, renderer */
{},
onBeforeCompile: function ()
/* shaderobject, renderer */
{},
Expand Down Expand Up @@ -18059,6 +18062,7 @@
}
} else {
parameters.uniforms = programCache.getUniforms(material);
material.onBuild(parameters, _this);
material.onBeforeCompile(parameters, _this);
program = programCache.acquireProgram(parameters, programCacheKey);
programs.set(programCacheKey, program);
Expand Down Expand Up @@ -25675,9 +25679,7 @@
} // Get list of cumulative segment lengths


getLengths(divisions) {
if (divisions === undefined) divisions = this.arcLengthDivisions;

getLengths(divisions = this.arcLengthDivisions) {
if (this.cacheArcLengths && this.cacheArcLengths.length === divisions + 1 && !this.needsUpdate) {
return this.cacheArcLengths;
}
Expand Down Expand Up @@ -29387,8 +29389,8 @@
}

class Clock {
constructor(autoStart) {
this.autoStart = autoStart !== undefined ? autoStart : true;
constructor(autoStart = true) {
this.autoStart = autoStart;
this.startTime = 0;
this.oldTime = 0;
this.elapsedTime = 0;
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7997,6 +7997,8 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),

isMaterial: true,

onBuild: function ( /* shaderobject, renderer */ ) {},

onBeforeCompile: function ( /* shaderobject, renderer */ ) {},

customProgramCacheKey: function () {
Expand Down Expand Up @@ -24585,6 +24587,8 @@ function WebGLRenderer( parameters ) {

parameters.uniforms = programCache.getUniforms( material );

material.onBuild( parameters, _this );

material.onBeforeCompile( parameters, _this );

program = programCache.acquireProgram( parameters, programCacheKey );
Expand Down Expand Up @@ -35353,9 +35357,7 @@ class Curve {

// Get list of cumulative segment lengths

getLengths( divisions ) {

if ( divisions === undefined ) divisions = this.arcLengthDivisions;
getLengths( divisions = this.arcLengthDivisions ) {

if ( this.cacheArcLengths &&
( this.cacheArcLengths.length === divisions + 1 ) &&
Expand Down Expand Up @@ -40762,9 +40764,9 @@ class StereoCamera {

class Clock {

constructor( autoStart ) {
constructor( autoStart = true ) {

this.autoStart = ( autoStart !== undefined ) ? autoStart : true;
this.autoStart = autoStart;

this.startTime = 0;
this.oldTime = 0;
Expand Down

0 comments on commit 0d65d31

Please sign in to comment.