Explorar o código

fix use with operator and share to optimize

SUNAG %!s(int64=9) %!d(string=hai) anos
pai
achega
cd80a94cdb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/js/nodes/accessors/ScreenUVNode.js

+ 2 - 2
examples/js/nodes/accessors/ScreenUVNode.js

@@ -4,7 +4,7 @@
 
 THREE.ScreenUVNode = function( resolution ) {
 
-	THREE.TempNode.call( this, 'v2', { shared: false } );
+	THREE.TempNode.call( this, 'v2' );
 
 	this.resolution = resolution;
 
@@ -20,7 +20,7 @@ THREE.ScreenUVNode.prototype.generate = function( builder, output ) {
 
 	if ( builder.isShader( 'fragment' ) ) {
 
-		result = 'gl_FragCoord.xy/' + this.resolution.build( builder, 'v2' );
+		result = '(gl_FragCoord.xy/' + this.resolution.build( builder, 'v2' ) + ')';
 
 	}
 	else {