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

Stop using infinities in wgsl shaders #1594

Merged
merged 3 commits into from
Mar 15, 2023
Merged

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 15, 2023

This fixes rendering issues on Windows browsers (likely due to a bug in ANGLE?). However this operation is undefined by spec anyways. Instead we're now using float min/max instead. Wgsl float constants are now following wgsl spec to the letter.

Checklist

This fixes rendering issues on Windows browsers (likely due to a bug in ANGLE?). However this operation is undefined by spec anyways. Instead we're now using  float min/max instead. Wgsl float constants are now following wgsl spec to the letter.
@Wumpf Wumpf added 🪳 bug Something isn't working 🕸️ web regarding running the viewer in a browser 🔺 re_renderer affects re_renderer itself labels Mar 15, 2023
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

bugs found!

crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
@Wumpf Wumpf requested a review from emilk March 15, 2023 14:48
@Wumpf
Copy link
Member Author

Wumpf commented Mar 15, 2023

Related to #1195
(but not final fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants