molstar 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/mesoscale-explorer/data/cellpack/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/cellpack/preset.js +5 -5
- package/lib/apps/mesoscale-explorer/data/generic/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/generic/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/mmcif/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/mmcif/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/petworld/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/petworld/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/state.d.ts +10 -1
- package/lib/apps/mesoscale-explorer/data/state.js +14 -2
- package/lib/apps/mesoscale-explorer/ui/entities.d.ts +7 -1
- package/lib/apps/mesoscale-explorer/ui/entities.js +23 -4
- package/lib/apps/viewer/app.d.ts +8 -2
- package/lib/apps/viewer/app.js +6 -6
- package/lib/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/preset.js +5 -5
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/state.d.ts +10 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/state.js +15 -3
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.d.ts +7 -1
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.js +22 -3
- package/lib/commonjs/apps/viewer/app.d.ts +8 -2
- package/lib/commonjs/apps/viewer/app.js +6 -6
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +5 -0
- package/lib/commonjs/extensions/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/commonjs/extensions/geo-export/glb-exporter.d.ts +1 -1
- package/lib/commonjs/extensions/geo-export/glb-exporter.js +6 -4
- package/lib/commonjs/extensions/mvs/camera.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/camera.js +29 -2
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/components/annotation-label/visual.d.ts +1 -0
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/components/custom-label/visual.d.ts +1 -0
- package/lib/commonjs/extensions/mvs/components/formats.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/components/formats.js +2 -1
- package/lib/commonjs/extensions/mvs/load.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/load.js +12 -6
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +14 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/bloom.d.ts +37 -0
- package/lib/commonjs/mol-canvas3d/passes/bloom.js +272 -0
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +11 -7
- package/lib/commonjs/mol-canvas3d/passes/draw.js +23 -3
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +6 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +30 -5
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +27 -32
- package/lib/commonjs/mol-geo/geometry/base.d.ts +3 -1
- package/lib/commonjs/mol-geo/geometry/base.js +4 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +4 -1
- package/lib/commonjs/mol-geo/geometry/emissive-data.d.ts +26 -0
- package/lib/commonjs/mol-geo/geometry/emissive-data.js +80 -0
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/image/image.js +4 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +3 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.js +4 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +36 -2
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/points/points.js +4 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +7 -3
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/text/text.js +4 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +34 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +3 -0
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/points.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +24 -1
- package/lib/commonjs/mol-gl/renderable/schema.js +15 -2
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/text.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable.d.ts +1 -1
- package/lib/commonjs/mol-gl/renderable.js +2 -2
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderer.js +58 -49
- package/lib/commonjs/mol-gl/scene.d.ts +3 -1
- package/lib/commonjs/mol-gl/scene.js +26 -1
- package/lib/commonjs/mol-gl/shader/bloom/blur.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/blur.frag.js +32 -0
- package/lib/commonjs/mol-gl/shader/bloom/composite.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/composite.frag.js +37 -0
- package/lib/commonjs/mol-gl/shader/bloom/luminosity.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/luminosity.frag.js +56 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +10 -2
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +28 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +20 -31
- package/lib/commonjs/mol-gl/shader/chunks/check-transparency.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/check-transparency.glsl.js +20 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +9 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +30 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -0
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +4 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +17 -11
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/image.frag.js +14 -5
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.js +4 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +4 -1
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.js +9 -5
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +11 -5
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.js +7 -8
- package/lib/commonjs/mol-gl/shader/ssao.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/ssao.frag.js +56 -17
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.js +6 -4
- package/lib/commonjs/mol-gl/shader-code.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader-code.js +9 -3
- package/lib/commonjs/mol-gl/webgl/render-item.d.ts +3 -2
- package/lib/commonjs/mol-gl/webgl/render-item.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/data.d.ts +9 -6
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/data.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +7 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +10 -6
- package/lib/commonjs/mol-model/structure/structure/unit.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit.js +5 -2
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +4 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +6 -3
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -208
- package/lib/commonjs/mol-plugin-state/helpers/structure-emissive.d.ts +12 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-emissive.js +69 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +9 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.d.ts +341 -9
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js +32 -19
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +25 -0
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +121 -6
- package/lib/commonjs/mol-repr/representation.d.ts +6 -2
- package/lib/commonjs/mol-repr/representation.js +12 -2
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/complex-representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-representation.js +7 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +8 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.js +5 -1
- package/lib/commonjs/mol-repr/structure/params.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +14 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/units-representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/units-representation.js +9 -3
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +9 -1
- package/lib/commonjs/mol-repr/structure/units-visual.js +5 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/visual.d.ts +6 -1
- package/lib/commonjs/mol-repr/visual.js +55 -1
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +6 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +4 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +2 -1
- package/lib/commonjs/mol-repr/volume/representation.js +9 -2
- package/lib/commonjs/mol-repr/volume/segment.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
- package/lib/commonjs/mol-theme/emissive.d.ts +40 -0
- package/lib/commonjs/mol-theme/emissive.js +137 -0
- package/lib/commonjs/mol-util/set.d.ts +1 -1
- package/lib/commonjs/mol-util/set.js +17 -1
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/anvil/representation.d.ts +5 -0
- package/lib/extensions/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/extensions/geo-export/glb-exporter.d.ts +1 -1
- package/lib/extensions/geo-export/glb-exporter.js +6 -4
- package/lib/extensions/mvs/camera.d.ts +2 -0
- package/lib/extensions/mvs/camera.js +27 -1
- package/lib/extensions/mvs/components/annotation-label/representation.d.ts +2 -0
- package/lib/extensions/mvs/components/annotation-label/visual.d.ts +1 -0
- package/lib/extensions/mvs/components/custom-label/representation.d.ts +2 -0
- package/lib/extensions/mvs/components/custom-label/visual.d.ts +1 -0
- package/lib/extensions/mvs/components/formats.d.ts +2 -0
- package/lib/extensions/mvs/components/formats.js +2 -1
- package/lib/extensions/mvs/load.d.ts +2 -0
- package/lib/extensions/mvs/load.js +13 -7
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +14 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/mol-canvas3d/passes/bloom.d.ts +37 -0
- package/lib/mol-canvas3d/passes/bloom.js +268 -0
- package/lib/mol-canvas3d/passes/draw.d.ts +11 -7
- package/lib/mol-canvas3d/passes/draw.js +23 -3
- package/lib/mol-canvas3d/passes/image.d.ts +6 -0
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +30 -5
- package/lib/mol-canvas3d/passes/postprocessing.js +25 -31
- package/lib/mol-geo/geometry/base.d.ts +3 -1
- package/lib/mol-geo/geometry/base.js +4 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.js +4 -1
- package/lib/mol-geo/geometry/emissive-data.d.ts +26 -0
- package/lib/mol-geo/geometry/emissive-data.js +72 -0
- package/lib/mol-geo/geometry/image/image.d.ts +2 -1
- package/lib/mol-geo/geometry/image/image.js +4 -1
- package/lib/mol-geo/geometry/lines/lines.d.ts +3 -1
- package/lib/mol-geo/geometry/lines/lines.js +4 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +34 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +4 -1
- package/lib/mol-geo/geometry/points/points.d.ts +2 -2
- package/lib/mol-geo/geometry/points/points.js +4 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -2
- package/lib/mol-geo/geometry/spheres/spheres.js +7 -3
- package/lib/mol-geo/geometry/text/text.d.ts +2 -1
- package/lib/mol-geo/geometry/text/text.js +4 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +32 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +3 -0
- package/lib/mol-gl/renderable/cylinders.d.ts +10 -0
- package/lib/mol-gl/renderable/direct-volume.d.ts +10 -0
- package/lib/mol-gl/renderable/image.d.ts +10 -0
- package/lib/mol-gl/renderable/lines.d.ts +10 -0
- package/lib/mol-gl/renderable/mesh.d.ts +10 -0
- package/lib/mol-gl/renderable/points.d.ts +10 -0
- package/lib/mol-gl/renderable/schema.d.ts +24 -1
- package/lib/mol-gl/renderable/schema.js +14 -1
- package/lib/mol-gl/renderable/spheres.d.ts +10 -0
- package/lib/mol-gl/renderable/text.d.ts +10 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +10 -0
- package/lib/mol-gl/renderable.d.ts +1 -1
- package/lib/mol-gl/renderable.js +2 -2
- package/lib/mol-gl/renderer.d.ts +2 -1
- package/lib/mol-gl/renderer.js +58 -49
- package/lib/mol-gl/scene.d.ts +3 -1
- package/lib/mol-gl/scene.js +26 -1
- package/lib/mol-gl/shader/bloom/blur.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/blur.frag.js +29 -0
- package/lib/mol-gl/shader/bloom/composite.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/composite.frag.js +34 -0
- package/lib/mol-gl/shader/bloom/luminosity.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/luminosity.frag.js +53 -0
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +10 -2
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +28 -0
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +20 -31
- package/lib/mol-gl/shader/chunks/check-transparency.glsl.d.ts +1 -0
- package/lib/mol-gl/shader/chunks/check-transparency.glsl.js +17 -0
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +9 -0
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +30 -0
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -0
- package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/mol-gl/shader/cylinders.frag.js +4 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +17 -11
- package/lib/mol-gl/shader/image.frag.d.ts +2 -2
- package/lib/mol-gl/shader/image.frag.js +14 -5
- package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/mol-gl/shader/lines.frag.js +4 -1
- package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/mol-gl/shader/mesh.frag.js +4 -1
- package/lib/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/mol-gl/shader/points.frag.js +9 -5
- package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/mol-gl/shader/spheres.frag.js +11 -5
- package/lib/mol-gl/shader/ssao-blur.frag.d.ts +3 -2
- package/lib/mol-gl/shader/ssao-blur.frag.js +7 -8
- package/lib/mol-gl/shader/ssao.frag.d.ts +3 -2
- package/lib/mol-gl/shader/ssao.frag.js +56 -17
- package/lib/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/mol-gl/shader/text.frag.js +6 -4
- package/lib/mol-gl/shader-code.d.ts +1 -1
- package/lib/mol-gl/shader-code.js +9 -3
- package/lib/mol-gl/webgl/render-item.d.ts +3 -2
- package/lib/mol-gl/webgl/render-item.js +1 -1
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/data.d.ts +9 -6
- package/lib/mol-model/structure/structure/unit/bonds/data.js +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +7 -4
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +10 -6
- package/lib/mol-model/structure/structure/unit.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit.js +5 -2
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +4 -1
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +6 -3
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/mol-plugin/commands.d.ts +1 -208
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/helpers/structure-emissive.d.ts +12 -0
- package/lib/mol-plugin-state/helpers/structure-emissive.js +64 -0
- package/lib/mol-plugin-state/manager/structure/component.d.ts +3 -1
- package/lib/mol-plugin-state/manager/structure/component.js +9 -1
- package/lib/mol-plugin-state/manager/structure/measurement.d.ts +341 -9
- package/lib/mol-plugin-state/manager/structure/measurement.js +32 -19
- package/lib/mol-plugin-state/transforms/representation.d.ts +25 -0
- package/lib/mol-plugin-state/transforms/representation.js +120 -5
- package/lib/mol-repr/representation.d.ts +6 -2
- package/lib/mol-repr/representation.js +12 -2
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/mol-repr/structure/complex-representation.d.ts +1 -1
- package/lib/mol-repr/structure/complex-representation.js +7 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +8 -1
- package/lib/mol-repr/structure/complex-visual.js +5 -1
- package/lib/mol-repr/structure/params.d.ts +8 -0
- package/lib/mol-repr/structure/registry.d.ts +14 -0
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/mol-repr/structure/representation/label.d.ts +3 -0
- package/lib/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/mol-repr/structure/units-representation.d.ts +1 -1
- package/lib/mol-repr/structure/units-representation.js +9 -3
- package/lib/mol-repr/structure/units-visual.d.ts +9 -1
- package/lib/mol-repr/structure/units-visual.js +5 -1
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/label-text.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +2 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/mol-repr/visual.d.ts +6 -1
- package/lib/mol-repr/visual.js +57 -3
- package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/mol-repr/volume/isosurface.d.ts +6 -0
- package/lib/mol-repr/volume/registry.d.ts +4 -0
- package/lib/mol-repr/volume/representation.d.ts +2 -1
- package/lib/mol-repr/volume/representation.js +9 -2
- package/lib/mol-repr/volume/segment.d.ts +5 -0
- package/lib/mol-repr/volume/slice.d.ts +3 -0
- package/lib/mol-theme/emissive.d.ts +40 -0
- package/lib/mol-theme/emissive.js +134 -0
- package/lib/mol-util/set.d.ts +1 -1
- package/lib/mol-util/set.js +17 -1
- package/package.json +19 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
@@ -84,6 +84,7 @@ export declare namespace Mesh {
|
|
|
84
84
|
scale: any;
|
|
85
85
|
}>[];
|
|
86
86
|
}>>;
|
|
87
|
+
emissive: PD.Numeric;
|
|
87
88
|
instanceGranularity: PD.BooleanParam;
|
|
88
89
|
lod: PD.Vec3;
|
|
89
90
|
cellSize: PD.Numeric;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
@@ -24,6 +24,7 @@ const clipping_data_1 = require("../clipping-data");
|
|
|
24
24
|
const array_1 = require("../../../mol-util/array");
|
|
25
25
|
const misc_1 = require("../../../mol-math/misc");
|
|
26
26
|
const substance_data_1 = require("../substance-data");
|
|
27
|
+
const emissive_data_1 = require("../emissive-data");
|
|
27
28
|
var Mesh;
|
|
28
29
|
(function (Mesh) {
|
|
29
30
|
function create(vertices, indices, normals, groups, vertexCount, triangleCount, mesh) {
|
|
@@ -598,6 +599,7 @@ var Mesh;
|
|
|
598
599
|
: (0, marker_data_1.createMarkers)(instanceCount * groupCount, 'groupInstance');
|
|
599
600
|
const overpaint = (0, overpaint_data_1.createEmptyOverpaint)();
|
|
600
601
|
const transparency = (0, transparency_data_1.createEmptyTransparency)();
|
|
602
|
+
const emissive = (0, emissive_data_1.createEmptyEmissive)();
|
|
601
603
|
const material = (0, substance_data_1.createEmptySubstance)();
|
|
602
604
|
const clipping = (0, clipping_data_1.createEmptyClipping)();
|
|
603
605
|
const counts = { drawCount: mesh.triangleCount * 3, vertexCount: mesh.vertexCount, groupCount, instanceCount };
|
|
@@ -617,6 +619,7 @@ var Mesh;
|
|
|
617
619
|
...marker,
|
|
618
620
|
...overpaint,
|
|
619
621
|
...transparency,
|
|
622
|
+
...emissive,
|
|
620
623
|
...material,
|
|
621
624
|
...clipping,
|
|
622
625
|
...transform,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -42,7 +42,6 @@ export declare namespace Points {
|
|
|
42
42
|
alpha: PD.Numeric;
|
|
43
43
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
44
44
|
material: PD.Group<PD.Normalize<{
|
|
45
|
-
/** Number of vertices in the point cloud */
|
|
46
45
|
metalness: number;
|
|
47
46
|
roughness: number;
|
|
48
47
|
bumpiness: number;
|
|
@@ -57,6 +56,7 @@ export declare namespace Points {
|
|
|
57
56
|
scale: any;
|
|
58
57
|
}>[];
|
|
59
58
|
}>>;
|
|
59
|
+
emissive: PD.Numeric;
|
|
60
60
|
instanceGranularity: PD.BooleanParam;
|
|
61
61
|
lod: PD.Vec3;
|
|
62
62
|
cellSize: PD.Numeric;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -22,6 +22,7 @@ const transparency_data_1 = require("../transparency-data");
|
|
|
22
22
|
const util_3 = require("../../../mol-data/util");
|
|
23
23
|
const clipping_data_1 = require("../clipping-data");
|
|
24
24
|
const substance_data_1 = require("../substance-data");
|
|
25
|
+
const emissive_data_1 = require("../emissive-data");
|
|
25
26
|
var Points;
|
|
26
27
|
(function (Points) {
|
|
27
28
|
function create(centers, groups, pointCount, points) {
|
|
@@ -138,6 +139,7 @@ var Points;
|
|
|
138
139
|
: (0, marker_data_1.createMarkers)(instanceCount * groupCount, 'groupInstance');
|
|
139
140
|
const overpaint = (0, overpaint_data_1.createEmptyOverpaint)();
|
|
140
141
|
const transparency = (0, transparency_data_1.createEmptyTransparency)();
|
|
142
|
+
const emissive = (0, emissive_data_1.createEmptyEmissive)();
|
|
141
143
|
const material = (0, substance_data_1.createEmptySubstance)();
|
|
142
144
|
const clipping = (0, clipping_data_1.createEmptyClipping)();
|
|
143
145
|
const counts = { drawCount: points.pointCount, vertexCount: points.pointCount, groupCount, instanceCount };
|
|
@@ -155,6 +157,7 @@ var Points;
|
|
|
155
157
|
...marker,
|
|
156
158
|
...overpaint,
|
|
157
159
|
...transparency,
|
|
160
|
+
...emissive,
|
|
158
161
|
...material,
|
|
159
162
|
...clipping,
|
|
160
163
|
...transform,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -69,7 +69,6 @@ export declare namespace Spheres {
|
|
|
69
69
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
70
70
|
material: PD.Group<PD.Normalize<{
|
|
71
71
|
metalness: number;
|
|
72
|
-
/** Number of spheres */
|
|
73
72
|
roughness: number;
|
|
74
73
|
bumpiness: number;
|
|
75
74
|
}>>;
|
|
@@ -83,6 +82,7 @@ export declare namespace Spheres {
|
|
|
83
82
|
scale: any;
|
|
84
83
|
}>[];
|
|
85
84
|
}>>;
|
|
85
|
+
emissive: PD.Numeric;
|
|
86
86
|
instanceGranularity: PD.BooleanParam;
|
|
87
87
|
lod: PD.Vec3;
|
|
88
88
|
cellSize: PD.Numeric;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -22,6 +22,7 @@ const util_3 = require("../../util");
|
|
|
22
22
|
const clipping_data_1 = require("../clipping-data");
|
|
23
23
|
const linear_algebra_1 = require("../../../mol-math/linear-algebra");
|
|
24
24
|
const substance_data_1 = require("../substance-data");
|
|
25
|
+
const emissive_data_1 = require("../emissive-data");
|
|
25
26
|
var Spheres;
|
|
26
27
|
(function (Spheres) {
|
|
27
28
|
function create(centers, groups, sphereCount, spheres) {
|
|
@@ -60,7 +61,7 @@ var Spheres;
|
|
|
60
61
|
get boundingSphere() {
|
|
61
62
|
const newHash = hashCode(spheres);
|
|
62
63
|
if (newHash !== currentHash) {
|
|
63
|
-
const b = (0, util_1.calculateInvariantBoundingSphere)(spheres.centerBuffer.ref.value, spheres.sphereCount
|
|
64
|
+
const b = (0, util_1.calculateInvariantBoundingSphere)(spheres.centerBuffer.ref.value, spheres.sphereCount, 1);
|
|
64
65
|
geometry_1.Sphere3D.copy(boundingSphere, b);
|
|
65
66
|
currentHash = newHash;
|
|
66
67
|
}
|
|
@@ -68,7 +69,7 @@ var Spheres;
|
|
|
68
69
|
},
|
|
69
70
|
get groupMapping() {
|
|
70
71
|
if (spheres.groupBuffer.ref.version !== currentGroup) {
|
|
71
|
-
groupMapping = (0, util_3.createGroupMapping)(spheres.groupBuffer.ref.value, spheres.sphereCount
|
|
72
|
+
groupMapping = (0, util_3.createGroupMapping)(spheres.groupBuffer.ref.value, spheres.sphereCount);
|
|
72
73
|
currentGroup = spheres.groupBuffer.ref.version;
|
|
73
74
|
}
|
|
74
75
|
return groupMapping;
|
|
@@ -97,6 +98,7 @@ var Spheres;
|
|
|
97
98
|
}
|
|
98
99
|
},
|
|
99
100
|
};
|
|
101
|
+
spheres.shaderData.update();
|
|
100
102
|
return spheres;
|
|
101
103
|
}
|
|
102
104
|
function update(centers, groups, sphereCount, spheres) {
|
|
@@ -250,6 +252,7 @@ var Spheres;
|
|
|
250
252
|
: (0, marker_data_1.createMarkers)(instanceCount * groupCount, 'groupInstance');
|
|
251
253
|
const overpaint = (0, overpaint_data_1.createEmptyOverpaint)();
|
|
252
254
|
const transparency = (0, transparency_data_1.createEmptyTransparency)();
|
|
255
|
+
const emissive = (0, emissive_data_1.createEmptyEmissive)();
|
|
253
256
|
const material = (0, substance_data_1.createEmptySubstance)();
|
|
254
257
|
const clipping = (0, clipping_data_1.createEmptyClipping)();
|
|
255
258
|
const counts = { drawCount: spheres.sphereCount * 2 * 3, vertexCount: spheres.sphereCount * 6, groupCount, instanceCount };
|
|
@@ -269,6 +272,7 @@ var Spheres;
|
|
|
269
272
|
...marker,
|
|
270
273
|
...overpaint,
|
|
271
274
|
...transparency,
|
|
275
|
+
...emissive,
|
|
272
276
|
...material,
|
|
273
277
|
...clipping,
|
|
274
278
|
...transform,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -75,6 +75,7 @@ export declare namespace Text {
|
|
|
75
75
|
scale: any;
|
|
76
76
|
}>[];
|
|
77
77
|
}>>;
|
|
78
|
+
emissive: PD.Numeric;
|
|
78
79
|
instanceGranularity: PD.BooleanParam;
|
|
79
80
|
lod: PD.Vec3;
|
|
80
81
|
cellSize: PD.Numeric;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -26,6 +26,7 @@ const util_2 = require("../../../mol-data/util");
|
|
|
26
26
|
const util_3 = require("../../util");
|
|
27
27
|
const clipping_data_1 = require("../clipping-data");
|
|
28
28
|
const substance_data_1 = require("../substance-data");
|
|
29
|
+
const emissive_data_1 = require("../emissive-data");
|
|
29
30
|
var Text;
|
|
30
31
|
(function (Text) {
|
|
31
32
|
function create(fontTexture, centers, mappings, depths, indices, groups, tcoords, charCount, text) {
|
|
@@ -163,6 +164,7 @@ var Text;
|
|
|
163
164
|
: (0, marker_data_1.createMarkers)(instanceCount * groupCount, 'groupInstance');
|
|
164
165
|
const overpaint = (0, overpaint_data_1.createEmptyOverpaint)();
|
|
165
166
|
const transparency = (0, transparency_data_1.createEmptyTransparency)();
|
|
167
|
+
const emissive = (0, emissive_data_1.createEmptyEmissive)();
|
|
166
168
|
const substance = (0, substance_data_1.createEmptySubstance)();
|
|
167
169
|
const clipping = (0, clipping_data_1.createEmptyClipping)();
|
|
168
170
|
const counts = { drawCount: text.charCount * 2 * 3, vertexCount: text.charCount * 4, groupCount, instanceCount };
|
|
@@ -184,6 +186,7 @@ var Text;
|
|
|
184
186
|
...marker,
|
|
185
187
|
...overpaint,
|
|
186
188
|
...transparency,
|
|
189
|
+
...emissive,
|
|
187
190
|
...substance,
|
|
188
191
|
...clipping,
|
|
189
192
|
...transform,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2021-
|
|
2
|
+
* Copyright (c) 2021-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -64,5 +64,6 @@ export declare function calcTextureMeshColorSmoothing(input: ColorSmoothingInput
|
|
|
64
64
|
export declare function applyTextureMeshColorSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
|
|
65
65
|
export declare function applyTextureMeshOverpaintSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
|
|
66
66
|
export declare function applyTextureMeshTransparencySmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
|
|
67
|
+
export declare function applyTextureMeshEmissiveSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
|
|
67
68
|
export declare function applyTextureMeshSubstanceSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
|
|
68
69
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2021-
|
|
3
|
+
* Copyright (c) 2021-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.applyTextureMeshSubstanceSmoothing = exports.applyTextureMeshTransparencySmoothing = exports.applyTextureMeshOverpaintSmoothing = exports.applyTextureMeshColorSmoothing = exports.calcTextureMeshColorSmoothing = exports.ColorNormalizeSchema = exports.ColorAccumulateSchema = void 0;
|
|
8
|
+
exports.applyTextureMeshSubstanceSmoothing = exports.applyTextureMeshEmissiveSmoothing = exports.applyTextureMeshTransparencySmoothing = exports.applyTextureMeshOverpaintSmoothing = exports.applyTextureMeshColorSmoothing = exports.calcTextureMeshColorSmoothing = exports.ColorNormalizeSchema = exports.ColorAccumulateSchema = void 0;
|
|
9
9
|
const mol_util_1 = require("../../../mol-util");
|
|
10
10
|
const renderable_1 = require("../../../mol-gl/renderable");
|
|
11
11
|
const texture_1 = require("../../../mol-gl/webgl/texture");
|
|
@@ -418,6 +418,38 @@ function applyTextureMeshTransparencySmoothing(values, resolution, stride, webgl
|
|
|
418
418
|
mol_util_1.ValueCell.update(values.uTransparencyGridTransform, smoothingData.gridTransform);
|
|
419
419
|
}
|
|
420
420
|
exports.applyTextureMeshTransparencySmoothing = applyTextureMeshTransparencySmoothing;
|
|
421
|
+
function isSupportedEmissiveType(x) {
|
|
422
|
+
return x === 'groupInstance';
|
|
423
|
+
}
|
|
424
|
+
function applyTextureMeshEmissiveSmoothing(values, resolution, stride, webgl, colorTexture) {
|
|
425
|
+
if (!isSupportedEmissiveType(values.dEmissiveType.ref.value))
|
|
426
|
+
return;
|
|
427
|
+
stride *= 3; // triple because TextureMesh is never indexed (no elements buffer)
|
|
428
|
+
if (!webgl.namedTextures[ColorSmoothingAlphaName]) {
|
|
429
|
+
webgl.namedTextures[ColorSmoothingAlphaName] = webgl.resources.texture('image-uint8', 'alpha', 'ubyte', 'nearest');
|
|
430
|
+
}
|
|
431
|
+
const colorData = webgl.namedTextures[ColorSmoothingAlphaName];
|
|
432
|
+
colorData.load(values.tEmissive.ref.value);
|
|
433
|
+
const smoothingData = calcTextureMeshColorSmoothing({
|
|
434
|
+
vertexCount: values.uVertexCount.ref.value,
|
|
435
|
+
instanceCount: values.uInstanceCount.ref.value,
|
|
436
|
+
groupCount: values.uGroupCount.ref.value,
|
|
437
|
+
transformBuffer: values.aTransform.ref.value,
|
|
438
|
+
instanceBuffer: values.aInstance.ref.value,
|
|
439
|
+
positionTexture: values.tPosition.ref.value,
|
|
440
|
+
groupTexture: values.tGroup.ref.value,
|
|
441
|
+
colorData,
|
|
442
|
+
colorType: values.dEmissiveType.ref.value,
|
|
443
|
+
boundingSphere: values.boundingSphere.ref.value,
|
|
444
|
+
invariantBoundingSphere: values.invariantBoundingSphere.ref.value,
|
|
445
|
+
}, resolution, stride, webgl, colorTexture);
|
|
446
|
+
mol_util_1.ValueCell.updateIfChanged(values.dEmissiveType, smoothingData.type);
|
|
447
|
+
mol_util_1.ValueCell.update(values.tEmissiveGrid, smoothingData.texture);
|
|
448
|
+
mol_util_1.ValueCell.update(values.uEmissiveTexDim, smoothingData.gridTexDim);
|
|
449
|
+
mol_util_1.ValueCell.update(values.uEmissiveGridDim, smoothingData.gridDim);
|
|
450
|
+
mol_util_1.ValueCell.update(values.uEmissiveGridTransform, smoothingData.gridTransform);
|
|
451
|
+
}
|
|
452
|
+
exports.applyTextureMeshEmissiveSmoothing = applyTextureMeshEmissiveSmoothing;
|
|
421
453
|
function isSupportedSubstanceType(x) {
|
|
422
454
|
return x === 'groupInstance';
|
|
423
455
|
}
|
|
@@ -57,7 +57,7 @@ export declare namespace TextureMesh {
|
|
|
57
57
|
material: PD.Group<PD.Normalize<{
|
|
58
58
|
metalness: number;
|
|
59
59
|
roughness: number;
|
|
60
|
-
bumpiness: number;
|
|
60
|
+
bumpiness: number;
|
|
61
61
|
}>>;
|
|
62
62
|
clip: PD.Group<PD.Normalize<{
|
|
63
63
|
variant: import("../../../mol-util/clip").Clip.Variant;
|
|
@@ -69,6 +69,7 @@ export declare namespace TextureMesh {
|
|
|
69
69
|
scale: any;
|
|
70
70
|
}>[];
|
|
71
71
|
}>>;
|
|
72
|
+
emissive: PD.Numeric;
|
|
72
73
|
instanceGranularity: PD.BooleanParam;
|
|
73
74
|
lod: PD.Vec3;
|
|
74
75
|
cellSize: PD.Numeric;
|
|
@@ -22,6 +22,7 @@ const linear_algebra_1 = require("../../../mol-math/linear-algebra");
|
|
|
22
22
|
const clipping_data_1 = require("../clipping-data");
|
|
23
23
|
const location_1 = require("../../../mol-model/location");
|
|
24
24
|
const substance_data_1 = require("../substance-data");
|
|
25
|
+
const emissive_data_1 = require("../emissive-data");
|
|
25
26
|
var TextureMesh;
|
|
26
27
|
(function (TextureMesh) {
|
|
27
28
|
class DoubleBuffer {
|
|
@@ -154,6 +155,7 @@ var TextureMesh;
|
|
|
154
155
|
: (0, marker_data_1.createMarkers)(instanceCount * groupCount, 'groupInstance');
|
|
155
156
|
const overpaint = (0, overpaint_data_1.createEmptyOverpaint)();
|
|
156
157
|
const transparency = (0, transparency_data_1.createEmptyTransparency)();
|
|
158
|
+
const emissive = (0, emissive_data_1.createEmptyEmissive)();
|
|
157
159
|
const substance = (0, substance_data_1.createEmptySubstance)();
|
|
158
160
|
const clipping = (0, clipping_data_1.createEmptyClipping)();
|
|
159
161
|
const counts = { drawCount: textureMesh.vertexCount, vertexCount: textureMesh.vertexCount, groupCount, instanceCount };
|
|
@@ -173,6 +175,7 @@ var TextureMesh;
|
|
|
173
175
|
...marker,
|
|
174
176
|
...overpaint,
|
|
175
177
|
...transparency,
|
|
178
|
+
...emissive,
|
|
176
179
|
...substance,
|
|
177
180
|
...clipping,
|
|
178
181
|
...transform,
|
|
@@ -45,6 +45,7 @@ export declare const CylindersSchema: {
|
|
|
45
45
|
uMetalness: UniformSpec<"f">;
|
|
46
46
|
uRoughness: UniformSpec<"f">;
|
|
47
47
|
uBumpiness: UniformSpec<"f">;
|
|
48
|
+
uEmissive: UniformSpec<"f">;
|
|
48
49
|
uVertexCount: UniformSpec<"i">;
|
|
49
50
|
uInstanceCount: UniformSpec<"i">;
|
|
50
51
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -73,6 +74,15 @@ export declare const CylindersSchema: {
|
|
|
73
74
|
tSubstanceGrid: import("./schema").TextureSpec<"texture">;
|
|
74
75
|
dSubstanceType: DefineSpec<"string">;
|
|
75
76
|
uSubstanceStrength: UniformSpec<"f">;
|
|
77
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
78
|
+
tEmissive: import("./schema").TextureSpec<"image-uint8">;
|
|
79
|
+
dEmissive: DefineSpec<"boolean">;
|
|
80
|
+
emissiveAverage: ValueSpec<"number">;
|
|
81
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
82
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
83
|
+
tEmissiveGrid: import("./schema").TextureSpec<"texture">;
|
|
84
|
+
dEmissiveType: DefineSpec<"string">;
|
|
85
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
76
86
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
77
87
|
tTransparency: import("./schema").TextureSpec<"image-uint8">;
|
|
78
88
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -46,6 +46,7 @@ export declare const DirectVolumeSchema: {
|
|
|
46
46
|
uMetalness: UniformSpec<"f">;
|
|
47
47
|
uRoughness: UniformSpec<"f">;
|
|
48
48
|
uBumpiness: UniformSpec<"f">;
|
|
49
|
+
uEmissive: UniformSpec<"f">;
|
|
49
50
|
uVertexCount: UniformSpec<"i">;
|
|
50
51
|
uInstanceCount: UniformSpec<"i">;
|
|
51
52
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -74,6 +75,15 @@ export declare const DirectVolumeSchema: {
|
|
|
74
75
|
tSubstanceGrid: TextureSpec<"texture">;
|
|
75
76
|
dSubstanceType: DefineSpec<"string">;
|
|
76
77
|
uSubstanceStrength: UniformSpec<"f">;
|
|
78
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
79
|
+
tEmissive: TextureSpec<"image-uint8">;
|
|
80
|
+
dEmissive: DefineSpec<"boolean">;
|
|
81
|
+
emissiveAverage: import("./schema").ValueSpec<"number">;
|
|
82
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
83
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
84
|
+
tEmissiveGrid: TextureSpec<"texture">;
|
|
85
|
+
dEmissiveType: DefineSpec<"string">;
|
|
86
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
77
87
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
78
88
|
tTransparency: TextureSpec<"image-uint8">;
|
|
79
89
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -31,6 +31,7 @@ export declare const ImageSchema: {
|
|
|
31
31
|
uMetalness: UniformSpec<"f">;
|
|
32
32
|
uRoughness: UniformSpec<"f">;
|
|
33
33
|
uBumpiness: UniformSpec<"f">;
|
|
34
|
+
uEmissive: UniformSpec<"f">;
|
|
34
35
|
uVertexCount: UniformSpec<"i">;
|
|
35
36
|
uInstanceCount: UniformSpec<"i">;
|
|
36
37
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -59,6 +60,15 @@ export declare const ImageSchema: {
|
|
|
59
60
|
tSubstanceGrid: TextureSpec<"texture">;
|
|
60
61
|
dSubstanceType: DefineSpec<"string">;
|
|
61
62
|
uSubstanceStrength: UniformSpec<"f">;
|
|
63
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
64
|
+
tEmissive: TextureSpec<"image-uint8">;
|
|
65
|
+
dEmissive: DefineSpec<"boolean">;
|
|
66
|
+
emissiveAverage: import("./schema").ValueSpec<"number">;
|
|
67
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
68
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
69
|
+
tEmissiveGrid: TextureSpec<"texture">;
|
|
70
|
+
dEmissiveType: DefineSpec<"string">;
|
|
71
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
62
72
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
63
73
|
tTransparency: TextureSpec<"image-uint8">;
|
|
64
74
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -36,6 +36,7 @@ export declare const LinesSchema: {
|
|
|
36
36
|
uMetalness: UniformSpec<"f">;
|
|
37
37
|
uRoughness: UniformSpec<"f">;
|
|
38
38
|
uBumpiness: UniformSpec<"f">;
|
|
39
|
+
uEmissive: UniformSpec<"f">;
|
|
39
40
|
uVertexCount: UniformSpec<"i">;
|
|
40
41
|
uInstanceCount: UniformSpec<"i">;
|
|
41
42
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -64,6 +65,15 @@ export declare const LinesSchema: {
|
|
|
64
65
|
tSubstanceGrid: import("./schema").TextureSpec<"texture">;
|
|
65
66
|
dSubstanceType: DefineSpec<"string">;
|
|
66
67
|
uSubstanceStrength: UniformSpec<"f">;
|
|
68
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
69
|
+
tEmissive: import("./schema").TextureSpec<"image-uint8">;
|
|
70
|
+
dEmissive: DefineSpec<"boolean">;
|
|
71
|
+
emissiveAverage: import("./schema").ValueSpec<"number">;
|
|
72
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
73
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
74
|
+
tEmissiveGrid: import("./schema").TextureSpec<"texture">;
|
|
75
|
+
dEmissiveType: DefineSpec<"string">;
|
|
76
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
67
77
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
68
78
|
tTransparency: import("./schema").TextureSpec<"image-uint8">;
|
|
69
79
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -37,6 +37,7 @@ export declare const MeshSchema: {
|
|
|
37
37
|
readonly uMetalness: UniformSpec<"f">;
|
|
38
38
|
readonly uRoughness: UniformSpec<"f">;
|
|
39
39
|
readonly uBumpiness: UniformSpec<"f">;
|
|
40
|
+
readonly uEmissive: UniformSpec<"f">;
|
|
40
41
|
readonly uVertexCount: UniformSpec<"i">;
|
|
41
42
|
readonly uInstanceCount: UniformSpec<"i">;
|
|
42
43
|
readonly uGroupCount: UniformSpec<"i">;
|
|
@@ -65,6 +66,15 @@ export declare const MeshSchema: {
|
|
|
65
66
|
readonly tSubstanceGrid: import("./schema").TextureSpec<"texture">;
|
|
66
67
|
readonly dSubstanceType: DefineSpec<"string">;
|
|
67
68
|
readonly uSubstanceStrength: UniformSpec<"f">;
|
|
69
|
+
readonly uEmissiveTexDim: UniformSpec<"v2">;
|
|
70
|
+
readonly tEmissive: import("./schema").TextureSpec<"image-uint8">;
|
|
71
|
+
readonly dEmissive: DefineSpec<"boolean">;
|
|
72
|
+
readonly emissiveAverage: ValueSpec<"number">;
|
|
73
|
+
readonly uEmissiveGridDim: UniformSpec<"v3">;
|
|
74
|
+
readonly uEmissiveGridTransform: UniformSpec<"v4">;
|
|
75
|
+
readonly tEmissiveGrid: import("./schema").TextureSpec<"texture">;
|
|
76
|
+
readonly dEmissiveType: DefineSpec<"string">;
|
|
77
|
+
readonly uEmissiveStrength: UniformSpec<"f">;
|
|
68
78
|
readonly uTransparencyTexDim: UniformSpec<"v2">;
|
|
69
79
|
readonly tTransparency: import("./schema").TextureSpec<"image-uint8">;
|
|
70
80
|
readonly dTransparency: DefineSpec<"boolean">;
|
|
@@ -32,6 +32,7 @@ export declare const PointsSchema: {
|
|
|
32
32
|
uMetalness: import("./schema").UniformSpec<"f">;
|
|
33
33
|
uRoughness: import("./schema").UniformSpec<"f">;
|
|
34
34
|
uBumpiness: import("./schema").UniformSpec<"f">;
|
|
35
|
+
uEmissive: import("./schema").UniformSpec<"f">;
|
|
35
36
|
uVertexCount: import("./schema").UniformSpec<"i">;
|
|
36
37
|
uInstanceCount: import("./schema").UniformSpec<"i">;
|
|
37
38
|
uGroupCount: import("./schema").UniformSpec<"i">;
|
|
@@ -60,6 +61,15 @@ export declare const PointsSchema: {
|
|
|
60
61
|
tSubstanceGrid: import("./schema").TextureSpec<"texture">;
|
|
61
62
|
dSubstanceType: DefineSpec<"string">;
|
|
62
63
|
uSubstanceStrength: import("./schema").UniformSpec<"f">;
|
|
64
|
+
uEmissiveTexDim: import("./schema").UniformSpec<"v2">;
|
|
65
|
+
tEmissive: import("./schema").TextureSpec<"image-uint8">;
|
|
66
|
+
dEmissive: DefineSpec<"boolean">;
|
|
67
|
+
emissiveAverage: import("./schema").ValueSpec<"number">;
|
|
68
|
+
uEmissiveGridDim: import("./schema").UniformSpec<"v3">;
|
|
69
|
+
uEmissiveGridTransform: import("./schema").UniformSpec<"v4">;
|
|
70
|
+
tEmissiveGrid: import("./schema").TextureSpec<"texture">;
|
|
71
|
+
dEmissiveType: DefineSpec<"string">;
|
|
72
|
+
uEmissiveStrength: import("./schema").UniformSpec<"f">;
|
|
63
73
|
uTransparencyTexDim: import("./schema").UniformSpec<"v2">;
|
|
64
74
|
tTransparency: import("./schema").TextureSpec<"image-uint8">;
|
|
65
75
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
@@ -211,6 +211,19 @@ export declare const TransparencySchema: {
|
|
|
211
211
|
};
|
|
212
212
|
export type TransparencySchema = typeof TransparencySchema;
|
|
213
213
|
export type TransparencyValues = Values<TransparencySchema>;
|
|
214
|
+
export declare const EmissiveSchema: {
|
|
215
|
+
readonly uEmissiveTexDim: UniformSpec<"v2">;
|
|
216
|
+
readonly tEmissive: TextureSpec<"image-uint8">;
|
|
217
|
+
readonly dEmissive: DefineSpec<"boolean">;
|
|
218
|
+
readonly emissiveAverage: ValueSpec<"number">;
|
|
219
|
+
readonly uEmissiveGridDim: UniformSpec<"v3">;
|
|
220
|
+
readonly uEmissiveGridTransform: UniformSpec<"v4">;
|
|
221
|
+
readonly tEmissiveGrid: TextureSpec<"texture">;
|
|
222
|
+
readonly dEmissiveType: DefineSpec<"string">;
|
|
223
|
+
readonly uEmissiveStrength: UniformSpec<"f">;
|
|
224
|
+
};
|
|
225
|
+
export type EmissiveSchema = typeof EmissiveSchema;
|
|
226
|
+
export type EmissiveValues = Values<EmissiveSchema>;
|
|
214
227
|
export declare const SubstanceSchema: {
|
|
215
228
|
readonly uSubstanceTexDim: UniformSpec<"v2">;
|
|
216
229
|
readonly tSubstance: TextureSpec<"image-uint8">;
|
|
@@ -254,6 +267,7 @@ export declare const BaseSchema: {
|
|
|
254
267
|
readonly uMetalness: UniformSpec<"f">;
|
|
255
268
|
readonly uRoughness: UniformSpec<"f">;
|
|
256
269
|
readonly uBumpiness: UniformSpec<"f">;
|
|
270
|
+
readonly uEmissive: UniformSpec<"f">;
|
|
257
271
|
readonly uVertexCount: UniformSpec<"i">;
|
|
258
272
|
readonly uInstanceCount: UniformSpec<"i">;
|
|
259
273
|
readonly uGroupCount: UniformSpec<"i">;
|
|
@@ -290,6 +304,15 @@ export declare const BaseSchema: {
|
|
|
290
304
|
readonly tSubstanceGrid: TextureSpec<"texture">;
|
|
291
305
|
readonly dSubstanceType: DefineSpec<"string">;
|
|
292
306
|
readonly uSubstanceStrength: UniformSpec<"f">;
|
|
307
|
+
readonly uEmissiveTexDim: UniformSpec<"v2">;
|
|
308
|
+
readonly tEmissive: TextureSpec<"image-uint8">;
|
|
309
|
+
readonly dEmissive: DefineSpec<"boolean">;
|
|
310
|
+
readonly emissiveAverage: ValueSpec<"number">;
|
|
311
|
+
readonly uEmissiveGridDim: UniformSpec<"v3">;
|
|
312
|
+
readonly uEmissiveGridTransform: UniformSpec<"v4">;
|
|
313
|
+
readonly tEmissiveGrid: TextureSpec<"texture">;
|
|
314
|
+
readonly dEmissiveType: DefineSpec<"string">;
|
|
315
|
+
readonly uEmissiveStrength: UniformSpec<"f">;
|
|
293
316
|
readonly uTransparencyTexDim: UniformSpec<"v2">;
|
|
294
317
|
readonly tTransparency: TextureSpec<"image-uint8">;
|
|
295
318
|
readonly dTransparency: DefineSpec<"boolean">;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BaseSchema = exports.ClippingSchema = exports.SubstanceSchema = exports.TransparencySchema = exports.OverpaintSchema = exports.MarkerSchema = exports.SizeSchema = exports.ColorSchema = exports.InternalSchema = exports.GlobalTextureSchema = exports.GlobalUniformSchema = exports.ValueSpec = exports.DefineSpec = exports.ElementsSpec = exports.TextureSpec = exports.UniformSpec = exports.AttributeSpec = exports.getValueVersions = exports.splitValues = void 0;
|
|
9
|
+
exports.BaseSchema = exports.ClippingSchema = exports.SubstanceSchema = exports.EmissiveSchema = exports.TransparencySchema = exports.OverpaintSchema = exports.MarkerSchema = exports.SizeSchema = exports.ColorSchema = exports.InternalSchema = exports.GlobalTextureSchema = exports.GlobalUniformSchema = exports.ValueSpec = exports.DefineSpec = exports.ElementsSpec = exports.TextureSpec = exports.UniformSpec = exports.AttributeSpec = exports.getValueVersions = exports.splitValues = void 0;
|
|
10
10
|
function splitValues(schema, values) {
|
|
11
11
|
const attributeValues = {};
|
|
12
12
|
const defineValues = {};
|
|
@@ -181,6 +181,17 @@ exports.TransparencySchema = {
|
|
|
181
181
|
dTransparencyType: DefineSpec('string', ['instance', 'groupInstance', 'volumeInstance']),
|
|
182
182
|
uTransparencyStrength: UniformSpec('f', 'material'),
|
|
183
183
|
};
|
|
184
|
+
exports.EmissiveSchema = {
|
|
185
|
+
uEmissiveTexDim: UniformSpec('v2'),
|
|
186
|
+
tEmissive: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
187
|
+
dEmissive: DefineSpec('boolean'),
|
|
188
|
+
emissiveAverage: ValueSpec('number'),
|
|
189
|
+
uEmissiveGridDim: UniformSpec('v3'),
|
|
190
|
+
uEmissiveGridTransform: UniformSpec('v4'),
|
|
191
|
+
tEmissiveGrid: TextureSpec('texture', 'alpha', 'ubyte', 'linear'),
|
|
192
|
+
dEmissiveType: DefineSpec('string', ['instance', 'groupInstance', 'volumeInstance']),
|
|
193
|
+
uEmissiveStrength: UniformSpec('f', 'material'),
|
|
194
|
+
};
|
|
184
195
|
exports.SubstanceSchema = {
|
|
185
196
|
uSubstanceTexDim: UniformSpec('v2'),
|
|
186
197
|
tSubstance: TextureSpec('image-uint8', 'rgba', 'ubyte', 'nearest'),
|
|
@@ -203,6 +214,7 @@ exports.BaseSchema = {
|
|
|
203
214
|
...exports.MarkerSchema,
|
|
204
215
|
...exports.OverpaintSchema,
|
|
205
216
|
...exports.TransparencySchema,
|
|
217
|
+
...exports.EmissiveSchema,
|
|
206
218
|
...exports.SubstanceSchema,
|
|
207
219
|
...exports.ClippingSchema,
|
|
208
220
|
dLightCount: DefineSpec('number'),
|
|
@@ -227,6 +239,7 @@ exports.BaseSchema = {
|
|
|
227
239
|
uMetalness: UniformSpec('f', 'material'),
|
|
228
240
|
uRoughness: UniformSpec('f', 'material'),
|
|
229
241
|
uBumpiness: UniformSpec('f', 'material'),
|
|
242
|
+
uEmissive: UniformSpec('f', 'material'),
|
|
230
243
|
uVertexCount: UniformSpec('i'),
|
|
231
244
|
uInstanceCount: UniformSpec('i'),
|
|
232
245
|
uGroupCount: UniformSpec('i'),
|
|
@@ -44,6 +44,7 @@ export declare const SpheresSchema: {
|
|
|
44
44
|
uMetalness: UniformSpec<"f">;
|
|
45
45
|
uRoughness: UniformSpec<"f">;
|
|
46
46
|
uBumpiness: UniformSpec<"f">;
|
|
47
|
+
uEmissive: UniformSpec<"f">;
|
|
47
48
|
uVertexCount: UniformSpec<"i">;
|
|
48
49
|
uInstanceCount: UniformSpec<"i">;
|
|
49
50
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -72,6 +73,15 @@ export declare const SpheresSchema: {
|
|
|
72
73
|
tSubstanceGrid: TextureSpec<"texture">;
|
|
73
74
|
dSubstanceType: DefineSpec<"string">;
|
|
74
75
|
uSubstanceStrength: UniformSpec<"f">;
|
|
76
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
77
|
+
tEmissive: TextureSpec<"image-uint8">;
|
|
78
|
+
dEmissive: DefineSpec<"boolean">;
|
|
79
|
+
emissiveAverage: ValueSpec<"number">;
|
|
80
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
81
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
82
|
+
tEmissiveGrid: TextureSpec<"texture">;
|
|
83
|
+
dEmissiveType: DefineSpec<"string">;
|
|
84
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
75
85
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
76
86
|
tTransparency: TextureSpec<"image-uint8">;
|
|
77
87
|
dTransparency: DefineSpec<"boolean">;
|
|
@@ -43,6 +43,7 @@ export declare const TextSchema: {
|
|
|
43
43
|
uMetalness: UniformSpec<"f">;
|
|
44
44
|
uRoughness: UniformSpec<"f">;
|
|
45
45
|
uBumpiness: UniformSpec<"f">;
|
|
46
|
+
uEmissive: UniformSpec<"f">;
|
|
46
47
|
uVertexCount: UniformSpec<"i">;
|
|
47
48
|
uInstanceCount: UniformSpec<"i">;
|
|
48
49
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -71,6 +72,15 @@ export declare const TextSchema: {
|
|
|
71
72
|
tSubstanceGrid: TextureSpec<"texture">;
|
|
72
73
|
dSubstanceType: import("./schema").DefineSpec<"string">;
|
|
73
74
|
uSubstanceStrength: UniformSpec<"f">;
|
|
75
|
+
uEmissiveTexDim: UniformSpec<"v2">;
|
|
76
|
+
tEmissive: TextureSpec<"image-uint8">;
|
|
77
|
+
dEmissive: import("./schema").DefineSpec<"boolean">;
|
|
78
|
+
emissiveAverage: ValueSpec<"number">;
|
|
79
|
+
uEmissiveGridDim: UniformSpec<"v3">;
|
|
80
|
+
uEmissiveGridTransform: UniformSpec<"v4">;
|
|
81
|
+
tEmissiveGrid: TextureSpec<"texture">;
|
|
82
|
+
dEmissiveType: import("./schema").DefineSpec<"string">;
|
|
83
|
+
uEmissiveStrength: UniformSpec<"f">;
|
|
74
84
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
75
85
|
tTransparency: TextureSpec<"image-uint8">;
|
|
76
86
|
dTransparency: import("./schema").DefineSpec<"boolean">;
|