Browse Source

Add defines for direct-volume

giagitom 2 years ago
parent
commit
fcbeb0f82f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/mol-gl/shader/direct-volume.frag.ts

+ 6 - 0
src/mol-gl/shader/direct-volume.frag.ts

@@ -62,6 +62,12 @@ uniform int uGroupCount;
     uniform sampler2D tMarker;
 #endif
 
+#if defined(dRenderVariant_colorDpoit)
+    #define MAX_DPOIT_DEPTH 99999.0
+    uniform sampler2D tDpoitDepth;
+    uniform sampler2D tDpoitFrontColor;
+#endif
+
 uniform float uMetalness;
 uniform float uRoughness;