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

improve CellPack's adjustStyle option

- disable colorMarker
- set component options
- enable marking w/o ghost
parent b563c773
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Fix missing 'material' annotation for some uniforms, causing unnecessary uniform updates - Fix missing 'material' annotation for some uniforms, causing unnecessary uniform updates
- Remove use of ``isnan`` in impostor shaders, not needed and causing slowdown - Remove use of ``isnan`` in impostor shaders, not needed and causing slowdown
- Avoid using ``flat`` qualifier in shaders, causing slowdown - Avoid using ``flat`` qualifier in shaders, causing slowdown
- Improve CellPack's ``adjustStyle`` option (disable ``colorMarker``, set component options, enable marking w/o ghost)
## [v3.11.0] - 2022-07-04 ## [v3.11.0] - 2022-07-04
......
...@@ -581,9 +581,20 @@ export const LoadCellPackModel = StateAction.build({ ...@@ -581,9 +581,20 @@ export const LoadCellPackModel = StateAction.build({
})(({ state, params }, ctx: PluginContext) => Task.create('CellPack Loader', async taskCtx => { })(({ state, params }, ctx: PluginContext) => Task.create('CellPack Loader', async taskCtx => {
if (params.preset.adjustStyle) { if (params.preset.adjustStyle) {
ctx.managers.interactivity.setProps({ granularity: 'chain' }); ctx.managers.interactivity.setProps({ granularity: 'chain' });
ctx.managers.structure.component.setOptions({
... ctx.managers.structure.component.state.options,
visualQuality: 'custom',
ignoreLight: true,
showHydrogens: false,
});
ctx.canvas3d?.setProps({ ctx.canvas3d?.setProps({
multiSample: { mode: 'off' }, multiSample: { mode: 'off' },
cameraClipping: { far: false }, cameraClipping: { far: false },
renderer: { colorMarker: false },
marking: {
enabled: true,
ghostEdgeStrength: 1,
},
postprocessing: { postprocessing: {
occlusion: { occlusion: {
name: 'on', name: 'on',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment