We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c52e7ad commit fa395a1Copy full SHA for fa395a1
platform/glsl.h
@@ -50,6 +50,7 @@ precision highp sampler2DArray;
50
#define mul( A, B ) ((A) * (B))
51
#define mul_tbn( A, B ) ((B) * (A))
52
#define saturate( A ) (clamp( A, 0.0, 1.0 ))
53
+#define atan2( A, B ) (atan(B, A))
54
#define ddx dFdx
55
#define ddy dFdy
56
#define _pmfx_unroll
platform/pmfx.h
@@ -1,5 +1,6 @@
1
#define chebyshev_normalize( V ) (V.xyz / max( max(abs(V.x), abs(V.y)), abs(V.z) ))
2
#define max3(v) max(max(v.x, v.y),v.z)
3
#define max4(v) max(max(max(v.x, v.y),v.z), v.w)
4
+#define PI 3.14159265358979323846264
5
6
0 commit comments