[glsl-out] Fix atan2 math function

This commit is contained in:
Igor Shaposhnik
2021-03-01 18:10:01 +03:00
committed by Dzmitry Malyshau
parent 69bf7f5f17
commit 04b1f44396

View File

@@ -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",