提交 7ecfd6b8 编写于 作者: M Mr.doob

Updated builds.

上级 bdc4053d
......@@ -16857,7 +16857,9 @@ THREE.CubeCamera = function ( near, far, cubeResolution ) {
cameraNZ.lookAt( new THREE.Vector3( 0, 0, - 1 ) );
this.add( cameraNZ );
this.renderTarget = new THREE.WebGLRenderTargetCube( cubeResolution, cubeResolution, { format: THREE.RGBFormat, magFilter: THREE.LinearFilter, minFilter: THREE.LinearFilter } );
var options = { format: THREE.RGBFormat, magFilter: THREE.LinearFilter, minFilter: THREE.LinearFilter };
this.renderTarget = new THREE.WebGLRenderTargetCube( cubeResolution, cubeResolution, options );
this.updateCubeMap = function ( renderer, scene ) {
......@@ -26835,7 +26837,7 @@ THREE.WebGLRenderer = function ( parameters ) {
uniforms.diffuse.value = material.color;
uniforms.opacity.value = material.opacity;
uniforms.size.value = material.size * getTargetPixelRatio();
uniforms.size.value = material.size;
uniforms.scale.value = _canvas.height / 2.0; // TODO: Cache this.
uniforms.map.value = material.map;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册