Skip to content

Fix BaseMaterial3D proximity fade for Vulkan#54285

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
briansemrau:fix-proximity-fade
Oct 27, 2021
Merged

Fix BaseMaterial3D proximity fade for Vulkan#54285
akien-mga merged 1 commit into
godotengine:masterfrom
briansemrau:fix-proximity-fade

Conversation

@briansemrau

Copy link
Copy Markdown
Contributor

Fixes #35646

The reason why this feature broke is described here: godotengine/godot-docs#5276

Should unblock implementing/testing #50669 for master.


Comparison using min rep from the issue:

Not working:
(using any value for proximity_fade_distance from 0 to 3000)
image

With this change:
(proximity_fade_distance = 0.3)
image

Vulkan uses different normalized device coordinates than OpenGL.
@Calinou Calinou added this to the 4.0 milestone Oct 26, 2021
@briansemrau briansemrau changed the title Fix StandardMaterial proximity fade for Vulkan Fix BaseMaterial3D proximity fade for Vulkan Oct 26, 2021
@akien-mga akien-mga merged commit 16edca8 into godotengine:master Oct 27, 2021
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

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.

Vulkan: BaseMaterial3D Proximity Fade is broken

4 participants