Yao Hsiao 1 рік тому
батько
коміт
4441ded8d0
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      examples/jsm/misc/GPUComputationRenderer.js

+ 2 - 2
examples/jsm/misc/GPUComputationRenderer.js

@@ -46,8 +46,8 @@ import { FullScreenQuad } from '../postprocessing/Pass.js';
  * // and fill in here the texture data...
  * // and fill in here the texture data...
  *
  *
  * // Add texture variables
  * // Add texture variables
- * const velVar = gpuCompute.addVariable( "textureVelocity", fragmentShaderVel, pos0 );
- * const posVar = gpuCompute.addVariable( "texturePosition", fragmentShaderPos, vel0 );
+ * const velVar = gpuCompute.addVariable( "textureVelocity", fragmentShaderVel, vel0 );
+ * const posVar = gpuCompute.addVariable( "texturePosition", fragmentShaderPos, pos0 );
  *
  *
  * // Add variable dependencies
  * // Add variable dependencies
  * gpuCompute.setVariableDependencies( velVar, [ velVar, posVar ] );
  * gpuCompute.setVariableDependencies( velVar, [ velVar, posVar ] );