提交 5358138a 编写于 作者: M Mr.doob

Merge pull request #7811 from sunag/dev

fix xy-axis in nodes refraction
......@@ -6,6 +6,8 @@ THREE.NodePass = function() {
THREE.ShaderPass.call( this );
this.textureID = 'renderTexture';
this.fragment = new THREE.RawNode( new THREE.ScreenNode() );
this.node = new THREE.NodeMaterial();
......@@ -13,8 +15,6 @@ THREE.NodePass = function() {
this.build();
this.textureID = 'renderTexture';
};
THREE.NodePass.prototype = Object.create( THREE.ShaderPass.prototype );
......
......@@ -97,6 +97,7 @@
camera.updateProjectionMatrix();
renderer.setSize( window.innerWidth, window.innerHeight );
composer.setSize( window.innerWidth, window.innerHeight );
}
......
......@@ -120,6 +120,7 @@
camera.updateProjectionMatrix();
renderer.setSize( window.innerWidth, window.innerHeight );
composer.setSize( window.innerWidth, window.innerHeight );
}
......
......@@ -333,10 +333,10 @@
// PASS
var normal = new THREE.TextureNode( decalNormal );
var normalY = new THREE.SwitchNode( normal, 'y' );
var normalXY = new THREE.SwitchNode( normal, 'xy' );
var offsetNormal = new THREE.OperatorNode(
normalY,
normalXY,
new THREE.FloatNode( .5 ),
THREE.OperatorNode.ADD
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册