We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CubeDepthTexture
1 parent cd9bc6f commit f67c8e4Copy full SHA for f67c8e4
1 file changed
src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js
@@ -752,7 +752,17 @@ ${ flowData.code }
752
753
} else if ( uniform.type === 'cubeDepthTexture' ) {
754
755
- snippet = `samplerCubeShadow ${ uniform.name };`;
+ const texture = uniform.node.value;
756
+
757
+ if ( texture.compareFunction ) {
758
759
+ snippet = `samplerCubeShadow ${ uniform.name };`;
760
761
+ } else {
762
763
+ snippet = `samplerCube ${ uniform.name };`;
764
765
+ }
766
767
} else if ( uniform.type === 'buffer' ) {
768
0 commit comments