Skip to content

Commit 30bc4c8

Browse files
committed
Fix a minor bug to initialize uv.
1 parent 798a144 commit 30bc4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Packages/Voxelizer/Shaders/Voxelizer.compute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void Volume (uint3 id : SV_DispatchThreadID)
290290
if (!voxel.fill) continue;
291291

292292
int ifront = z;
293-
float2 uv = float2(0, 0);
293+
float2 uv = voxel.uv;
294294
for (; ifront < _Depth; ifront++) {
295295
int vid = get_voxel_index(x, y, ifront);
296296
if (!is_front_voxel(_VoxelBuffer[vid])) {

0 commit comments

Comments
 (0)