Преглед изворни кода

Add defines for direct-volume

giagitom пре 2 година
родитељ
комит
fcbeb0f82f
1 измењених фајлова са 6 додато и 0 уклоњено
  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;