mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-out] Fix atan2 math function
This commit is contained in:
committed by
Dzmitry Malyshau
parent
69bf7f5f17
commit
04b1f44396
@@ -1599,7 +1599,9 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
Mf::Acos => "acos",
|
||||
Mf::Asin => "asin",
|
||||
Mf::Atan => "atan",
|
||||
Mf::Atan2 => "atan2",
|
||||
// glsl doesn't have atan2 function
|
||||
// use two-argument variation of the atan function
|
||||
Mf::Atan2 => "atan",
|
||||
// decomposition
|
||||
Mf::Ceil => "ceil",
|
||||
Mf::Floor => "floor",
|
||||
|
||||
Reference in New Issue
Block a user