Skip to content

Commit

Permalink
Fix texture type
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 24, 2024
1 parent 146296b commit 66c6642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/three/fade/FadeBatchedMesh.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PassThroughBatchedMesh } from './PassThroughBatchedMesh.js';
import { InstanceDataTexture } from './InstanceDataTexture.js';
import { FloatType, RGFormat } from 'three';
import { RGFormat, UnsignedByteType } from 'three';
import { wrapFadeMaterial } from './wrapFadeMaterial.js';

export class FadeBatchedMesh extends PassThroughBatchedMesh {
Expand Down Expand Up @@ -40,7 +40,7 @@ export class FadeBatchedMesh extends PassThroughBatchedMesh {

// 4 floats per RGBA pixel initialized to white
const fadeArray = new Uint8Array( size * size * 2 );
const fadeTexture = new InstanceDataTexture( fadeArray, size, size, RGFormat, FloatType );
const fadeTexture = new InstanceDataTexture( fadeArray, size, size, RGFormat, UnsignedByteType );

if ( oldFadeTexture ) {

Expand Down

0 comments on commit 66c6642

Please sign in to comment.