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

Take eye offset into account for depth in StandardMaterial3D #79049

Merged

Conversation

BastiaanOlij
Copy link
Contributor

When using depth in StandardMaterial3D the eye offset wasn't taken into account giving the material a flat look when viewed in stereoscopic.

Note that eye_offset is set to vec3(0, 0, 0) for normal rendering and should just end up being ignored.

Fixes #73404

@BastiaanOlij BastiaanOlij added bug topic:rendering topic:xr cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 5, 2023
@BastiaanOlij BastiaanOlij added this to the 4.2 milestone Jul 5, 2023
@BastiaanOlij BastiaanOlij self-assigned this Jul 5, 2023
@BastiaanOlij BastiaanOlij requested a review from a team July 5, 2023 11:04
@akien-mga akien-mga merged commit 5d23586 into godotengine:master Jul 7, 2023
13 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

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.

Parallax mapping not rendering in stereoscopic 3D in VR
4 participants