-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Use amount and perceptual roughness constants from Filament. #56822
Conversation
886a31a
to
c552717
Compare
I made a slider comparison with Calinou/test_specular_aliasing@61836cb: https://imgsli.com/OTEwNzM/1/2 This PR seems to get ever so slightly closer to ground truth, so I think the new values are a good idea. |
c552717
to
2f68c72
Compare
Removes a lot of the aliasing artifacts but I can't tell if it's correct. |
2f68c72
to
9962a2e
Compare
@Calinou can you post an imgsli of the new |
9962a2e
to
2d635b7
Compare
For another pr, it may be less confusing to remove https://github.com/godotengine/godot/blob/master/servers/rendering/renderer_rd/shaders/roughness_limiter.glsl. |
Done: https://imgsli.com/OTEwODc/1/2 It seems the new roughness limiter values are barely different from having the roughness limiter disabled in the first place. |
For someone who was wondering what 2022-01-15.15-01-05.mp4 |
2d635b7
to
e77c6c0
Compare
21589b6
to
ea477be
Compare
With the new changes, I can still barely see a difference between the current roughness limiter and the new one: https://imgsli.com/OTEyOTE The images are different, as demonstrated by dssim: |
I was told that:
So I was recommended to test something metallic but mostly geometry instead of shader detail, like not a geometric primitive plane. This matches the intuition that the current system uses surface normals. Edited:
|
ea477be
to
4ec19f1
Compare
From clayjohn. |
b3d5641
to
866094d
Compare
I wasn't able to find time to test this again. Probably needs to be salvaged. |
Use the roughness amount and roughness constants from Filament.
866094d
to
96f5000
Compare
Godot's settings now almost match the pdf's with a difference of like 0.03 |
Reviewing the constants from Filament and changed to the roughness amount of 1.0 and the roughness limit to be 0.002025. https://github.com/google/filament/blob/main/shaders/src/shading_lit.fs
https://github.com/google/filament/blob/9914eb84a4d613d609ae77a1d031fadf973db02c/shaders/src/common_material.fs#L6
Need some help doing screenshot comparison @Calinou .
Updated:
Edited:
Uses the 0.002025 constant now.