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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
365d7d46
You need to sign in or sign up before continuing.
Commit
365d7d46
authored
2 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
fix SSAO artefacts with high bias values
parent
f8284508
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/mol-gl/shader/ssao.frag.ts
+2
-2
2 additions, 2 deletions
src/mol-gl/shader/ssao.frag.ts
with
3 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
365d7d46
...
...
@@ -12,6 +12,7 @@ Note that since we don't clearly distinguish between a public and private interf
-
[Breaking] Rename
`DnatcoConfalPyramids`
to
`DnatcoNtCs`
-
Improve boundary calculation performance
-
Add option to create & include images in state snapshots
-
Fix SSAO artefacts with high bias values
## [v3.29.0] - 2023-01-15
...
...
This diff is collapsed.
Click to expand it.
src/mol-gl/shader/ssao.frag.ts
+
2
−
2
View file @
365d7d46
/**
* Copyright (c) 2019-202
2
mol* contributors, licensed under MIT, See LICENSE file for more info.
* Copyright (c) 2019-202
3
mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Áron Samuel Kovács <aron.kovacs@mail.muni.cz>
...
...
@@ -115,7 +115,7 @@ void main(void) {
}
occlusion = 1.0 - (uBias * occlusion / float(dNSamples));
vec2 packedOcclusion = packUnitIntervalToRG(occlusion);
vec2 packedOcclusion = packUnitIntervalToRG(
clamp(
occlusion
, 0.01, 1.0)
);
gl_FragColor = vec4(packedOcclusion, selfPackedDepth);
}
...
...
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