Skip to content

Commit 7de09b1

Browse files
committed
remove unused code
1 parent af9d22e commit 7de09b1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/uniforms/FloatAttributeTextureArray.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ export class FloatAttributeTextureArray extends DataArrayTexture {
3838
const { width, height, data } = this.image;
3939
const length = width * height * 4;
4040
const offset = length * index;
41+
let itemSize = attr.itemSize;
42+
if ( itemSize === 3 ) {
4143

42-
copyArrayToArray( tex.image.data, attr.itemSize, data, offset );
44+
itemSize = 4;
45+
46+
}
47+
48+
copyArrayToArray( tex.image.data, itemSize, data, offset );
4349

4450
this.dispose();
4551
this.needsUpdate = true;
@@ -100,8 +106,6 @@ export class FloatAttributeTextureArray extends DataArrayTexture {
100106

101107
}
102108

103-
// debugger;
104-
105109
// copy the other texture data into the data array texture
106110
for ( let i = 0, l = attrsLength; i < l; i ++ ) {
107111

@@ -116,7 +120,6 @@ export class FloatAttributeTextureArray extends DataArrayTexture {
116120

117121
}
118122

119-
if ( itemSize === 2 ) debugger;
120123
copyArrayToArray( tex.image.data, itemSize, data, offset );
121124

122125
}

0 commit comments

Comments
 (0)