Skip to content
Snippets Groups Projects
Commit 895076c8 authored by Alexander Rose's avatar Alexander Rose
Browse files

Merge branch 'master' of https://github.com/molstar/molstar into lowercase-str-column

parents 3471743a 6e398ee6
No related branches found
No related tags found
No related merge requests found
...@@ -9,12 +9,12 @@ jobs: ...@@ -9,12 +9,12 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: 17 node-version: 16
- run: npm ci - run: npm ci
- run: sudo apt-get install xvfb - run: sudo apt-get install xvfb
- name: Lint - name: Lint
run: npm run lint run: npm run lint
- name: Test - name: Test
run: xvfb-run --auto-servernum npm run jest run: npm install --no-save "gl@^5.0.0" && xvfb-run --auto-servernum npm run jest
- name: Build - name: Build
run: npm run build run: npm run build
...@@ -14,6 +14,7 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -14,6 +14,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Fix volume streaming for entries with multiple contour lists - Fix volume streaming for entries with multiple contour lists
- Add ``allowTransparentBackfaces`` parameter to support double-sided rendering of transparent geometries - Add ``allowTransparentBackfaces`` parameter to support double-sided rendering of transparent geometries
- Fix handling of case insensitive mmCIF enumeration fields (including entity.type) - Fix handling of case insensitive mmCIF enumeration fields (including entity.type)
- Fix ``disable-wboit`` Viewer GET param
## [v3.5.0] - 2022-03-25 ## [v3.5.0] - 2022-03-25
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
pixelScale: parseFloat(pixelScale) || 1, pixelScale: parseFloat(pixelScale) || 1,
pickScale: parseFloat(pickScale) || 0.25, pickScale: parseFloat(pickScale) || 0.25,
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding), pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
enableWboit: disableWboit ? true : void 0, // use default value if disable-wboit is not set enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
preferWebgl1: preferWebgl1, preferWebgl1: preferWebgl1,
}).then(viewer => { }).then(viewer => {
var snapshotId = getParam('snapshot-id', '[^&]+').trim(); var snapshotId = getParam('snapshot-id', '[^&]+').trim();
......
...@@ -13,7 +13,7 @@ export const wboit_write = ` ...@@ -13,7 +13,7 @@ export const wboit_write = `
} }
} else if (uRenderWboit) { } else if (uRenderWboit) {
// the 'fragmentDepth > 0.99' check is to handle precision issues with packed depth // the 'fragmentDepth > 0.99' check is to handle precision issues with packed depth
if (preFogAlpha != 1.0 && (!interior || uDoubleSided) && (fragmentDepth < getDepth(gl_FragCoord.xy / uDrawingBufferSize) || fragmentDepth > 0.99)) { if (preFogAlpha != 1.0 && (fragmentDepth < getDepth(gl_FragCoord.xy / uDrawingBufferSize) || fragmentDepth > 0.99)) {
float alpha = gl_FragColor.a; float alpha = gl_FragColor.a;
float wboitWeight = alpha * clamp(pow(1.0 - fragmentDepth, 2.0), 0.01, 1.0); float wboitWeight = alpha * clamp(pow(1.0 - fragmentDepth, 2.0), 0.01, 1.0);
gl_FragColor = vec4(gl_FragColor.rgb * alpha * wboitWeight, alpha); gl_FragColor = vec4(gl_FragColor.rgb * alpha * wboitWeight, alpha);
......
...@@ -72,12 +72,7 @@ uniform float uPickingAlphaThreshold; ...@@ -72,12 +72,7 @@ uniform float uPickingAlphaThreshold;
uniform bool uTransparentBackground; uniform bool uTransparentBackground;
uniform float uXrayEdgeFalloff; uniform float uXrayEdgeFalloff;
uniform float uInteriorDarkening;
uniform bool uInteriorColorFlag;
uniform vec3 uInteriorColor;
uniform bool uRenderWboit; uniform bool uRenderWboit;
uniform bool uDoubleSided;
uniform float uNear; uniform float uNear;
uniform float uFar; uniform float uFar;
...@@ -357,7 +352,6 @@ void main() { ...@@ -357,7 +352,6 @@ void main() {
float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz); float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz);
float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0); float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0);
bool interior = false;
#include wboit_write #include wboit_write
} }
`; `;
\ No newline at end of file
/** /**
* Copyright (c) 2020-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
* *
* @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Alexander Rose <alexander.rose@weirdbyte.de>
*/ */
...@@ -99,7 +99,6 @@ void main() { ...@@ -99,7 +99,6 @@ void main() {
if (imageData.a > 0.9) imageData.a = 1.0; if (imageData.a > 0.9) imageData.a = 1.0;
float fragmentDepth = gl_FragCoord.z; float fragmentDepth = gl_FragCoord.z;
bool interior = false;
#if defined(dRenderVariant_pick) #if defined(dRenderVariant_pick)
if (imageData.a < 0.3) if (imageData.a < 0.3)
......
/** /**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
* *
* @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Alexander Rose <alexander.rose@weirdbyte.de>
*/ */
...@@ -16,7 +16,6 @@ precision highp int; ...@@ -16,7 +16,6 @@ precision highp int;
void main(){ void main(){
#include clip_pixel #include clip_pixel
bool interior = false;
float fragmentDepth = gl_FragCoord.z; float fragmentDepth = gl_FragCoord.z;
#include assign_material_color #include assign_material_color
......
/** /**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
* *
* @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Alexander Rose <alexander.rose@weirdbyte.de>
*/ */
...@@ -20,7 +20,6 @@ void main(){ ...@@ -20,7 +20,6 @@ void main(){
#include clip_pixel #include clip_pixel
float fragmentDepth = gl_FragCoord.z; float fragmentDepth = gl_FragCoord.z;
bool interior = false;
#include assign_material_color #include assign_material_color
#if defined(dPointStyle_circle) #if defined(dPointStyle_circle)
......
/** /**
* Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
* *
* @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Alexander Rose <alexander.rose@weirdbyte.de>
*/ */
...@@ -33,7 +33,6 @@ void main(){ ...@@ -33,7 +33,6 @@ void main(){
#include clip_pixel #include clip_pixel
float fragmentDepth = gl_FragCoord.z; float fragmentDepth = gl_FragCoord.z;
bool interior = false;
#include assign_material_color #include assign_material_color
if (vTexCoord.x > 1.0) { if (vTexCoord.x > 1.0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment