Skip to content

Commit

Permalink
fixed volume/ transmission shader for materials with volume extension…
Browse files Browse the repository at this point in the history
… but without transmission
  • Loading branch information
UX3D-hohenester committed Mar 22, 2022
1 parent 307a405 commit a6511ea
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 a6511ea

Please sign in to comment.