Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 7, 2023
1 parent 9c7af8c commit 3eeeec4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
11 changes: 7 additions & 4 deletions dist/xeokit-sdk.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -59836,6 +59836,7 @@ class SnapBatchingDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push(" }");
src.push("}");
return src;
Expand Down Expand Up @@ -64576,7 +64577,7 @@ class SnapInstancingDepthBufInitRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing snap vertex shader");
src.push("// SnapInstancingDepthBufInitRenderer vertex shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -64946,7 +64947,7 @@ class SnapInstancingDepthRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing snap vertex shader");
src.push("// SnapInstancingDepthRenderer vertex shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -65023,6 +65024,7 @@ class SnapInstancingDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push("}");
src.push("}");
return src;
Expand All @@ -65034,7 +65036,7 @@ class SnapInstancingDepthRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing pick depth fragment shader");
src.push("// SnapInstancingDepthRenderer fragment shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -65074,7 +65076,7 @@ class SnapInstancingDepthRenderer {
src.push("}");
}
if (scene.logarithmicDepthBufferEnabled) {
src.push("gl_FragDepth = log2( vFragDepth ) * logDepthBufFC * 0.5;");
src.push(" gl_FragDepth = isPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;");
}
src.push("outCoords = ivec4(relativeToOriginPosition.xyz*coordinateScaler.xyz, layerNumber);");
src.push("}");
Expand Down Expand Up @@ -76485,6 +76487,7 @@ class TrianglesDataTextureSnapDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push(" }");
src.push("}");
return src;
Expand Down
11 changes: 7 additions & 4 deletions dist/xeokit-sdk.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -59832,6 +59832,7 @@ class SnapBatchingDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push(" }");
src.push("}");
return src;
Expand Down Expand Up @@ -64572,7 +64573,7 @@ class SnapInstancingDepthBufInitRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing snap vertex shader");
src.push("// SnapInstancingDepthBufInitRenderer vertex shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -64942,7 +64943,7 @@ class SnapInstancingDepthRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing snap vertex shader");
src.push("// SnapInstancingDepthRenderer vertex shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -65019,6 +65020,7 @@ class SnapInstancingDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push("}");
src.push("}");
return src;
Expand All @@ -65030,7 +65032,7 @@ class SnapInstancingDepthRenderer {
const clipping = sectionPlanesState.sectionPlanes.length > 0;
const src = [];
src.push ('#version 300 es');
src.push("// Points instancing pick depth fragment shader");
src.push("// SnapInstancingDepthRenderer fragment shader");
src.push("#ifdef GL_FRAGMENT_PRECISION_HIGH");
src.push("precision highp float;");
src.push("precision highp int;");
Expand Down Expand Up @@ -65070,7 +65072,7 @@ class SnapInstancingDepthRenderer {
src.push("}");
}
if (scene.logarithmicDepthBufferEnabled) {
src.push("gl_FragDepth = log2( vFragDepth ) * logDepthBufFC * 0.5;");
src.push(" gl_FragDepth = isPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;");
}
src.push("outCoords = ivec4(relativeToOriginPosition.xyz*coordinateScaler.xyz, layerNumber);");
src.push("}");
Expand Down Expand Up @@ -76481,6 +76483,7 @@ class TrianglesDataTextureSnapDepthRenderer {
src.push("isPerspective = float (isPerspectiveMatrix(projMatrix));");
}
src.push("gl_Position = clipPos;");
src.push("gl_PointSize = 1.0;"); // Windows needs this?
src.push(" }");
src.push("}");
return src;
Expand Down
Loading

0 comments on commit 3eeeec4

Please sign in to comment.