Skip to content

Commit

Permalink
Merge pull request #393 from KhronosGroup/fix/shader_volume_without_t…
Browse files Browse the repository at this point in the history
…ransmission

fixed shader for materials with volume extension but without transmission
  • Loading branch information
UX3D-haertl authored Mar 22, 2022
2 parents 307a405 + a6511ea commit 26b1dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Renderer/shaders/pbr.frag
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void main()
#endif
#endif

#if (defined(MATERIAL_TRANSMISSION) || defined(MATERIAL_VOLUME)) && (defined(USE_PUNCTUAL) || defined(USE_IBL))
#if defined(MATERIAL_TRANSMISSION) && (defined(USE_PUNCTUAL) || defined(USE_IBL))
f_transmission += materialInfo.transmissionFactor * getIBLVolumeRefraction(
n, v,
materialInfo.perceptualRoughness,
Expand Down

0 comments on commit 26b1dd7

Please sign in to comment.