提交 f810577e 编写于 作者: R Richard Monette

switch to bufferGeo, use RGBAF (better supported)

上级 8b57a8df
......@@ -17,7 +17,7 @@ THREE.EquiangularToCubeGenerator = function( sourceTexture, resolution ) {
];
this.camera = new THREE.PerspectiveCamera( 90, 1, 0.1, 10 );
this.planeMesh = new THREE.Mesh( new THREE.BoxGeometry( 1, 1, 1 ), this.getShader() );
this.planeMesh = new THREE.Mesh( new THREE.BoxBufferGeometry( 1, 1, 1 ), this.getShader() );
this.planeMesh.material.side = THREE.DoubleSide;
this.scene = new THREE.Scene();
this.scene.add( this.planeMesh );
......@@ -32,14 +32,14 @@ THREE.EquiangularToCubeGenerator.prototype = {
generate: function( renderer ) {
var params = {
format: this.sourceTexture.format,
format: THREE.RGBAFormat,
magFilter: this.sourceTexture.magFilter,
minFilter: this.sourceTexture.minFilter,
type: this.sourceTexture.type,
generateMipmaps: this.sourceTexture.generateMipmaps,
anisotropy: this.sourceTexture.anisotropy,
encoding: this.sourceTexture.encoding
};
};
var renderTarget = new THREE.WebGLRenderTargetCube( this.resolution, this.resolution, params );
......
......@@ -84,7 +84,7 @@
envMapIntensity: 1.0
} );
var geometry = new THREE.TorusKnotGeometry( 18, 8, 150, 20 );
var geometry = new THREE.TorusKnotBufferGeometry( 18, 8, 150, 20 );
var torusMesh1 = new THREE.Mesh( geometry, standardMaterial );
torusMesh1.position.x = 0.0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册