Skip to content

Commit

Permalink
remove params from createTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
vlucendo committed Apr 8, 2018
1 parent 11a64de commit 131212a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/js/GPUComputationRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,10 @@ function GPUComputationRenderer( sizeX, sizeY, renderer ) {

};

this.createTexture = function( sizeXTexture, sizeYTexture ) {
this.createTexture = function() {

sizeXTexture = sizeXTexture || sizeX;
sizeYTexture = sizeYTexture || sizeY;

var a = new Float32Array( sizeXTexture * sizeYTexture * 4 );
var texture = new THREE.DataTexture( a, sizeXTexture, sizeYTexture, THREE.RGBAFormat, THREE.FloatType );
var a = new Float32Array( sizeX * sizeY * 4 );
var texture = new THREE.DataTexture( a, sizeX, sizeY, THREE.RGBAFormat, THREE.FloatType );
texture.needsUpdate = true;

return texture;
Expand Down

0 comments on commit 131212a

Please sign in to comment.