Skip to content

Commit 26b1dd7

Browse files
authored
Merge pull request #393 from KhronosGroup/fix/shader_volume_without_transmission
fixed shader for materials with volume extension but without transmission
2 parents 307a405 + a6511ea commit 26b1dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Renderer/shaders/pbr.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void main()
156156
#endif
157157
#endif
158158

159-
#if (defined(MATERIAL_TRANSMISSION) || defined(MATERIAL_VOLUME)) && (defined(USE_PUNCTUAL) || defined(USE_IBL))
159+
#if defined(MATERIAL_TRANSMISSION) && (defined(USE_PUNCTUAL) || defined(USE_IBL))
160160
f_transmission += materialInfo.transmissionFactor * getIBLVolumeRefraction(
161161
n, v,
162162
materialInfo.perceptualRoughness,

0 commit comments

Comments
 (0)