Skip to content

Commit

Permalink
cleanup of PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Mar 31, 2022
1 parent 63a0540 commit fd04378
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/shaders/VelocityShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const VelocityShader = {
uniform mat4 previousProjectionViewMatrix;
uniform mat4 currentProjectionViewMatrix;
uniform mat4 modelMatrixPrev;
varying vec4 clipPositionCurrent;
varying vec4 clipPositionPrevious;
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_materials_channels.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@

scene.traverse( function( object ) {
if ( object.isMesh ) {
if ( object.matrixWorldPrevious === undefined ) object.matrixWorldPrevious = new Matrix4();
if ( object.matrixWorldPrevious === undefined ) object.matrixWorldPrevious = new THREE.Matrix4();
object.matrixWorldPrevious.copy( object.matrixWorld );
}
} );
Expand Down
1 change: 0 additions & 1 deletion src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,6 @@ function WebGLRenderer( parameters = {} ) {
p_uniforms.setValue( _gl, 'normalMatrix', object.normalMatrix );
p_uniforms.setValue( _gl, 'modelMatrix', object.matrixWorld );


return program;

}
Expand Down
1 change: 0 additions & 1 deletion src/renderers/shaders/ShaderLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Vector3 } from '../../math/Vector3.js';
import { UniformsLib } from './UniformsLib.js';
import { Color } from '../../math/Color.js';
import { Matrix3 } from '../../math/Matrix3.js';
import { Matrix4 } from '../../math/Matrix4.js';

const ShaderLib = {

Expand Down
1 change: 0 additions & 1 deletion src/renderers/webgl/WebGLProgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
( parameters.logarithmicDepthBuffer && parameters.rendererExtensionFragDepth ) ? '#define USE_LOGDEPTHBUF_EXT' : '',

'uniform mat4 modelMatrix;',
'uniform mat4 modelMatrixPrev;',
'uniform mat4 modelViewMatrix;',
'uniform mat4 projectionMatrix;',
'uniform mat4 viewMatrix;',
Expand Down

0 comments on commit fd04378

Please sign in to comment.