Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/webp_support
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-labode committed Jul 8, 2024
2 parents c8a6b4f + ff16909 commit 7222490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/Renderer/shaders/punctual.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ vec3 applyVolumeAttenuation(vec3 radiance, float transmissionDistance, vec3 atte
else
{
// Compute light attenuation using Beer's law.
vec3 attenuationCoefficient = -log(attenuationColor) / attenuationDistance;
vec3 transmittance = exp(-attenuationCoefficient * transmissionDistance); // Beer's law
vec3 transmittance = pow(attenuationColor, vec3(transmissionDistance / attenuationDistance));
return transmittance * radiance;
}
}
Expand Down

0 comments on commit 7222490

Please sign in to comment.