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

[3.x] Implement specular occlusion in SpatialMaterial #50603

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jul 19, 2021

3.x version of #50601.

Unlike #50601, ao_light_affect isn't taken into account at this point in the shader, so we don't need to move it.

Specular occlusion works by:

It is an approximate effect with a very low performance cost, but makes specular reflections more believable overall.

Preview

GLES3

Before After
Before After

GLES2

Before After
Before After

@Calinou Calinou requested a review from a team as a code owner July 19, 2021 02:04
@Calinou Calinou added this to the 3.4 milestone Jul 19, 2021
@Calinou Calinou changed the title Implement specular occlusion in SpatialMaterial Implement specular occlusion in SpatialMaterial (3.x) Jul 19, 2021
Specular occlusion works by:

- Applying specular occlusion and horizon specular occlusion
  as advised by Filament:
  google.github.io/filament/Filament.html#lighting/occlusion/specularocclusion
- Always treating Light Affect is if it was set to 1.0 for the purposes
  of specular lighting.

It is an approximate effect with a very low performance cost, but makes specular
reflections more believable overall.
@Calinou

This comment has been minimized.

@Calinou Calinou closed this Aug 9, 2021
@NHodgesVFX

This comment has been minimized.

@Calinou Calinou reopened this Aug 20, 2021
@Calinou Calinou removed the archived label Aug 20, 2021
@akien-mga akien-mga modified the milestones: 3.4, 3.5 Nov 8, 2021
@Calinou Calinou marked this pull request as draft February 7, 2022 19:40
@akien-mga akien-mga modified the milestones: 3.5, 3.x Jul 3, 2022
@Calinou Calinou marked this pull request as ready for review June 27, 2023 09:38
@Calinou Calinou changed the title Implement specular occlusion in SpatialMaterial (3.x) [3.x] Implement specular occlusion in SpatialMaterial Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants