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

Use correct normal for ReflectionProbe in GLES2 #43885

Merged
merged 1 commit into from
Nov 26, 2020
Merged

Conversation

Firepal
Copy link

@Firepal Firepal commented Nov 26, 2020

The GLES2 SpatialMaterial used unchanged normals from the vertex shader for ReflectionProbe reflections, and thus ignored the normal map. This commit makes ReflectionProbe reflections use the normals which can be perturbed by an input normal map.

Before:
reflections are not perturbed by normal map

After:
reflections are perturbed by normal map

This fixes #43873

@Firepal Firepal requested a review from reduz as a code owner November 26, 2020 12:23
@akien-mga akien-mga added this to the 3.2 milestone Nov 26, 2020
@akien-mga akien-mga requested a review from clayjohn November 26, 2020 12:30
@akien-mga akien-mga merged commit 803f6d2 into godotengine:3.2 Nov 26, 2020
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

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