Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
b37f0438
Unverified
Commit
b37f0438
authored
2 years ago
by
Alexander Rose
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into graph-bonds
parents
f0ae1b33
d11e242b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
src/mol-gl/shader/ssao.frag.ts
+1
-1
1 addition, 1 deletion
src/mol-gl/shader/ssao.frag.ts
src/mol-model/structure/structure/unit/bonds/inter-compute.ts
+9
-5
9 additions, 5 deletions
...mol-model/structure/structure/unit/bonds/inter-compute.ts
with
12 additions
and
6 deletions
CHANGELOG.md
+
2
−
0
View file @
b37f0438
...
...
@@ -9,6 +9,8 @@ Note that since we don't clearly distinguish between a public and private interf
-
Make operators in
`IndexPairBonds`
a directed property
-
Remove erroneous bounding-box overlap test in
`Structure.eachUnitPair`
-
Fix
`EdgeBuilder.addNextEdge`
for loop edges
-
Optimize inter unit bond compute
-
Improve SSAO for thin geometry (e.g. lines)
## [v3.35.0] - 2023-05-14
...
...
This diff is collapsed.
Click to expand it.
src/mol-gl/shader/ssao.frag.ts
+
1
−
1
View file @
b37f0438
...
...
@@ -114,7 +114,7 @@ void main(void) {
vec2 selfPackedDepth = packUnitIntervalToRG(selfDepth);
if (isBackground(selfDepth)) {
gl_FragColor = vec4(packUnitIntervalToRG(
0
.0), selfPackedDepth);
gl_FragColor = vec4(packUnitIntervalToRG(
1
.0), selfPackedDepth);
return;
}
...
...
This diff is collapsed.
Click to expand it.
src/mol-model/structure/structure/unit/bonds/inter-compute.ts
+
9
−
5
View file @
b37f0438
...
...
@@ -243,10 +243,8 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo
...
p
,
validUnit
:
(
props
&&
props
.
validUnit
)
||
(
u
=>
Unit
.
isAtomic
(
u
)),
validUnitPair
:
(
props
&&
props
.
validUnitPair
)
||
((
s
,
a
,
b
)
=>
{
// In case both units have a struct conn record, ignore other criteria
if
(
hasCommonStructConnRecord
(
a
,
b
))
{
return
Structure
.
validUnitPair
(
s
,
a
,
b
);
}
const
isValidPair
=
Structure
.
validUnitPair
(
s
,
a
,
b
);
if
(
!
isValidPair
)
return
false
;
const
mtA
=
a
.
model
.
atomicHierarchy
.
derived
.
residue
.
moleculeType
;
const
mtB
=
b
.
model
.
atomicHierarchy
.
derived
.
residue
.
moleculeType
;
...
...
@@ -258,7 +256,13 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo
const
notIonA
=
(
!
Unit
.
isAtomic
(
a
)
||
mtA
[
a
.
residueIndex
[
a
.
elements
[
0
]]]
!==
MoleculeType
.
Ion
);
const
notIonB
=
(
!
Unit
.
isAtomic
(
b
)
||
mtB
[
b
.
residueIndex
[
b
.
elements
[
0
]]]
!==
MoleculeType
.
Ion
);
const
notIon
=
notIonA
&&
notIonB
;
return
Structure
.
validUnitPair
(
s
,
a
,
b
)
&&
(
notWater
||
!
p
.
ignoreWater
)
&&
(
notIon
||
!
p
.
ignoreIon
);
const
check
=
(
notWater
||
!
p
.
ignoreWater
)
&&
(
notIon
||
!
p
.
ignoreIon
);
if
(
!
check
)
{
// In case both units have a struct conn record, ignore other criteria
return
hasCommonStructConnRecord
(
a
,
b
);
}
return
true
;
}),
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment