Skip to content

Commit

Permalink
try out @ForWall's fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Aug 16, 2023
1 parent 7ccf53f commit a395e5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
15 changes: 5 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,7 @@ epaint = { git = "https://github.com/emilk/egui", rev = "f0addc339cd753f724253f3

# Temporary patch until next egui_tiles release
egui_tiles = { git = "https://github.com/rerun-io/egui_tiles", rev = "f835c4df1cc260a58122a8d37c7c3738902b9643" }


wgpu = { git = "https://github.com/fornwall/wgpu", rev = "25934854" }
wgpu-core = { git = "https://github.com/fornwall/wgpu", rev = "25934854" }
3 changes: 1 addition & 2 deletions crates/re_renderer/shader/types.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ alias Mat4 = mat4x4<f32>;

// Extreme values as documented by the spec:
// https://www.w3.org/TR/WGSL/#floating-point-types
//const f32max = 0x1.fffffep+127f; // Largest positive float value.
const f32max = 3.40282e38; // ⚠️ Should be above value, using a smaller one to work around https://github.com/gfx-rs/naga/issues/2436.
const f32max = 0x1.fffffep+127f; // Largest positive float value.
const f32min = -0x0.fffffep+127f; // Smallest negative float value.
const f32min_normal = 0x1p-126f; // Smallest positive normal float value.
// F16 is not implemented yet in Naga https://github.com/gfx-rs/naga/issues/1884
Expand Down

0 comments on commit a395e5a

Please sign in to comment.