Skip to content

Commit

Permalink
Merge pull request #395 from pasu/master
Browse files Browse the repository at this point in the history
correct transmissionFactor double counting
  • Loading branch information
UX3D-kanzler authored Apr 6, 2022
2 parents e318cbe + 61def3d commit 0e4b65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Renderer/shaders/pbr.frag
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void main()
#endif

#if defined(MATERIAL_TRANSMISSION) && (defined(USE_PUNCTUAL) || defined(USE_IBL))
f_transmission += materialInfo.transmissionFactor * getIBLVolumeRefraction(
f_transmission += getIBLVolumeRefraction(
n, v,
materialInfo.perceptualRoughness,
materialInfo.c_diff, materialInfo.f0, materialInfo.f90,
Expand Down Expand Up @@ -239,7 +239,7 @@ void main()
transmittedLight = applyVolumeAttenuation(transmittedLight, length(transmissionRay), materialInfo.attenuationColor, materialInfo.attenuationDistance);
#endif

f_transmission += materialInfo.transmissionFactor * transmittedLight;
f_transmission += transmittedLight;
#endif
}
#endif
Expand Down

0 comments on commit 0e4b65a

Please sign in to comment.