updated voxel debug
This commit is contained in:
@@ -24,7 +24,7 @@ void main(
|
||||
element.pos.xyz = element.pos.xyz / g_xWorld_VoxelRadianceDataRes * 2 - 1;
|
||||
element.pos.y = -element.pos.y;
|
||||
element.pos.xyz *= g_xWorld_VoxelRadianceDataRes;
|
||||
element.pos.xyz += CreateCube(i) * 2;
|
||||
element.pos.xyz += (CreateCube(i) - float3(0, 1, 0)) * 2;
|
||||
element.pos.xyz *= g_xWorld_VoxelRadianceDataRes * g_xWorld_VoxelRadianceDataSize / g_xWorld_VoxelRadianceDataRes;
|
||||
|
||||
element.pos = mul(float4(element.pos.xyz, 1), g_xTransform);
|
||||
|
||||
Reference in New Issue
Block a user