浏览代码

ao vec3 to float

SUNAG 9 年之前
父节点
当前提交
21f888790f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/js/nodes/materials/PhongNode.js
  2. 1 1
      examples/js/nodes/materials/StandardNode.js

+ 1 - 1
examples/js/nodes/materials/PhongNode.js

@@ -124,7 +124,7 @@ THREE.PhongNode.prototype.build = function( builder ) {
 
 		var alpha = this.alpha ? this.alpha.buildCode( builder, 'fv1' ) : undefined;
 
-		var ao = this.ao ? this.ao.buildCode( builder, 'c' ) : undefined;
+		var ao = this.ao ? this.ao.buildCode( builder, 'fv1' ) : undefined;
 		var ambient = this.ambient ? this.ambient.buildCode( builder, 'c' ) : undefined;
 		var shadow = this.shadow ? this.shadow.buildCode( builder, 'c' ) : undefined;
 		var emissive = this.emissive ? this.emissive.buildCode( builder, 'c' ) : undefined;

+ 1 - 1
examples/js/nodes/materials/StandardNode.js

@@ -129,7 +129,7 @@ THREE.StandardNode.prototype.build = function( builder ) {
 
 		var alpha = this.alpha ? this.alpha.buildCode( builder, 'fv1' ) : undefined;
 
-		var ao = this.ao ? this.ao.buildCode( builder, 'c' ) : undefined;
+		var ao = this.ao ? this.ao.buildCode( builder, 'fv1' ) : undefined;
 		var ambient = this.ambient ? this.ambient.buildCode( builder, 'c' ) : undefined;
 		var shadow = this.shadow ? this.shadow.buildCode( builder, 'c' ) : undefined;
 		var emissive = this.emissive ? this.emissive.buildCode( builder, 'c' ) : undefined;