Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Improve AO shaders. #27320

Merged
merged 4 commits into from Dec 5, 2023
Merged

Examples: Improve AO shaders. #27320

merged 4 commits into from Dec 5, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Dec 5, 2023

Related issue: #27319 (comment)

Description

This PR makes sure GTAOPass uses the same depth texture setup like SSAOPass and SAOPass.

It also defines the depth samplers as highp which solves an artifact issue with GTAOPass on mobile devices. This change is also done for the other AO shaders to make sure something like this does not happen there, too.

@Mugen87 Mugen87 added this to the r160 milestone Dec 5, 2023
@Mugen87 Mugen87 merged commit 0e7ab9f into mrdoob:dev Dec 5, 2023
11 checks passed
@Mugen87 Mugen87 mentioned this pull request Dec 5, 2023
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* GTAOPass: Use higher default depth precision.

* GTAOShader: Try highp sampler2D.

* Examples: Define high sampler precision for AO shaders.

* Examples: Restrict highp samplers to depth only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant