Jelajahi Sumber

add note to MAX_DPOIT_DEPTH constant

Alexander Rose 2 tahun lalu
induk
melakukan
58f7758ee1

+ 1 - 1
src/mol-canvas3d/passes/dpoit.ts

@@ -65,7 +65,7 @@ function getEvaluateDpoitRenderable(ctx: WebGLContext, dpoitFrontColorTexture: T
 }
 
 export class DpoitPass {
-    private readonly DEPTH_CLEAR_VALUE = -99999.0;
+    private readonly DEPTH_CLEAR_VALUE = -99999.0; // NOTE same constant is set in shaders
     private readonly MAX_DEPTH = 1.0;
     private readonly MIN_DEPTH = 0.0;
 

+ 1 - 1
src/mol-gl/shader/chunks/common-frag-params.glsl.ts

@@ -40,7 +40,7 @@ uniform int uMarkingType;
 #endif
 
 #if defined(dRenderVariant_colorDpoit)
-    #define MAX_DPOIT_DEPTH 99999.0
+    #define MAX_DPOIT_DEPTH 99999.0 // NOTE constant also set in TypeScript
     uniform sampler2D tDpoitDepth;
     uniform sampler2D tDpoitFrontColor;
 #endif