Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GLSL hextiling node implementation #2094

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
testing include guard for MSL
msuzuki-nvidia committed Nov 1, 2024
commit 67eadaa6c3738357fdcfbed3d36b541a5b965fa5
5 changes: 5 additions & 0 deletions libraries/stdlib/genglsl/lib/mx_math.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef MX_MATH_GLSL
#define MX_MATH_GLSL

#define M_FLOAT_EPS 1e-8

#define mx_mod mod
@@ -45,3 +48,5 @@ mat3 mx_axis_rotation_matrix(vec3 a, float r)
a.z*a.x*omc - a.y*s, a.z*a.y*omc + a.x*s, a.z*a.z*omc + c
);
}

#endif // MX_MATH_GLSL
1 change: 1 addition & 0 deletions libraries/stdlib/genglsl/mx_hextilednormalmap.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "lib/$fileTransformUv"
#include "lib/mx_math.glsl"
#include "lib/mx_hextile.glsl"
#include "lib/mx_geometry.glsl"