Files
test/intern/cycles/util
Weizhen Huang 77035192c9 Fix #126799: undefined behavior of shader node Arctan2 at (0, 0)
`atan2(0, 0)` is undefined on many platforms. To ensure consistent
result across platforms, we return `0` in this case.

Note only the behavior of the shader node `Artan2` is changed here.
During shading, we might still produce `atan2(0, 0)` internally and
cause different results across platforms, but that usually happens with
single samples and is not obvious, plus checking this condition all the
time is costly. If later we find out it's indeed necessary to change all
the invocation of `atan2(0, 0)`, we could change the wrapper functions
in `metal/compat.h` and `mtl_shader_defines.msl`.

Pull Request: https://projects.blender.org/blender/blender/pulls/126951
2024-09-03 11:44:59 +02:00
..
2023-09-24 14:52:38 +10:00
2024-04-01 16:47:57 +11:00
2024-03-06 16:14:34 +01:00
2024-06-19 09:33:32 +02:00
2024-02-02 10:48:22 +11:00
2024-01-29 01:03:47 +01:00
2023-09-24 14:52:38 +10:00
2024-03-06 16:14:34 +01:00
2024-04-01 16:47:57 +11:00