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

workaround for angle project issue 7245, safari, iOS #64811

Merged

Conversation

jordo
Copy link
Contributor

@jordo jordo commented Aug 24, 2022

Workaround for an angle limitation on safari on iOS, and Macos (confirmed on both host platforms).

This fix makes particles render properly on safari.

Works around this reported angle issue (also seems like a problem on angle's vulkan backend).

@jordo jordo requested a review from a team as a code owner August 24, 2022 02:54
@@ -211,7 +211,7 @@ VERTEX_SHADER_CODE

xform = transpose(xform);

out_velocity_active.a = mix(0.0, 1.0, shader_active);
out_velocity_active.a = mix(0.0, 1.0, float(shader_active));
Copy link
Member

@RandomShaper RandomShaper Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just out_velocity_active.a = float(shader_active);?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Calinou Calinou added bug platform:web platform:ios topic:rendering topic:porting cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Aug 24, 2022
@Calinou Calinou added this to the 3.x milestone Aug 24, 2022
@akien-mga akien-mga modified the milestones: 3.x, 3.6 Aug 24, 2022
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@akien-mga akien-mga merged commit b76416a into godotengine:3.x Aug 24, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.5.1.

@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Aug 30, 2022
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.

4 participants