|
@@ -128,7 +128,6 @@ THREE.Fire = function ( geometry, options ) {
|
|
var parameters = {
|
|
var parameters = {
|
|
minFilter: THREE.NearestFilter,
|
|
minFilter: THREE.NearestFilter,
|
|
magFilter: THREE.NearestFilter,
|
|
magFilter: THREE.NearestFilter,
|
|
- format: THREE.RGBAFormat,
|
|
|
|
depthBuffer: false,
|
|
depthBuffer: false,
|
|
stencilBuffer: false
|
|
stencilBuffer: false
|
|
};
|
|
};
|
|
@@ -138,9 +137,7 @@ THREE.Fire = function ( geometry, options ) {
|
|
|
|
|
|
this.field0.background = new THREE.Color( 0x000000 );
|
|
this.field0.background = new THREE.Color( 0x000000 );
|
|
|
|
|
|
- this.field1 = new THREE.WebGLRenderTarget( textureWidth,
|
|
|
|
- textureHeight,
|
|
|
|
- parameters );
|
|
|
|
|
|
+ this.field1 = new THREE.WebGLRenderTarget( textureWidth, textureHeight, parameters );
|
|
|
|
|
|
this.field0.background = new THREE.Color( 0x000000 );
|
|
this.field0.background = new THREE.Color( 0x000000 );
|
|
|
|
|
|
@@ -164,7 +161,7 @@ THREE.Fire = function ( geometry, options ) {
|
|
this.orthoCamera = new THREE.OrthographicCamera( textureWidth / - 2, textureWidth / 2, textureHeight / 2, textureHeight / - 2, 1, 2 );
|
|
this.orthoCamera = new THREE.OrthographicCamera( textureWidth / - 2, textureWidth / 2, textureHeight / 2, textureHeight / - 2, 1, 2 );
|
|
this.orthoCamera.position.z = 1;
|
|
this.orthoCamera.position.z = 1;
|
|
|
|
|
|
- this.fieldGeometry = new THREE.PlaneGeometry( textureWidth, textureHeight );
|
|
|
|
|
|
+ this.fieldGeometry = new THREE.PlaneBufferGeometry( textureWidth, textureHeight );
|
|
|
|
|
|
this.internalSource = new THREE.DataTexture( this.sourceData, textureWidth, textureHeight, THREE.RGBAFormat );
|
|
this.internalSource = new THREE.DataTexture( this.sourceData, textureWidth, textureHeight, THREE.RGBAFormat );
|
|
|
|
|