浏览代码

init time value

aardgoose 8 年之前
父节点
当前提交
67120f1769
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/postprocessing/FilmPass.js

+ 1 - 1
examples/js/postprocessing/FilmPass.js

@@ -22,7 +22,7 @@ THREE.FilmPass = function ( noiseIntensity, scanlinesIntensity, scanlinesCount,
 	} );
 
 	this.uniforms[ "tDiffuse" ] = new THREE.Uniform();
-	this.uniforms[ "time" ] = new THREE.Uniform();
+	this.uniforms[ "time" ] = new THREE.Uniform( 0 );
 
 	if ( grayscale !== undefined )	this.uniforms.grayscale = new THREE.Uniform( grayscale );
 	if ( noiseIntensity !== undefined ) this.uniforms.nIntensity = new THREE.Uniform( noiseIntensity );