Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Jul 23, 2024
1 parent cd8edf7 commit c22a47a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/Renderer/shaders/pbr.frag
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ void main()
#ifdef MATERIAL_VOLUME
diffuseTransmissionIBL = applyVolumeAttenuation(diffuseTransmissionIBL, diffuseTransmissionThickness, materialInfo.attenuationColor, materialInfo.attenuationDistance);
#endif
f_diffuse_transmission += diffuseTransmissionIBL;
f_diffuse = mix(f_diffuse, f_diffuse_transmission, materialInfo.diffuseTransmissionFactor);
f_diffuse = mix(f_diffuse, diffuseTransmissionIBL, materialInfo.diffuseTransmissionFactor);
#endif


Expand Down Expand Up @@ -282,7 +281,6 @@ void main()
diffuse_btdf = applyVolumeAttenuation(diffuse_btdf, diffuseTransmissionThickness, materialInfo.attenuationColor, materialInfo.attenuationDistance);
#endif
l_diffuse = mix(l_diffuse, diffuse_btdf, materialInfo.diffuseTransmissionFactor);
f_diffuse_transmission += diffuse_btdf;
#endif // MATERIAL_DIFFUSE_TRANSMISSION

// BTDF (Bidirectional Transmittance Distribution Function)
Expand Down

0 comments on commit c22a47a

Please sign in to comment.