Skip to content

Commit

Permalink
Examples: Fix displacement map usage of velocity shader. (mrdoob#26324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Jun 24, 2023
1 parent 74ef522 commit 80118ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/webgl_materials_channels.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
fragmentShader: VelocityShader.fragmentShader,
side: THREE.DoubleSide
} );
materialVelocity.displacementMap = displacementMap; // required for defines
materialVelocity.uniforms.displacementMap.value = displacementMap;
materialVelocity.uniforms.displacementScale.value = SCALE;
materialVelocity.uniforms.displacementBias.value = BIAS;
Expand Down

0 comments on commit 80118ab

Please sign in to comment.