Skip to content

Commit

Permalink
Fix argument type for std::pow
Browse files Browse the repository at this point in the history
  • Loading branch information
rserban committed Sep 8, 2024
1 parent 3eb5621 commit 0704f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrono_sensor/optix/shaders/material_shaders.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ static __device__ inline void CameraHapkeShader(PerRayData_camera* prd_camera,

float B_C = 0.0f;
if (cos_g < 1.0f)
B_C = (1 + (1 - exp(-tan_ghalf_per_hC)) / tan_ghalf_per_hC) / (2 * pow(1 + tan_ghalf_per_hC, 2));
B_C = (1 + (1 - exp(-tan_ghalf_per_hC)) / tan_ghalf_per_hC) / (2 * pow(1 + tan_ghalf_per_hC, 2.0f));
else if (cos_g == 1)
B_C = 1;

Expand Down

0 comments on commit 0704f62

Please sign in to comment.