Skip to content

Commit

Permalink
Merge pull request #1743 from zenustech/fixBugAndDiffraction
Browse files Browse the repository at this point in the history
offset bug fix
  • Loading branch information
zhxx1987 authored Jan 23, 2024
2 parents 4f39b7d + d32554d commit 50b4d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenovis/xinxinoptix/DeflMatShader.cu
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ extern "C" __global__ void __anyhit__shadow_cutout()
#else
size_t inst_idx = optixGetInstanceIndex();
size_t vert_aux_offset = rt_data->auxOffset[inst_idx];
size_t vert_idx_offset = (vert_aux_offset + primIdx)*3;
size_t vert_idx_offset = vert_aux_offset + primIdx*3;

float3 _vertices_[3];
optixGetTriangleVertexData( gas, primIdx, sbtGASIndex, 0, _vertices_);
Expand Down Expand Up @@ -328,7 +328,7 @@ extern "C" __global__ void __closesthit__radiance()

size_t inst_idx = optixGetInstanceIndex();
size_t vert_aux_offset = rt_data->auxOffset[inst_idx];
size_t vert_idx_offset = (vert_aux_offset + primIdx)*3;
size_t vert_idx_offset = vert_aux_offset + primIdx*3;

unsigned short isLight = 0;//rt_data->lightMark[vert_aux_offset + primIdx];

Expand Down

0 comments on commit 50b4d58

Please sign in to comment.