Skip to content

Commit

Permalink
fix naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMrozik committed Dec 16, 2024
1 parent 63c4311 commit c1f04f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/gpu/optixPrograms.cu
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ extern "C" __global__ void __closesthit__()
}
intensity *= cosIncidentAngle;

float reflectivityAlpha = ctx.reflectivityAlpha;

Vec3f absPointVelocity{NAN};
Vec3f relPointVelocity{NAN};
float radialSpeed{NAN};
Expand Down
4 changes: 2 additions & 2 deletions test/src/scene/reflectivityTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ TEST_P(ReflectivityTest, read_value)

for (int i = 0; i < outCount; ++i) {
EXPECT_NEAR(((float) value), outIntensity.at(i), EPSILON_F);
float outDistance = outDistance.at(i);
float outDistanceValue = outDistance.at(i);
float intensity = outIntensity.at(i);
float reflectivityValue = alpha * outDistance * outDistance * intensity;
float reflectivityValue = alpha * outDistanceValue * outDistanceValue * intensity;

// Reflectivity test is conducted with greater epsilon.
// This is due to lack of distance impact on intensity.
Expand Down

0 comments on commit c1f04f9

Please sign in to comment.