Skip to content

Commit b0a5e8a

Browse files
authored
Fix copy-paste error in voxel shadow shader (#17695)
I had a copy-paste error in the naming of one of my functions.
1 parent 7307352 commit b0a5e8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/dev/core/src/ShadersWGSL/iblVoxelGrid.vertex.fx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ fn readMatrixWeights(info: vec3f, vertexIndex : u32) -> vec4f {
151151
fn readMatrixIndexExtraValue(byteOffset: u32, dataType: u32) -> f32 {
152152
let wordOffset = byteOffset / 4u;
153153
let byteInWord = byteOffset % 4u;
154-
let word: u32 = bitcast<u32>(matricesIndicesExtra[wordOffset]);
155-
154+
let word : u32 = matricesIndicesExtra[wordOffset];
155+
156156
return convertToFloat(word, byteInWord, dataType);
157157
}
158158

@@ -182,7 +182,7 @@ fn readMatrixWeightExtraValue(byteOffset: u32, dataType: u32) -> f32 {
182182
return convertToFloat(word, byteInWord, dataType);
183183
}
184184

185-
fn readMatrixIndicesExtra(info: vec3f, vertexIndex : u32) -> vec4f {
185+
fn readMatrixWeightsExtra(info : vec3f, vertexIndex : u32)->vec4f {
186186
let baseOffset = u32(info.x);
187187
let stride = u32(info.y);
188188
let dataType = u32(info.z);

0 commit comments

Comments
 (0)