diff --git a/about.html b/about.html index 6f176340..a2af86d2 100644 --- a/about.html +++ b/about.html @@ -158,8 +158,8 @@
MaterialX Learn
  • glTF Model Viewer
  • Graph Visualizer
  • -
  • Graph Editing
  • -
  • Shader Preview
  • +
  • Graph Editing
  • +
  • Shader Preview
  • Python Utilities
  • @@ -209,7 +209,7 @@
    MaterialX Learn
    -
    diff --git a/documents/about.html b/documents/about.html index 33f7f52f..8ee196eb 100644 --- a/documents/about.html +++ b/documents/about.html @@ -161,11 +161,13 @@
    Utilities @@ -214,7 +216,7 @@
    MaterialX Learn
    -
    diff --git a/documents/definitions/LamaAdd.html b/documents/definitions/LamaAdd.html index 30eb925d..bea98c99 100644 --- a/documents/definitions/LamaAdd.html +++ b/documents/definitions/LamaAdd.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaConductor.html b/documents/definitions/LamaConductor.html index 7ce2fda8..e642ab59 100644 --- a/documents/definitions/LamaConductor.html +++ b/documents/definitions/LamaConductor.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaDielectric.html b/documents/definitions/LamaDielectric.html index 2d15cf3a..eb61066f 100644 --- a/documents/definitions/LamaDielectric.html +++ b/documents/definitions/LamaDielectric.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaDiffuse.html b/documents/definitions/LamaDiffuse.html index 0889acd9..2df3c671 100644 --- a/documents/definitions/LamaDiffuse.html +++ b/documents/definitions/LamaDiffuse.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaEmission.html b/documents/definitions/LamaEmission.html index e8db7440..7f18182d 100644 --- a/documents/definitions/LamaEmission.html +++ b/documents/definitions/LamaEmission.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaLayer.html b/documents/definitions/LamaLayer.html index 8ca96300..0c448be7 100644 --- a/documents/definitions/LamaLayer.html +++ b/documents/definitions/LamaLayer.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaMix.html b/documents/definitions/LamaMix.html index 7dc0f9cf..ac4aba93 100644 --- a/documents/definitions/LamaMix.html +++ b/documents/definitions/LamaMix.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaSSS.html b/documents/definitions/LamaSSS.html index 6d5a83c4..ec281c61 100644 --- a/documents/definitions/LamaSSS.html +++ b/documents/definitions/LamaSSS.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaSheen.html b/documents/definitions/LamaSheen.html index 2a74b6f8..d51a77b0 100644 --- a/documents/definitions/LamaSheen.html +++ b/documents/definitions/LamaSheen.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/LamaTranslucent.html b/documents/definitions/LamaTranslucent.html index 199fcbf5..bf8cd609 100644 --- a/documents/definitions/LamaTranslucent.html +++ b/documents/definitions/LamaTranslucent.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/UsdPreviewSurface.html b/documents/definitions/UsdPreviewSurface.html index 900feeee..5b679217 100644 --- a/documents/definitions/UsdPreviewSurface.html +++ b/documents/definitions/UsdPreviewSurface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/UsdPrimvarReader.html b/documents/definitions/UsdPrimvarReader.html index 7e607b9b..9bb9a336 100644 --- a/documents/definitions/UsdPrimvarReader.html +++ b/documents/definitions/UsdPrimvarReader.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/UsdTransform2d.html b/documents/definitions/UsdTransform2d.html index 83fb325a..442ed286 100644 --- a/documents/definitions/UsdTransform2d.html +++ b/documents/definitions/UsdTransform2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/UsdUVTexture.html b/documents/definitions/UsdUVTexture.html index 4490acc8..2b6b6bd7 100644 --- a/documents/definitions/UsdUVTexture.html +++ b/documents/definitions/UsdUVTexture.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/absorption_vdf.html b/documents/definitions/absorption_vdf.html index 4ec2df4c..7fffe135 100644 --- a/documents/definitions/absorption_vdf.html +++ b/documents/definitions/absorption_vdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/absval.html b/documents/definitions/absval.html index af3bbe9b..a6530601 100644 --- a/documents/definitions/absval.html +++ b/documents/definitions/absval.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/acescg_to_lin_rec709.html b/documents/definitions/acescg_to_lin_rec709.html index 77f61b39..68d3b3df 100644 --- a/documents/definitions/acescg_to_lin_rec709.html +++ b/documents/definitions/acescg_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/acos.html b/documents/definitions/acos.html index e9fdfb67..8c6d7880 100644 --- a/documents/definitions/acos.html +++ b/documents/definitions/acos.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/add.html b/documents/definitions/add.html index 81e4c26b..0cddaff4 100644 --- a/documents/definitions/add.html +++ b/documents/definitions/add.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/adobergb_to_lin_rec709.html b/documents/definitions/adobergb_to_lin_rec709.html index a2f5f200..d4dd4783 100644 --- a/documents/definitions/adobergb_to_lin_rec709.html +++ b/documents/definitions/adobergb_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/all_definitions.html b/documents/definitions/all_definitions.html index 2631ac45..5970fe0e 100644 --- a/documents/definitions/all_definitions.html +++ b/documents/definitions/all_definitions.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ambientocclusion.html b/documents/definitions/ambientocclusion.html index 40459dbb..bc8ed1a7 100644 --- a/documents/definitions/ambientocclusion.html +++ b/documents/definitions/ambientocclusion.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/anisotropic_vdf.html b/documents/definitions/anisotropic_vdf.html index 70a659a2..403d5d57 100644 --- a/documents/definitions/anisotropic_vdf.html +++ b/documents/definitions/anisotropic_vdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/arrayappend.html b/documents/definitions/arrayappend.html index 18313be4..5809e19c 100644 --- a/documents/definitions/arrayappend.html +++ b/documents/definitions/arrayappend.html @@ -42,7 +42,7 @@ - @@ -170,8 +170,8 @@
    MaterialX Learn
  • glTF Model Viewer
  • Graph Visualizer
  • -
  • Graph Editing
  • -
  • Shader Preview
  • +
  • Graph Editing
  • +
  • Shader Preview
  • Python Utilities
  • diff --git a/documents/definitions/artistic_ior.html b/documents/definitions/artistic_ior.html index 74154d24..ab212fc9 100644 --- a/documents/definitions/artistic_ior.html +++ b/documents/definitions/artistic_ior.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/asin.html b/documents/definitions/asin.html index 1f400b5d..ab509c44 100644 --- a/documents/definitions/asin.html +++ b/documents/definitions/asin.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/atan2.html b/documents/definitions/atan2.html index 102e6ed2..c4a10ff2 100644 --- a/documents/definitions/atan2.html +++ b/documents/definitions/atan2.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/bitangent.html b/documents/definitions/bitangent.html index 67c34a3a..5839b818 100644 --- a/documents/definitions/bitangent.html +++ b/documents/definitions/bitangent.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/blackbody.html b/documents/definitions/blackbody.html index ed92efa3..2bdf1cf2 100644 --- a/documents/definitions/blackbody.html +++ b/documents/definitions/blackbody.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/blur.html b/documents/definitions/blur.html index ff6a44cd..e6550d08 100644 --- a/documents/definitions/blur.html +++ b/documents/definitions/blur.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/bump.html b/documents/definitions/bump.html index 6761fa06..67870d31 100644 --- a/documents/definitions/bump.html +++ b/documents/definitions/bump.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/burley_diffuse_bsdf.html b/documents/definitions/burley_diffuse_bsdf.html index 4c936b9a..a94e8d70 100644 --- a/documents/definitions/burley_diffuse_bsdf.html +++ b/documents/definitions/burley_diffuse_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/burn.html b/documents/definitions/burn.html index f9e614ee..76d22afa 100644 --- a/documents/definitions/burn.html +++ b/documents/definitions/burn.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ceil.html b/documents/definitions/ceil.html index 310d4169..6b8eaa35 100644 --- a/documents/definitions/ceil.html +++ b/documents/definitions/ceil.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/cellnoise2d.html b/documents/definitions/cellnoise2d.html index def4df7d..d9b12316 100644 --- a/documents/definitions/cellnoise2d.html +++ b/documents/definitions/cellnoise2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/cellnoise3d.html b/documents/definitions/cellnoise3d.html index ad42802c..d91e360c 100644 --- a/documents/definitions/cellnoise3d.html +++ b/documents/definitions/cellnoise3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/checkerboard.html b/documents/definitions/checkerboard.html index 4428e3c3..987cabab 100644 --- a/documents/definitions/checkerboard.html +++ b/documents/definitions/checkerboard.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/circle.html b/documents/definitions/circle.html index a5493beb..556d0cd0 100644 --- a/documents/definitions/circle.html +++ b/documents/definitions/circle.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/clamp.html b/documents/definitions/clamp.html index 5feb0360..d139a08e 100644 --- a/documents/definitions/clamp.html +++ b/documents/definitions/clamp.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/cloverleaf.html b/documents/definitions/cloverleaf.html index f60b58a0..d2fc1e7e 100644 --- a/documents/definitions/cloverleaf.html +++ b/documents/definitions/cloverleaf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/colorcorrect.html b/documents/definitions/colorcorrect.html index c5bf5db1..20448a53 100644 --- a/documents/definitions/colorcorrect.html +++ b/documents/definitions/colorcorrect.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/combine2.html b/documents/definitions/combine2.html index b5beff84..f89d325b 100644 --- a/documents/definitions/combine2.html +++ b/documents/definitions/combine2.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/combine3.html b/documents/definitions/combine3.html index bf2d11ff..eb118e04 100644 --- a/documents/definitions/combine3.html +++ b/documents/definitions/combine3.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/combine4.html b/documents/definitions/combine4.html index 2eb18ba6..93bd1b93 100644 --- a/documents/definitions/combine4.html +++ b/documents/definitions/combine4.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/conductor_bsdf.html b/documents/definitions/conductor_bsdf.html index 90b69ab6..da0b15b1 100644 --- a/documents/definitions/conductor_bsdf.html +++ b/documents/definitions/conductor_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/conical_edf.html b/documents/definitions/conical_edf.html index 01664039..066a5f13 100644 --- a/documents/definitions/conical_edf.html +++ b/documents/definitions/conical_edf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/constant.html b/documents/definitions/constant.html index 54af8888..e129e47d 100644 --- a/documents/definitions/constant.html +++ b/documents/definitions/constant.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/contrast.html b/documents/definitions/contrast.html index 2b1f723f..b4370ce0 100644 --- a/documents/definitions/contrast.html +++ b/documents/definitions/contrast.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/convert.html b/documents/definitions/convert.html index 2a2bbc98..d8b8685c 100644 --- a/documents/definitions/convert.html +++ b/documents/definitions/convert.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/cos.html b/documents/definitions/cos.html index fb74e53c..1c709ff7 100644 --- a/documents/definitions/cos.html +++ b/documents/definitions/cos.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/creatematrix.html b/documents/definitions/creatematrix.html index f7e6976d..d2a9d2b4 100644 --- a/documents/definitions/creatematrix.html +++ b/documents/definitions/creatematrix.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/crosshatch.html b/documents/definitions/crosshatch.html index cfc2e394..36089961 100644 --- a/documents/definitions/crosshatch.html +++ b/documents/definitions/crosshatch.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/crossproduct.html b/documents/definitions/crossproduct.html index e34a4cd2..c29c1d1f 100644 --- a/documents/definitions/crossproduct.html +++ b/documents/definitions/crossproduct.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/curveadjust.html b/documents/definitions/curveadjust.html index 09d737f6..61fa8935 100644 --- a/documents/definitions/curveadjust.html +++ b/documents/definitions/curveadjust.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/definitions_by_group.html b/documents/definitions/definitions_by_group.html index a7a9d604..36b34b07 100644 --- a/documents/definitions/definitions_by_group.html +++ b/documents/definitions/definitions_by_group.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/determinant.html b/documents/definitions/determinant.html index 57b6f8d0..9c6eeaef 100644 --- a/documents/definitions/determinant.html +++ b/documents/definitions/determinant.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/dielectric_bsdf.html b/documents/definitions/dielectric_bsdf.html index d2c1fda7..421082eb 100644 --- a/documents/definitions/dielectric_bsdf.html +++ b/documents/definitions/dielectric_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/difference.html b/documents/definitions/difference.html index a3390843..5dfad571 100644 --- a/documents/definitions/difference.html +++ b/documents/definitions/difference.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/directional_light.html b/documents/definitions/directional_light.html index 8bd035bd..574dba74 100644 --- a/documents/definitions/directional_light.html +++ b/documents/definitions/directional_light.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/disjointover.html b/documents/definitions/disjointover.html index 78df993f..5e207348 100644 --- a/documents/definitions/disjointover.html +++ b/documents/definitions/disjointover.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/disney_brdf_2012.html b/documents/definitions/disney_brdf_2012.html index 4c4c0c4a..6e17b426 100644 --- a/documents/definitions/disney_brdf_2012.html +++ b/documents/definitions/disney_brdf_2012.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/disney_bsdf_2015.html b/documents/definitions/disney_bsdf_2015.html index 40d0f0a0..38dbbc20 100644 --- a/documents/definitions/disney_bsdf_2015.html +++ b/documents/definitions/disney_bsdf_2015.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/displacement.html b/documents/definitions/displacement.html index 4194525f..977ed3f5 100644 --- a/documents/definitions/displacement.html +++ b/documents/definitions/displacement.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/distance.html b/documents/definitions/distance.html index a2e82bd7..09856736 100644 --- a/documents/definitions/distance.html +++ b/documents/definitions/distance.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/divide.html b/documents/definitions/divide.html index 9050c046..d4730f5b 100644 --- a/documents/definitions/divide.html +++ b/documents/definitions/divide.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/dodge.html b/documents/definitions/dodge.html index 5ed6be65..fc5a5426 100644 --- a/documents/definitions/dodge.html +++ b/documents/definitions/dodge.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/dot.html b/documents/definitions/dot.html index 7d893101..c5d47868 100644 --- a/documents/definitions/dot.html +++ b/documents/definitions/dot.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/dotproduct.html b/documents/definitions/dotproduct.html index bbc8d45e..415c6eb0 100644 --- a/documents/definitions/dotproduct.html +++ b/documents/definitions/dotproduct.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/exp.html b/documents/definitions/exp.html index f27028bb..49af2d26 100644 --- a/documents/definitions/exp.html +++ b/documents/definitions/exp.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/extract.html b/documents/definitions/extract.html index 9e39d27f..10b52cdb 100644 --- a/documents/definitions/extract.html +++ b/documents/definitions/extract.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/facingratio.html b/documents/definitions/facingratio.html index bacd2fb3..b198326f 100644 --- a/documents/definitions/facingratio.html +++ b/documents/definitions/facingratio.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/floor.html b/documents/definitions/floor.html index 49693a81..006b189b 100644 --- a/documents/definitions/floor.html +++ b/documents/definitions/floor.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/fractal3d.html b/documents/definitions/fractal3d.html index dd152265..9f32abd4 100644 --- a/documents/definitions/fractal3d.html +++ b/documents/definitions/fractal3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/frame.html b/documents/definitions/frame.html index c86239a4..b35acd00 100644 --- a/documents/definitions/frame.html +++ b/documents/definitions/frame.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/g18_rec709_to_lin_rec709.html b/documents/definitions/g18_rec709_to_lin_rec709.html index 84b86e63..dd534343 100644 --- a/documents/definitions/g18_rec709_to_lin_rec709.html +++ b/documents/definitions/g18_rec709_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/g22_ap1_to_lin_rec709.html b/documents/definitions/g22_ap1_to_lin_rec709.html index e56cca3b..1c38dc92 100644 --- a/documents/definitions/g22_ap1_to_lin_rec709.html +++ b/documents/definitions/g22_ap1_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/g22_rec709_to_lin_rec709.html b/documents/definitions/g22_rec709_to_lin_rec709.html index ae0ba0bf..a3e345d9 100644 --- a/documents/definitions/g22_rec709_to_lin_rec709.html +++ b/documents/definitions/g22_rec709_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/generalized_schlick_bsdf.html b/documents/definitions/generalized_schlick_bsdf.html index 1838c5af..108fc93d 100644 --- a/documents/definitions/generalized_schlick_bsdf.html +++ b/documents/definitions/generalized_schlick_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/generalized_schlick_edf.html b/documents/definitions/generalized_schlick_edf.html index 34727862..894b9f9c 100644 --- a/documents/definitions/generalized_schlick_edf.html +++ b/documents/definitions/generalized_schlick_edf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/geomcolor.html b/documents/definitions/geomcolor.html index baf9f9af..ca1eb2a8 100644 --- a/documents/definitions/geomcolor.html +++ b/documents/definitions/geomcolor.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/geompropvalue.html b/documents/definitions/geompropvalue.html index ed5a3cae..f0bb5fc8 100644 --- a/documents/definitions/geompropvalue.html +++ b/documents/definitions/geompropvalue.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/glossiness_anisotropy.html b/documents/definitions/glossiness_anisotropy.html index da789146..796b0570 100644 --- a/documents/definitions/glossiness_anisotropy.html +++ b/documents/definitions/glossiness_anisotropy.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_colorimage.html b/documents/definitions/gltf_colorimage.html index a41d00ef..8fcf2567 100644 --- a/documents/definitions/gltf_colorimage.html +++ b/documents/definitions/gltf_colorimage.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_image.html b/documents/definitions/gltf_image.html index bc5687e7..17b83c4e 100644 --- a/documents/definitions/gltf_image.html +++ b/documents/definitions/gltf_image.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_iridescence_thickness.html b/documents/definitions/gltf_iridescence_thickness.html index 0e5260ce..de763779 100644 --- a/documents/definitions/gltf_iridescence_thickness.html +++ b/documents/definitions/gltf_iridescence_thickness.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_normalmap.html b/documents/definitions/gltf_normalmap.html index 7cc58b72..46e07ed0 100644 --- a/documents/definitions/gltf_normalmap.html +++ b/documents/definitions/gltf_normalmap.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_pbr.html b/documents/definitions/gltf_pbr.html index 79dc156b..0eb04b79 100644 --- a/documents/definitions/gltf_pbr.html +++ b/documents/definitions/gltf_pbr.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/gltf_pbr_interactive.html b/documents/definitions/gltf_pbr_interactive.html index 66061dd4..1e7f533f 100644 --- a/documents/definitions/gltf_pbr_interactive.html +++ b/documents/definitions/gltf_pbr_interactive.html @@ -39,7 +39,7 @@ - diff --git a/documents/definitions/gooch_shade.html b/documents/definitions/gooch_shade.html index 3c76ba33..71aaf491 100644 --- a/documents/definitions/gooch_shade.html +++ b/documents/definitions/gooch_shade.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/grid.html b/documents/definitions/grid.html index 423f1bf3..a0b96c9f 100644 --- a/documents/definitions/grid.html +++ b/documents/definitions/grid.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/heighttonormal.html b/documents/definitions/heighttonormal.html index 44141f5a..304ea8dc 100644 --- a/documents/definitions/heighttonormal.html +++ b/documents/definitions/heighttonormal.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/hexagon.html b/documents/definitions/hexagon.html index 7352bf3f..88c7048f 100644 --- a/documents/definitions/hexagon.html +++ b/documents/definitions/hexagon.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/hsvadjust.html b/documents/definitions/hsvadjust.html index d4b92dc3..02741e77 100644 --- a/documents/definitions/hsvadjust.html +++ b/documents/definitions/hsvadjust.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/hsvtorgb.html b/documents/definitions/hsvtorgb.html index e31def87..eaad286d 100644 --- a/documents/definitions/hsvtorgb.html +++ b/documents/definitions/hsvtorgb.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ifequal.html b/documents/definitions/ifequal.html index 3c1cbea4..16904f96 100644 --- a/documents/definitions/ifequal.html +++ b/documents/definitions/ifequal.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ifgreater.html b/documents/definitions/ifgreater.html index bc20086b..78e4ea78 100644 --- a/documents/definitions/ifgreater.html +++ b/documents/definitions/ifgreater.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ifgreatereq.html b/documents/definitions/ifgreatereq.html index 79bfd39b..28ca1fc2 100644 --- a/documents/definitions/ifgreatereq.html +++ b/documents/definitions/ifgreatereq.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/image.html b/documents/definitions/image.html index 9e918c4b..534f58c6 100644 --- a/documents/definitions/image.html +++ b/documents/definitions/image.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/in.html b/documents/definitions/in.html index 63bb4451..e9c1a17e 100644 --- a/documents/definitions/in.html +++ b/documents/definitions/in.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/inside.html b/documents/definitions/inside.html index 9a554baf..8cb12b47 100644 --- a/documents/definitions/inside.html +++ b/documents/definitions/inside.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/invert.html b/documents/definitions/invert.html index 606e10f2..9c8ba88e 100644 --- a/documents/definitions/invert.html +++ b/documents/definitions/invert.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/invertmatrix.html b/documents/definitions/invertmatrix.html index 13478d4a..ac5811c9 100644 --- a/documents/definitions/invertmatrix.html +++ b/documents/definitions/invertmatrix.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/layer.html b/documents/definitions/layer.html index afd17b60..4671a1ee 100644 --- a/documents/definitions/layer.html +++ b/documents/definitions/layer.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/library_glossary.html b/documents/definitions/library_glossary.html index 09e20e53..f772b46a 100644 --- a/documents/definitions/library_glossary.html +++ b/documents/definitions/library_glossary.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/light.html b/documents/definitions/light.html index 6c2afe1e..09f36ba8 100644 --- a/documents/definitions/light.html +++ b/documents/definitions/light.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/lin_adobergb_to_lin_rec709.html b/documents/definitions/lin_adobergb_to_lin_rec709.html index ae42c579..f85f7506 100644 --- a/documents/definitions/lin_adobergb_to_lin_rec709.html +++ b/documents/definitions/lin_adobergb_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/lin_displayp3_to_lin_rec709.html b/documents/definitions/lin_displayp3_to_lin_rec709.html index b30b4228..4aaa1b46 100644 --- a/documents/definitions/lin_displayp3_to_lin_rec709.html +++ b/documents/definitions/lin_displayp3_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/line.html b/documents/definitions/line.html index 77e4a12b..849f80ed 100644 --- a/documents/definitions/line.html +++ b/documents/definitions/line.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ln.html b/documents/definitions/ln.html index e22c2659..65ab2f77 100644 --- a/documents/definitions/ln.html +++ b/documents/definitions/ln.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/luminance.html b/documents/definitions/luminance.html index afc1588d..2ba11406 100644 --- a/documents/definitions/luminance.html +++ b/documents/definitions/luminance.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/magnitude.html b/documents/definitions/magnitude.html index 736fbdd7..8d524e16 100644 --- a/documents/definitions/magnitude.html +++ b/documents/definitions/magnitude.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/mask.html b/documents/definitions/mask.html index d9f53158..f54c30c9 100644 --- a/documents/definitions/mask.html +++ b/documents/definitions/mask.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/matte.html b/documents/definitions/matte.html index 24627d30..1cb67ac9 100644 --- a/documents/definitions/matte.html +++ b/documents/definitions/matte.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/max.html b/documents/definitions/max.html index c83bcdb7..d408b9b8 100644 --- a/documents/definitions/max.html +++ b/documents/definitions/max.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/measured_edf.html b/documents/definitions/measured_edf.html index 2bd7c5f7..3db14cbc 100644 --- a/documents/definitions/measured_edf.html +++ b/documents/definitions/measured_edf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/min.html b/documents/definitions/min.html index 381df762..2a7c645e 100644 --- a/documents/definitions/min.html +++ b/documents/definitions/min.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/minus.html b/documents/definitions/minus.html index d5805006..bc15f58e 100644 --- a/documents/definitions/minus.html +++ b/documents/definitions/minus.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/mix.html b/documents/definitions/mix.html index 0e2be147..05b480f9 100644 --- a/documents/definitions/mix.html +++ b/documents/definitions/mix.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/modulo.html b/documents/definitions/modulo.html index dd4f0cfd..f0dcd0fe 100644 --- a/documents/definitions/modulo.html +++ b/documents/definitions/modulo.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/multiply.html b/documents/definitions/multiply.html index 1018eb19..6620cb4b 100644 --- a/documents/definitions/multiply.html +++ b/documents/definitions/multiply.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/noise2d.html b/documents/definitions/noise2d.html index faf15b6d..96854b37 100644 --- a/documents/definitions/noise2d.html +++ b/documents/definitions/noise2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/noise3d.html b/documents/definitions/noise3d.html index b2286de3..bbdaa746 100644 --- a/documents/definitions/noise3d.html +++ b/documents/definitions/noise3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/normal.html b/documents/definitions/normal.html index 4f563b85..d223d255 100644 --- a/documents/definitions/normal.html +++ b/documents/definitions/normal.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/normalize.html b/documents/definitions/normalize.html index 8ba3572a..8d107198 100644 --- a/documents/definitions/normalize.html +++ b/documents/definitions/normalize.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/normalmap.html b/documents/definitions/normalmap.html index b71af986..a6a80be3 100644 --- a/documents/definitions/normalmap.html +++ b/documents/definitions/normalmap.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/open_pbr_surface.html b/documents/definitions/open_pbr_surface.html index 7fe4a0f9..77654c43 100644 --- a/documents/definitions/open_pbr_surface.html +++ b/documents/definitions/open_pbr_surface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/oren_nayar_diffuse_bsdf.html b/documents/definitions/oren_nayar_diffuse_bsdf.html index 5f7ef40b..626d96e6 100644 --- a/documents/definitions/oren_nayar_diffuse_bsdf.html +++ b/documents/definitions/oren_nayar_diffuse_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/out.html b/documents/definitions/out.html index 38d12292..88905a4b 100644 --- a/documents/definitions/out.html +++ b/documents/definitions/out.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/outside.html b/documents/definitions/outside.html index b729580c..8e2ce7db 100644 --- a/documents/definitions/outside.html +++ b/documents/definitions/outside.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/over.html b/documents/definitions/over.html index 88e26570..a65ef6b2 100644 --- a/documents/definitions/over.html +++ b/documents/definitions/over.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/overlay.html b/documents/definitions/overlay.html index 3920e98c..a851c57a 100644 --- a/documents/definitions/overlay.html +++ b/documents/definitions/overlay.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/place2d.html b/documents/definitions/place2d.html index ccc11271..e89448a1 100644 --- a/documents/definitions/place2d.html +++ b/documents/definitions/place2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/plus.html b/documents/definitions/plus.html index 6016b3f1..fe70ded7 100644 --- a/documents/definitions/plus.html +++ b/documents/definitions/plus.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/point_light.html b/documents/definitions/point_light.html index 7f0a1cab..669f1e94 100644 --- a/documents/definitions/point_light.html +++ b/documents/definitions/point_light.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/position.html b/documents/definitions/position.html index 52427b41..a92c5c94 100644 --- a/documents/definitions/position.html +++ b/documents/definitions/position.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/power.html b/documents/definitions/power.html index 3fed7d80..2143e786 100644 --- a/documents/definitions/power.html +++ b/documents/definitions/power.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/premult.html b/documents/definitions/premult.html index 7b7e5400..7c43d904 100644 --- a/documents/definitions/premult.html +++ b/documents/definitions/premult.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ramp4.html b/documents/definitions/ramp4.html index 46870039..b41fbf1a 100644 --- a/documents/definitions/ramp4.html +++ b/documents/definitions/ramp4.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ramplr.html b/documents/definitions/ramplr.html index 9180f778..8ab35957 100644 --- a/documents/definitions/ramplr.html +++ b/documents/definitions/ramplr.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/ramptb.html b/documents/definitions/ramptb.html index f169c944..14f1590a 100644 --- a/documents/definitions/ramptb.html +++ b/documents/definitions/ramptb.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/randomcolor.html b/documents/definitions/randomcolor.html index 36973891..3b292be9 100644 --- a/documents/definitions/randomcolor.html +++ b/documents/definitions/randomcolor.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/randomfloat.html b/documents/definitions/randomfloat.html index f0aa6ae1..cb3a315a 100644 --- a/documents/definitions/randomfloat.html +++ b/documents/definitions/randomfloat.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/range.html b/documents/definitions/range.html index 3dcb1f49..d5d7b37e 100644 --- a/documents/definitions/range.html +++ b/documents/definitions/range.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/rec709_display_to_lin_rec709.html b/documents/definitions/rec709_display_to_lin_rec709.html index 15c752c0..210160ba 100644 --- a/documents/definitions/rec709_display_to_lin_rec709.html +++ b/documents/definitions/rec709_display_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/reflect.html b/documents/definitions/reflect.html index 8be4a81d..a23fda22 100644 --- a/documents/definitions/reflect.html +++ b/documents/definitions/reflect.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/refract.html b/documents/definitions/refract.html index 05d87739..3d77533c 100644 --- a/documents/definitions/refract.html +++ b/documents/definitions/refract.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/remap.html b/documents/definitions/remap.html index 098a112f..0536f9cb 100644 --- a/documents/definitions/remap.html +++ b/documents/definitions/remap.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/rgbtohsv.html b/documents/definitions/rgbtohsv.html index c92a8089..97b2d136 100644 --- a/documents/definitions/rgbtohsv.html +++ b/documents/definitions/rgbtohsv.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/rotate2d.html b/documents/definitions/rotate2d.html index 0ae7d03f..79959476 100644 --- a/documents/definitions/rotate2d.html +++ b/documents/definitions/rotate2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/rotate3d.html b/documents/definitions/rotate3d.html index d7e590d6..8bd47284 100644 --- a/documents/definitions/rotate3d.html +++ b/documents/definitions/rotate3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/roughness_anisotropy.html b/documents/definitions/roughness_anisotropy.html index af922bd4..d396fc7e 100644 --- a/documents/definitions/roughness_anisotropy.html +++ b/documents/definitions/roughness_anisotropy.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/roughness_dual.html b/documents/definitions/roughness_dual.html index f7cc7980..e57e5ebf 100644 --- a/documents/definitions/roughness_dual.html +++ b/documents/definitions/roughness_dual.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/round.html b/documents/definitions/round.html index b8e1fdd0..c53cc3e9 100644 --- a/documents/definitions/round.html +++ b/documents/definitions/round.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/safepower.html b/documents/definitions/safepower.html index 91a45e18..396f2452 100644 --- a/documents/definitions/safepower.html +++ b/documents/definitions/safepower.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/saturate.html b/documents/definitions/saturate.html index ae2d932a..0847c67d 100644 --- a/documents/definitions/saturate.html +++ b/documents/definitions/saturate.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/screen.html b/documents/definitions/screen.html index 391d89a8..5b083741 100644 --- a/documents/definitions/screen.html +++ b/documents/definitions/screen.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/separate2.html b/documents/definitions/separate2.html index 32a09575..33ab5fd7 100644 --- a/documents/definitions/separate2.html +++ b/documents/definitions/separate2.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/separate3.html b/documents/definitions/separate3.html index b5abb4b2..4d3dadef 100644 --- a/documents/definitions/separate3.html +++ b/documents/definitions/separate3.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/separate4.html b/documents/definitions/separate4.html index 3a918fe5..74f2393f 100644 --- a/documents/definitions/separate4.html +++ b/documents/definitions/separate4.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/sheen_bsdf.html b/documents/definitions/sheen_bsdf.html index 41dd2b4e..4e3b7052 100644 --- a/documents/definitions/sheen_bsdf.html +++ b/documents/definitions/sheen_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/sign.html b/documents/definitions/sign.html index 01b585ab..bab56ecb 100644 --- a/documents/definitions/sign.html +++ b/documents/definitions/sign.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/sin.html b/documents/definitions/sin.html index 04afe93a..de67605d 100644 --- a/documents/definitions/sin.html +++ b/documents/definitions/sin.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/smoothstep.html b/documents/definitions/smoothstep.html index 256f44f0..bc7fcec7 100644 --- a/documents/definitions/smoothstep.html +++ b/documents/definitions/smoothstep.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/splitlr.html b/documents/definitions/splitlr.html index ece5564c..236389ef 100644 --- a/documents/definitions/splitlr.html +++ b/documents/definitions/splitlr.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/splittb.html b/documents/definitions/splittb.html index e9205384..bd7a2b92 100644 --- a/documents/definitions/splittb.html +++ b/documents/definitions/splittb.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/spot_light.html b/documents/definitions/spot_light.html index 5ab45cbb..9e994f2c 100644 --- a/documents/definitions/spot_light.html +++ b/documents/definitions/spot_light.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/sqrt.html b/documents/definitions/sqrt.html index 37ca3315..62b7367b 100644 --- a/documents/definitions/sqrt.html +++ b/documents/definitions/sqrt.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/srgb_displayp3_to_lin_rec709.html b/documents/definitions/srgb_displayp3_to_lin_rec709.html index f07b2a30..a7ac07b0 100644 --- a/documents/definitions/srgb_displayp3_to_lin_rec709.html +++ b/documents/definitions/srgb_displayp3_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/srgb_texture_to_lin_rec709.html b/documents/definitions/srgb_texture_to_lin_rec709.html index f4401b23..b5bb54de 100644 --- a/documents/definitions/srgb_texture_to_lin_rec709.html +++ b/documents/definitions/srgb_texture_to_lin_rec709.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/standard_surface.html b/documents/definitions/standard_surface.html index 62925fd4..ec31b50f 100644 --- a/documents/definitions/standard_surface.html +++ b/documents/definitions/standard_surface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/standard_surface_to_UsdPreviewSurface.html b/documents/definitions/standard_surface_to_UsdPreviewSurface.html index faea322a..c7d40a16 100644 --- a/documents/definitions/standard_surface_to_UsdPreviewSurface.html +++ b/documents/definitions/standard_surface_to_UsdPreviewSurface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/standard_surface_to_gltf_pbr.html b/documents/definitions/standard_surface_to_gltf_pbr.html index 76f38011..70137a5b 100644 --- a/documents/definitions/standard_surface_to_gltf_pbr.html +++ b/documents/definitions/standard_surface_to_gltf_pbr.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/subsurface_bsdf.html b/documents/definitions/subsurface_bsdf.html index 42ddb50e..dc20a4d6 100644 --- a/documents/definitions/subsurface_bsdf.html +++ b/documents/definitions/subsurface_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/subtract.html b/documents/definitions/subtract.html index e0ce1879..b73d1574 100644 --- a/documents/definitions/subtract.html +++ b/documents/definitions/subtract.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/surface.html b/documents/definitions/surface.html index eec0ccde..55df3c49 100644 --- a/documents/definitions/surface.html +++ b/documents/definitions/surface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/surface_unlit.html b/documents/definitions/surface_unlit.html index 42280a78..ed6c2d71 100644 --- a/documents/definitions/surface_unlit.html +++ b/documents/definitions/surface_unlit.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/surfacematerial.html b/documents/definitions/surfacematerial.html index cd69e795..6d4cdeda 100644 --- a/documents/definitions/surfacematerial.html +++ b/documents/definitions/surfacematerial.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/switch.html b/documents/definitions/switch.html index 6a309859..2a877896 100644 --- a/documents/definitions/switch.html +++ b/documents/definitions/switch.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/swizzle.html b/documents/definitions/swizzle.html index 8d7598b2..42db76d3 100644 --- a/documents/definitions/swizzle.html +++ b/documents/definitions/swizzle.html @@ -42,7 +42,7 @@ - @@ -170,8 +170,8 @@
    MaterialX Learn
  • glTF Model Viewer
  • Graph Visualizer
  • -
  • Graph Editing
  • -
  • Shader Preview
  • +
  • Graph Editing
  • +
  • Shader Preview
  • Python Utilities
  • diff --git a/documents/definitions/tan.html b/documents/definitions/tan.html index 78bf2d52..a200a967 100644 --- a/documents/definitions/tan.html +++ b/documents/definitions/tan.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/tangent.html b/documents/definitions/tangent.html index c5156a9d..8a5a5f68 100644 --- a/documents/definitions/tangent.html +++ b/documents/definitions/tangent.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/texcoord.html b/documents/definitions/texcoord.html index 5ef17c12..3e7c5440 100644 --- a/documents/definitions/texcoord.html +++ b/documents/definitions/texcoord.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/thin_film_bsdf.html b/documents/definitions/thin_film_bsdf.html index 6ed258e0..16c45718 100644 --- a/documents/definitions/thin_film_bsdf.html +++ b/documents/definitions/thin_film_bsdf.html @@ -42,7 +42,7 @@ - @@ -170,8 +170,8 @@
    MaterialX Learn
  • glTF Model Viewer
  • Graph Visualizer
  • -
  • Graph Editing
  • -
  • Shader Preview
  • +
  • Graph Editing
  • +
  • Shader Preview
  • Python Utilities
  • diff --git a/documents/definitions/thin_surface.html b/documents/definitions/thin_surface.html index 88ef1e5a..bc02828f 100644 --- a/documents/definitions/thin_surface.html +++ b/documents/definitions/thin_surface.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/tiledcircles.html b/documents/definitions/tiledcircles.html index 76d52707..92300210 100644 --- a/documents/definitions/tiledcircles.html +++ b/documents/definitions/tiledcircles.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/tiledcloverleafs.html b/documents/definitions/tiledcloverleafs.html index f042195c..72e6b90d 100644 --- a/documents/definitions/tiledcloverleafs.html +++ b/documents/definitions/tiledcloverleafs.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/tiledhexagons.html b/documents/definitions/tiledhexagons.html index 48f813e5..8ed9050a 100644 --- a/documents/definitions/tiledhexagons.html +++ b/documents/definitions/tiledhexagons.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/tiledimage.html b/documents/definitions/tiledimage.html index fa1a15c3..26937590 100644 --- a/documents/definitions/tiledimage.html +++ b/documents/definitions/tiledimage.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/time.html b/documents/definitions/time.html index 52d0c6b6..59602841 100644 --- a/documents/definitions/time.html +++ b/documents/definitions/time.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/transformmatrix.html b/documents/definitions/transformmatrix.html index 0354c144..2d89763c 100644 --- a/documents/definitions/transformmatrix.html +++ b/documents/definitions/transformmatrix.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/transformnormal.html b/documents/definitions/transformnormal.html index b8d1b256..75df145f 100644 --- a/documents/definitions/transformnormal.html +++ b/documents/definitions/transformnormal.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/transformpoint.html b/documents/definitions/transformpoint.html index b28794a8..38a8a3bc 100644 --- a/documents/definitions/transformpoint.html +++ b/documents/definitions/transformpoint.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/transformvector.html b/documents/definitions/transformvector.html index 1ac9bf38..a431c121 100644 --- a/documents/definitions/transformvector.html +++ b/documents/definitions/transformvector.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/translucent_bsdf.html b/documents/definitions/translucent_bsdf.html index 6359878d..f4e8d786 100644 --- a/documents/definitions/translucent_bsdf.html +++ b/documents/definitions/translucent_bsdf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/transpose.html b/documents/definitions/transpose.html index 210e2cf6..a4025842 100644 --- a/documents/definitions/transpose.html +++ b/documents/definitions/transpose.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/trianglewave.html b/documents/definitions/trianglewave.html index b0e0faaf..55f14137 100644 --- a/documents/definitions/trianglewave.html +++ b/documents/definitions/trianglewave.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/triplanarprojection.html b/documents/definitions/triplanarprojection.html index 4d4ea76f..a711bf00 100644 --- a/documents/definitions/triplanarprojection.html +++ b/documents/definitions/triplanarprojection.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/unifiednoise2d.html b/documents/definitions/unifiednoise2d.html index c46a0104..300f36ea 100644 --- a/documents/definitions/unifiednoise2d.html +++ b/documents/definitions/unifiednoise2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/unifiednoise3d.html b/documents/definitions/unifiednoise3d.html index 2fc414f3..45b481d6 100644 --- a/documents/definitions/unifiednoise3d.html +++ b/documents/definitions/unifiednoise3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/uniform_edf.html b/documents/definitions/uniform_edf.html index e0b3daed..b6f0d968 100644 --- a/documents/definitions/uniform_edf.html +++ b/documents/definitions/uniform_edf.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/unpremult.html b/documents/definitions/unpremult.html index dd4e0d33..c420df6f 100644 --- a/documents/definitions/unpremult.html +++ b/documents/definitions/unpremult.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/viewdirection.html b/documents/definitions/viewdirection.html index 72a170d9..1583eb01 100644 --- a/documents/definitions/viewdirection.html +++ b/documents/definitions/viewdirection.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/volume.html b/documents/definitions/volume.html index c1eca8f2..a0f3fef4 100644 --- a/documents/definitions/volume.html +++ b/documents/definitions/volume.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/volumematerial.html b/documents/definitions/volumematerial.html index 1c355cf4..c4d0854c 100644 --- a/documents/definitions/volumematerial.html +++ b/documents/definitions/volumematerial.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/worleynoise2d.html b/documents/definitions/worleynoise2d.html index 3d45d0f1..14c27f5e 100644 --- a/documents/definitions/worleynoise2d.html +++ b/documents/definitions/worleynoise2d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/definitions/worleynoise3d.html b/documents/definitions/worleynoise3d.html index 8732835b..fbb75803 100644 --- a/documents/definitions/worleynoise3d.html +++ b/documents/definitions/worleynoise3d.html @@ -42,7 +42,7 @@ - @@ -168,11 +168,13 @@
    Utilities diff --git a/documents/design.html b/documents/design.html index 7e823a24..9afd0cbe 100644 --- a/documents/design.html +++ b/documents/design.html @@ -161,11 +161,13 @@
    Utilities diff --git a/documents/documents.html b/documents/documents.html index 8dca890b..19e302f7 100644 --- a/documents/documents.html +++ b/documents/documents.html @@ -161,11 +161,13 @@
    Utilities diff --git a/documents/gltfViewer.html b/documents/gltfViewer.html index 46bb9b7d..c3751ece 100644 --- a/documents/gltfViewer.html +++ b/documents/gltfViewer.html @@ -161,11 +161,13 @@
    Utilities @@ -270,7 +272,7 @@

    glTF Viewer

    - + - + @@ -161,11 +161,13 @@
    Utilities @@ -219,9 +221,17 @@
    MaterialX Learn - @@ -254,391 +264,262 @@

    MaterialX Learn

    -
    -
    -

    Updates

    -
    -
    -
    April, 2024
    - Shaders and Graph -
    -
    - Shader reflection example - Graph editing example -
    -
    -
  • - Shader Preview utility has full reflection - information available including generation for: OSL, GLSL, MetalSL, Vulkan and MDL language - targets, and uniform/path reflection as controlled by "complete" vs "reduced" generation. -
  • -
  • - Graph Editing - utility uses a new connectivity and graph builder JS module and has support for - generation of definitions from node graphs. -
  • -
  • - Python notebooks: A new connectivity book has been with accompanying support classes in - mxtraversal.py - for connectivity extractiom and Mermaid graph building logic now fully exposed and reusable. - A shader reflection utility been added to the shader generation notebook. - Definition creation and other notebooks have be updated to 1.39. -
  • -
    -
    - -
    March, 2024
    - Utilities, Definitions -
    -
    - Mobile 3d column layout -
    -
    -
      -
    • The property panel for definitions has been revamped to be more 3D editing and mobile - friendly. See the design document for more - information. -
    • -
    • - - Graphic Design - asset documentation is now available for the site. -
    • - -
    • - The definitions reference is now in sync with 1.39 and includes a - "Node Usage" notebook with code to determine the node usage in nodegraph implementations and - which implementations use a given node. -
    • -
    -
    -
    -
    - -
    February, 2024
    -
    - Utilities -
    -
    - Javascript Graphing -
    -
    - Javascript Rendering -
    -
    -

    - Start of new modular utilities using MaterialX Javascript modules: Core and ShaderGen. Latter is now - exposed as a public module. Utilities including syntax - hilighting, - graph - generation and code generation, and 3D viewer. - Viewer requirements have been a driver for core updates. -

    -

    - Definition library comparisons are now available under the "Reference->Library Revisions" menu. This - includes comparisons of the standard library from 1.38.0 to - 1.38.9. The latest version denotes the start of a NPR library and the inclusion of the OpenPBR - reference implementation. -

    - -
    - - Tutorials and Workflows -
    November 2023 - January, 2024
    -

    New additions have mostly been centered pipeline / Web development - including glTF/JSON interop and glTF - incorporation into the QuiltiX - editoras well as additional OpenUSD support utilities. - - QuiltiX GLTF JSON USD -

    - Start of interactive previews for references starting with - glTF pbr. - Reference Preview Rendering - Improvements to glTF - utility viewer support also added including drag and drop of glTF and environment files. -

    -

    - Working group information for a new procedural texture - glTF (JSON) specification can be found for members of the Khronos glTF PBR working group. -

    -

    - Additional work to improve supported graphs, usability and performance of the ASWF MaterialX web viewer - can be found here. - (OpenPBR graph shown in viewer below) - OpenPBR node graph - (Note: Graphs used to create reference images are now previewable in the web viewer) -

    -
    -
    - - -
    - -
    -
    -
    -
    -

    News

    -
    -
    -
    April, 2024
    +
    +
    +

    Site Retirement

    +

    The official release of MaterialX 1.39 will mark the end of updates for this site. This is + due to lack of funding, and user interest. + This site and corresponding GitHub repositories will not be archived. Utilities may end up residing in + repos and/or published to npm or PyPi. + Anyone wishing to capture or continue this work please contact me. + +

    +

    New Initiative

    +
    +

    - Read about the latest updates for Khronos glTF shading - networks on the presentation page. The update on this extension was presented at GDC 2024, with the - WIP draft specification available on the Khronos github. + Procedural pattern / shader generation using MaterialX graphs is the current focus. + A supporting Web-based shader graph editor is now publicly available here. + A video demonstrating some features can be found here

    -
    March, 2024
    -

    MaterialX 1.39 Sync - The next major version release will 1.39. As such, the site is now be tracking that development branch. - Where applicable information on the 1.38.10 patch release will be included. +

    + Analysis on how this was built, how it can be integrated into a pipeline as well as usage examples will be forthcoming in a new site and repoitory.

    -
    February, 2024
    -
    - MaterialX 1.38.9 Sync -

    This site has a tagged release which sync's with the official MaterialX 1.38.9 - release. Includes: -

    -
      -
    • - Standard library updates and the recent start of an NPR library. -
    • -
    • - Inclusion of - - OpenPBR MaterialX reference implementation (See reference section). - OpenBLR Graph -
    • -
    -
    - Development Updates -
    November 2023 - January, 2024
    -

    - Extraction and creation of PyPi Python packages with corresponding documentation with - Jupyter notebook examples available for general use: -

    -
    - -
    -
    -
    - - -

    Learn

    -
    - -
    - -
    -
    - Learn -

    -

    Learn

    - MaterialX concepts and interfaces and usage

    - +
    +
    -
    - -
    - - -
    -
    - Bootstrap -

    -

    Utilities

    - Utilities to aid with manipulating and enhancing MaterialX

    - - +
    +
    +
    -
    - -
    -
    - Bootstrap -

    -

    Develop

    - Developing using MaterialX through examples and tutorials

    - - +
    +
    -
    - -
    -
    - Bootstrap -

    -

    Workflows

    - Articles and helpers related to various workflows

    - +
    + From left to right: glTF sample boombox material, custom hatch material, custom "Emerald Peaks Wallpaper" material from GPUOpen Materialx Library +
    +
    + + +

    Learn

    +
    + +
    + +
    +
    + Learn +

    +

    Learn

    + MaterialX concepts and interfaces and usage

    + +
    +
    + + + +
    +
    + Bootstrap +

    +

    Utilities

    + Utilities to aid with manipulating and enhancing MaterialX

    + + +
    +
    + +
    +
    + Bootstrap +

    +

    Develop

    + Developing using MaterialX through examples and tutorials

    + + +
    +
    + +
    +
    + Bootstrap +

    +

    Workflows

    + Articles and helpers related to various workflows

    + +
    +
    + +
    +
    + Bootstrap +

    +

    Design

    + UX design and implementation architecture for the site

    + +
    +
    -
    -
    - Bootstrap -

    -

    Design

    - UX design and implementation architecture for the site

    - +
    -
    - -
    -
    - -
    diff --git a/javascript/JsMaterialXNodeEditor.js b/javascript/JsMaterialXNodeEditor.js index 6908ffd4..241f050e 100644 --- a/javascript/JsMaterialXNodeEditor.js +++ b/javascript/JsMaterialXNodeEditor.js @@ -178,7 +178,7 @@ class MxMaterialXHandler extends MxGraphHandler { loadDefaultDocument(editor, materialFilename) { - function loadInitialText(filePath) { + function loadInitialText(filePath, handler) { try { fetch(filePath) .then(response => response.blob()) @@ -195,7 +195,7 @@ class MxMaterialXHandler extends MxGraphHandler { } } - loadInitialText(materialFilename); + loadInitialText(materialFilename, this); } // Initialize the MaterialX handler for the given editor @@ -239,7 +239,7 @@ class MxMaterialXHandler extends MxGraphHandler { } editor.debugOutput("Registered node types:" + definitionsList.length, 0, false); - //editor.displayNodeTypes(); + editor.displayNodeTypes(); if (materialFilename.length> 0) { @@ -261,7 +261,11 @@ class MxMaterialXHandler extends MxGraphHandler { console.log('Failed to save graph to document'); return; } + return this.findRenderableItemsInDoc(mdoc); + } + findRenderableItemsInDoc(mdoc) { + const materialNodes = mdoc.getMaterialNodes(); let shaderList = []; let renderableItems = []; @@ -269,7 +273,7 @@ class MxMaterialXHandler extends MxGraphHandler { for (let i = 0; i < materialNodes.length; ++i) { let materialNode = materialNodes[i]; if (materialNode) { - console.log('Scan material: ', materialNode.getNamePath()); + //console.log('Scan material: ', materialNode.getNamePath()); let shaderNodes = ne_mx.getShaderNodes(materialNode) if (shaderNodes.length > 0) { let shaderNodePath = shaderNodes[0].getNamePath() @@ -1739,6 +1743,17 @@ class MxMaterialXHandler extends MxGraphHandler { else { textArea.setValue(fileContents); } + + // Update render items in UI + let renderableItemUpdater = MxShadingGraphEditor.theEditor.ui.renderableItemUpdater; + if (renderableItemUpdater) { + let renderableItems = this.findRenderableItemsInDoc(doc); + if (!renderableItems || renderableItems.length == 0) { + MxShadingGraphEditor.theEditor.debugOutput('No renderable items found in graph: ' + fileName, 1, false); + } + renderableItemUpdater(renderableItems); + } + } catch (error) { MxShadingGraphEditor.theEditor.debugOutput('Error reading document: ' + fileName + '. Error: ' + error, 2, false); } @@ -2071,7 +2086,7 @@ class MxShadingGraphEditor { var img = document.createElement("img"); img.id = id + "_img"; img.src = imageSrc; - img.classList.add("img-fluid"); // Bootstrap class for responsive images + img.classList.add("img-fluid"); // Create text element var span = document.createElement("span"); @@ -2081,9 +2096,9 @@ class MxShadingGraphEditor { // Create button element var button = document.createElement("button"); button.id = id; - button.classList.add("btn", "btn-sm", "btn-outline-secondary", "form-control", "form-control-sm"); // Bootstrap button classes - button.appendChild(img); // Append image to button - button.appendChild(span); // Append text to button + button.classList.add("btn", "btn-sm", "btn-outline-secondary", "form-control", "form-control-sm"); + button.appendChild(img); + button.appendChild(span); return button; } @@ -2145,14 +2160,14 @@ class MxShadingGraphEditor { return fetch(uri) .then(response => { if (response.ok) { - return true; + return Promise.resolve(true); } else { - return false; + return Promise.resolve(false); } }) .catch(error => { console.log('Error checking URI:', error); - return false; + return Promise.resolve(false); }); } @@ -2475,26 +2490,31 @@ class MxShadingGraphEditor { // Check if there is a link if (nodeInputLink) { - var upstreamLink = null; + let upstreamLink = null; - var nodegraph = node.graph; - var link = nodegraph.links[nodeInputLink]; + let nodegraph = node.graph; + let link = nodegraph.links[nodeInputLink]; //console.log('link:', link); - var linkId = link && link.origin_id; - var linkNode = linkId && nodegraph.getNodeById(linkId); + let linkId = link && link.origin_id; + let linkNode = linkId && nodegraph.getNodeById(linkId); if (linkNode) { //console.log('linkNode:', linkNode); - var linkSlot = link.origin_slot; + let linkSlot = link.origin_slot; //console.log('linkSlot:', linkSlot); - var linkOutput = linkNode.outputs[linkSlot]; + let linkOutput = linkNode.outputs[linkSlot]; //console.log('linkOutput:', linkOutput); upstreamLink = linkNode.title + '.' + linkOutput.name; //console.log('upstreamLink:', upstreamLink); - var id = "__pp:" + inputName; - var input = this.createButtonWithImageAndText("./Images/arrow_up_white.svg", upstreamLink, id); + let id = "__pp:" + inputName; + let buttonText = upstreamLink; + // Truncate long names + if (buttonText.length > 15) { + buttonText = buttonText.substring(0, 15) + "..."; + } + let input = this.createButtonWithImageAndText("./Images/arrow_up_white.svg", buttonText, id); //var input = document.createElement("div"); //input.id = "__pp:" + inputName; @@ -3320,6 +3340,10 @@ class MxShadingGraphEditor { // Get the list container var nodeList = this.ui.nodeTypesList; + if (!nodeList) { + return; + } + // Clear all children of nodeList while (nodeList.firstChild) { nodeList.removeChild(nodeList.firstChild); diff --git a/javascript/mtlx_js_utilities.html b/javascript/graphing_utilities.html similarity index 99% rename from javascript/mtlx_js_utilities.html rename to javascript/graphing_utilities.html index b74d26aa..775612f5 100644 --- a/javascript/mtlx_js_utilities.html +++ b/javascript/graphing_utilities.html @@ -188,11 +188,13 @@
    Utilities diff --git a/javascript/materialxgraph/index.js b/javascript/materialxgraph/index.js deleted file mode 100644 index 58985884..00000000 --- a/javascript/materialxgraph/index.js +++ /dev/null @@ -1,569 +0,0 @@ -// -// Class: MaterialXGraphBuilder -// - buildGraphDictionary(doc) : Build graph dictionary from MaterialX document -// - buildConnections(doc, graphElement, connections) : Build connections from MaterialX document -// - execute() : Execute the graph building process -// - exportToJSON(filename, inputFileName) : Export the graph to JSON file -// - importFromJSON(filename) : Import the graph from JSON file -// - getDictionary() : Get the graph dictionary -// - getConnections() : Get the connections -// - getParentGraph(elem) : Get the parent graph element -// - getDefaultOutput(node) : Get the default output of a node -// - appendPath(p1, p2) : Append path p2 to p1 -// - updateGraphDictionaryPath(key, item, nodetype, type, value, graphDictionary) : Update graph dictionary path -// - updateGraphDictionaryItem(item, graphDictionary) : Update graph dictionary item -// - printGraphDictionary(graphDictionary) : Print the graph dictionary -// - setIncludeGraphs(graphs) : Set the include graphs -// -export class MaterialXGraphBuilder -{ - constructor(doc) { - this.doc = doc; - this.graphDictionary = {}; - this.connections = []; - this.includeGraphs = ''; - } - - setIncludeGraphs(graphs) { - this.includeGraphs = graphs; - } - - getDictionary() { - return this.graphDictionary; - } - - getConnections() { - return this.connections; - } - - updateGraphDictionaryPath(key, item, nodetype, type, value, graphDictionary) { - if (key in graphDictionary) { - graphDictionary[key].push([item, nodetype, type, value]); - } else { - graphDictionary[key] = [[item, nodetype, type, value]]; - } - } - - updateGraphDictionaryItem(item, graphDictionary) { - if (!item) return; - - let parentElem = item.getParent(); - if (!parentElem || !(parentElem instanceof mx.GraphElement)) return; - - let key = parentElem.getNamePath(); - let value = item.getNamePath(); - let itemType = item.getType(); - let itemCategory = item.getCategory(); - let itemValue = ''; - - if (item instanceof mx.Node) { - let inputs = item.getInputs(); - if (inputs.length === 1) { - itemValue = inputs[0].getValueString(); - } - } else if (item instanceof mx.Input) { - itemValue = item.getValueString(); - } - - this.updateGraphDictionaryPath(key, value, itemCategory, itemType, itemValue, graphDictionary); - } - - printGraphDictionary(graphDictionary) { - for (let graphPath in graphDictionary) { - if (graphPath === '') { - console.log('Root Document:'); - } else { - console.log(graphPath + ':'); - } - - let filter = 'input'; - for (let item of graphDictionary[graphPath]) { - if (item[1] !== filter) continue; - console.log('- ', item); - } - - filter = 'output'; - for (let item of graphDictionary[graphPath]) { - if (item[1] !== filter) continue; - console.log('- ', item); - } - - filter = ['output', 'input']; - for (let item of graphDictionary[graphPath]) { - if (!filter.includes(item[1])) { - console.log('- ', item); - } - } - } - } - - getParentGraph(elem) { - while (elem && !(elem instanceof mx.GraphElement)) { - elem = elem.getParent(); - } - return elem; - } - - getDefaultOutput(node) { - if (!node) return ''; - - let defaultOutput = null; - if (node instanceof mx.Node) { - let nodedef = node.getNodeDef(); - if (nodedef) { - defaultOutput = nodedef.getActiveOutputs()[0]; - } else { - console.log('Cannot find nodedef for node:', node.getNamePath()); - } - } else if (node instanceof mx.NodeGraph) { - defaultOutput = node.getOutputs()[0]; - } - - return defaultOutput ? defaultOutput.getName() : ''; - } - - appendPath(p1, p2) { - return p2 ? p1 + '/' + p2 : p1; - } - - buildPortConnection(doc, portPath, connections, portIsNode) { - let root = doc.getDocument(); - let port = root.getDescendant(portPath); - if (!port) { - console.log('Element not found:', portPath); - return; - } - - if (!(port instanceof mx.Input) && !(port instanceof mx.Output)) { - console.log('Element is not an input or output'); - return; - } - - let parent = port.getParent(); - let parentPath = parent.getNamePath(); - let parentGraph = this.getParentGraph(port); - - if ((port instanceof mx.Input) && (parent instanceof mx.NodeGraph)) { - parentGraph = parentGraph.getParent(); - } - - if (!parentGraph) { - console.log('Cannot find parent graph of port', port); - //return; - } - let parentGraphPath = parentGraph.getNamePath(); - - let outputName = port.getOutputString(); - - let destNode = portIsNode ? portPath : parentPath; - let destPort = portIsNode ? '' : port.getName(); - - let nodename = port.getAttribute('nodename'); - if (nodename) { - let result; - if (!parentGraphPath) { - result = [this.appendPath(nodename, ''), outputName, destNode, destPort, 'nodename']; - } else { - result = [this.appendPath(parentGraphPath, nodename), outputName, destNode, destPort, 'nodename']; - } - connections.push(result); - return; - } - - let nodegraph = port.getNodeGraphString(); - if (nodegraph) { - if (!outputName) { - outputName = this.getDefaultOutput(parentGraph.getChild(nodegraph)); - } - let result; - if (!parentGraphPath) { - result = [this.appendPath(nodegraph, outputName), '', destNode, destPort, 'nodename']; - } else { - result = [this.appendPath(parentGraphPath, nodegraph), outputName, destNode, destPort, 'nodegraph']; - } - connections.push(result); - return; - } - - let interfaceName = port.getInterfaceName(); - if (interfaceName) { - let result; - if (!parentGraphPath) { - if (!outputName) { - outputName = this.getDefaultOutput(parentGraph.getChild(interfaceName)); - } - result = [this.appendPath(interfaceName, outputName), '', destNode, destPort, 'nodename']; - } else { - let outputName = ''; - let itemValue = ''; - if (destNode === parentGraphPath + '/' + interfaceName) { - let dictItem = this.graphDictionary[parentGraphPath]; - if (dictItem) { - let found = false; - for (let item of dictItem) { - if (item[0] === parentGraphPath + '/' + interfaceName) { - found = true; - break; - } - } - if (found) { - console.log('Warning: Rename duplicate interface:', parentGraphPath + '/' + interfaceName + ':in'); - interfaceName = interfaceName + ':in'; - } - } - } - - let found = false; - let dictItem = this.graphDictionary[parentGraphPath]; - if (dictItem) { - for (let item of dictItem) { - if (item[0] === parentGraphPath + '/' + interfaceName) { - found = true; - break; - } - } - } - - if (!found) { - this.updateGraphDictionaryPath(parentGraphPath, parentGraphPath + '/' + interfaceName, 'input', port.getType(), itemValue, this.graphDictionary); - } - result = [this.appendPath(parentGraphPath, interfaceName), outputName, destNode, destPort, 'interfacename']; - } - connections.push(result); - return; - } - - if (outputName) { - let result; - if (!parentGraphPath) { - result = [this.appendPath(outputName, ''), '', parentPath, port.getName(), 'nodename']; - } else { - result = [this.appendPath(parentGraphPath, outputName), '', parentPath, port.getName(), 'output']; - } - connections.push(result); - return; - } - } - - buildConnections(doc, graphElement, connections) { - let root = doc.getDocument(); - - for (let elem of graphElement.getChildren()) { - if (!elem.hasSourceUri()) { - if (elem instanceof mx.Input) { - this.buildPortConnection(root, elem.getNamePath(), connections, true); - } else if (elem instanceof mx.Output) { - this.buildPortConnection(root, elem.getNamePath(), connections, true); - } else if (elem instanceof mx.Node) { - let nodeInputs = elem.getInputs(); - for (let nodeInput of nodeInputs) { - this.buildPortConnection(root, nodeInput.getNamePath(), connections, false); - } - } else if (elem instanceof mx.NodeGraph) { - let nodedef = elem.getNodeDef(); - if (nodedef) { - connections.push([elem.getNamePath(), '', nodedef.getName(), '', 'nodedef']); - } - let visited = new Set(); - let path = elem.getNamePath(); - if (!visited.has(path)) { - visited.add(path); - this.buildConnections(root, elem, connections); - } - } - } - } - } - - buildGraphDictionary(doc) { - let graphDictionary = {}; - let root = doc.getDocument(); - let skipped = []; - - for (let elem of doc.getChildren()) { - if (elem.hasSourceUri()) { - skipped.push(elem.getNamePath()); - } else { - if ((elem instanceof mx.Input) || (elem instanceof mx.Output) || (elem instanceof mx.Node)) { - //console.log('Scan element:', elem.getNamePath(), elem.getCategory(), mx.NodeGraph); - this.updateGraphDictionaryItem(elem, graphDictionary); - } else if (elem instanceof mx.NodeGraph) { - //console.log('Scan graph:', elem.getNamePath(), elem.getCategory(), mx.NodeGraph); - if (elem.getAttribute('nodedef')) { - let nodeDef = elem.getAttribute('nodedef'); - nodeDef = root.getDescendant(nodeDef); - if (nodeDef) { - for (let nodeDefInput of nodeDef.getInputs()) { - if (elem.getChild("def_" + nodeDefInput.getName())) { - continue; - } - let newInput = elem.addInput("def_" + nodeDefInput.getName(), nodeDefInput.getType()); - newInput.copyContentFrom(nodeDefInput); - } - } - } - - for (let node of elem.getInputs()) { - this.updateGraphDictionaryItem(node, graphDictionary); - } - for (let node of elem.getOutputs()) { - this.updateGraphDictionaryItem(node, graphDictionary); - } - for (let node of elem.getNodes()) { - this.updateGraphDictionaryItem(node, graphDictionary); - } - for (let node of elem.getTokens()) { - this.updateGraphDictionaryItem(node, graphDictionary); - } - } else if ((elem instanceof mx.NodeDef) || (elem instanceof mx.Token)) { - this.updateGraphDictionaryItem(elem, graphDictionary); - } - } - } - - return graphDictionary; - } - - execute() { - this.connections = []; - this.graphDictionary = {}; - - let graphElement = this.doc; - if (this.includeGraphs) { - let graph = this.includeGraphs; - graphElement = this.doc.getDescendant(graph); - if (graphElement) { - graphElement.setSourceUri(''); - console.log('Scan graph:', graphElement.getNamePath()); - } else { - console.log('Graph not found:', graph); - } - } - - this.graphDictionary = this.buildGraphDictionary(graphElement); - this.buildConnections(this.doc, graphElement, this.connections); - } - - getJSON(inputFileName) { - let data = { - doc: 'Graph connections for: ' + inputFileName, - //copyright: 'Copyright 2024, NanMu Consulting. kwokcb@gmail.com', - graph: this.graphDictionary, - connections: this.connections - }; - return JSON.stringify(data, null, 4); - } - - exportToJSON(filename, inputFileName) { - let data = { - doc: 'Graph connections for: ' + inputFileName, - //copyright: 'Copyright 2024, NanMu Consulting. kwokcb@gmail.com', - graph: this.graphDictionary, - connections: this.connections - }; - - //let fs = require('fs'); - //fs.writeFileSync(filename, JSON.stringify(data, null, 2)); - - let dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(data, null, 2)); - let downloadAnchorNode = document.createElement('a'); - downloadAnchorNode.setAttribute("href", dataStr); - downloadAnchorNode.setAttribute("download", filename); - document.body.appendChild(downloadAnchorNode); // required for firefox - downloadAnchorNode.click(); - downloadAnchorNode.remove(); - } - - importFromJSON(filename) { - let fs = require('fs'); - let data = JSON.parse(fs.readFileSync(filename, 'utf8')); - this.graphDictionary = data.graph; - this.connections = data.connections; - } -} - -// Class: MermaidGraphExporter -// - setOrientation(orientation) : Set the orientation -// - setEmitCategory(emitCategory) : Set the emit category -// - setEmitType(emitType) : Set the emit type -// - execute() : Execute the graph building process -// - write(filename) : Write the graph to file -// - getGraph(wrap) : Get the graph -// - export() : Export the graph -// -export class MermaidGraphExporter -{ - constructor(graphDictionary, connections) { - this.graphDictionary = graphDictionary; - this.connections = connections; - this.mermaid = []; - this.orientation = 'LR'; - this.emitCategory = false; - this.emitType = false; - } - - setOrientation(orientation) { - this.orientation = orientation; - } - - setEmitCategory(emitCategory) { - this.emitCategory = emitCategory; - } - - setEmitType(emitType) { - this.emitType = emitType; - } - - - sanitizeString(path) - { - path = path.replace('/default', '/default1'); - path = path.replace('/', '_'); - path = path.replace(' ', '_'); - return path; - } - - execute() { - let mermaid = []; - mermaid.push(`graph ${this.orientation}`); - - for (let graphPath in this.graphDictionary) { - let isSubgraph = graphPath !== ''; - if (isSubgraph) { - mermaid.push(` subgraph ${graphPath}`); - } - - for (let item of this.graphDictionary[graphPath]) { - let path = item[0]; - let label = path.split('/').pop(); - // Sanitize the path name - path = this.sanitizeString(path) - - if (this.emitCategory) { - label = item[1]; - } - - if (this.emitType) { - label += `:${item[2]}`; - } - - if (item[3]) { - label += `:${item[3]}`; - } - - if (['input', 'output'].includes(item[1])) { - mermaid.push(` ${path}([${label}])`); - mermaid.push(` style ${path} fill:#09D, color:#FFF`); - } else if (item[1] === 'surfacematerial') { - mermaid.push(` ${path}([${label}])`); - mermaid.push(` style ${path} fill:#090, color:#FFF`); - } else if (item[1] === 'nodedef') { - mermaid.push(` ${path}[[${label}]]`); - //mermaid.push(` style ${path} fill:#02F, color:#FFF`); - } else if (['ifequal', 'ifgreatereq', 'switch'].includes(item[1])) { - mermaid.push(` ${path}{${label}}`); - mermaid.push(` style ${path} fill:#C72, color:#FFF`); - } else if (item[1] === 'token') { - mermaid.push(` ${path}{{${label}}}`); - mermaid.push(` style ${path} fill:#222, color:#FFF`); - } else if (item[1] === 'constant') { - mermaid.push(` ${path}([${label}])`); - mermaid.push(` style ${path} fill:#888, color:#000`); - } else { - mermaid.push(` ${path}[${label}]`); - } - } - - if (isSubgraph) { - mermaid.push(' end'); - } - } - - this.mermaid = mermaid; - - for (let connection of this.connections) - { - // Sanitize path names - connection[0] = this.sanitizeString(connection[0]) - connection[2] = this.sanitizeString(connection[2]) - - let source = connection[0]; - let dest = connection[2]; - let edge = ''; - - if (connection[1].length > 0) { - if (connection[3].length > 0) { - edge = `${connection[1]}-->${connection[3]}`; - } else { - edge = connection[1]; - } - } else { - edge = connection[3]; - } - - let connectString = ''; - - if (connection[4] === 'value') { - let sourceNode = source.split('/').pop(); - connectString = edge.length > 0 - ? ` ${sourceNode}["${source}"] --${edge}--> ${dest}` - : ` ${sourceNode}["${source}"] --> ${dest}`; - } else { - connectString = edge.length > 0 - ? ` ${source} --"${edge}"--> ${dest}` - : ` ${source} --> ${dest}`; - } - - mermaid.push(connectString); - } - - return mermaid; - } - - write(filename) { - let fs = require('fs'); - fs.writeFileSync(filename, this.export()); - } - - getGraph(wrap = true) { - let result = wrap - ? '```mermaid\n' + this.mermaid.join('\n') + '\n```' - : this.mermaid.join('\n'); - - result = result.replace('/default', '/default1'); - return result; - } - - export() { - return this.getGraph(); - } -} - -export function createMermaidGraphFromDocument(doc, opts) -{ - let graphBuilder = new MaterialXGraphBuilder(doc); - graphBuilder.setIncludeGraphs(opts.graphs) - console.log('Creating graph from MaterialX document...') - graphBuilder.execute() - if (opts.saveJSON) - { - console.log('Exporting graph to JSON (graph.json)...') - graphBuilder.exportToJSON('graph.json', opts.inputFileName) - } - jsonString = graphBuilder.getJSON(opts.inputFileName) - - let exporter = new MermaidGraphExporter( - graphBuilder.getDictionary(), - graphBuilder.getConnections() - ); - - console.log('Creating Mermaid from graph...') - exporter.setOrientation(opts.orientation); - exporter.setEmitCategory(opts.emitCategory); - exporter.setEmitType(opts.emitType); - exporter.execute(); - - result = exporter.getGraph(false) - return [result, jsonString]; -} - diff --git a/javascript/materialxgraph/package.json b/javascript/materialxgraph/package.json deleted file mode 100644 index 1b476e3a..00000000 --- a/javascript/materialxgraph/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "materialxgraph", - "version": "1.0.0", - "type": "module", - "description": "Set of utilities for MaterialX graphs", - "main": "index.js", - "keywords": [ - "materialx", - "mermaid", - "shader", - "nodegraph" - ], - "author": "Bernard Kwok. kwokcb@gmail.com", - "license": "CC BY-NC 4.0" -} diff --git a/javascript/materialxnode/dist/mtlx_stdlib.js b/javascript/materialxnode/dist/mtlx_stdlib.js deleted file mode 100644 index d9ef2fc5..00000000 --- a/javascript/materialxnode/dist/mtlx_stdlib.js +++ /dev/null @@ -1,27895 +0,0 @@ - -// MaterialX node type: mtlx/input/input_float -// -function mtlx_input_input_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_float'; - this.nodedef_node = 'input'; - this.nodedef_type = 'float'; - this.nodedef_group = 'input'; - this.addInput('in', 'float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'float'); - this.title = 'input_float'; - this.desc = "MaterialX:mtlx/input/input_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#753'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_float', mtlx_input_input_float); - -// MaterialX node type: mtlx/input/input_color3 -// -function mtlx_input_input_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_color3'; - this.nodedef_node = 'input'; - this.nodedef_type = 'color3'; - this.nodedef_group = 'input'; - this.addInput('in', 'color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'color3'); - this.title = 'input_color3'; - this.desc = "MaterialX:mtlx/input/input_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#679'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_color3', mtlx_input_input_color3); - -// MaterialX node type: mtlx/input/input_color4 -// -function mtlx_input_input_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_color4'; - this.nodedef_node = 'input'; - this.nodedef_type = 'color4'; - this.nodedef_group = 'input'; - this.addInput('in', 'color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'color4'); - this.title = 'input_color4'; - this.desc = "MaterialX:mtlx/input/input_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#899'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_color4', mtlx_input_input_color4); - -// MaterialX node type: mtlx/input/input_vector2 -// -function mtlx_input_input_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector2'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector2'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector2'); - this.title = 'input_vector2'; - this.desc = "MaterialX:mtlx/input/input_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector2', mtlx_input_input_vector2); - -// MaterialX node type: mtlx/input/input_vector3 -// -function mtlx_input_input_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector3'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector3'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector3'); - this.title = 'input_vector3'; - this.desc = "MaterialX:mtlx/input/input_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A76'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector3', mtlx_input_input_vector3); - -// MaterialX node type: mtlx/input/input_vector4 -// -function mtlx_input_input_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector4'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector4'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector4'); - this.title = 'input_vector4'; - this.desc = "MaterialX:mtlx/input/input_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A98'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector4', mtlx_input_input_vector4); - -// MaterialX node type: mtlx/input/input_matrix33 -// -function mtlx_input_input_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_matrix33'; - this.nodedef_node = 'input'; - this.nodedef_type = 'matrix33'; - this.nodedef_group = 'input'; - this.addInput('in', 'matrix33'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'matrix33'); - this.title = 'input_matrix33'; - this.desc = "MaterialX:mtlx/input/input_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#333'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_matrix33', mtlx_input_input_matrix33); - -// MaterialX node type: mtlx/input/input_matrix44 -// -function mtlx_input_input_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_matrix44'; - this.nodedef_node = 'input'; - this.nodedef_type = 'matrix44'; - this.nodedef_group = 'input'; - this.addInput('in', 'matrix44'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'matrix44'); - this.title = 'input_matrix44'; - this.desc = "MaterialX:mtlx/input/input_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#444'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_matrix44', mtlx_input_input_matrix44); - -// MaterialX node type: mtlx/input/input_integer -// -function mtlx_input_input_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_integer'; - this.nodedef_node = 'input'; - this.nodedef_type = 'integer'; - this.nodedef_group = 'input'; - this.addInput('in', 'integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'integer'); - this.title = 'input_integer'; - this.desc = "MaterialX:mtlx/input/input_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_integer', mtlx_input_input_integer); - -// MaterialX node type: mtlx/input/input_string -// -function mtlx_input_input_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_string'; - this.nodedef_node = 'input'; - this.nodedef_type = 'string'; - this.nodedef_group = 'input'; - this.addInput('in', 'string'); - this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'string'); - this.title = 'input_string'; - this.desc = "MaterialX:mtlx/input/input_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#888'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_string', mtlx_input_input_string); - -// MaterialX node type: mtlx/input/input_boolean -// -function mtlx_input_input_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_boolean'; - this.nodedef_node = 'input'; - this.nodedef_type = 'boolean'; - this.nodedef_group = 'input'; - this.addInput('in', 'boolean'); - this.addProperty('in', false, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'boolean'); - this.title = 'input_boolean'; - this.desc = "MaterialX:mtlx/input/input_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#48A'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_boolean', mtlx_input_input_boolean); - -// MaterialX node type: mtlx/input/input_filename -// -function mtlx_input_input_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_filename'; - this.nodedef_node = 'input'; - this.nodedef_type = 'filename'; - this.nodedef_group = 'input'; - this.addInput('in', 'filename'); - this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'filename'); - this.title = 'input_filename'; - this.desc = "MaterialX:mtlx/input/input_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#58E'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_filename', mtlx_input_input_filename); - -// MaterialX node type: mtlx/input/input_BSDF -// -function mtlx_input_input_BSDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_BSDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'BSDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'BSDF'); - this.addProperty('in', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'BSDF'); - this.title = 'input_BSDF'; - this.desc = "MaterialX:mtlx/input/input_BSDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_BSDF', mtlx_input_input_BSDF); - -// MaterialX node type: mtlx/input/input_EDF -// -function mtlx_input_input_EDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_EDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'EDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'EDF'); - this.addProperty('in', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'EDF'); - this.title = 'input_EDF'; - this.desc = "MaterialX:mtlx/input/input_EDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_EDF', mtlx_input_input_EDF); - -// MaterialX node type: mtlx/input/input_VDF -// -function mtlx_input_input_VDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_VDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'VDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'VDF'); - this.addProperty('in', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'VDF'); - this.title = 'input_VDF'; - this.desc = "MaterialX:mtlx/input/input_VDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_VDF', mtlx_input_input_VDF); - -// MaterialX node type: mtlx/input/input_surfaceshader -// -function mtlx_input_input_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_surfaceshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'surfaceshader'); - this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'surfaceshader'); - this.title = 'input_surfaceshader'; - this.desc = "MaterialX:mtlx/input/input_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_surfaceshader', mtlx_input_input_surfaceshader); - -// MaterialX node type: mtlx/input/input_volumeshader -// -function mtlx_input_input_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_volumeshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'volumeshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'volumeshader'); - this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'volumeshader'); - this.title = 'input_volumeshader'; - this.desc = "MaterialX:mtlx/input/input_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_volumeshader', mtlx_input_input_volumeshader); - -// MaterialX node type: mtlx/input/input_displacementshader -// -function mtlx_input_input_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_displacementshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'displacementshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'displacementshader'); - this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'displacementshader'); - this.title = 'input_displacementshader'; - this.desc = "MaterialX:mtlx/input/input_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_displacementshader', mtlx_input_input_displacementshader); - -// MaterialX node type: mtlx/input/input_lightshader -// -function mtlx_input_input_lightshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_lightshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'lightshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'lightshader'); - this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'lightshader'); - this.title = 'input_lightshader'; - this.desc = "MaterialX:mtlx/input/input_lightshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_lightshader', mtlx_input_input_lightshader); - -// MaterialX node type: mtlx/input/input_material -// -function mtlx_input_input_material() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_material'; - this.nodedef_node = 'input'; - this.nodedef_type = 'material'; - this.nodedef_group = 'input'; - this.addInput('in', 'material'); - this.addProperty('in', '', 'material',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'material'); - this.title = 'input_material'; - this.desc = "MaterialX:mtlx/input/input_material"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_material', mtlx_input_input_material); - -// MaterialX node type: mtlx/input/input_vector2array -// -function mtlx_input_input_vector2array() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector2array'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector2array'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector2array'); - this.addProperty('in', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector2array'); - this.title = 'input_vector2array'; - this.desc = "MaterialX:mtlx/input/input_vector2array"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector2array', mtlx_input_input_vector2array); - -// MaterialX node type: mtlx/output/output_float -// -function mtlx_output_output_float() { - this.title = 'output_float'; - this.desc = "MaterialX Node :mtlx/output/output_float"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'float'; - this.nodedef_group = 'output'; - this.addInput('in', 'float'); - this.addProperty('in', 0, 'float'); - this.addOutput('out', 'float'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#753'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_float', mtlx_output_output_float); - -// MaterialX node type: mtlx/output/output_color3 -// -function mtlx_output_output_color3() { - this.title = 'output_color3'; - this.desc = "MaterialX Node :mtlx/output/output_color3"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'color3'; - this.nodedef_group = 'output'; - this.addInput('in', 'color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3'); - this.addOutput('out', 'color3'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#679'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_color3', mtlx_output_output_color3); - -// MaterialX node type: mtlx/output/output_color4 -// -function mtlx_output_output_color4() { - this.title = 'output_color4'; - this.desc = "MaterialX Node :mtlx/output/output_color4"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'color4'; - this.nodedef_group = 'output'; - this.addInput('in', 'color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4'); - this.addOutput('out', 'color4'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#899'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_color4', mtlx_output_output_color4); - -// MaterialX node type: mtlx/output/output_vector2 -// -function mtlx_output_output_vector2() { - this.title = 'output_vector2'; - this.desc = "MaterialX Node :mtlx/output/output_vector2"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector2'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2'); - this.addOutput('out', 'vector2'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector2', mtlx_output_output_vector2); - -// MaterialX node type: mtlx/output/output_vector3 -// -function mtlx_output_output_vector3() { - this.title = 'output_vector3'; - this.desc = "MaterialX Node :mtlx/output/output_vector3"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector3'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3'); - this.addOutput('out', 'vector3'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A76'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector3', mtlx_output_output_vector3); - -// MaterialX node type: mtlx/output/output_vector4 -// -function mtlx_output_output_vector4() { - this.title = 'output_vector4'; - this.desc = "MaterialX Node :mtlx/output/output_vector4"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector4'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4'); - this.addOutput('out', 'vector4'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A98'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector4', mtlx_output_output_vector4); - -// MaterialX node type: mtlx/output/output_matrix33 -// -function mtlx_output_output_matrix33() { - this.title = 'output_matrix33'; - this.desc = "MaterialX Node :mtlx/output/output_matrix33"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'matrix33'; - this.nodedef_group = 'output'; - this.addInput('in', 'matrix33'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33'); - this.addOutput('out', 'matrix33'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#333'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_matrix33', mtlx_output_output_matrix33); - -// MaterialX node type: mtlx/output/output_matrix44 -// -function mtlx_output_output_matrix44() { - this.title = 'output_matrix44'; - this.desc = "MaterialX Node :mtlx/output/output_matrix44"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'matrix44'; - this.nodedef_group = 'output'; - this.addInput('in', 'matrix44'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44'); - this.addOutput('out', 'matrix44'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#444'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_matrix44', mtlx_output_output_matrix44); - -// MaterialX node type: mtlx/output/output_integer -// -function mtlx_output_output_integer() { - this.title = 'output_integer'; - this.desc = "MaterialX Node :mtlx/output/output_integer"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'integer'; - this.nodedef_group = 'output'; - this.addInput('in', 'integer'); - this.addProperty('in', 0, 'integer'); - this.addOutput('out', 'integer'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_integer', mtlx_output_output_integer); - -// MaterialX node type: mtlx/output/output_string -// -function mtlx_output_output_string() { - this.title = 'output_string'; - this.desc = "MaterialX Node :mtlx/output/output_string"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'string'; - this.nodedef_group = 'output'; - this.addInput('in', 'string'); - this.addProperty('in', '', 'string'); - this.addOutput('out', 'string'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#888'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_string', mtlx_output_output_string); - -// MaterialX node type: mtlx/output/output_boolean -// -function mtlx_output_output_boolean() { - this.title = 'output_boolean'; - this.desc = "MaterialX Node :mtlx/output/output_boolean"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'boolean'; - this.nodedef_group = 'output'; - this.addInput('in', 'boolean'); - this.addProperty('in', false, 'boolean'); - this.addOutput('out', 'boolean'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#48A'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_boolean', mtlx_output_output_boolean); - -// MaterialX node type: mtlx/output/output_filename -// -function mtlx_output_output_filename() { - this.title = 'output_filename'; - this.desc = "MaterialX Node :mtlx/output/output_filename"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'filename'; - this.nodedef_group = 'output'; - this.addInput('in', 'filename'); - this.addProperty('in', '', 'filename'); - this.addOutput('out', 'filename'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#58E'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_filename', mtlx_output_output_filename); - -// MaterialX node type: mtlx/output/output_BSDF -// -function mtlx_output_output_BSDF() { - this.title = 'output_BSDF'; - this.desc = "MaterialX Node :mtlx/output/output_BSDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'BSDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'BSDF'); - this.addProperty('in', '', 'BSDF'); - this.addOutput('out', 'BSDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_BSDF', mtlx_output_output_BSDF); - -// MaterialX node type: mtlx/output/output_EDF -// -function mtlx_output_output_EDF() { - this.title = 'output_EDF'; - this.desc = "MaterialX Node :mtlx/output/output_EDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'EDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'EDF'); - this.addProperty('in', '', 'EDF'); - this.addOutput('out', 'EDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_EDF', mtlx_output_output_EDF); - -// MaterialX node type: mtlx/output/output_VDF -// -function mtlx_output_output_VDF() { - this.title = 'output_VDF'; - this.desc = "MaterialX Node :mtlx/output/output_VDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'VDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'VDF'); - this.addProperty('in', '', 'VDF'); - this.addOutput('out', 'VDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_VDF', mtlx_output_output_VDF); - -// MaterialX node type: mtlx/output/output_surfaceshader -// -function mtlx_output_output_surfaceshader() { - this.title = 'output_surfaceshader'; - this.desc = "MaterialX Node :mtlx/output/output_surfaceshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'surfaceshader'); - this.addProperty('in', '', 'surfaceshader'); - this.addOutput('out', 'surfaceshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_surfaceshader', mtlx_output_output_surfaceshader); - -// MaterialX node type: mtlx/output/output_volumeshader -// -function mtlx_output_output_volumeshader() { - this.title = 'output_volumeshader'; - this.desc = "MaterialX Node :mtlx/output/output_volumeshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'volumeshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'volumeshader'); - this.addProperty('in', '', 'volumeshader'); - this.addOutput('out', 'volumeshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_volumeshader', mtlx_output_output_volumeshader); - -// MaterialX node type: mtlx/output/output_displacementshader -// -function mtlx_output_output_displacementshader() { - this.title = 'output_displacementshader'; - this.desc = "MaterialX Node :mtlx/output/output_displacementshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'displacementshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'displacementshader'); - this.addProperty('in', '', 'displacementshader'); - this.addOutput('out', 'displacementshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_displacementshader', mtlx_output_output_displacementshader); - -// MaterialX node type: mtlx/output/output_lightshader -// -function mtlx_output_output_lightshader() { - this.title = 'output_lightshader'; - this.desc = "MaterialX Node :mtlx/output/output_lightshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'lightshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'lightshader'); - this.addProperty('in', '', 'lightshader'); - this.addOutput('out', 'lightshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_lightshader', mtlx_output_output_lightshader); - -// MaterialX node type: mtlx/output/output_material -// -function mtlx_output_output_material() { - this.title = 'output_material'; - this.desc = "MaterialX Node :mtlx/output/output_material"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'material'; - this.nodedef_group = 'output'; - this.addInput('in', 'material'); - this.addProperty('in', '', 'material'); - this.addOutput('out', 'material'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_material', mtlx_output_output_material); - -// MaterialX node type: mtlx/output/output_vector2array -// -function mtlx_output_output_vector2array() { - this.title = 'output_vector2array'; - this.desc = "MaterialX Node :mtlx/output/output_vector2array"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector2array'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector2array'); - this.addProperty('in', '', 'vector2array'); - this.addOutput('out', 'vector2array'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector2array', mtlx_output_output_vector2array); - -// MaterialX node type: mtlx/pbr/oren_nayar_diffuse_bsdf -// -function mtlx_pbr_oren_nayar_diffuse_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'oren_nayar_diffuse_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_oren_nayar_diffuse_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'oren_nayar_diffuse_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/oren_nayar_diffuse_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_node = 'oren_nayar_diffuse_bsdf'; -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/oren_nayar_diffuse_bsdf',mtlx_pbr_oren_nayar_diffuse_bsdf); - -// MaterialX node type: mtlx/pbr/burley_diffuse_bsdf -// -function mtlx_pbr_burley_diffuse_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burley_diffuse_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'burley_diffuse_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burley_diffuse_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'burley_diffuse_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/burley_diffuse_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_burley_diffuse_bsdf.nodedef_name = 'ND_burley_diffuse_bsdf'; -mtlx_pbr_burley_diffuse_bsdf.nodedef_node = 'burley_diffuse_bsdf'; -mtlx_pbr_burley_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/burley_diffuse_bsdf',mtlx_pbr_burley_diffuse_bsdf); - -// MaterialX node type: mtlx/pbr/translucent_bsdf -// -function mtlx_pbr_translucent_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_translucent_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'translucent_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_translucent_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'translucent_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/translucent_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_translucent_bsdf.nodedef_name = 'ND_translucent_bsdf'; -mtlx_pbr_translucent_bsdf.nodedef_node = 'translucent_bsdf'; -mtlx_pbr_translucent_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/translucent_bsdf',mtlx_pbr_translucent_bsdf); - -// MaterialX node type: mtlx/pbr/dielectric_bsdf -// -function mtlx_pbr_dielectric_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dielectric_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'dielectric_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dielectric_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('tint','color3'); - this.addProperty('tint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatter_mode','string'); - this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'dielectric_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/dielectric_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_dielectric_bsdf.nodedef_name = 'ND_dielectric_bsdf'; -mtlx_pbr_dielectric_bsdf.nodedef_node = 'dielectric_bsdf'; -mtlx_pbr_dielectric_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/dielectric_bsdf',mtlx_pbr_dielectric_bsdf); - -// MaterialX node type: mtlx/pbr/conductor_bsdf -// -function mtlx_pbr_conductor_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_conductor_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'conductor_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conductor_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('ior','color3'); - this.addProperty('ior', [0.183, 0.421, 1.373], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('extinction','color3'); - this.addProperty('extinction', [3.424, 2.346, 1.770], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'conductor_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/conductor_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_conductor_bsdf.nodedef_name = 'ND_conductor_bsdf'; -mtlx_pbr_conductor_bsdf.nodedef_node = 'conductor_bsdf'; -mtlx_pbr_conductor_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/conductor_bsdf',mtlx_pbr_conductor_bsdf); - -// MaterialX node type: mtlx/pbr/generalized_schlick_bsdf -// -function mtlx_pbr_generalized_schlick_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_generalized_schlick_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'generalized_schlick_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color0','color3'); - this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color82','color3'); - this.addProperty('color82', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color90','color3'); - this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exponent','float'); - this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatter_mode','string'); - this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'generalized_schlick_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/generalized_schlick_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_generalized_schlick_bsdf.nodedef_name = 'ND_generalized_schlick_bsdf'; -mtlx_pbr_generalized_schlick_bsdf.nodedef_node = 'generalized_schlick_bsdf'; -mtlx_pbr_generalized_schlick_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_bsdf',mtlx_pbr_generalized_schlick_bsdf); - -// MaterialX node type: mtlx/pbr/subsurface_bsdf -// -function mtlx_pbr_subsurface_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subsurface_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'subsurface_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subsurface_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','vector3'); - this.addProperty('radius', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'subsurface_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/subsurface_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_subsurface_bsdf.nodedef_name = 'ND_subsurface_bsdf'; -mtlx_pbr_subsurface_bsdf.nodedef_node = 'subsurface_bsdf'; -mtlx_pbr_subsurface_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/subsurface_bsdf',mtlx_pbr_subsurface_bsdf); - -// MaterialX node type: mtlx/pbr/sheen_bsdf -// -function mtlx_pbr_sheen_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sheen_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'sheen_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sheen_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'sheen_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/sheen_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_sheen_bsdf.nodedef_name = 'ND_sheen_bsdf'; -mtlx_pbr_sheen_bsdf.nodedef_node = 'sheen_bsdf'; -mtlx_pbr_sheen_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/sheen_bsdf',mtlx_pbr_sheen_bsdf); - -// MaterialX node type: mtlx/pbr/uniform_edf -// -function mtlx_pbr_uniform_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_uniform_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'uniform_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_uniform_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'uniform_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/uniform_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_uniform_edf.nodedef_name = 'ND_uniform_edf'; -mtlx_pbr_uniform_edf.nodedef_node = 'uniform_edf'; -mtlx_pbr_uniform_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/uniform_edf',mtlx_pbr_uniform_edf); - -// MaterialX node type: mtlx/pbr/conical_edf -// -function mtlx_pbr_conical_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_conical_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'conical_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conical_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inner_angle','float'); - this.addProperty('inner_angle', 60.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outer_angle','float'); - this.addProperty('outer_angle', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'conical_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/conical_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_conical_edf.nodedef_name = 'ND_conical_edf'; -mtlx_pbr_conical_edf.nodedef_node = 'conical_edf'; -mtlx_pbr_conical_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/conical_edf',mtlx_pbr_conical_edf); - -// MaterialX node type: mtlx/pbr/measured_edf -// -function mtlx_pbr_measured_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_measured_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'measured_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_measured_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'measured_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/measured_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_measured_edf.nodedef_name = 'ND_measured_edf'; -mtlx_pbr_measured_edf.nodedef_node = 'measured_edf'; -mtlx_pbr_measured_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/measured_edf',mtlx_pbr_measured_edf); - -// MaterialX node type: mtlx/pbr/generalized_schlick_edf -// -function mtlx_pbr_generalized_schlick_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_generalized_schlick_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'generalized_schlick_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color0','color3'); - this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color90','color3'); - this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exponent','float'); - this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','EDF'); - this.addProperty('base', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'generalized_schlick_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/generalized_schlick_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_generalized_schlick_edf.nodedef_name = 'ND_generalized_schlick_edf'; -mtlx_pbr_generalized_schlick_edf.nodedef_node = 'generalized_schlick_edf'; -mtlx_pbr_generalized_schlick_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_edf',mtlx_pbr_generalized_schlick_edf); - -// MaterialX node type: mtlx/pbr/absorption_vdf -// -function mtlx_pbr_absorption_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absorption_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'absorption_vdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absorption_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('absorption','vector3'); - this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'absorption_vdf_VDF'; - this.desc = "MaterialX:mtlx/pbr/absorption_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_absorption_vdf.nodedef_name = 'ND_absorption_vdf'; -mtlx_pbr_absorption_vdf.nodedef_node = 'absorption_vdf'; -mtlx_pbr_absorption_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/absorption_vdf',mtlx_pbr_absorption_vdf); - -// MaterialX node type: mtlx/pbr/anisotropic_vdf -// -function mtlx_pbr_anisotropic_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_anisotropic_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'anisotropic_vdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_anisotropic_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('absorption','vector3'); - this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scattering','vector3'); - this.addProperty('scattering', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'anisotropic_vdf_VDF'; - this.desc = "MaterialX:mtlx/pbr/anisotropic_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_anisotropic_vdf.nodedef_name = 'ND_anisotropic_vdf'; -mtlx_pbr_anisotropic_vdf.nodedef_node = 'anisotropic_vdf'; -mtlx_pbr_anisotropic_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/anisotropic_vdf',mtlx_pbr_anisotropic_vdf); - -// MaterialX node type: mtlx/pbr/surface -// -function mtlx_pbr_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('bsdf','BSDF'); - this.addProperty('bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_surface.nodedef_name = 'ND_surface'; -mtlx_pbr_surface.nodedef_node = 'surface'; -mtlx_pbr_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/surface',mtlx_pbr_surface); - -// MaterialX node type: mtlx/pbr/thin_surface -// -function mtlx_pbr_thin_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_thin_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'thin_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_thin_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('front_bsdf','BSDF'); - this.addProperty('front_bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('front_edf','EDF'); - this.addProperty('front_edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('back_bsdf','BSDF'); - this.addProperty('back_bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('back_edf','EDF'); - this.addProperty('back_edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'thin_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/thin_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_thin_surface.nodedef_name = 'ND_thin_surface'; -mtlx_pbr_thin_surface.nodedef_node = 'thin_surface'; -mtlx_pbr_thin_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/thin_surface',mtlx_pbr_thin_surface); - -// MaterialX node type: mtlx/pbr/volume -// -function mtlx_pbr_volume() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_volume'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'volume'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volume_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('vdf','VDF'); - this.addProperty('vdf', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'volume_volumeshader'; - this.desc = "MaterialX:mtlx/pbr/volume"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_volume.nodedef_name = 'ND_volume'; -mtlx_pbr_volume.nodedef_node = 'volume'; -mtlx_pbr_volume.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; -LiteGraph.registerNodeType('mtlx/pbr/volume',mtlx_pbr_volume); - -// MaterialX node type: mtlx/pbr/light -// -function mtlx_pbr_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_light_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'light_lightshader'; - this.desc = "MaterialX:mtlx/pbr/light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_light.nodedef_name = 'ND_light'; -mtlx_pbr_light.nodedef_node = 'light'; -mtlx_pbr_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; -LiteGraph.registerNodeType('mtlx/pbr/light',mtlx_pbr_light); - -// MaterialX node type: mtlx/pbr/displacement_float -// -function mtlx_pbr_displacement_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_displacement_float'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'displacement'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_float_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('displacement','float'); - this.addProperty('displacement', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'displacement_displacementshader'; - this.desc = "MaterialX:mtlx/pbr/displacement_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_displacement_float.nodedef_name = 'ND_displacement_float'; -mtlx_pbr_displacement_float.nodedef_node = 'displacement'; -mtlx_pbr_displacement_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; -LiteGraph.registerNodeType('mtlx/pbr/displacement_float',mtlx_pbr_displacement_float); - -// MaterialX node type: mtlx/pbr/displacement_vector3 -// -function mtlx_pbr_displacement_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_displacement_vector3'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'displacement'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_vector3_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('displacement','vector3'); - this.addProperty('displacement', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'displacement_displacementshader'; - this.desc = "MaterialX:mtlx/pbr/displacement_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_displacement_vector3.nodedef_name = 'ND_displacement_vector3'; -mtlx_pbr_displacement_vector3.nodedef_node = 'displacement'; -mtlx_pbr_displacement_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; -LiteGraph.registerNodeType('mtlx/pbr/displacement_vector3',mtlx_pbr_displacement_vector3); - -// MaterialX node type: mtlx/pbr/layer_bsdf -// -function mtlx_pbr_layer_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_layer_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'layer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('top','BSDF'); - this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','BSDF'); - this.addProperty('base', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'layer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/layer_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_layer_bsdf.nodedef_name = 'ND_layer_bsdf'; -mtlx_pbr_layer_bsdf.nodedef_node = 'layer'; -mtlx_pbr_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; -LiteGraph.registerNodeType('mtlx/pbr/layer_bsdf',mtlx_pbr_layer_bsdf); - -// MaterialX node type: mtlx/pbr/layer_vdf -// -function mtlx_pbr_layer_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_layer_vdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'layer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('top','BSDF'); - this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','VDF'); - this.addProperty('base', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'layer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/layer_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_layer_vdf.nodedef_name = 'ND_layer_vdf'; -mtlx_pbr_layer_vdf.nodedef_node = 'layer'; -mtlx_pbr_layer_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; -LiteGraph.registerNodeType('mtlx/pbr/layer_vdf',mtlx_pbr_layer_vdf); - -// MaterialX node type: mtlx/pbr/mix_bsdf -// -function mtlx_pbr_mix_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','BSDF'); - this.addProperty('fg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','BSDF'); - this.addProperty('bg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'mix_BSDF'; - this.desc = "MaterialX:mtlx/pbr/mix_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_bsdf.nodedef_name = 'ND_mix_bsdf'; -mtlx_pbr_mix_bsdf.nodedef_node = 'mix'; -mtlx_pbr_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_bsdf',mtlx_pbr_mix_bsdf); - -// MaterialX node type: mtlx/pbr/mix_edf -// -function mtlx_pbr_mix_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','EDF'); - this.addProperty('fg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','EDF'); - this.addProperty('bg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'mix_EDF'; - this.desc = "MaterialX:mtlx/pbr/mix_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_edf.nodedef_name = 'ND_mix_edf'; -mtlx_pbr_mix_edf.nodedef_node = 'mix'; -mtlx_pbr_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_edf',mtlx_pbr_mix_edf); - -// MaterialX node type: mtlx/pbr/mix_vdf -// -function mtlx_pbr_mix_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','VDF'); - this.addProperty('fg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','VDF'); - this.addProperty('bg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'mix_VDF'; - this.desc = "MaterialX:mtlx/pbr/mix_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_vdf.nodedef_name = 'ND_mix_vdf'; -mtlx_pbr_mix_vdf.nodedef_node = 'mix'; -mtlx_pbr_mix_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_vdf',mtlx_pbr_mix_vdf); - -// MaterialX node type: mtlx/pbr/add_bsdf -// -function mtlx_pbr_add_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','BSDF'); - this.addProperty('in2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'add_BSDF'; - this.desc = "MaterialX:mtlx/pbr/add_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_bsdf.nodedef_name = 'ND_add_bsdf'; -mtlx_pbr_add_bsdf.nodedef_node = 'add'; -mtlx_pbr_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_bsdf',mtlx_pbr_add_bsdf); - -// MaterialX node type: mtlx/pbr/add_edf -// -function mtlx_pbr_add_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','EDF'); - this.addProperty('in2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'add_EDF'; - this.desc = "MaterialX:mtlx/pbr/add_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_edf.nodedef_name = 'ND_add_edf'; -mtlx_pbr_add_edf.nodedef_node = 'add'; -mtlx_pbr_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_edf',mtlx_pbr_add_edf); - -// MaterialX node type: mtlx/pbr/add_vdf -// -function mtlx_pbr_add_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','VDF'); - this.addProperty('in2', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'add_VDF'; - this.desc = "MaterialX:mtlx/pbr/add_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_vdf.nodedef_name = 'ND_add_vdf'; -mtlx_pbr_add_vdf.nodedef_node = 'add'; -mtlx_pbr_add_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_vdf',mtlx_pbr_add_vdf); - -// MaterialX node type: mtlx/pbr/multiply_bsdfC -// -function mtlx_pbr_multiply_bsdfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_bsdfC'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'multiply_BSDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_bsdfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_bsdfC.nodedef_name = 'ND_multiply_bsdfC'; -mtlx_pbr_multiply_bsdfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_bsdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfC',mtlx_pbr_multiply_bsdfC); - -// MaterialX node type: mtlx/pbr/multiply_bsdfF -// -function mtlx_pbr_multiply_bsdfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_bsdfF'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'multiply_BSDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_bsdfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_bsdfF.nodedef_name = 'ND_multiply_bsdfF'; -mtlx_pbr_multiply_bsdfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_bsdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfF',mtlx_pbr_multiply_bsdfF); - -// MaterialX node type: mtlx/pbr/multiply_edfC -// -function mtlx_pbr_multiply_edfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_edfC'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'multiply_EDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_edfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_edfC.nodedef_name = 'ND_multiply_edfC'; -mtlx_pbr_multiply_edfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_edfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_edfC',mtlx_pbr_multiply_edfC); - -// MaterialX node type: mtlx/pbr/multiply_edfF -// -function mtlx_pbr_multiply_edfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_edfF'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'multiply_EDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_edfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_edfF.nodedef_name = 'ND_multiply_edfF'; -mtlx_pbr_multiply_edfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_edfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_edfF',mtlx_pbr_multiply_edfF); - -// MaterialX node type: mtlx/pbr/multiply_vdfC -// -function mtlx_pbr_multiply_vdfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vdfC'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'multiply_VDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_vdfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_vdfC.nodedef_name = 'ND_multiply_vdfC'; -mtlx_pbr_multiply_vdfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_vdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfC',mtlx_pbr_multiply_vdfC); - -// MaterialX node type: mtlx/pbr/multiply_vdfF -// -function mtlx_pbr_multiply_vdfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vdfF'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'multiply_VDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_vdfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_vdfF.nodedef_name = 'ND_multiply_vdfF'; -mtlx_pbr_multiply_vdfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_vdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfF',mtlx_pbr_multiply_vdfF); - -// MaterialX node type: mtlx/pbr/roughness_anisotropy -// -function mtlx_pbr_roughness_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_roughness_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'roughness_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'roughness_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/roughness_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_roughness_anisotropy.nodedef_name = 'ND_roughness_anisotropy'; -mtlx_pbr_roughness_anisotropy.nodedef_node = 'roughness_anisotropy'; -mtlx_pbr_roughness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/roughness_anisotropy',mtlx_pbr_roughness_anisotropy); - -// MaterialX node type: mtlx/pbr/roughness_dual -// -function mtlx_pbr_roughness_dual() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_roughness_dual'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'roughness_dual'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_dual_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'roughness_dual_vector2'; - this.desc = "MaterialX:mtlx/pbr/roughness_dual"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_roughness_dual.nodedef_name = 'ND_roughness_dual'; -mtlx_pbr_roughness_dual.nodedef_node = 'roughness_dual'; -mtlx_pbr_roughness_dual.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; -LiteGraph.registerNodeType('mtlx/pbr/roughness_dual',mtlx_pbr_roughness_dual); - -// MaterialX node type: mtlx/pbr/glossiness_anisotropy -// -function mtlx_pbr_glossiness_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_glossiness_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'glossiness_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_glossiness_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('glossiness','float'); - this.addProperty('glossiness', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'glossiness_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/glossiness_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_glossiness_anisotropy.nodedef_name = 'ND_glossiness_anisotropy'; -mtlx_pbr_glossiness_anisotropy.nodedef_node = 'glossiness_anisotropy'; -mtlx_pbr_glossiness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/glossiness_anisotropy',mtlx_pbr_glossiness_anisotropy); - -// MaterialX node type: mtlx/pbr/blackbody -// -function mtlx_pbr_blackbody() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blackbody'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'blackbody'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blackbody_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('temperature','float'); - this.addProperty('temperature', 5000.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'blackbody_color3'; - this.desc = "MaterialX:mtlx/pbr/blackbody"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_pbr_blackbody.nodedef_name = 'ND_blackbody'; -mtlx_pbr_blackbody.nodedef_node = 'blackbody'; -mtlx_pbr_blackbody.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; -LiteGraph.registerNodeType('mtlx/pbr/blackbody',mtlx_pbr_blackbody); - -// MaterialX node type: mtlx/pbr/artistic_ior -// -function mtlx_pbr_artistic_ior() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_artistic_ior'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'artistic_ior'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_artistic_ior_ior_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('reflectivity','color3'); - this.addProperty('reflectivity', [0.944, 0.776, 0.373], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edge_color','color3'); - this.addProperty('edge_color', [0.998, 0.981, 0.751], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('ior','color3'); - this.addOutput('extinction','color3'); - this.title = 'artistic_ior_multioutput'; - this.desc = "MaterialX:mtlx/pbr/artistic_ior"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_artistic_ior.nodedef_name = 'ND_artistic_ior'; -mtlx_pbr_artistic_ior.nodedef_node = 'artistic_ior'; -mtlx_pbr_artistic_ior.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; -LiteGraph.registerNodeType('mtlx/pbr/artistic_ior',mtlx_pbr_artistic_ior); - -// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color3 -// -function mtlx_colortransform_g18_rec709_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g18_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g18_rec709_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_node = 'g18_rec709_to_lin_rec709'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color3',mtlx_colortransform_g18_rec709_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color4 -// -function mtlx_colortransform_g18_rec709_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g18_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g18_rec709_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_node = 'g18_rec709_to_lin_rec709'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color4',mtlx_colortransform_g18_rec709_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color3 -// -function mtlx_colortransform_g22_rec709_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g22_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g22_rec709_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_node = 'g22_rec709_to_lin_rec709'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color3',mtlx_colortransform_g22_rec709_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color4 -// -function mtlx_colortransform_g22_rec709_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g22_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g22_rec709_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_node = 'g22_rec709_to_lin_rec709'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color4',mtlx_colortransform_g22_rec709_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color3 -// -function mtlx_colortransform_rec709_display_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'rec709_display_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'rec709_display_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_node = 'rec709_display_to_lin_rec709'; -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color3',mtlx_colortransform_rec709_display_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color4 -// -function mtlx_colortransform_rec709_display_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'rec709_display_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'rec709_display_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_node = 'rec709_display_to_lin_rec709'; -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color4',mtlx_colortransform_rec709_display_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color3 -// -function mtlx_colortransform_acescg_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'acescg_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'acescg_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_node = 'acescg_to_lin_rec709'; -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color3',mtlx_colortransform_acescg_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color4 -// -function mtlx_colortransform_acescg_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'acescg_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'acescg_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_node = 'acescg_to_lin_rec709'; -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color4',mtlx_colortransform_acescg_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color3 -// -function mtlx_colortransform_g22_ap1_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g22_ap1_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g22_ap1_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_node = 'g22_ap1_to_lin_rec709'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color3',mtlx_colortransform_g22_ap1_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color4 -// -function mtlx_colortransform_g22_ap1_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g22_ap1_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g22_ap1_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_node = 'g22_ap1_to_lin_rec709'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color4',mtlx_colortransform_g22_ap1_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color3 -// -function mtlx_colortransform_srgb_texture_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'srgb_texture_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'srgb_texture_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_node = 'srgb_texture_to_lin_rec709'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color3',mtlx_colortransform_srgb_texture_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color4 -// -function mtlx_colortransform_srgb_texture_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'srgb_texture_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'srgb_texture_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_node = 'srgb_texture_to_lin_rec709'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color4',mtlx_colortransform_srgb_texture_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color3 -// -function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'lin_adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'lin_adobergb_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_node = 'lin_adobergb_to_lin_rec709'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color3',mtlx_colortransform_lin_adobergb_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color4 -// -function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'lin_adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'lin_adobergb_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_node = 'lin_adobergb_to_lin_rec709'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color4',mtlx_colortransform_lin_adobergb_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color3 -// -function mtlx_colortransform_adobergb_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'adobergb_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_node = 'adobergb_to_lin_rec709'; -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color3',mtlx_colortransform_adobergb_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color4 -// -function mtlx_colortransform_adobergb_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'adobergb_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_node = 'adobergb_to_lin_rec709'; -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color4',mtlx_colortransform_adobergb_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3 -// -function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'srgb_displayp3_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_node = 'srgb_displayp3_to_lin_rec709'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3',mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4 -// -function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'srgb_displayp3_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_node = 'srgb_displayp3_to_lin_rec709'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4',mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color3 -// -function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'lin_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'lin_displayp3_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_node = 'lin_displayp3_to_lin_rec709'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color3',mtlx_colortransform_lin_displayp3_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color4 -// -function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'lin_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'lin_displayp3_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_node = 'lin_displayp3_to_lin_rec709'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color4',mtlx_colortransform_lin_displayp3_to_lin_rec709_color4); - -// MaterialX node type: mtlx/light/point_light -// -function mtlx_light_point_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_point_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'point_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_point_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('decay_rate','float'); - this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'point_light_lightshader'; - this.desc = "MaterialX:mtlx/light/point_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_point_light.nodedef_name = 'ND_point_light'; -mtlx_light_point_light.nodedef_node = 'point_light'; -mtlx_light_point_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; -LiteGraph.registerNodeType('mtlx/light/point_light',mtlx_light_point_light); - -// MaterialX node type: mtlx/light/directional_light -// -function mtlx_light_directional_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_directional_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'directional_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_directional_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'directional_light_lightshader'; - this.desc = "MaterialX:mtlx/light/directional_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_directional_light.nodedef_name = 'ND_directional_light'; -mtlx_light_directional_light.nodedef_node = 'directional_light'; -mtlx_light_directional_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; -LiteGraph.registerNodeType('mtlx/light/directional_light',mtlx_light_directional_light); - -// MaterialX node type: mtlx/light/spot_light -// -function mtlx_light_spot_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_spot_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'spot_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_spot_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('decay_rate','float'); - this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inner_angle','float'); - this.addProperty('inner_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outer_angle','float'); - this.addProperty('outer_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'spot_light_lightshader'; - this.desc = "MaterialX:mtlx/light/spot_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_spot_light.nodedef_name = 'ND_spot_light'; -mtlx_light_spot_light.nodedef_node = 'spot_light'; -mtlx_light_spot_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; -LiteGraph.registerNodeType('mtlx/light/spot_light',mtlx_light_spot_light); - -// MaterialX node type: mtlx/npr/viewdirection_vector3 -// -function mtlx_npr_viewdirection_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_viewdirection_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'viewdirection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_viewdirection_vector3_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('space','string'); - this.addProperty('space', 'world', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'viewdirection_vector3'; - this.desc = "MaterialX:mtlx/npr/viewdirection_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_npr_viewdirection_vector3.nodedef_name = 'ND_viewdirection_vector3'; -mtlx_npr_viewdirection_vector3.nodedef_node = 'viewdirection'; -mtlx_npr_viewdirection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; -LiteGraph.registerNodeType('mtlx/npr/viewdirection_vector3',mtlx_npr_viewdirection_vector3); - -// MaterialX node type: mtlx/npr/facingratio_float -// -function mtlx_npr_facingratio_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_facingratio_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'facingratio'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_facingratio_float_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('viewdirection','vector3'); - this.addProperty('viewdirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('faceforward','boolean'); - this.addProperty('faceforward', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('invert','boolean'); - this.addProperty('invert', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'facingratio_float'; - this.desc = "MaterialX:mtlx/npr/facingratio_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_npr_facingratio_float.nodedef_name = 'ND_facingratio_float'; -mtlx_npr_facingratio_float.nodedef_node = 'facingratio'; -mtlx_npr_facingratio_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; -LiteGraph.registerNodeType('mtlx/npr/facingratio_float',mtlx_npr_facingratio_float); - -// MaterialX node type: mtlx/npr/gooch_shade -// -function mtlx_npr_gooch_shade() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gooch_shade'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'gooch_shade'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gooch_shade_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('warm_color','color3'); - this.addProperty('warm_color', [0.8, 0.8, 0.7], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Warm Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('cool_color','color3'); - this.addProperty('cool_color', [0.3, 0.3, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Cool Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_intensity','float'); - this.addProperty('specular_intensity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Intensity","uimin":"0","uimax":"1","uifolder":""}); - this.addInput('shininess','float'); - this.addProperty('shininess', 64, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Shininess","uimin":"1","uimax":null,"uifolder":""}); - this.addInput('light_direction','vector3'); - this.addProperty('light_direction', [1, -0.5, -0.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Light Direction","uimin":[-1,-1,-1],"uimax":[1,1,1],"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'gooch_shade_color3'; - this.desc = "MaterialX:mtlx/npr/gooch_shade"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_npr_gooch_shade.nodedef_name = 'ND_gooch_shade'; -mtlx_npr_gooch_shade.nodedef_node = 'gooch_shade'; -mtlx_npr_gooch_shade.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; -LiteGraph.registerNodeType('mtlx/npr/gooch_shade',mtlx_npr_gooch_shade); - -// MaterialX node type: mtlx/material/surfacematerial -// -function mtlx_material_surfacematerial() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surfacematerial'; - this.nodedef_type = 'material'; - this.nodedef_node = 'surfacematerial'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surfacematerial_out_genglsl.png'; - this.nodedef_group = 'material'; - this.addInput('surfaceshader','surfaceshader'); - this.addProperty('surfaceshader', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('displacementshader','displacementshader'); - this.addProperty('displacementshader', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','material'); - this.title = 'surfacematerial_material'; - this.desc = "MaterialX:mtlx/material/surfacematerial"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#151'; - this.shape = LiteGraph.BOX_SHAPE; -} -mtlx_material_surfacematerial.nodedef_name = 'ND_surfacematerial'; -mtlx_material_surfacematerial.nodedef_node = 'surfacematerial'; -mtlx_material_surfacematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; -LiteGraph.registerNodeType('mtlx/material/surfacematerial',mtlx_material_surfacematerial); - -// MaterialX node type: mtlx/material/volumematerial -// -function mtlx_material_volumematerial() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_volumematerial'; - this.nodedef_type = 'material'; - this.nodedef_node = 'volumematerial'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volumematerial_out_genglsl.png'; - this.nodedef_group = 'material'; - this.addInput('volumeshader','volumeshader'); - this.addProperty('volumeshader', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','material'); - this.title = 'volumematerial_material'; - this.desc = "MaterialX:mtlx/material/volumematerial"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#151'; - this.shape = LiteGraph.BOX_SHAPE; -} -mtlx_material_volumematerial.nodedef_name = 'ND_volumematerial'; -mtlx_material_volumematerial.nodedef_node = 'volumematerial'; -mtlx_material_volumematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; -LiteGraph.registerNodeType('mtlx/material/volumematerial',mtlx_material_volumematerial); - -// MaterialX node type: mtlx/shader/surface_unlit -// -function mtlx_shader_surface_unlit() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surface_unlit'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'surface_unlit'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_unlit_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('emission','float'); - this.addProperty('emission', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'surface_unlit_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/surface_unlit"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_surface_unlit.nodedef_name = 'ND_surface_unlit'; -mtlx_shader_surface_unlit.nodedef_node = 'surface_unlit'; -mtlx_shader_surface_unlit.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; -LiteGraph.registerNodeType('mtlx/shader/surface_unlit',mtlx_shader_surface_unlit); - -// MaterialX node type: mtlx/texture2d/image_float -// -function mtlx_texture2d_image_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_float_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'image_float'; - this.desc = "MaterialX:mtlx/texture2d/image_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_image_float.nodedef_name = 'ND_image_float'; -mtlx_texture2d_image_float.nodedef_node = 'image'; -mtlx_texture2d_image_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_float',mtlx_texture2d_image_float); - -// MaterialX node type: mtlx/texture2d/image_color3 -// -function mtlx_texture2d_image_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'image_color3'; - this.desc = "MaterialX:mtlx/texture2d/image_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_image_color3.nodedef_name = 'ND_image_color3'; -mtlx_texture2d_image_color3.nodedef_node = 'image'; -mtlx_texture2d_image_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_color3',mtlx_texture2d_image_color3); - -// MaterialX node type: mtlx/texture2d/image_color4 -// -function mtlx_texture2d_image_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'image_color4'; - this.desc = "MaterialX:mtlx/texture2d/image_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_image_color4.nodedef_name = 'ND_image_color4'; -mtlx_texture2d_image_color4.nodedef_node = 'image'; -mtlx_texture2d_image_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_color4',mtlx_texture2d_image_color4); - -// MaterialX node type: mtlx/texture2d/image_vector2 -// -function mtlx_texture2d_image_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector2_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'image_vector2'; - this.desc = "MaterialX:mtlx/texture2d/image_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture2d_image_vector2.nodedef_name = 'ND_image_vector2'; -mtlx_texture2d_image_vector2.nodedef_node = 'image'; -mtlx_texture2d_image_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector2',mtlx_texture2d_image_vector2); - -// MaterialX node type: mtlx/texture2d/image_vector3 -// -function mtlx_texture2d_image_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'image_vector3'; - this.desc = "MaterialX:mtlx/texture2d/image_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_image_vector3.nodedef_name = 'ND_image_vector3'; -mtlx_texture2d_image_vector3.nodedef_node = 'image'; -mtlx_texture2d_image_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector3',mtlx_texture2d_image_vector3); - -// MaterialX node type: mtlx/texture2d/image_vector4 -// -function mtlx_texture2d_image_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'image_vector4'; - this.desc = "MaterialX:mtlx/texture2d/image_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture2d_image_vector4.nodedef_name = 'ND_image_vector4'; -mtlx_texture2d_image_vector4.nodedef_node = 'image'; -mtlx_texture2d_image_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector4',mtlx_texture2d_image_vector4); - -// MaterialX node type: mtlx/texture2d/tiledimage_float -// -function mtlx_texture2d_tiledimage_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'tiledimage_float'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_tiledimage_float.nodedef_name = 'ND_tiledimage_float'; -mtlx_texture2d_tiledimage_float.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_float',mtlx_texture2d_tiledimage_float); - -// MaterialX node type: mtlx/texture2d/tiledimage_color3 -// -function mtlx_texture2d_tiledimage_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledimage_color3'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_tiledimage_color3.nodedef_name = 'ND_tiledimage_color3'; -mtlx_texture2d_tiledimage_color3.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color3',mtlx_texture2d_tiledimage_color3); - -// MaterialX node type: mtlx/texture2d/tiledimage_color4 -// -function mtlx_texture2d_tiledimage_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'tiledimage_color4'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_tiledimage_color4.nodedef_name = 'ND_tiledimage_color4'; -mtlx_texture2d_tiledimage_color4.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color4',mtlx_texture2d_tiledimage_color4); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector2 -// -function mtlx_texture2d_tiledimage_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector2_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'tiledimage_vector2'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture2d_tiledimage_vector2.nodedef_name = 'ND_tiledimage_vector2'; -mtlx_texture2d_tiledimage_vector2.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector2',mtlx_texture2d_tiledimage_vector2); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector3 -// -function mtlx_texture2d_tiledimage_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tiledimage_vector3'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_tiledimage_vector3.nodedef_name = 'ND_tiledimage_vector3'; -mtlx_texture2d_tiledimage_vector3.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector3',mtlx_texture2d_tiledimage_vector3); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector4 -// -function mtlx_texture2d_tiledimage_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'tiledimage_vector4'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture2d_tiledimage_vector4.nodedef_name = 'ND_tiledimage_vector4'; -mtlx_texture2d_tiledimage_vector4.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector4',mtlx_texture2d_tiledimage_vector4); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_float -// -function mtlx_texture3d_triplanarprojection_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_float_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'triplanarprojection_float'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture3d_triplanarprojection_float.nodedef_name = 'ND_triplanarprojection_float'; -mtlx_texture3d_triplanarprojection_float.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_float',mtlx_texture3d_triplanarprojection_float); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_color3 -// -function mtlx_texture3d_triplanarprojection_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color3_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'triplanarprojection_color3'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture3d_triplanarprojection_color3.nodedef_name = 'ND_triplanarprojection_color3'; -mtlx_texture3d_triplanarprojection_color3.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color3',mtlx_texture3d_triplanarprojection_color3); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_color4 -// -function mtlx_texture3d_triplanarprojection_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color4_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'triplanarprojection_color4'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture3d_triplanarprojection_color4.nodedef_name = 'ND_triplanarprojection_color4'; -mtlx_texture3d_triplanarprojection_color4.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color4',mtlx_texture3d_triplanarprojection_color4); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector2 -// -function mtlx_texture3d_triplanarprojection_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector2_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'triplanarprojection_vector2'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture3d_triplanarprojection_vector2.nodedef_name = 'ND_triplanarprojection_vector2'; -mtlx_texture3d_triplanarprojection_vector2.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector2',mtlx_texture3d_triplanarprojection_vector2); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector3 -// -function mtlx_texture3d_triplanarprojection_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector3_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'triplanarprojection_vector3'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture3d_triplanarprojection_vector3.nodedef_name = 'ND_triplanarprojection_vector3'; -mtlx_texture3d_triplanarprojection_vector3.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector3',mtlx_texture3d_triplanarprojection_vector3); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector4 -// -function mtlx_texture3d_triplanarprojection_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector4_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'triplanarprojection_vector4'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture3d_triplanarprojection_vector4.nodedef_name = 'ND_triplanarprojection_vector4'; -mtlx_texture3d_triplanarprojection_vector4.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector4',mtlx_texture3d_triplanarprojection_vector4); - -// MaterialX node type: mtlx/procedural/constant_float -// -function mtlx_procedural_constant_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_float_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','float'); - this.addProperty('value', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'constant_float'; - this.desc = "MaterialX:mtlx/procedural/constant_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_constant_float.nodedef_name = 'ND_constant_float'; -mtlx_procedural_constant_float.nodedef_node = 'constant'; -mtlx_procedural_constant_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_float',mtlx_procedural_constant_float); - -// MaterialX node type: mtlx/procedural/constant_color3 -// -function mtlx_procedural_constant_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color3_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','color3'); - this.addProperty('value', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'constant_color3'; - this.desc = "MaterialX:mtlx/procedural/constant_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural_constant_color3.nodedef_name = 'ND_constant_color3'; -mtlx_procedural_constant_color3.nodedef_node = 'constant'; -mtlx_procedural_constant_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_color3',mtlx_procedural_constant_color3); - -// MaterialX node type: mtlx/procedural/constant_color4 -// -function mtlx_procedural_constant_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color4_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','color4'); - this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'constant_color4'; - this.desc = "MaterialX:mtlx/procedural/constant_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural_constant_color4.nodedef_name = 'ND_constant_color4'; -mtlx_procedural_constant_color4.nodedef_node = 'constant'; -mtlx_procedural_constant_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_color4',mtlx_procedural_constant_color4); - -// MaterialX node type: mtlx/procedural/constant_vector2 -// -function mtlx_procedural_constant_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector2'); - this.addProperty('value', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'constant_vector2'; - this.desc = "MaterialX:mtlx/procedural/constant_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural_constant_vector2.nodedef_name = 'ND_constant_vector2'; -mtlx_procedural_constant_vector2.nodedef_node = 'constant'; -mtlx_procedural_constant_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector2',mtlx_procedural_constant_vector2); - -// MaterialX node type: mtlx/procedural/constant_vector3 -// -function mtlx_procedural_constant_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector3'); - this.addProperty('value', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'constant_vector3'; - this.desc = "MaterialX:mtlx/procedural/constant_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural_constant_vector3.nodedef_name = 'ND_constant_vector3'; -mtlx_procedural_constant_vector3.nodedef_node = 'constant'; -mtlx_procedural_constant_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector3',mtlx_procedural_constant_vector3); - -// MaterialX node type: mtlx/procedural/constant_vector4 -// -function mtlx_procedural_constant_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector4'); - this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'constant_vector4'; - this.desc = "MaterialX:mtlx/procedural/constant_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural_constant_vector4.nodedef_name = 'ND_constant_vector4'; -mtlx_procedural_constant_vector4.nodedef_node = 'constant'; -mtlx_procedural_constant_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector4',mtlx_procedural_constant_vector4); - -// MaterialX node type: mtlx/procedural/constant_boolean -// -function mtlx_procedural_constant_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_boolean_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','boolean'); - this.addProperty('value', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'constant_boolean'; - this.desc = "MaterialX:mtlx/procedural/constant_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_procedural_constant_boolean.nodedef_name = 'ND_constant_boolean'; -mtlx_procedural_constant_boolean.nodedef_node = 'constant'; -mtlx_procedural_constant_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_boolean',mtlx_procedural_constant_boolean); - -// MaterialX node type: mtlx/procedural/constant_integer -// -function mtlx_procedural_constant_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_integer_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','integer'); - this.addProperty('value', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'constant_integer'; - this.desc = "MaterialX:mtlx/procedural/constant_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural_constant_integer.nodedef_name = 'ND_constant_integer'; -mtlx_procedural_constant_integer.nodedef_node = 'constant'; -mtlx_procedural_constant_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_integer',mtlx_procedural_constant_integer); - -// MaterialX node type: mtlx/procedural/constant_matrix33 -// -function mtlx_procedural_constant_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix33_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','matrix33'); - this.addProperty('value', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'constant_matrix33'; - this.desc = "MaterialX:mtlx/procedural/constant_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_procedural_constant_matrix33.nodedef_name = 'ND_constant_matrix33'; -mtlx_procedural_constant_matrix33.nodedef_node = 'constant'; -mtlx_procedural_constant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_matrix33',mtlx_procedural_constant_matrix33); - -// MaterialX node type: mtlx/procedural/constant_matrix44 -// -function mtlx_procedural_constant_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix44_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','matrix44'); - this.addProperty('value', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'constant_matrix44'; - this.desc = "MaterialX:mtlx/procedural/constant_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_procedural_constant_matrix44.nodedef_name = 'ND_constant_matrix44'; -mtlx_procedural_constant_matrix44.nodedef_node = 'constant'; -mtlx_procedural_constant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_matrix44',mtlx_procedural_constant_matrix44); - -// MaterialX node type: mtlx/procedural/constant_string -// -function mtlx_procedural_constant_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_string_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','string'); - this.addProperty('value', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'constant_string'; - this.desc = "MaterialX:mtlx/procedural/constant_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_procedural_constant_string.nodedef_name = 'ND_constant_string'; -mtlx_procedural_constant_string.nodedef_node = 'constant'; -mtlx_procedural_constant_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_string',mtlx_procedural_constant_string); - -// MaterialX node type: mtlx/procedural/constant_filename -// -function mtlx_procedural_constant_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_filename'; - this.nodedef_type = 'filename'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_filename_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','filename'); - this.addProperty('value', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','filename'); - this.title = 'constant_filename'; - this.desc = "MaterialX:mtlx/procedural/constant_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#58E'; -} -mtlx_procedural_constant_filename.nodedef_name = 'ND_constant_filename'; -mtlx_procedural_constant_filename.nodedef_node = 'constant'; -mtlx_procedural_constant_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_filename',mtlx_procedural_constant_filename); - -// MaterialX node type: mtlx/procedural2d/ramplr_float -// -function mtlx_procedural2d_ramplr_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','float'); - this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','float'); - this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramplr_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramplr_float.nodedef_name = 'ND_ramplr_float'; -mtlx_procedural2d_ramplr_float.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_float',mtlx_procedural2d_ramplr_float); - -// MaterialX node type: mtlx/procedural2d/ramplr_color3 -// -function mtlx_procedural2d_ramplr_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramplr_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramplr_color3.nodedef_name = 'ND_ramplr_color3'; -mtlx_procedural2d_ramplr_color3.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color3',mtlx_procedural2d_ramplr_color3); - -// MaterialX node type: mtlx/procedural2d/ramplr_color4 -// -function mtlx_procedural2d_ramplr_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramplr_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramplr_color4.nodedef_name = 'ND_ramplr_color4'; -mtlx_procedural2d_ramplr_color4.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color4',mtlx_procedural2d_ramplr_color4); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector2 -// -function mtlx_procedural2d_ramplr_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector2'); - this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector2'); - this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramplr_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramplr_vector2.nodedef_name = 'ND_ramplr_vector2'; -mtlx_procedural2d_ramplr_vector2.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector2',mtlx_procedural2d_ramplr_vector2); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector3 -// -function mtlx_procedural2d_ramplr_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramplr_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramplr_vector3.nodedef_name = 'ND_ramplr_vector3'; -mtlx_procedural2d_ramplr_vector3.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector3',mtlx_procedural2d_ramplr_vector3); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector4 -// -function mtlx_procedural2d_ramplr_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramplr_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramplr_vector4.nodedef_name = 'ND_ramplr_vector4'; -mtlx_procedural2d_ramplr_vector4.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector4',mtlx_procedural2d_ramplr_vector4); - -// MaterialX node type: mtlx/procedural2d/ramptb_float -// -function mtlx_procedural2d_ramptb_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','float'); - this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','float'); - this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramptb_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramptb_float.nodedef_name = 'ND_ramptb_float'; -mtlx_procedural2d_ramptb_float.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_float',mtlx_procedural2d_ramptb_float); - -// MaterialX node type: mtlx/procedural2d/ramptb_color3 -// -function mtlx_procedural2d_ramptb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramptb_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramptb_color3.nodedef_name = 'ND_ramptb_color3'; -mtlx_procedural2d_ramptb_color3.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color3',mtlx_procedural2d_ramptb_color3); - -// MaterialX node type: mtlx/procedural2d/ramptb_color4 -// -function mtlx_procedural2d_ramptb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramptb_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramptb_color4.nodedef_name = 'ND_ramptb_color4'; -mtlx_procedural2d_ramptb_color4.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color4',mtlx_procedural2d_ramptb_color4); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector2 -// -function mtlx_procedural2d_ramptb_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector2'); - this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector2'); - this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramptb_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramptb_vector2.nodedef_name = 'ND_ramptb_vector2'; -mtlx_procedural2d_ramptb_vector2.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector2',mtlx_procedural2d_ramptb_vector2); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector3 -// -function mtlx_procedural2d_ramptb_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramptb_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramptb_vector3.nodedef_name = 'ND_ramptb_vector3'; -mtlx_procedural2d_ramptb_vector3.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector3',mtlx_procedural2d_ramptb_vector3); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector4 -// -function mtlx_procedural2d_ramptb_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramptb_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramptb_vector4.nodedef_name = 'ND_ramptb_vector4'; -mtlx_procedural2d_ramptb_vector4.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector4',mtlx_procedural2d_ramptb_vector4); - -// MaterialX node type: mtlx/procedural2d/ramp4_float -// -function mtlx_procedural2d_ramp4_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','float'); - this.addProperty('valuetl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','float'); - this.addProperty('valuetr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','float'); - this.addProperty('valuebl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','float'); - this.addProperty('valuebr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramp4_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramp4_float.nodedef_name = 'ND_ramp4_float'; -mtlx_procedural2d_ramp4_float.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_float',mtlx_procedural2d_ramp4_float); - -// MaterialX node type: mtlx/procedural2d/ramp4_color3 -// -function mtlx_procedural2d_ramp4_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','color3'); - this.addProperty('valuetl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','color3'); - this.addProperty('valuetr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','color3'); - this.addProperty('valuebl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','color3'); - this.addProperty('valuebr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramp4_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramp4_color3.nodedef_name = 'ND_ramp4_color3'; -mtlx_procedural2d_ramp4_color3.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color3',mtlx_procedural2d_ramp4_color3); - -// MaterialX node type: mtlx/procedural2d/ramp4_color4 -// -function mtlx_procedural2d_ramp4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','color4'); - this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','color4'); - this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','color4'); - this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','color4'); - this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramp4_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramp4_color4.nodedef_name = 'ND_ramp4_color4'; -mtlx_procedural2d_ramp4_color4.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color4',mtlx_procedural2d_ramp4_color4); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector2 -// -function mtlx_procedural2d_ramp4_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector2'); - this.addProperty('valuetl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector2'); - this.addProperty('valuetr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector2'); - this.addProperty('valuebl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector2'); - this.addProperty('valuebr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramp4_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramp4_vector2.nodedef_name = 'ND_ramp4_vector2'; -mtlx_procedural2d_ramp4_vector2.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector2',mtlx_procedural2d_ramp4_vector2); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector3 -// -function mtlx_procedural2d_ramp4_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector3'); - this.addProperty('valuetl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector3'); - this.addProperty('valuetr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector3'); - this.addProperty('valuebl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector3'); - this.addProperty('valuebr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramp4_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramp4_vector3.nodedef_name = 'ND_ramp4_vector3'; -mtlx_procedural2d_ramp4_vector3.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector3',mtlx_procedural2d_ramp4_vector3); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector4 -// -function mtlx_procedural2d_ramp4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector4'); - this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector4'); - this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector4'); - this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector4'); - this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramp4_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramp4_vector4.nodedef_name = 'ND_ramp4_vector4'; -mtlx_procedural2d_ramp4_vector4.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector4',mtlx_procedural2d_ramp4_vector4); - -// MaterialX node type: mtlx/procedural2d/splitlr_float -// -function mtlx_procedural2d_splitlr_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','float'); - this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','float'); - this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'splitlr_float'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_splitlr_float.nodedef_name = 'ND_splitlr_float'; -mtlx_procedural2d_splitlr_float.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_float',mtlx_procedural2d_splitlr_float); - -// MaterialX node type: mtlx/procedural2d/splitlr_color3 -// -function mtlx_procedural2d_splitlr_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'splitlr_color3'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_splitlr_color3.nodedef_name = 'ND_splitlr_color3'; -mtlx_procedural2d_splitlr_color3.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color3',mtlx_procedural2d_splitlr_color3); - -// MaterialX node type: mtlx/procedural2d/splitlr_color4 -// -function mtlx_procedural2d_splitlr_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'splitlr_color4'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_splitlr_color4.nodedef_name = 'ND_splitlr_color4'; -mtlx_procedural2d_splitlr_color4.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color4',mtlx_procedural2d_splitlr_color4); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector2 -// -function mtlx_procedural2d_splitlr_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector2'); - this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector2'); - this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'splitlr_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_splitlr_vector2.nodedef_name = 'ND_splitlr_vector2'; -mtlx_procedural2d_splitlr_vector2.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector2',mtlx_procedural2d_splitlr_vector2); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector3 -// -function mtlx_procedural2d_splitlr_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'splitlr_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_splitlr_vector3.nodedef_name = 'ND_splitlr_vector3'; -mtlx_procedural2d_splitlr_vector3.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector3',mtlx_procedural2d_splitlr_vector3); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector4 -// -function mtlx_procedural2d_splitlr_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'splitlr_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_splitlr_vector4.nodedef_name = 'ND_splitlr_vector4'; -mtlx_procedural2d_splitlr_vector4.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector4',mtlx_procedural2d_splitlr_vector4); - -// MaterialX node type: mtlx/procedural2d/splittb_float -// -function mtlx_procedural2d_splittb_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','float'); - this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','float'); - this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'splittb_float'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_splittb_float.nodedef_name = 'ND_splittb_float'; -mtlx_procedural2d_splittb_float.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_float',mtlx_procedural2d_splittb_float); - -// MaterialX node type: mtlx/procedural2d/splittb_color3 -// -function mtlx_procedural2d_splittb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'splittb_color3'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_splittb_color3.nodedef_name = 'ND_splittb_color3'; -mtlx_procedural2d_splittb_color3.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color3',mtlx_procedural2d_splittb_color3); - -// MaterialX node type: mtlx/procedural2d/splittb_color4 -// -function mtlx_procedural2d_splittb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'splittb_color4'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_splittb_color4.nodedef_name = 'ND_splittb_color4'; -mtlx_procedural2d_splittb_color4.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color4',mtlx_procedural2d_splittb_color4); - -// MaterialX node type: mtlx/procedural2d/splittb_vector2 -// -function mtlx_procedural2d_splittb_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector2'); - this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector2'); - this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'splittb_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_splittb_vector2.nodedef_name = 'ND_splittb_vector2'; -mtlx_procedural2d_splittb_vector2.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector2',mtlx_procedural2d_splittb_vector2); - -// MaterialX node type: mtlx/procedural2d/splittb_vector3 -// -function mtlx_procedural2d_splittb_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'splittb_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_splittb_vector3.nodedef_name = 'ND_splittb_vector3'; -mtlx_procedural2d_splittb_vector3.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector3',mtlx_procedural2d_splittb_vector3); - -// MaterialX node type: mtlx/procedural2d/splittb_vector4 -// -function mtlx_procedural2d_splittb_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'splittb_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_splittb_vector4.nodedef_name = 'ND_splittb_vector4'; -mtlx_procedural2d_splittb_vector4.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector4',mtlx_procedural2d_splittb_vector4); - -// MaterialX node type: mtlx/procedural2d/noise2d_float -// -function mtlx_procedural2d_noise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'noise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_noise2d_float.nodedef_name = 'ND_noise2d_float'; -mtlx_procedural2d_noise2d_float.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_float',mtlx_procedural2d_noise2d_float); - -// MaterialX node type: mtlx/procedural2d/noise2d_color3 -// -function mtlx_procedural2d_noise2d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise2d_color3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_noise2d_color3.nodedef_name = 'ND_noise2d_color3'; -mtlx_procedural2d_noise2d_color3.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3',mtlx_procedural2d_noise2d_color3); - -// MaterialX node type: mtlx/procedural2d/noise2d_color4 -// -function mtlx_procedural2d_noise2d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise2d_color4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_noise2d_color4.nodedef_name = 'ND_noise2d_color4'; -mtlx_procedural2d_noise2d_color4.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4',mtlx_procedural2d_noise2d_color4); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector2 -// -function mtlx_procedural2d_noise2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_noise2d_vector2.nodedef_name = 'ND_noise2d_vector2'; -mtlx_procedural2d_noise2d_vector2.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2',mtlx_procedural2d_noise2d_vector2); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector3 -// -function mtlx_procedural2d_noise2d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_noise2d_vector3.nodedef_name = 'ND_noise2d_vector3'; -mtlx_procedural2d_noise2d_vector3.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3',mtlx_procedural2d_noise2d_vector3); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector4 -// -function mtlx_procedural2d_noise2d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise2d_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_noise2d_vector4.nodedef_name = 'ND_noise2d_vector4'; -mtlx_procedural2d_noise2d_vector4.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4',mtlx_procedural2d_noise2d_vector4); - -// MaterialX node type: mtlx/procedural2d/noise2d_color3FA -// -function mtlx_procedural2d_noise2d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise2d_color3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_noise2d_color3FA.nodedef_name = 'ND_noise2d_color3FA'; -mtlx_procedural2d_noise2d_color3FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3FA',mtlx_procedural2d_noise2d_color3FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_color4FA -// -function mtlx_procedural2d_noise2d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise2d_color4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_noise2d_color4FA.nodedef_name = 'ND_noise2d_color4FA'; -mtlx_procedural2d_noise2d_color4FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4FA',mtlx_procedural2d_noise2d_color4FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector2FA -// -function mtlx_procedural2d_noise2d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_noise2d_vector2FA.nodedef_name = 'ND_noise2d_vector2FA'; -mtlx_procedural2d_noise2d_vector2FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2FA',mtlx_procedural2d_noise2d_vector2FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector3FA -// -function mtlx_procedural2d_noise2d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_noise2d_vector3FA.nodedef_name = 'ND_noise2d_vector3FA'; -mtlx_procedural2d_noise2d_vector3FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3FA',mtlx_procedural2d_noise2d_vector3FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector4FA -// -function mtlx_procedural2d_noise2d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise2d_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_noise2d_vector4FA.nodedef_name = 'ND_noise2d_vector4FA'; -mtlx_procedural2d_noise2d_vector4FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4FA',mtlx_procedural2d_noise2d_vector4FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_float -// -function mtlx_procedural3d_noise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'noise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_noise3d_float.nodedef_name = 'ND_noise3d_float'; -mtlx_procedural3d_noise3d_float.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_float',mtlx_procedural3d_noise3d_float); - -// MaterialX node type: mtlx/procedural3d/noise3d_color3 -// -function mtlx_procedural3d_noise3d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_noise3d_color3.nodedef_name = 'ND_noise3d_color3'; -mtlx_procedural3d_noise3d_color3.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3',mtlx_procedural3d_noise3d_color3); - -// MaterialX node type: mtlx/procedural3d/noise3d_color4 -// -function mtlx_procedural3d_noise3d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_noise3d_color4.nodedef_name = 'ND_noise3d_color4'; -mtlx_procedural3d_noise3d_color4.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4',mtlx_procedural3d_noise3d_color4); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector2 -// -function mtlx_procedural3d_noise3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_noise3d_vector2.nodedef_name = 'ND_noise3d_vector2'; -mtlx_procedural3d_noise3d_vector2.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2',mtlx_procedural3d_noise3d_vector2); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector3 -// -function mtlx_procedural3d_noise3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_noise3d_vector3.nodedef_name = 'ND_noise3d_vector3'; -mtlx_procedural3d_noise3d_vector3.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3',mtlx_procedural3d_noise3d_vector3); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector4 -// -function mtlx_procedural3d_noise3d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_noise3d_vector4.nodedef_name = 'ND_noise3d_vector4'; -mtlx_procedural3d_noise3d_vector4.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4',mtlx_procedural3d_noise3d_vector4); - -// MaterialX node type: mtlx/procedural3d/noise3d_color3FA -// -function mtlx_procedural3d_noise3d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_noise3d_color3FA.nodedef_name = 'ND_noise3d_color3FA'; -mtlx_procedural3d_noise3d_color3FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3FA',mtlx_procedural3d_noise3d_color3FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_color4FA -// -function mtlx_procedural3d_noise3d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_noise3d_color4FA.nodedef_name = 'ND_noise3d_color4FA'; -mtlx_procedural3d_noise3d_color4FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4FA',mtlx_procedural3d_noise3d_color4FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector2FA -// -function mtlx_procedural3d_noise3d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_noise3d_vector2FA.nodedef_name = 'ND_noise3d_vector2FA'; -mtlx_procedural3d_noise3d_vector2FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2FA',mtlx_procedural3d_noise3d_vector2FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector3FA -// -function mtlx_procedural3d_noise3d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_noise3d_vector3FA.nodedef_name = 'ND_noise3d_vector3FA'; -mtlx_procedural3d_noise3d_vector3FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3FA',mtlx_procedural3d_noise3d_vector3FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector4FA -// -function mtlx_procedural3d_noise3d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_noise3d_vector4FA.nodedef_name = 'ND_noise3d_vector4FA'; -mtlx_procedural3d_noise3d_vector4FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4FA',mtlx_procedural3d_noise3d_vector4FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_float -// -function mtlx_procedural3d_fractal3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'fractal3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_fractal3d_float.nodedef_name = 'ND_fractal3d_float'; -mtlx_procedural3d_fractal3d_float.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_float',mtlx_procedural3d_fractal3d_float); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color3 -// -function mtlx_procedural3d_fractal3d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'fractal3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_fractal3d_color3.nodedef_name = 'ND_fractal3d_color3'; -mtlx_procedural3d_fractal3d_color3.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3',mtlx_procedural3d_fractal3d_color3); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color4 -// -function mtlx_procedural3d_fractal3d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'fractal3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_fractal3d_color4.nodedef_name = 'ND_fractal3d_color4'; -mtlx_procedural3d_fractal3d_color4.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4',mtlx_procedural3d_fractal3d_color4); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector2 -// -function mtlx_procedural3d_fractal3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'fractal3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_fractal3d_vector2.nodedef_name = 'ND_fractal3d_vector2'; -mtlx_procedural3d_fractal3d_vector2.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2',mtlx_procedural3d_fractal3d_vector2); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector3 -// -function mtlx_procedural3d_fractal3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'fractal3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_fractal3d_vector3.nodedef_name = 'ND_fractal3d_vector3'; -mtlx_procedural3d_fractal3d_vector3.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3',mtlx_procedural3d_fractal3d_vector3); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector4 -// -function mtlx_procedural3d_fractal3d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'fractal3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_fractal3d_vector4.nodedef_name = 'ND_fractal3d_vector4'; -mtlx_procedural3d_fractal3d_vector4.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4',mtlx_procedural3d_fractal3d_vector4); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color3FA -// -function mtlx_procedural3d_fractal3d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'fractal3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_fractal3d_color3FA.nodedef_name = 'ND_fractal3d_color3FA'; -mtlx_procedural3d_fractal3d_color3FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3FA',mtlx_procedural3d_fractal3d_color3FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color4FA -// -function mtlx_procedural3d_fractal3d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'fractal3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_fractal3d_color4FA.nodedef_name = 'ND_fractal3d_color4FA'; -mtlx_procedural3d_fractal3d_color4FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4FA',mtlx_procedural3d_fractal3d_color4FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector2FA -// -function mtlx_procedural3d_fractal3d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'fractal3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_fractal3d_vector2FA.nodedef_name = 'ND_fractal3d_vector2FA'; -mtlx_procedural3d_fractal3d_vector2FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2FA',mtlx_procedural3d_fractal3d_vector2FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector3FA -// -function mtlx_procedural3d_fractal3d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'fractal3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_fractal3d_vector3FA.nodedef_name = 'ND_fractal3d_vector3FA'; -mtlx_procedural3d_fractal3d_vector3FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3FA',mtlx_procedural3d_fractal3d_vector3FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector4FA -// -function mtlx_procedural3d_fractal3d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'fractal3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_fractal3d_vector4FA.nodedef_name = 'ND_fractal3d_vector4FA'; -mtlx_procedural3d_fractal3d_vector4FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4FA',mtlx_procedural3d_fractal3d_vector4FA); - -// MaterialX node type: mtlx/procedural2d/cellnoise2d_float -// -function mtlx_procedural2d_cellnoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cellnoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cellnoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cellnoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/cellnoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_cellnoise2d_float.nodedef_name = 'ND_cellnoise2d_float'; -mtlx_procedural2d_cellnoise2d_float.nodedef_node = 'cellnoise2d'; -mtlx_procedural2d_cellnoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/cellnoise2d_float',mtlx_procedural2d_cellnoise2d_float); - -// MaterialX node type: mtlx/procedural3d/cellnoise3d_float -// -function mtlx_procedural3d_cellnoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cellnoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cellnoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cellnoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/cellnoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_cellnoise3d_float.nodedef_name = 'ND_cellnoise3d_float'; -mtlx_procedural3d_cellnoise3d_float.nodedef_node = 'cellnoise3d'; -mtlx_procedural3d_cellnoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/cellnoise3d_float',mtlx_procedural3d_cellnoise3d_float); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_float -// -function mtlx_procedural2d_worleynoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'worleynoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_worleynoise2d_float.nodedef_name = 'ND_worleynoise2d_float'; -mtlx_procedural2d_worleynoise2d_float.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_float',mtlx_procedural2d_worleynoise2d_float); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector2 -// -function mtlx_procedural2d_worleynoise2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'worleynoise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_worleynoise2d_vector2.nodedef_name = 'ND_worleynoise2d_vector2'; -mtlx_procedural2d_worleynoise2d_vector2.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector2',mtlx_procedural2d_worleynoise2d_vector2); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector3 -// -function mtlx_procedural2d_worleynoise2d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'worleynoise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_worleynoise2d_vector3.nodedef_name = 'ND_worleynoise2d_vector3'; -mtlx_procedural2d_worleynoise2d_vector3.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector3',mtlx_procedural2d_worleynoise2d_vector3); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_float -// -function mtlx_procedural3d_worleynoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'worleynoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_worleynoise3d_float.nodedef_name = 'ND_worleynoise3d_float'; -mtlx_procedural3d_worleynoise3d_float.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_float',mtlx_procedural3d_worleynoise3d_float); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector2 -// -function mtlx_procedural3d_worleynoise3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'worleynoise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_worleynoise3d_vector2.nodedef_name = 'ND_worleynoise3d_vector2'; -mtlx_procedural3d_worleynoise3d_vector2.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector2',mtlx_procedural3d_worleynoise3d_vector2); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector3 -// -function mtlx_procedural3d_worleynoise3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'worleynoise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_worleynoise3d_vector3.nodedef_name = 'ND_worleynoise3d_vector3'; -mtlx_procedural3d_worleynoise3d_vector3.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector3',mtlx_procedural3d_worleynoise3d_vector3); - -// MaterialX node type: mtlx/procedural2d/unifiednoise2d_float -// -function mtlx_procedural2d_unifiednoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unifiednoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'unifiednoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('freq','vector2'); - this.addProperty('freq', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('outmin','float'); - this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('outmax','float'); - this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('clampoutput','boolean'); - this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('type','integer'); - this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addOutput('out','float'); - this.title = 'unifiednoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/unifiednoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_unifiednoise2d_float.nodedef_name = 'ND_unifiednoise2d_float'; -mtlx_procedural2d_unifiednoise2d_float.nodedef_node = 'unifiednoise2d'; -mtlx_procedural2d_unifiednoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/unifiednoise2d_float',mtlx_procedural2d_unifiednoise2d_float); - -// MaterialX node type: mtlx/procedural3d/unifiednoise3d_float -// -function mtlx_procedural3d_unifiednoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unifiednoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'unifiednoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('freq','vector3'); - this.addProperty('freq', [1, 1, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('offset','vector3'); - this.addProperty('offset', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('outmin','float'); - this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('outmax','float'); - this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('clampoutput','boolean'); - this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('type','integer'); - this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addOutput('out','float'); - this.title = 'unifiednoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/unifiednoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_unifiednoise3d_float.nodedef_name = 'ND_unifiednoise3d_float'; -mtlx_procedural3d_unifiednoise3d_float.nodedef_node = 'unifiednoise3d'; -mtlx_procedural3d_unifiednoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/unifiednoise3d_float',mtlx_procedural3d_unifiednoise3d_float); - -// MaterialX node type: mtlx/procedural/randomfloat_float -// -function mtlx_procedural_randomfloat_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomfloat_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'randomfloat'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_float_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('min','float'); - this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('max','float'); - this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'randomfloat_float'; - this.desc = "MaterialX:mtlx/procedural/randomfloat_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_randomfloat_float.nodedef_name = 'ND_randomfloat_float'; -mtlx_procedural_randomfloat_float.nodedef_node = 'randomfloat'; -mtlx_procedural_randomfloat_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; -LiteGraph.registerNodeType('mtlx/procedural/randomfloat_float',mtlx_procedural_randomfloat_float); - -// MaterialX node type: mtlx/procedural/randomfloat_integer -// -function mtlx_procedural_randomfloat_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomfloat_integer'; - this.nodedef_type = 'float'; - this.nodedef_node = 'randomfloat'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_integer_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('min','float'); - this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('max','float'); - this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'randomfloat_float'; - this.desc = "MaterialX:mtlx/procedural/randomfloat_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_randomfloat_integer.nodedef_name = 'ND_randomfloat_integer'; -mtlx_procedural_randomfloat_integer.nodedef_node = 'randomfloat'; -mtlx_procedural_randomfloat_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; -LiteGraph.registerNodeType('mtlx/procedural/randomfloat_integer',mtlx_procedural_randomfloat_integer); - -// MaterialX node type: mtlx/procedural3d/randomcolor_float -// -function mtlx_procedural3d_randomcolor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomcolor_float'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'randomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huelow','float'); - this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huehigh','float'); - this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationlow','float'); - this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationhigh','float'); - this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesslow','float'); - this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesshigh','float'); - this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'randomcolor_color3'; - this.desc = "MaterialX:mtlx/procedural3d/randomcolor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_randomcolor_float.nodedef_name = 'ND_randomcolor_float'; -mtlx_procedural3d_randomcolor_float.nodedef_node = 'randomcolor'; -mtlx_procedural3d_randomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_float',mtlx_procedural3d_randomcolor_float); - -// MaterialX node type: mtlx/procedural3d/randomcolor_integer -// -function mtlx_procedural3d_randomcolor_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomcolor_integer'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'randomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_integer_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huelow','float'); - this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huehigh','float'); - this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationlow','float'); - this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationhigh','float'); - this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesslow','float'); - this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesshigh','float'); - this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'randomcolor_color3'; - this.desc = "MaterialX:mtlx/procedural3d/randomcolor_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_randomcolor_integer.nodedef_name = 'ND_randomcolor_integer'; -mtlx_procedural3d_randomcolor_integer.nodedef_node = 'randomcolor'; -mtlx_procedural3d_randomcolor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_integer',mtlx_procedural3d_randomcolor_integer); - -// MaterialX node type: mtlx/procedural2d/checkerboard_color3 -// -function mtlx_procedural2d_checkerboard_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_checkerboard_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'checkerboard'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_checkerboard_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('color1','color3'); - this.addProperty('color1', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color2','color3'); - this.addProperty('color2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [8, 8], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Tiling","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'checkerboard_color3'; - this.desc = "MaterialX:mtlx/procedural2d/checkerboard_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_checkerboard_color3.nodedef_name = 'ND_checkerboard_color3'; -mtlx_procedural2d_checkerboard_color3.nodedef_node = 'checkerboard'; -mtlx_procedural2d_checkerboard_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/checkerboard_color3',mtlx_procedural2d_checkerboard_color3); - -// MaterialX node type: mtlx/procedural2d/line_float -// -function mtlx_procedural2d_line_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_line_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'line'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_line_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('point1','vector2'); - this.addProperty('point1', [0.25, 0.25], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('point2','vector2'); - this.addProperty('point2', [0.75, 0.75], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'line_float'; - this.desc = "MaterialX:mtlx/procedural2d/line_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_line_float.nodedef_name = 'ND_line_float'; -mtlx_procedural2d_line_float.nodedef_node = 'line'; -mtlx_procedural2d_line_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/line_float',mtlx_procedural2d_line_float); - -// MaterialX node type: mtlx/procedural2d/circle_float -// -function mtlx_procedural2d_circle_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_circle_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'circle'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_circle_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'circle_float'; - this.desc = "MaterialX:mtlx/procedural2d/circle_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_circle_float.nodedef_name = 'ND_circle_float'; -mtlx_procedural2d_circle_float.nodedef_node = 'circle'; -mtlx_procedural2d_circle_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/circle_float',mtlx_procedural2d_circle_float); - -// MaterialX node type: mtlx/procedural2d/cloverleaf_float -// -function mtlx_procedural2d_cloverleaf_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cloverleaf_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cloverleaf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cloverleaf_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cloverleaf_float'; - this.desc = "MaterialX:mtlx/procedural2d/cloverleaf_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_cloverleaf_float.nodedef_name = 'ND_cloverleaf_float'; -mtlx_procedural2d_cloverleaf_float.nodedef_node = 'cloverleaf'; -mtlx_procedural2d_cloverleaf_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/cloverleaf_float',mtlx_procedural2d_cloverleaf_float); - -// MaterialX node type: mtlx/procedural2d/hexagon_float -// -function mtlx_procedural2d_hexagon_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hexagon_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'hexagon'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hexagon_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'hexagon_float'; - this.desc = "MaterialX:mtlx/procedural2d/hexagon_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_hexagon_float.nodedef_name = 'ND_hexagon_float'; -mtlx_procedural2d_hexagon_float.nodedef_node = 'hexagon'; -mtlx_procedural2d_hexagon_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/hexagon_float',mtlx_procedural2d_hexagon_float); - -// MaterialX node type: mtlx/procedural2d/grid_color3 -// -function mtlx_procedural2d_grid_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_grid_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'grid'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_grid_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'grid_color3'; - this.desc = "MaterialX:mtlx/procedural2d/grid_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_grid_color3.nodedef_name = 'ND_grid_color3'; -mtlx_procedural2d_grid_color3.nodedef_node = 'grid'; -mtlx_procedural2d_grid_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/grid_color3',mtlx_procedural2d_grid_color3); - -// MaterialX node type: mtlx/procedural2d/crosshatch_color3 -// -function mtlx_procedural2d_crosshatch_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_crosshatch_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'crosshatch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crosshatch_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'crosshatch_color3'; - this.desc = "MaterialX:mtlx/procedural2d/crosshatch_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_crosshatch_color3.nodedef_name = 'ND_crosshatch_color3'; -mtlx_procedural2d_crosshatch_color3.nodedef_node = 'crosshatch'; -mtlx_procedural2d_crosshatch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/crosshatch_color3',mtlx_procedural2d_crosshatch_color3); - -// MaterialX node type: mtlx/procedural2d/tiledcircles_color3 -// -function mtlx_procedural2d_tiledcircles_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledcircles_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledcircles'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcircles_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledcircles_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledcircles_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledcircles_color3.nodedef_name = 'ND_tiledcircles_color3'; -mtlx_procedural2d_tiledcircles_color3.nodedef_node = 'tiledcircles'; -mtlx_procedural2d_tiledcircles_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledcircles_color3',mtlx_procedural2d_tiledcircles_color3); - -// MaterialX node type: mtlx/procedural2d/tiledcloverleafs_color3 -// -function mtlx_procedural2d_tiledcloverleafs_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledcloverleafs_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledcloverleafs'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcloverleafs_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledcloverleafs_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledcloverleafs_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_name = 'ND_tiledcloverleafs_color3'; -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_node = 'tiledcloverleafs'; -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledcloverleafs_color3',mtlx_procedural2d_tiledcloverleafs_color3); - -// MaterialX node type: mtlx/procedural2d/tiledhexagons_color3 -// -function mtlx_procedural2d_tiledhexagons_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledhexagons_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledhexagons'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledhexagons_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledhexagons_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledhexagons_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledhexagons_color3.nodedef_name = 'ND_tiledhexagons_color3'; -mtlx_procedural2d_tiledhexagons_color3.nodedef_node = 'tiledhexagons'; -mtlx_procedural2d_tiledhexagons_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledhexagons_color3',mtlx_procedural2d_tiledhexagons_color3); - -// MaterialX node type: mtlx/geometric/position_vector3 -// -function mtlx_geometric_position_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_position_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'position'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_position_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'position_vector3'; - this.desc = "MaterialX:mtlx/geometric/position_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_position_vector3.nodedef_name = 'ND_position_vector3'; -mtlx_geometric_position_vector3.nodedef_node = 'position'; -mtlx_geometric_position_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; -LiteGraph.registerNodeType('mtlx/geometric/position_vector3',mtlx_geometric_position_vector3); - -// MaterialX node type: mtlx/geometric/normal_vector3 -// -function mtlx_geometric_normal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normal_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normal_vector3'; - this.desc = "MaterialX:mtlx/geometric/normal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_normal_vector3.nodedef_name = 'ND_normal_vector3'; -mtlx_geometric_normal_vector3.nodedef_node = 'normal'; -mtlx_geometric_normal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; -LiteGraph.registerNodeType('mtlx/geometric/normal_vector3',mtlx_geometric_normal_vector3); - -// MaterialX node type: mtlx/geometric/tangent_vector3 -// -function mtlx_geometric_tangent_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tangent_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tangent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tangent_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tangent_vector3'; - this.desc = "MaterialX:mtlx/geometric/tangent_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_tangent_vector3.nodedef_name = 'ND_tangent_vector3'; -mtlx_geometric_tangent_vector3.nodedef_node = 'tangent'; -mtlx_geometric_tangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; -LiteGraph.registerNodeType('mtlx/geometric/tangent_vector3',mtlx_geometric_tangent_vector3); - -// MaterialX node type: mtlx/geometric/bitangent_vector3 -// -function mtlx_geometric_bitangent_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_bitangent_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'bitangent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bitangent_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'bitangent_vector3'; - this.desc = "MaterialX:mtlx/geometric/bitangent_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_bitangent_vector3.nodedef_name = 'ND_bitangent_vector3'; -mtlx_geometric_bitangent_vector3.nodedef_node = 'bitangent'; -mtlx_geometric_bitangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; -LiteGraph.registerNodeType('mtlx/geometric/bitangent_vector3',mtlx_geometric_bitangent_vector3); - -// MaterialX node type: mtlx/geometric/texcoord_vector2 -// -function mtlx_geometric_texcoord_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_texcoord_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'texcoord'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'texcoord_vector2'; - this.desc = "MaterialX:mtlx/geometric/texcoord_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_texcoord_vector2.nodedef_name = 'ND_texcoord_vector2'; -mtlx_geometric_texcoord_vector2.nodedef_node = 'texcoord'; -mtlx_geometric_texcoord_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; -LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector2',mtlx_geometric_texcoord_vector2); - -// MaterialX node type: mtlx/geometric/texcoord_vector3 -// -function mtlx_geometric_texcoord_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_texcoord_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'texcoord'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'texcoord_vector3'; - this.desc = "MaterialX:mtlx/geometric/texcoord_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_texcoord_vector3.nodedef_name = 'ND_texcoord_vector3'; -mtlx_geometric_texcoord_vector3.nodedef_node = 'texcoord'; -mtlx_geometric_texcoord_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; -LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector3',mtlx_geometric_texcoord_vector3); - -// MaterialX node type: mtlx/geometric/geomcolor_float -// -function mtlx_geometric_geomcolor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'geomcolor_float'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_geomcolor_float.nodedef_name = 'ND_geomcolor_float'; -mtlx_geometric_geomcolor_float.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_float',mtlx_geometric_geomcolor_float); - -// MaterialX node type: mtlx/geometric/geomcolor_color3 -// -function mtlx_geometric_geomcolor_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'geomcolor_color3'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_geometric_geomcolor_color3.nodedef_name = 'ND_geomcolor_color3'; -mtlx_geometric_geomcolor_color3.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color3',mtlx_geometric_geomcolor_color3); - -// MaterialX node type: mtlx/geometric/geomcolor_color4 -// -function mtlx_geometric_geomcolor_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'geomcolor_color4'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_geometric_geomcolor_color4.nodedef_name = 'ND_geomcolor_color4'; -mtlx_geometric_geomcolor_color4.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color4',mtlx_geometric_geomcolor_color4); - -// MaterialX node type: mtlx/geometric/geompropvalue_integer -// -function mtlx_geometric_geompropvalue_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_integer_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','integer'); - this.addProperty('default', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'geompropvalue_integer'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_geompropvalue_integer.nodedef_name = 'ND_geompropvalue_integer'; -mtlx_geometric_geompropvalue_integer.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_integer',mtlx_geometric_geompropvalue_integer); - -// MaterialX node type: mtlx/geometric/geompropvalue_boolean -// -function mtlx_geometric_geompropvalue_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_boolean_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','boolean'); - this.addProperty('default', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'geompropvalue_boolean'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_geometric_geompropvalue_boolean.nodedef_name = 'ND_geompropvalue_boolean'; -mtlx_geometric_geompropvalue_boolean.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_boolean',mtlx_geometric_geompropvalue_boolean); - -// MaterialX node type: mtlx/geometric/geompropvalue_string -// -function mtlx_geometric_geompropvalue_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_string_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','string'); - this.addProperty('default', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'geompropvalue_string'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_geometric_geompropvalue_string.nodedef_name = 'ND_geompropvalue_string'; -mtlx_geometric_geompropvalue_string.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_string',mtlx_geometric_geompropvalue_string); - -// MaterialX node type: mtlx/geometric/geompropvalue_float -// -function mtlx_geometric_geompropvalue_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'geompropvalue_float'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_geompropvalue_float.nodedef_name = 'ND_geompropvalue_float'; -mtlx_geometric_geompropvalue_float.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_float',mtlx_geometric_geompropvalue_float); - -// MaterialX node type: mtlx/geometric/geompropvalue_color3 -// -function mtlx_geometric_geompropvalue_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'geompropvalue_color3'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_geometric_geompropvalue_color3.nodedef_name = 'ND_geompropvalue_color3'; -mtlx_geometric_geompropvalue_color3.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color3',mtlx_geometric_geompropvalue_color3); - -// MaterialX node type: mtlx/geometric/geompropvalue_color4 -// -function mtlx_geometric_geompropvalue_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'geompropvalue_color4'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_geometric_geompropvalue_color4.nodedef_name = 'ND_geompropvalue_color4'; -mtlx_geometric_geompropvalue_color4.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color4',mtlx_geometric_geompropvalue_color4); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector2 -// -function mtlx_geometric_geompropvalue_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'geompropvalue_vector2'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_geompropvalue_vector2.nodedef_name = 'ND_geompropvalue_vector2'; -mtlx_geometric_geompropvalue_vector2.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector2',mtlx_geometric_geompropvalue_vector2); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector3 -// -function mtlx_geometric_geompropvalue_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'geompropvalue_vector3'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_geompropvalue_vector3.nodedef_name = 'ND_geompropvalue_vector3'; -mtlx_geometric_geompropvalue_vector3.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector3',mtlx_geometric_geompropvalue_vector3); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector4 -// -function mtlx_geometric_geompropvalue_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'geompropvalue_vector4'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_geometric_geompropvalue_vector4.nodedef_name = 'ND_geompropvalue_vector4'; -mtlx_geometric_geompropvalue_vector4.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector4',mtlx_geometric_geompropvalue_vector4); - -// MaterialX node type: mtlx/geometric/bump_vector3 -// -function mtlx_geometric_bump_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_bump_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'bump'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bump_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('height','float'); - this.addProperty('height', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Height","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'bump_vector3'; - this.desc = "MaterialX:mtlx/geometric/bump_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_bump_vector3.nodedef_name = 'ND_bump_vector3'; -mtlx_geometric_bump_vector3.nodedef_node = 'bump'; -mtlx_geometric_bump_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; -LiteGraph.registerNodeType('mtlx/geometric/bump_vector3',mtlx_geometric_bump_vector3); - -// MaterialX node type: mtlx/global/ambientocclusion_float -// -function mtlx_global_ambientocclusion_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ambientocclusion_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ambientocclusion'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ambientocclusion_float_out_genglsl.png'; - this.nodedef_group = 'global'; - this.addInput('coneangle','float'); - this.addProperty('coneangle', 90.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('maxdistance','float'); - this.addProperty('maxdistance', 1e38, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ambientocclusion_float'; - this.desc = "MaterialX:mtlx/global/ambientocclusion_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_global_ambientocclusion_float.nodedef_name = 'ND_ambientocclusion_float'; -mtlx_global_ambientocclusion_float.nodedef_node = 'ambientocclusion'; -mtlx_global_ambientocclusion_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; -LiteGraph.registerNodeType('mtlx/global/ambientocclusion_float',mtlx_global_ambientocclusion_float); - -// MaterialX node type: mtlx/application/frame_float -// -function mtlx_application_frame_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_frame_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'frame'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_frame_float_out_genglsl.png'; - this.nodedef_group = 'application'; - this.addOutput('out','float'); - this.title = 'frame_float'; - this.desc = "MaterialX:mtlx/application/frame_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_application_frame_float.nodedef_name = 'ND_frame_float'; -mtlx_application_frame_float.nodedef_node = 'frame'; -mtlx_application_frame_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; -LiteGraph.registerNodeType('mtlx/application/frame_float',mtlx_application_frame_float); - -// MaterialX node type: mtlx/application/time_float -// -function mtlx_application_time_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_time_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'time'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_time_float_out_genglsl.png'; - this.nodedef_group = 'application'; - this.addInput('fps','float'); - this.addProperty('fps', 24.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'time_float'; - this.desc = "MaterialX:mtlx/application/time_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_application_time_float.nodedef_name = 'ND_time_float'; -mtlx_application_time_float.nodedef_node = 'time'; -mtlx_application_time_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; -LiteGraph.registerNodeType('mtlx/application/time_float',mtlx_application_time_float); - -// MaterialX node type: mtlx/math/add_float -// -function mtlx_math_add_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'add_float'; - this.desc = "MaterialX:mtlx/math/add_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_add_float.nodedef_name = 'ND_add_float'; -mtlx_math_add_float.nodedef_node = 'add'; -mtlx_math_add_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_float',mtlx_math_add_float); - -// MaterialX node type: mtlx/math/add_integer -// -function mtlx_math_add_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'add_integer'; - this.desc = "MaterialX:mtlx/math/add_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_integer.nodedef_name = 'ND_add_integer'; -mtlx_math_add_integer.nodedef_node = 'add'; -mtlx_math_add_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_integer',mtlx_math_add_integer); - -// MaterialX node type: mtlx/math/add_color3 -// -function mtlx_math_add_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'add_color3'; - this.desc = "MaterialX:mtlx/math/add_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_add_color3.nodedef_name = 'ND_add_color3'; -mtlx_math_add_color3.nodedef_node = 'add'; -mtlx_math_add_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color3',mtlx_math_add_color3); - -// MaterialX node type: mtlx/math/add_color4 -// -function mtlx_math_add_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'add_color4'; - this.desc = "MaterialX:mtlx/math/add_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_add_color4.nodedef_name = 'ND_add_color4'; -mtlx_math_add_color4.nodedef_node = 'add'; -mtlx_math_add_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color4',mtlx_math_add_color4); - -// MaterialX node type: mtlx/math/add_vector2 -// -function mtlx_math_add_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'add_vector2'; - this.desc = "MaterialX:mtlx/math/add_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_vector2.nodedef_name = 'ND_add_vector2'; -mtlx_math_add_vector2.nodedef_node = 'add'; -mtlx_math_add_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector2',mtlx_math_add_vector2); - -// MaterialX node type: mtlx/math/add_vector3 -// -function mtlx_math_add_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'add_vector3'; - this.desc = "MaterialX:mtlx/math/add_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_add_vector3.nodedef_name = 'ND_add_vector3'; -mtlx_math_add_vector3.nodedef_node = 'add'; -mtlx_math_add_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector3',mtlx_math_add_vector3); - -// MaterialX node type: mtlx/math/add_vector4 -// -function mtlx_math_add_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'add_vector4'; - this.desc = "MaterialX:mtlx/math/add_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_add_vector4.nodedef_name = 'ND_add_vector4'; -mtlx_math_add_vector4.nodedef_node = 'add'; -mtlx_math_add_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector4',mtlx_math_add_vector4); - -// MaterialX node type: mtlx/math/add_matrix33 -// -function mtlx_math_add_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'add_matrix33'; - this.desc = "MaterialX:mtlx/math/add_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_add_matrix33.nodedef_name = 'ND_add_matrix33'; -mtlx_math_add_matrix33.nodedef_node = 'add'; -mtlx_math_add_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix33',mtlx_math_add_matrix33); - -// MaterialX node type: mtlx/math/add_matrix44 -// -function mtlx_math_add_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'add_matrix44'; - this.desc = "MaterialX:mtlx/math/add_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_add_matrix44.nodedef_name = 'ND_add_matrix44'; -mtlx_math_add_matrix44.nodedef_node = 'add'; -mtlx_math_add_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix44',mtlx_math_add_matrix44); - -// MaterialX node type: mtlx/math/add_color3FA -// -function mtlx_math_add_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'add_color3'; - this.desc = "MaterialX:mtlx/math/add_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_add_color3FA.nodedef_name = 'ND_add_color3FA'; -mtlx_math_add_color3FA.nodedef_node = 'add'; -mtlx_math_add_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color3FA',mtlx_math_add_color3FA); - -// MaterialX node type: mtlx/math/add_color4FA -// -function mtlx_math_add_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'add_color4'; - this.desc = "MaterialX:mtlx/math/add_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_add_color4FA.nodedef_name = 'ND_add_color4FA'; -mtlx_math_add_color4FA.nodedef_node = 'add'; -mtlx_math_add_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color4FA',mtlx_math_add_color4FA); - -// MaterialX node type: mtlx/math/add_vector2FA -// -function mtlx_math_add_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'add_vector2'; - this.desc = "MaterialX:mtlx/math/add_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_vector2FA.nodedef_name = 'ND_add_vector2FA'; -mtlx_math_add_vector2FA.nodedef_node = 'add'; -mtlx_math_add_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector2FA',mtlx_math_add_vector2FA); - -// MaterialX node type: mtlx/math/add_vector3FA -// -function mtlx_math_add_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'add_vector3'; - this.desc = "MaterialX:mtlx/math/add_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_add_vector3FA.nodedef_name = 'ND_add_vector3FA'; -mtlx_math_add_vector3FA.nodedef_node = 'add'; -mtlx_math_add_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector3FA',mtlx_math_add_vector3FA); - -// MaterialX node type: mtlx/math/add_vector4FA -// -function mtlx_math_add_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'add_vector4'; - this.desc = "MaterialX:mtlx/math/add_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_add_vector4FA.nodedef_name = 'ND_add_vector4FA'; -mtlx_math_add_vector4FA.nodedef_node = 'add'; -mtlx_math_add_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector4FA',mtlx_math_add_vector4FA); - -// MaterialX node type: mtlx/math/add_matrix33FA -// -function mtlx_math_add_matrix33FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix33FA'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'add_matrix33'; - this.desc = "MaterialX:mtlx/math/add_matrix33FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_add_matrix33FA.nodedef_name = 'ND_add_matrix33FA'; -mtlx_math_add_matrix33FA.nodedef_node = 'add'; -mtlx_math_add_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix33FA',mtlx_math_add_matrix33FA); - -// MaterialX node type: mtlx/math/add_matrix44FA -// -function mtlx_math_add_matrix44FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix44FA'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'add_matrix44'; - this.desc = "MaterialX:mtlx/math/add_matrix44FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_add_matrix44FA.nodedef_name = 'ND_add_matrix44FA'; -mtlx_math_add_matrix44FA.nodedef_node = 'add'; -mtlx_math_add_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix44FA',mtlx_math_add_matrix44FA); - -// MaterialX node type: mtlx/math/subtract_float -// -function mtlx_math_subtract_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'subtract_float'; - this.desc = "MaterialX:mtlx/math/subtract_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_subtract_float.nodedef_name = 'ND_subtract_float'; -mtlx_math_subtract_float.nodedef_node = 'subtract'; -mtlx_math_subtract_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_float',mtlx_math_subtract_float); - -// MaterialX node type: mtlx/math/subtract_integer -// -function mtlx_math_subtract_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'subtract_integer'; - this.desc = "MaterialX:mtlx/math/subtract_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_integer.nodedef_name = 'ND_subtract_integer'; -mtlx_math_subtract_integer.nodedef_node = 'subtract'; -mtlx_math_subtract_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_integer',mtlx_math_subtract_integer); - -// MaterialX node type: mtlx/math/subtract_color3 -// -function mtlx_math_subtract_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'subtract_color3'; - this.desc = "MaterialX:mtlx/math/subtract_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_subtract_color3.nodedef_name = 'ND_subtract_color3'; -mtlx_math_subtract_color3.nodedef_node = 'subtract'; -mtlx_math_subtract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color3',mtlx_math_subtract_color3); - -// MaterialX node type: mtlx/math/subtract_color4 -// -function mtlx_math_subtract_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'subtract_color4'; - this.desc = "MaterialX:mtlx/math/subtract_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_subtract_color4.nodedef_name = 'ND_subtract_color4'; -mtlx_math_subtract_color4.nodedef_node = 'subtract'; -mtlx_math_subtract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color4',mtlx_math_subtract_color4); - -// MaterialX node type: mtlx/math/subtract_vector2 -// -function mtlx_math_subtract_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'subtract_vector2'; - this.desc = "MaterialX:mtlx/math/subtract_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_vector2.nodedef_name = 'ND_subtract_vector2'; -mtlx_math_subtract_vector2.nodedef_node = 'subtract'; -mtlx_math_subtract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector2',mtlx_math_subtract_vector2); - -// MaterialX node type: mtlx/math/subtract_vector3 -// -function mtlx_math_subtract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'subtract_vector3'; - this.desc = "MaterialX:mtlx/math/subtract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_subtract_vector3.nodedef_name = 'ND_subtract_vector3'; -mtlx_math_subtract_vector3.nodedef_node = 'subtract'; -mtlx_math_subtract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector3',mtlx_math_subtract_vector3); - -// MaterialX node type: mtlx/math/subtract_vector4 -// -function mtlx_math_subtract_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'subtract_vector4'; - this.desc = "MaterialX:mtlx/math/subtract_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_subtract_vector4.nodedef_name = 'ND_subtract_vector4'; -mtlx_math_subtract_vector4.nodedef_node = 'subtract'; -mtlx_math_subtract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector4',mtlx_math_subtract_vector4); - -// MaterialX node type: mtlx/math/subtract_matrix33 -// -function mtlx_math_subtract_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'subtract_matrix33'; - this.desc = "MaterialX:mtlx/math/subtract_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_subtract_matrix33.nodedef_name = 'ND_subtract_matrix33'; -mtlx_math_subtract_matrix33.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix33',mtlx_math_subtract_matrix33); - -// MaterialX node type: mtlx/math/subtract_matrix44 -// -function mtlx_math_subtract_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'subtract_matrix44'; - this.desc = "MaterialX:mtlx/math/subtract_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_subtract_matrix44.nodedef_name = 'ND_subtract_matrix44'; -mtlx_math_subtract_matrix44.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix44',mtlx_math_subtract_matrix44); - -// MaterialX node type: mtlx/math/subtract_color3FA -// -function mtlx_math_subtract_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'subtract_color3'; - this.desc = "MaterialX:mtlx/math/subtract_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_subtract_color3FA.nodedef_name = 'ND_subtract_color3FA'; -mtlx_math_subtract_color3FA.nodedef_node = 'subtract'; -mtlx_math_subtract_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color3FA',mtlx_math_subtract_color3FA); - -// MaterialX node type: mtlx/math/subtract_color4FA -// -function mtlx_math_subtract_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'subtract_color4'; - this.desc = "MaterialX:mtlx/math/subtract_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_subtract_color4FA.nodedef_name = 'ND_subtract_color4FA'; -mtlx_math_subtract_color4FA.nodedef_node = 'subtract'; -mtlx_math_subtract_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color4FA',mtlx_math_subtract_color4FA); - -// MaterialX node type: mtlx/math/subtract_vector2FA -// -function mtlx_math_subtract_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'subtract_vector2'; - this.desc = "MaterialX:mtlx/math/subtract_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_vector2FA.nodedef_name = 'ND_subtract_vector2FA'; -mtlx_math_subtract_vector2FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector2FA',mtlx_math_subtract_vector2FA); - -// MaterialX node type: mtlx/math/subtract_vector3FA -// -function mtlx_math_subtract_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'subtract_vector3'; - this.desc = "MaterialX:mtlx/math/subtract_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_subtract_vector3FA.nodedef_name = 'ND_subtract_vector3FA'; -mtlx_math_subtract_vector3FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector3FA',mtlx_math_subtract_vector3FA); - -// MaterialX node type: mtlx/math/subtract_vector4FA -// -function mtlx_math_subtract_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'subtract_vector4'; - this.desc = "MaterialX:mtlx/math/subtract_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_subtract_vector4FA.nodedef_name = 'ND_subtract_vector4FA'; -mtlx_math_subtract_vector4FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector4FA',mtlx_math_subtract_vector4FA); - -// MaterialX node type: mtlx/math/subtract_matrix33FA -// -function mtlx_math_subtract_matrix33FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix33FA'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'subtract_matrix33'; - this.desc = "MaterialX:mtlx/math/subtract_matrix33FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_subtract_matrix33FA.nodedef_name = 'ND_subtract_matrix33FA'; -mtlx_math_subtract_matrix33FA.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix33FA',mtlx_math_subtract_matrix33FA); - -// MaterialX node type: mtlx/math/subtract_matrix44FA -// -function mtlx_math_subtract_matrix44FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix44FA'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'subtract_matrix44'; - this.desc = "MaterialX:mtlx/math/subtract_matrix44FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_subtract_matrix44FA.nodedef_name = 'ND_subtract_matrix44FA'; -mtlx_math_subtract_matrix44FA.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix44FA',mtlx_math_subtract_matrix44FA); - -// MaterialX node type: mtlx/math/multiply_float -// -function mtlx_math_multiply_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'multiply_float'; - this.desc = "MaterialX:mtlx/math/multiply_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_multiply_float.nodedef_name = 'ND_multiply_float'; -mtlx_math_multiply_float.nodedef_node = 'multiply'; -mtlx_math_multiply_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_float',mtlx_math_multiply_float); - -// MaterialX node type: mtlx/math/multiply_color3 -// -function mtlx_math_multiply_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'multiply_color3'; - this.desc = "MaterialX:mtlx/math/multiply_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_multiply_color3.nodedef_name = 'ND_multiply_color3'; -mtlx_math_multiply_color3.nodedef_node = 'multiply'; -mtlx_math_multiply_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color3',mtlx_math_multiply_color3); - -// MaterialX node type: mtlx/math/multiply_color4 -// -function mtlx_math_multiply_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'multiply_color4'; - this.desc = "MaterialX:mtlx/math/multiply_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_multiply_color4.nodedef_name = 'ND_multiply_color4'; -mtlx_math_multiply_color4.nodedef_node = 'multiply'; -mtlx_math_multiply_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color4',mtlx_math_multiply_color4); - -// MaterialX node type: mtlx/math/multiply_vector2 -// -function mtlx_math_multiply_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'multiply_vector2'; - this.desc = "MaterialX:mtlx/math/multiply_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_multiply_vector2.nodedef_name = 'ND_multiply_vector2'; -mtlx_math_multiply_vector2.nodedef_node = 'multiply'; -mtlx_math_multiply_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector2',mtlx_math_multiply_vector2); - -// MaterialX node type: mtlx/math/multiply_vector3 -// -function mtlx_math_multiply_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'multiply_vector3'; - this.desc = "MaterialX:mtlx/math/multiply_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_multiply_vector3.nodedef_name = 'ND_multiply_vector3'; -mtlx_math_multiply_vector3.nodedef_node = 'multiply'; -mtlx_math_multiply_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector3',mtlx_math_multiply_vector3); - -// MaterialX node type: mtlx/math/multiply_vector4 -// -function mtlx_math_multiply_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'multiply_vector4'; - this.desc = "MaterialX:mtlx/math/multiply_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_multiply_vector4.nodedef_name = 'ND_multiply_vector4'; -mtlx_math_multiply_vector4.nodedef_node = 'multiply'; -mtlx_math_multiply_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector4',mtlx_math_multiply_vector4); - -// MaterialX node type: mtlx/math/multiply_matrix33 -// -function mtlx_math_multiply_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'multiply_matrix33'; - this.desc = "MaterialX:mtlx/math/multiply_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_multiply_matrix33.nodedef_name = 'ND_multiply_matrix33'; -mtlx_math_multiply_matrix33.nodedef_node = 'multiply'; -mtlx_math_multiply_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_matrix33',mtlx_math_multiply_matrix33); - -// MaterialX node type: mtlx/math/multiply_matrix44 -// -function mtlx_math_multiply_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'multiply_matrix44'; - this.desc = "MaterialX:mtlx/math/multiply_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_multiply_matrix44.nodedef_name = 'ND_multiply_matrix44'; -mtlx_math_multiply_matrix44.nodedef_node = 'multiply'; -mtlx_math_multiply_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_matrix44',mtlx_math_multiply_matrix44); - -// MaterialX node type: mtlx/math/multiply_color3FA -// -function mtlx_math_multiply_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'multiply_color3'; - this.desc = "MaterialX:mtlx/math/multiply_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_multiply_color3FA.nodedef_name = 'ND_multiply_color3FA'; -mtlx_math_multiply_color3FA.nodedef_node = 'multiply'; -mtlx_math_multiply_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color3FA',mtlx_math_multiply_color3FA); - -// MaterialX node type: mtlx/math/multiply_color4FA -// -function mtlx_math_multiply_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'multiply_color4'; - this.desc = "MaterialX:mtlx/math/multiply_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_multiply_color4FA.nodedef_name = 'ND_multiply_color4FA'; -mtlx_math_multiply_color4FA.nodedef_node = 'multiply'; -mtlx_math_multiply_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color4FA',mtlx_math_multiply_color4FA); - -// MaterialX node type: mtlx/math/multiply_vector2FA -// -function mtlx_math_multiply_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'multiply_vector2'; - this.desc = "MaterialX:mtlx/math/multiply_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_multiply_vector2FA.nodedef_name = 'ND_multiply_vector2FA'; -mtlx_math_multiply_vector2FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector2FA',mtlx_math_multiply_vector2FA); - -// MaterialX node type: mtlx/math/multiply_vector3FA -// -function mtlx_math_multiply_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'multiply_vector3'; - this.desc = "MaterialX:mtlx/math/multiply_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_multiply_vector3FA.nodedef_name = 'ND_multiply_vector3FA'; -mtlx_math_multiply_vector3FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector3FA',mtlx_math_multiply_vector3FA); - -// MaterialX node type: mtlx/math/multiply_vector4FA -// -function mtlx_math_multiply_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'multiply_vector4'; - this.desc = "MaterialX:mtlx/math/multiply_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_multiply_vector4FA.nodedef_name = 'ND_multiply_vector4FA'; -mtlx_math_multiply_vector4FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector4FA',mtlx_math_multiply_vector4FA); - -// MaterialX node type: mtlx/math/divide_float -// -function mtlx_math_divide_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'divide_float'; - this.desc = "MaterialX:mtlx/math/divide_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_divide_float.nodedef_name = 'ND_divide_float'; -mtlx_math_divide_float.nodedef_node = 'divide'; -mtlx_math_divide_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_float',mtlx_math_divide_float); - -// MaterialX node type: mtlx/math/divide_color3 -// -function mtlx_math_divide_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'divide_color3'; - this.desc = "MaterialX:mtlx/math/divide_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_divide_color3.nodedef_name = 'ND_divide_color3'; -mtlx_math_divide_color3.nodedef_node = 'divide'; -mtlx_math_divide_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color3',mtlx_math_divide_color3); - -// MaterialX node type: mtlx/math/divide_color4 -// -function mtlx_math_divide_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'divide_color4'; - this.desc = "MaterialX:mtlx/math/divide_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_divide_color4.nodedef_name = 'ND_divide_color4'; -mtlx_math_divide_color4.nodedef_node = 'divide'; -mtlx_math_divide_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color4',mtlx_math_divide_color4); - -// MaterialX node type: mtlx/math/divide_vector2 -// -function mtlx_math_divide_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'divide_vector2'; - this.desc = "MaterialX:mtlx/math/divide_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_divide_vector2.nodedef_name = 'ND_divide_vector2'; -mtlx_math_divide_vector2.nodedef_node = 'divide'; -mtlx_math_divide_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector2',mtlx_math_divide_vector2); - -// MaterialX node type: mtlx/math/divide_vector3 -// -function mtlx_math_divide_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'divide_vector3'; - this.desc = "MaterialX:mtlx/math/divide_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_divide_vector3.nodedef_name = 'ND_divide_vector3'; -mtlx_math_divide_vector3.nodedef_node = 'divide'; -mtlx_math_divide_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector3',mtlx_math_divide_vector3); - -// MaterialX node type: mtlx/math/divide_vector4 -// -function mtlx_math_divide_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'divide_vector4'; - this.desc = "MaterialX:mtlx/math/divide_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_divide_vector4.nodedef_name = 'ND_divide_vector4'; -mtlx_math_divide_vector4.nodedef_node = 'divide'; -mtlx_math_divide_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector4',mtlx_math_divide_vector4); - -// MaterialX node type: mtlx/math/divide_matrix33 -// -function mtlx_math_divide_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'divide_matrix33'; - this.desc = "MaterialX:mtlx/math/divide_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_divide_matrix33.nodedef_name = 'ND_divide_matrix33'; -mtlx_math_divide_matrix33.nodedef_node = 'divide'; -mtlx_math_divide_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_matrix33',mtlx_math_divide_matrix33); - -// MaterialX node type: mtlx/math/divide_matrix44 -// -function mtlx_math_divide_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'divide_matrix44'; - this.desc = "MaterialX:mtlx/math/divide_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_divide_matrix44.nodedef_name = 'ND_divide_matrix44'; -mtlx_math_divide_matrix44.nodedef_node = 'divide'; -mtlx_math_divide_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_matrix44',mtlx_math_divide_matrix44); - -// MaterialX node type: mtlx/math/divide_color3FA -// -function mtlx_math_divide_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'divide_color3'; - this.desc = "MaterialX:mtlx/math/divide_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_divide_color3FA.nodedef_name = 'ND_divide_color3FA'; -mtlx_math_divide_color3FA.nodedef_node = 'divide'; -mtlx_math_divide_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color3FA',mtlx_math_divide_color3FA); - -// MaterialX node type: mtlx/math/divide_color4FA -// -function mtlx_math_divide_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'divide_color4'; - this.desc = "MaterialX:mtlx/math/divide_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_divide_color4FA.nodedef_name = 'ND_divide_color4FA'; -mtlx_math_divide_color4FA.nodedef_node = 'divide'; -mtlx_math_divide_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color4FA',mtlx_math_divide_color4FA); - -// MaterialX node type: mtlx/math/divide_vector2FA -// -function mtlx_math_divide_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'divide_vector2'; - this.desc = "MaterialX:mtlx/math/divide_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_divide_vector2FA.nodedef_name = 'ND_divide_vector2FA'; -mtlx_math_divide_vector2FA.nodedef_node = 'divide'; -mtlx_math_divide_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector2FA',mtlx_math_divide_vector2FA); - -// MaterialX node type: mtlx/math/divide_vector3FA -// -function mtlx_math_divide_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'divide_vector3'; - this.desc = "MaterialX:mtlx/math/divide_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_divide_vector3FA.nodedef_name = 'ND_divide_vector3FA'; -mtlx_math_divide_vector3FA.nodedef_node = 'divide'; -mtlx_math_divide_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector3FA',mtlx_math_divide_vector3FA); - -// MaterialX node type: mtlx/math/divide_vector4FA -// -function mtlx_math_divide_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'divide_vector4'; - this.desc = "MaterialX:mtlx/math/divide_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_divide_vector4FA.nodedef_name = 'ND_divide_vector4FA'; -mtlx_math_divide_vector4FA.nodedef_node = 'divide'; -mtlx_math_divide_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector4FA',mtlx_math_divide_vector4FA); - -// MaterialX node type: mtlx/math/modulo_float -// -function mtlx_math_modulo_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'modulo_float'; - this.desc = "MaterialX:mtlx/math/modulo_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_modulo_float.nodedef_name = 'ND_modulo_float'; -mtlx_math_modulo_float.nodedef_node = 'modulo'; -mtlx_math_modulo_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_float',mtlx_math_modulo_float); - -// MaterialX node type: mtlx/math/modulo_color3 -// -function mtlx_math_modulo_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'modulo_color3'; - this.desc = "MaterialX:mtlx/math/modulo_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_modulo_color3.nodedef_name = 'ND_modulo_color3'; -mtlx_math_modulo_color3.nodedef_node = 'modulo'; -mtlx_math_modulo_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color3',mtlx_math_modulo_color3); - -// MaterialX node type: mtlx/math/modulo_color4 -// -function mtlx_math_modulo_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'modulo_color4'; - this.desc = "MaterialX:mtlx/math/modulo_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_modulo_color4.nodedef_name = 'ND_modulo_color4'; -mtlx_math_modulo_color4.nodedef_node = 'modulo'; -mtlx_math_modulo_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color4',mtlx_math_modulo_color4); - -// MaterialX node type: mtlx/math/modulo_vector2 -// -function mtlx_math_modulo_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'modulo_vector2'; - this.desc = "MaterialX:mtlx/math/modulo_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_modulo_vector2.nodedef_name = 'ND_modulo_vector2'; -mtlx_math_modulo_vector2.nodedef_node = 'modulo'; -mtlx_math_modulo_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector2',mtlx_math_modulo_vector2); - -// MaterialX node type: mtlx/math/modulo_vector3 -// -function mtlx_math_modulo_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'modulo_vector3'; - this.desc = "MaterialX:mtlx/math/modulo_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_modulo_vector3.nodedef_name = 'ND_modulo_vector3'; -mtlx_math_modulo_vector3.nodedef_node = 'modulo'; -mtlx_math_modulo_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector3',mtlx_math_modulo_vector3); - -// MaterialX node type: mtlx/math/modulo_vector4 -// -function mtlx_math_modulo_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'modulo_vector4'; - this.desc = "MaterialX:mtlx/math/modulo_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_modulo_vector4.nodedef_name = 'ND_modulo_vector4'; -mtlx_math_modulo_vector4.nodedef_node = 'modulo'; -mtlx_math_modulo_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector4',mtlx_math_modulo_vector4); - -// MaterialX node type: mtlx/math/modulo_color3FA -// -function mtlx_math_modulo_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'modulo_color3'; - this.desc = "MaterialX:mtlx/math/modulo_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_modulo_color3FA.nodedef_name = 'ND_modulo_color3FA'; -mtlx_math_modulo_color3FA.nodedef_node = 'modulo'; -mtlx_math_modulo_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color3FA',mtlx_math_modulo_color3FA); - -// MaterialX node type: mtlx/math/modulo_color4FA -// -function mtlx_math_modulo_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'modulo_color4'; - this.desc = "MaterialX:mtlx/math/modulo_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_modulo_color4FA.nodedef_name = 'ND_modulo_color4FA'; -mtlx_math_modulo_color4FA.nodedef_node = 'modulo'; -mtlx_math_modulo_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color4FA',mtlx_math_modulo_color4FA); - -// MaterialX node type: mtlx/math/modulo_vector2FA -// -function mtlx_math_modulo_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'modulo_vector2'; - this.desc = "MaterialX:mtlx/math/modulo_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_modulo_vector2FA.nodedef_name = 'ND_modulo_vector2FA'; -mtlx_math_modulo_vector2FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector2FA',mtlx_math_modulo_vector2FA); - -// MaterialX node type: mtlx/math/modulo_vector3FA -// -function mtlx_math_modulo_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'modulo_vector3'; - this.desc = "MaterialX:mtlx/math/modulo_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_modulo_vector3FA.nodedef_name = 'ND_modulo_vector3FA'; -mtlx_math_modulo_vector3FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector3FA',mtlx_math_modulo_vector3FA); - -// MaterialX node type: mtlx/math/modulo_vector4FA -// -function mtlx_math_modulo_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'modulo_vector4'; - this.desc = "MaterialX:mtlx/math/modulo_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_modulo_vector4FA.nodedef_name = 'ND_modulo_vector4FA'; -mtlx_math_modulo_vector4FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector4FA',mtlx_math_modulo_vector4FA); - -// MaterialX node type: mtlx/math/invert_float -// -function mtlx_math_invert_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'invert_float'; - this.desc = "MaterialX:mtlx/math/invert_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_invert_float.nodedef_name = 'ND_invert_float'; -mtlx_math_invert_float.nodedef_node = 'invert'; -mtlx_math_invert_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_float',mtlx_math_invert_float); - -// MaterialX node type: mtlx/math/invert_color3 -// -function mtlx_math_invert_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'invert_color3'; - this.desc = "MaterialX:mtlx/math/invert_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_invert_color3.nodedef_name = 'ND_invert_color3'; -mtlx_math_invert_color3.nodedef_node = 'invert'; -mtlx_math_invert_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color3',mtlx_math_invert_color3); - -// MaterialX node type: mtlx/math/invert_color4 -// -function mtlx_math_invert_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'invert_color4'; - this.desc = "MaterialX:mtlx/math/invert_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_invert_color4.nodedef_name = 'ND_invert_color4'; -mtlx_math_invert_color4.nodedef_node = 'invert'; -mtlx_math_invert_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color4',mtlx_math_invert_color4); - -// MaterialX node type: mtlx/math/invert_vector2 -// -function mtlx_math_invert_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector2'); - this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'invert_vector2'; - this.desc = "MaterialX:mtlx/math/invert_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_invert_vector2.nodedef_name = 'ND_invert_vector2'; -mtlx_math_invert_vector2.nodedef_node = 'invert'; -mtlx_math_invert_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector2',mtlx_math_invert_vector2); - -// MaterialX node type: mtlx/math/invert_vector3 -// -function mtlx_math_invert_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'invert_vector3'; - this.desc = "MaterialX:mtlx/math/invert_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_invert_vector3.nodedef_name = 'ND_invert_vector3'; -mtlx_math_invert_vector3.nodedef_node = 'invert'; -mtlx_math_invert_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector3',mtlx_math_invert_vector3); - -// MaterialX node type: mtlx/math/invert_vector4 -// -function mtlx_math_invert_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'invert_vector4'; - this.desc = "MaterialX:mtlx/math/invert_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_invert_vector4.nodedef_name = 'ND_invert_vector4'; -mtlx_math_invert_vector4.nodedef_node = 'invert'; -mtlx_math_invert_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector4',mtlx_math_invert_vector4); - -// MaterialX node type: mtlx/math/invert_color3FA -// -function mtlx_math_invert_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'invert_color3'; - this.desc = "MaterialX:mtlx/math/invert_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_invert_color3FA.nodedef_name = 'ND_invert_color3FA'; -mtlx_math_invert_color3FA.nodedef_node = 'invert'; -mtlx_math_invert_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color3FA',mtlx_math_invert_color3FA); - -// MaterialX node type: mtlx/math/invert_color4FA -// -function mtlx_math_invert_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'invert_color4'; - this.desc = "MaterialX:mtlx/math/invert_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_invert_color4FA.nodedef_name = 'ND_invert_color4FA'; -mtlx_math_invert_color4FA.nodedef_node = 'invert'; -mtlx_math_invert_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color4FA',mtlx_math_invert_color4FA); - -// MaterialX node type: mtlx/math/invert_vector2FA -// -function mtlx_math_invert_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'invert_vector2'; - this.desc = "MaterialX:mtlx/math/invert_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_invert_vector2FA.nodedef_name = 'ND_invert_vector2FA'; -mtlx_math_invert_vector2FA.nodedef_node = 'invert'; -mtlx_math_invert_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector2FA',mtlx_math_invert_vector2FA); - -// MaterialX node type: mtlx/math/invert_vector3FA -// -function mtlx_math_invert_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'invert_vector3'; - this.desc = "MaterialX:mtlx/math/invert_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_invert_vector3FA.nodedef_name = 'ND_invert_vector3FA'; -mtlx_math_invert_vector3FA.nodedef_node = 'invert'; -mtlx_math_invert_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector3FA',mtlx_math_invert_vector3FA); - -// MaterialX node type: mtlx/math/invert_vector4FA -// -function mtlx_math_invert_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'invert_vector4'; - this.desc = "MaterialX:mtlx/math/invert_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_invert_vector4FA.nodedef_name = 'ND_invert_vector4FA'; -mtlx_math_invert_vector4FA.nodedef_node = 'invert'; -mtlx_math_invert_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector4FA',mtlx_math_invert_vector4FA); - -// MaterialX node type: mtlx/math/absval_float -// -function mtlx_math_absval_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'absval_float'; - this.desc = "MaterialX:mtlx/math/absval_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_absval_float.nodedef_name = 'ND_absval_float'; -mtlx_math_absval_float.nodedef_node = 'absval'; -mtlx_math_absval_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_float',mtlx_math_absval_float); - -// MaterialX node type: mtlx/math/absval_color3 -// -function mtlx_math_absval_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'absval_color3'; - this.desc = "MaterialX:mtlx/math/absval_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_absval_color3.nodedef_name = 'ND_absval_color3'; -mtlx_math_absval_color3.nodedef_node = 'absval'; -mtlx_math_absval_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_color3',mtlx_math_absval_color3); - -// MaterialX node type: mtlx/math/absval_color4 -// -function mtlx_math_absval_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'absval_color4'; - this.desc = "MaterialX:mtlx/math/absval_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_absval_color4.nodedef_name = 'ND_absval_color4'; -mtlx_math_absval_color4.nodedef_node = 'absval'; -mtlx_math_absval_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_color4',mtlx_math_absval_color4); - -// MaterialX node type: mtlx/math/absval_vector2 -// -function mtlx_math_absval_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'absval_vector2'; - this.desc = "MaterialX:mtlx/math/absval_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_absval_vector2.nodedef_name = 'ND_absval_vector2'; -mtlx_math_absval_vector2.nodedef_node = 'absval'; -mtlx_math_absval_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector2',mtlx_math_absval_vector2); - -// MaterialX node type: mtlx/math/absval_vector3 -// -function mtlx_math_absval_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'absval_vector3'; - this.desc = "MaterialX:mtlx/math/absval_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_absval_vector3.nodedef_name = 'ND_absval_vector3'; -mtlx_math_absval_vector3.nodedef_node = 'absval'; -mtlx_math_absval_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector3',mtlx_math_absval_vector3); - -// MaterialX node type: mtlx/math/absval_vector4 -// -function mtlx_math_absval_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'absval_vector4'; - this.desc = "MaterialX:mtlx/math/absval_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_absval_vector4.nodedef_name = 'ND_absval_vector4'; -mtlx_math_absval_vector4.nodedef_node = 'absval'; -mtlx_math_absval_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector4',mtlx_math_absval_vector4); - -// MaterialX node type: mtlx/math/floor_float -// -function mtlx_math_floor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'floor_float'; - this.desc = "MaterialX:mtlx/math/floor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_floor_float.nodedef_name = 'ND_floor_float'; -mtlx_math_floor_float.nodedef_node = 'floor'; -mtlx_math_floor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_float',mtlx_math_floor_float); - -// MaterialX node type: mtlx/math/floor_color3 -// -function mtlx_math_floor_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'floor_color3'; - this.desc = "MaterialX:mtlx/math/floor_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_floor_color3.nodedef_name = 'ND_floor_color3'; -mtlx_math_floor_color3.nodedef_node = 'floor'; -mtlx_math_floor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_color3',mtlx_math_floor_color3); - -// MaterialX node type: mtlx/math/floor_color4 -// -function mtlx_math_floor_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'floor_color4'; - this.desc = "MaterialX:mtlx/math/floor_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_floor_color4.nodedef_name = 'ND_floor_color4'; -mtlx_math_floor_color4.nodedef_node = 'floor'; -mtlx_math_floor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_color4',mtlx_math_floor_color4); - -// MaterialX node type: mtlx/math/floor_vector2 -// -function mtlx_math_floor_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'floor_vector2'; - this.desc = "MaterialX:mtlx/math/floor_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_floor_vector2.nodedef_name = 'ND_floor_vector2'; -mtlx_math_floor_vector2.nodedef_node = 'floor'; -mtlx_math_floor_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector2',mtlx_math_floor_vector2); - -// MaterialX node type: mtlx/math/floor_vector3 -// -function mtlx_math_floor_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'floor_vector3'; - this.desc = "MaterialX:mtlx/math/floor_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_floor_vector3.nodedef_name = 'ND_floor_vector3'; -mtlx_math_floor_vector3.nodedef_node = 'floor'; -mtlx_math_floor_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector3',mtlx_math_floor_vector3); - -// MaterialX node type: mtlx/math/floor_vector4 -// -function mtlx_math_floor_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'floor_vector4'; - this.desc = "MaterialX:mtlx/math/floor_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_floor_vector4.nodedef_name = 'ND_floor_vector4'; -mtlx_math_floor_vector4.nodedef_node = 'floor'; -mtlx_math_floor_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector4',mtlx_math_floor_vector4); - -// MaterialX node type: mtlx/math/floor_integer -// -function mtlx_math_floor_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'floor_integer'; - this.desc = "MaterialX:mtlx/math/floor_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_floor_integer.nodedef_name = 'ND_floor_integer'; -mtlx_math_floor_integer.nodedef_node = 'floor'; -mtlx_math_floor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_integer',mtlx_math_floor_integer); - -// MaterialX node type: mtlx/math/ceil_float -// -function mtlx_math_ceil_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ceil_float'; - this.desc = "MaterialX:mtlx/math/ceil_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_ceil_float.nodedef_name = 'ND_ceil_float'; -mtlx_math_ceil_float.nodedef_node = 'ceil'; -mtlx_math_ceil_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_float',mtlx_math_ceil_float); - -// MaterialX node type: mtlx/math/ceil_color3 -// -function mtlx_math_ceil_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ceil_color3'; - this.desc = "MaterialX:mtlx/math/ceil_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_ceil_color3.nodedef_name = 'ND_ceil_color3'; -mtlx_math_ceil_color3.nodedef_node = 'ceil'; -mtlx_math_ceil_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_color3',mtlx_math_ceil_color3); - -// MaterialX node type: mtlx/math/ceil_color4 -// -function mtlx_math_ceil_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ceil_color4'; - this.desc = "MaterialX:mtlx/math/ceil_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_ceil_color4.nodedef_name = 'ND_ceil_color4'; -mtlx_math_ceil_color4.nodedef_node = 'ceil'; -mtlx_math_ceil_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_color4',mtlx_math_ceil_color4); - -// MaterialX node type: mtlx/math/ceil_vector2 -// -function mtlx_math_ceil_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ceil_vector2'; - this.desc = "MaterialX:mtlx/math/ceil_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ceil_vector2.nodedef_name = 'ND_ceil_vector2'; -mtlx_math_ceil_vector2.nodedef_node = 'ceil'; -mtlx_math_ceil_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector2',mtlx_math_ceil_vector2); - -// MaterialX node type: mtlx/math/ceil_vector3 -// -function mtlx_math_ceil_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ceil_vector3'; - this.desc = "MaterialX:mtlx/math/ceil_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_ceil_vector3.nodedef_name = 'ND_ceil_vector3'; -mtlx_math_ceil_vector3.nodedef_node = 'ceil'; -mtlx_math_ceil_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector3',mtlx_math_ceil_vector3); - -// MaterialX node type: mtlx/math/ceil_vector4 -// -function mtlx_math_ceil_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ceil_vector4'; - this.desc = "MaterialX:mtlx/math/ceil_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_ceil_vector4.nodedef_name = 'ND_ceil_vector4'; -mtlx_math_ceil_vector4.nodedef_node = 'ceil'; -mtlx_math_ceil_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector4',mtlx_math_ceil_vector4); - -// MaterialX node type: mtlx/math/ceil_integer -// -function mtlx_math_ceil_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ceil_integer'; - this.desc = "MaterialX:mtlx/math/ceil_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ceil_integer.nodedef_name = 'ND_ceil_integer'; -mtlx_math_ceil_integer.nodedef_node = 'ceil'; -mtlx_math_ceil_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_integer',mtlx_math_ceil_integer); - -// MaterialX node type: mtlx/math/round_float -// -function mtlx_math_round_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'round_float'; - this.desc = "MaterialX:mtlx/math/round_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_round_float.nodedef_name = 'ND_round_float'; -mtlx_math_round_float.nodedef_node = 'round'; -mtlx_math_round_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_float',mtlx_math_round_float); - -// MaterialX node type: mtlx/math/round_color3 -// -function mtlx_math_round_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'round_color3'; - this.desc = "MaterialX:mtlx/math/round_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_round_color3.nodedef_name = 'ND_round_color3'; -mtlx_math_round_color3.nodedef_node = 'round'; -mtlx_math_round_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_color3',mtlx_math_round_color3); - -// MaterialX node type: mtlx/math/round_color4 -// -function mtlx_math_round_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'round_color4'; - this.desc = "MaterialX:mtlx/math/round_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_round_color4.nodedef_name = 'ND_round_color4'; -mtlx_math_round_color4.nodedef_node = 'round'; -mtlx_math_round_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_color4',mtlx_math_round_color4); - -// MaterialX node type: mtlx/math/round_vector2 -// -function mtlx_math_round_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'round_vector2'; - this.desc = "MaterialX:mtlx/math/round_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_round_vector2.nodedef_name = 'ND_round_vector2'; -mtlx_math_round_vector2.nodedef_node = 'round'; -mtlx_math_round_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector2',mtlx_math_round_vector2); - -// MaterialX node type: mtlx/math/round_vector3 -// -function mtlx_math_round_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'round_vector3'; - this.desc = "MaterialX:mtlx/math/round_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_round_vector3.nodedef_name = 'ND_round_vector3'; -mtlx_math_round_vector3.nodedef_node = 'round'; -mtlx_math_round_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector3',mtlx_math_round_vector3); - -// MaterialX node type: mtlx/math/round_vector4 -// -function mtlx_math_round_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'round_vector4'; - this.desc = "MaterialX:mtlx/math/round_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_round_vector4.nodedef_name = 'ND_round_vector4'; -mtlx_math_round_vector4.nodedef_node = 'round'; -mtlx_math_round_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector4',mtlx_math_round_vector4); - -// MaterialX node type: mtlx/math/round_integer -// -function mtlx_math_round_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'round_integer'; - this.desc = "MaterialX:mtlx/math/round_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_round_integer.nodedef_name = 'ND_round_integer'; -mtlx_math_round_integer.nodedef_node = 'round'; -mtlx_math_round_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_integer',mtlx_math_round_integer); - -// MaterialX node type: mtlx/math/power_float -// -function mtlx_math_power_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'power_float'; - this.desc = "MaterialX:mtlx/math/power_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_power_float.nodedef_name = 'ND_power_float'; -mtlx_math_power_float.nodedef_node = 'power'; -mtlx_math_power_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_float',mtlx_math_power_float); - -// MaterialX node type: mtlx/math/power_color3 -// -function mtlx_math_power_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'power_color3'; - this.desc = "MaterialX:mtlx/math/power_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_power_color3.nodedef_name = 'ND_power_color3'; -mtlx_math_power_color3.nodedef_node = 'power'; -mtlx_math_power_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color3',mtlx_math_power_color3); - -// MaterialX node type: mtlx/math/power_color4 -// -function mtlx_math_power_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'power_color4'; - this.desc = "MaterialX:mtlx/math/power_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_power_color4.nodedef_name = 'ND_power_color4'; -mtlx_math_power_color4.nodedef_node = 'power'; -mtlx_math_power_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color4',mtlx_math_power_color4); - -// MaterialX node type: mtlx/math/power_vector2 -// -function mtlx_math_power_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'power_vector2'; - this.desc = "MaterialX:mtlx/math/power_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_power_vector2.nodedef_name = 'ND_power_vector2'; -mtlx_math_power_vector2.nodedef_node = 'power'; -mtlx_math_power_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector2',mtlx_math_power_vector2); - -// MaterialX node type: mtlx/math/power_vector3 -// -function mtlx_math_power_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'power_vector3'; - this.desc = "MaterialX:mtlx/math/power_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_power_vector3.nodedef_name = 'ND_power_vector3'; -mtlx_math_power_vector3.nodedef_node = 'power'; -mtlx_math_power_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector3',mtlx_math_power_vector3); - -// MaterialX node type: mtlx/math/power_vector4 -// -function mtlx_math_power_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'power_vector4'; - this.desc = "MaterialX:mtlx/math/power_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_power_vector4.nodedef_name = 'ND_power_vector4'; -mtlx_math_power_vector4.nodedef_node = 'power'; -mtlx_math_power_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector4',mtlx_math_power_vector4); - -// MaterialX node type: mtlx/math/power_color3FA -// -function mtlx_math_power_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'power_color3'; - this.desc = "MaterialX:mtlx/math/power_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_power_color3FA.nodedef_name = 'ND_power_color3FA'; -mtlx_math_power_color3FA.nodedef_node = 'power'; -mtlx_math_power_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color3FA',mtlx_math_power_color3FA); - -// MaterialX node type: mtlx/math/power_color4FA -// -function mtlx_math_power_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'power_color4'; - this.desc = "MaterialX:mtlx/math/power_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_power_color4FA.nodedef_name = 'ND_power_color4FA'; -mtlx_math_power_color4FA.nodedef_node = 'power'; -mtlx_math_power_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color4FA',mtlx_math_power_color4FA); - -// MaterialX node type: mtlx/math/power_vector2FA -// -function mtlx_math_power_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'power_vector2'; - this.desc = "MaterialX:mtlx/math/power_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_power_vector2FA.nodedef_name = 'ND_power_vector2FA'; -mtlx_math_power_vector2FA.nodedef_node = 'power'; -mtlx_math_power_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector2FA',mtlx_math_power_vector2FA); - -// MaterialX node type: mtlx/math/power_vector3FA -// -function mtlx_math_power_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'power_vector3'; - this.desc = "MaterialX:mtlx/math/power_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_power_vector3FA.nodedef_name = 'ND_power_vector3FA'; -mtlx_math_power_vector3FA.nodedef_node = 'power'; -mtlx_math_power_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector3FA',mtlx_math_power_vector3FA); - -// MaterialX node type: mtlx/math/power_vector4FA -// -function mtlx_math_power_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'power_vector4'; - this.desc = "MaterialX:mtlx/math/power_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_power_vector4FA.nodedef_name = 'ND_power_vector4FA'; -mtlx_math_power_vector4FA.nodedef_node = 'power'; -mtlx_math_power_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector4FA',mtlx_math_power_vector4FA); - -// MaterialX node type: mtlx/math/safepower_float -// -function mtlx_math_safepower_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'safepower_float'; - this.desc = "MaterialX:mtlx/math/safepower_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_safepower_float.nodedef_name = 'ND_safepower_float'; -mtlx_math_safepower_float.nodedef_node = 'safepower'; -mtlx_math_safepower_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_float',mtlx_math_safepower_float); - -// MaterialX node type: mtlx/math/safepower_color3 -// -function mtlx_math_safepower_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'safepower_color3'; - this.desc = "MaterialX:mtlx/math/safepower_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_safepower_color3.nodedef_name = 'ND_safepower_color3'; -mtlx_math_safepower_color3.nodedef_node = 'safepower'; -mtlx_math_safepower_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color3',mtlx_math_safepower_color3); - -// MaterialX node type: mtlx/math/safepower_color4 -// -function mtlx_math_safepower_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'safepower_color4'; - this.desc = "MaterialX:mtlx/math/safepower_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_safepower_color4.nodedef_name = 'ND_safepower_color4'; -mtlx_math_safepower_color4.nodedef_node = 'safepower'; -mtlx_math_safepower_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color4',mtlx_math_safepower_color4); - -// MaterialX node type: mtlx/math/safepower_vector2 -// -function mtlx_math_safepower_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'safepower_vector2'; - this.desc = "MaterialX:mtlx/math/safepower_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_safepower_vector2.nodedef_name = 'ND_safepower_vector2'; -mtlx_math_safepower_vector2.nodedef_node = 'safepower'; -mtlx_math_safepower_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector2',mtlx_math_safepower_vector2); - -// MaterialX node type: mtlx/math/safepower_vector3 -// -function mtlx_math_safepower_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'safepower_vector3'; - this.desc = "MaterialX:mtlx/math/safepower_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_safepower_vector3.nodedef_name = 'ND_safepower_vector3'; -mtlx_math_safepower_vector3.nodedef_node = 'safepower'; -mtlx_math_safepower_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector3',mtlx_math_safepower_vector3); - -// MaterialX node type: mtlx/math/safepower_vector4 -// -function mtlx_math_safepower_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'safepower_vector4'; - this.desc = "MaterialX:mtlx/math/safepower_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_safepower_vector4.nodedef_name = 'ND_safepower_vector4'; -mtlx_math_safepower_vector4.nodedef_node = 'safepower'; -mtlx_math_safepower_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector4',mtlx_math_safepower_vector4); - -// MaterialX node type: mtlx/math/safepower_color3FA -// -function mtlx_math_safepower_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'safepower_color3'; - this.desc = "MaterialX:mtlx/math/safepower_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_safepower_color3FA.nodedef_name = 'ND_safepower_color3FA'; -mtlx_math_safepower_color3FA.nodedef_node = 'safepower'; -mtlx_math_safepower_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color3FA',mtlx_math_safepower_color3FA); - -// MaterialX node type: mtlx/math/safepower_color4FA -// -function mtlx_math_safepower_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'safepower_color4'; - this.desc = "MaterialX:mtlx/math/safepower_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_safepower_color4FA.nodedef_name = 'ND_safepower_color4FA'; -mtlx_math_safepower_color4FA.nodedef_node = 'safepower'; -mtlx_math_safepower_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color4FA',mtlx_math_safepower_color4FA); - -// MaterialX node type: mtlx/math/safepower_vector2FA -// -function mtlx_math_safepower_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'safepower_vector2'; - this.desc = "MaterialX:mtlx/math/safepower_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_safepower_vector2FA.nodedef_name = 'ND_safepower_vector2FA'; -mtlx_math_safepower_vector2FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector2FA',mtlx_math_safepower_vector2FA); - -// MaterialX node type: mtlx/math/safepower_vector3FA -// -function mtlx_math_safepower_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'safepower_vector3'; - this.desc = "MaterialX:mtlx/math/safepower_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_safepower_vector3FA.nodedef_name = 'ND_safepower_vector3FA'; -mtlx_math_safepower_vector3FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector3FA',mtlx_math_safepower_vector3FA); - -// MaterialX node type: mtlx/math/safepower_vector4FA -// -function mtlx_math_safepower_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'safepower_vector4'; - this.desc = "MaterialX:mtlx/math/safepower_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_safepower_vector4FA.nodedef_name = 'ND_safepower_vector4FA'; -mtlx_math_safepower_vector4FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector4FA',mtlx_math_safepower_vector4FA); - -// MaterialX node type: mtlx/math/sin_float -// -function mtlx_math_sin_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sin_float'; - this.desc = "MaterialX:mtlx/math/sin_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sin_float.nodedef_name = 'ND_sin_float'; -mtlx_math_sin_float.nodedef_node = 'sin'; -mtlx_math_sin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_float',mtlx_math_sin_float); - -// MaterialX node type: mtlx/math/cos_float -// -function mtlx_math_cos_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cos_float'; - this.desc = "MaterialX:mtlx/math/cos_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_cos_float.nodedef_name = 'ND_cos_float'; -mtlx_math_cos_float.nodedef_node = 'cos'; -mtlx_math_cos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_float',mtlx_math_cos_float); - -// MaterialX node type: mtlx/math/tan_float -// -function mtlx_math_tan_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'tan_float'; - this.desc = "MaterialX:mtlx/math/tan_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_tan_float.nodedef_name = 'ND_tan_float'; -mtlx_math_tan_float.nodedef_node = 'tan'; -mtlx_math_tan_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_float',mtlx_math_tan_float); - -// MaterialX node type: mtlx/math/asin_float -// -function mtlx_math_asin_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'asin_float'; - this.desc = "MaterialX:mtlx/math/asin_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_asin_float.nodedef_name = 'ND_asin_float'; -mtlx_math_asin_float.nodedef_node = 'asin'; -mtlx_math_asin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_float',mtlx_math_asin_float); - -// MaterialX node type: mtlx/math/acos_float -// -function mtlx_math_acos_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'acos_float'; - this.desc = "MaterialX:mtlx/math/acos_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_acos_float.nodedef_name = 'ND_acos_float'; -mtlx_math_acos_float.nodedef_node = 'acos'; -mtlx_math_acos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_float',mtlx_math_acos_float); - -// MaterialX node type: mtlx/math/atan2_float -// -function mtlx_math_atan2_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','float'); - this.addProperty('iny', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','float'); - this.addProperty('inx', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'atan2_float'; - this.desc = "MaterialX:mtlx/math/atan2_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_atan2_float.nodedef_name = 'ND_atan2_float'; -mtlx_math_atan2_float.nodedef_node = 'atan2'; -mtlx_math_atan2_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_float',mtlx_math_atan2_float); - -// MaterialX node type: mtlx/math/sin_vector2 -// -function mtlx_math_sin_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sin_vector2'; - this.desc = "MaterialX:mtlx/math/sin_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sin_vector2.nodedef_name = 'ND_sin_vector2'; -mtlx_math_sin_vector2.nodedef_node = 'sin'; -mtlx_math_sin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector2',mtlx_math_sin_vector2); - -// MaterialX node type: mtlx/math/cos_vector2 -// -function mtlx_math_cos_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'cos_vector2'; - this.desc = "MaterialX:mtlx/math/cos_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_cos_vector2.nodedef_name = 'ND_cos_vector2'; -mtlx_math_cos_vector2.nodedef_node = 'cos'; -mtlx_math_cos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector2',mtlx_math_cos_vector2); - -// MaterialX node type: mtlx/math/tan_vector2 -// -function mtlx_math_tan_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'tan_vector2'; - this.desc = "MaterialX:mtlx/math/tan_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_tan_vector2.nodedef_name = 'ND_tan_vector2'; -mtlx_math_tan_vector2.nodedef_node = 'tan'; -mtlx_math_tan_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector2',mtlx_math_tan_vector2); - -// MaterialX node type: mtlx/math/asin_vector2 -// -function mtlx_math_asin_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'asin_vector2'; - this.desc = "MaterialX:mtlx/math/asin_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_asin_vector2.nodedef_name = 'ND_asin_vector2'; -mtlx_math_asin_vector2.nodedef_node = 'asin'; -mtlx_math_asin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector2',mtlx_math_asin_vector2); - -// MaterialX node type: mtlx/math/acos_vector2 -// -function mtlx_math_acos_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'acos_vector2'; - this.desc = "MaterialX:mtlx/math/acos_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_acos_vector2.nodedef_name = 'ND_acos_vector2'; -mtlx_math_acos_vector2.nodedef_node = 'acos'; -mtlx_math_acos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector2',mtlx_math_acos_vector2); - -// MaterialX node type: mtlx/math/atan2_vector2 -// -function mtlx_math_atan2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector2'); - this.addProperty('iny', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector2'); - this.addProperty('inx', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'atan2_vector2'; - this.desc = "MaterialX:mtlx/math/atan2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_atan2_vector2.nodedef_name = 'ND_atan2_vector2'; -mtlx_math_atan2_vector2.nodedef_node = 'atan2'; -mtlx_math_atan2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector2',mtlx_math_atan2_vector2); - -// MaterialX node type: mtlx/math/sin_vector3 -// -function mtlx_math_sin_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sin_vector3'; - this.desc = "MaterialX:mtlx/math/sin_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sin_vector3.nodedef_name = 'ND_sin_vector3'; -mtlx_math_sin_vector3.nodedef_node = 'sin'; -mtlx_math_sin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector3',mtlx_math_sin_vector3); - -// MaterialX node type: mtlx/math/cos_vector3 -// -function mtlx_math_cos_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'cos_vector3'; - this.desc = "MaterialX:mtlx/math/cos_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_cos_vector3.nodedef_name = 'ND_cos_vector3'; -mtlx_math_cos_vector3.nodedef_node = 'cos'; -mtlx_math_cos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector3',mtlx_math_cos_vector3); - -// MaterialX node type: mtlx/math/tan_vector3 -// -function mtlx_math_tan_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tan_vector3'; - this.desc = "MaterialX:mtlx/math/tan_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_tan_vector3.nodedef_name = 'ND_tan_vector3'; -mtlx_math_tan_vector3.nodedef_node = 'tan'; -mtlx_math_tan_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector3',mtlx_math_tan_vector3); - -// MaterialX node type: mtlx/math/asin_vector3 -// -function mtlx_math_asin_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'asin_vector3'; - this.desc = "MaterialX:mtlx/math/asin_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_asin_vector3.nodedef_name = 'ND_asin_vector3'; -mtlx_math_asin_vector3.nodedef_node = 'asin'; -mtlx_math_asin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector3',mtlx_math_asin_vector3); - -// MaterialX node type: mtlx/math/acos_vector3 -// -function mtlx_math_acos_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'acos_vector3'; - this.desc = "MaterialX:mtlx/math/acos_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_acos_vector3.nodedef_name = 'ND_acos_vector3'; -mtlx_math_acos_vector3.nodedef_node = 'acos'; -mtlx_math_acos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector3',mtlx_math_acos_vector3); - -// MaterialX node type: mtlx/math/atan2_vector3 -// -function mtlx_math_atan2_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector3'); - this.addProperty('iny', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector3'); - this.addProperty('inx', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'atan2_vector3'; - this.desc = "MaterialX:mtlx/math/atan2_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_atan2_vector3.nodedef_name = 'ND_atan2_vector3'; -mtlx_math_atan2_vector3.nodedef_node = 'atan2'; -mtlx_math_atan2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector3',mtlx_math_atan2_vector3); - -// MaterialX node type: mtlx/math/sin_vector4 -// -function mtlx_math_sin_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sin_vector4'; - this.desc = "MaterialX:mtlx/math/sin_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sin_vector4.nodedef_name = 'ND_sin_vector4'; -mtlx_math_sin_vector4.nodedef_node = 'sin'; -mtlx_math_sin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector4',mtlx_math_sin_vector4); - -// MaterialX node type: mtlx/math/cos_vector4 -// -function mtlx_math_cos_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'cos_vector4'; - this.desc = "MaterialX:mtlx/math/cos_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_cos_vector4.nodedef_name = 'ND_cos_vector4'; -mtlx_math_cos_vector4.nodedef_node = 'cos'; -mtlx_math_cos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector4',mtlx_math_cos_vector4); - -// MaterialX node type: mtlx/math/tan_vector4 -// -function mtlx_math_tan_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'tan_vector4'; - this.desc = "MaterialX:mtlx/math/tan_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_tan_vector4.nodedef_name = 'ND_tan_vector4'; -mtlx_math_tan_vector4.nodedef_node = 'tan'; -mtlx_math_tan_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector4',mtlx_math_tan_vector4); - -// MaterialX node type: mtlx/math/asin_vector4 -// -function mtlx_math_asin_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'asin_vector4'; - this.desc = "MaterialX:mtlx/math/asin_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_asin_vector4.nodedef_name = 'ND_asin_vector4'; -mtlx_math_asin_vector4.nodedef_node = 'asin'; -mtlx_math_asin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector4',mtlx_math_asin_vector4); - -// MaterialX node type: mtlx/math/acos_vector4 -// -function mtlx_math_acos_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'acos_vector4'; - this.desc = "MaterialX:mtlx/math/acos_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_acos_vector4.nodedef_name = 'ND_acos_vector4'; -mtlx_math_acos_vector4.nodedef_node = 'acos'; -mtlx_math_acos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector4',mtlx_math_acos_vector4); - -// MaterialX node type: mtlx/math/atan2_vector4 -// -function mtlx_math_atan2_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector4'); - this.addProperty('iny', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector4'); - this.addProperty('inx', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'atan2_vector4'; - this.desc = "MaterialX:mtlx/math/atan2_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_atan2_vector4.nodedef_name = 'ND_atan2_vector4'; -mtlx_math_atan2_vector4.nodedef_node = 'atan2'; -mtlx_math_atan2_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector4',mtlx_math_atan2_vector4); - -// MaterialX node type: mtlx/math/sqrt_float -// -function mtlx_math_sqrt_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sqrt_float'; - this.desc = "MaterialX:mtlx/math/sqrt_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sqrt_float.nodedef_name = 'ND_sqrt_float'; -mtlx_math_sqrt_float.nodedef_node = 'sqrt'; -mtlx_math_sqrt_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_float',mtlx_math_sqrt_float); - -// MaterialX node type: mtlx/math/ln_float -// -function mtlx_math_ln_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ln_float'; - this.desc = "MaterialX:mtlx/math/ln_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_ln_float.nodedef_name = 'ND_ln_float'; -mtlx_math_ln_float.nodedef_node = 'ln'; -mtlx_math_ln_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_float',mtlx_math_ln_float); - -// MaterialX node type: mtlx/math/exp_float -// -function mtlx_math_exp_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'exp_float'; - this.desc = "MaterialX:mtlx/math/exp_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_exp_float.nodedef_name = 'ND_exp_float'; -mtlx_math_exp_float.nodedef_node = 'exp'; -mtlx_math_exp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_float',mtlx_math_exp_float); - -// MaterialX node type: mtlx/math/sqrt_vector2 -// -function mtlx_math_sqrt_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sqrt_vector2'; - this.desc = "MaterialX:mtlx/math/sqrt_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sqrt_vector2.nodedef_name = 'ND_sqrt_vector2'; -mtlx_math_sqrt_vector2.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector2',mtlx_math_sqrt_vector2); - -// MaterialX node type: mtlx/math/ln_vector2 -// -function mtlx_math_ln_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ln_vector2'; - this.desc = "MaterialX:mtlx/math/ln_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ln_vector2.nodedef_name = 'ND_ln_vector2'; -mtlx_math_ln_vector2.nodedef_node = 'ln'; -mtlx_math_ln_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector2',mtlx_math_ln_vector2); - -// MaterialX node type: mtlx/math/exp_vector2 -// -function mtlx_math_exp_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'exp_vector2'; - this.desc = "MaterialX:mtlx/math/exp_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_exp_vector2.nodedef_name = 'ND_exp_vector2'; -mtlx_math_exp_vector2.nodedef_node = 'exp'; -mtlx_math_exp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector2',mtlx_math_exp_vector2); - -// MaterialX node type: mtlx/math/sqrt_vector3 -// -function mtlx_math_sqrt_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sqrt_vector3'; - this.desc = "MaterialX:mtlx/math/sqrt_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sqrt_vector3.nodedef_name = 'ND_sqrt_vector3'; -mtlx_math_sqrt_vector3.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector3',mtlx_math_sqrt_vector3); - -// MaterialX node type: mtlx/math/ln_vector3 -// -function mtlx_math_ln_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ln_vector3'; - this.desc = "MaterialX:mtlx/math/ln_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_ln_vector3.nodedef_name = 'ND_ln_vector3'; -mtlx_math_ln_vector3.nodedef_node = 'ln'; -mtlx_math_ln_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector3',mtlx_math_ln_vector3); - -// MaterialX node type: mtlx/math/exp_vector3 -// -function mtlx_math_exp_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'exp_vector3'; - this.desc = "MaterialX:mtlx/math/exp_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_exp_vector3.nodedef_name = 'ND_exp_vector3'; -mtlx_math_exp_vector3.nodedef_node = 'exp'; -mtlx_math_exp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector3',mtlx_math_exp_vector3); - -// MaterialX node type: mtlx/math/sqrt_vector4 -// -function mtlx_math_sqrt_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sqrt_vector4'; - this.desc = "MaterialX:mtlx/math/sqrt_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sqrt_vector4.nodedef_name = 'ND_sqrt_vector4'; -mtlx_math_sqrt_vector4.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector4',mtlx_math_sqrt_vector4); - -// MaterialX node type: mtlx/math/ln_vector4 -// -function mtlx_math_ln_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ln_vector4'; - this.desc = "MaterialX:mtlx/math/ln_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_ln_vector4.nodedef_name = 'ND_ln_vector4'; -mtlx_math_ln_vector4.nodedef_node = 'ln'; -mtlx_math_ln_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector4',mtlx_math_ln_vector4); - -// MaterialX node type: mtlx/math/exp_vector4 -// -function mtlx_math_exp_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'exp_vector4'; - this.desc = "MaterialX:mtlx/math/exp_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_exp_vector4.nodedef_name = 'ND_exp_vector4'; -mtlx_math_exp_vector4.nodedef_node = 'exp'; -mtlx_math_exp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector4',mtlx_math_exp_vector4); - -// MaterialX node type: mtlx/math/sign_float -// -function mtlx_math_sign_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sign_float'; - this.desc = "MaterialX:mtlx/math/sign_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sign_float.nodedef_name = 'ND_sign_float'; -mtlx_math_sign_float.nodedef_node = 'sign'; -mtlx_math_sign_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_float',mtlx_math_sign_float); - -// MaterialX node type: mtlx/math/sign_color3 -// -function mtlx_math_sign_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'sign_color3'; - this.desc = "MaterialX:mtlx/math/sign_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_sign_color3.nodedef_name = 'ND_sign_color3'; -mtlx_math_sign_color3.nodedef_node = 'sign'; -mtlx_math_sign_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_color3',mtlx_math_sign_color3); - -// MaterialX node type: mtlx/math/sign_color4 -// -function mtlx_math_sign_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'sign_color4'; - this.desc = "MaterialX:mtlx/math/sign_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_sign_color4.nodedef_name = 'ND_sign_color4'; -mtlx_math_sign_color4.nodedef_node = 'sign'; -mtlx_math_sign_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_color4',mtlx_math_sign_color4); - -// MaterialX node type: mtlx/math/sign_vector2 -// -function mtlx_math_sign_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sign_vector2'; - this.desc = "MaterialX:mtlx/math/sign_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sign_vector2.nodedef_name = 'ND_sign_vector2'; -mtlx_math_sign_vector2.nodedef_node = 'sign'; -mtlx_math_sign_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector2',mtlx_math_sign_vector2); - -// MaterialX node type: mtlx/math/sign_vector3 -// -function mtlx_math_sign_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sign_vector3'; - this.desc = "MaterialX:mtlx/math/sign_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sign_vector3.nodedef_name = 'ND_sign_vector3'; -mtlx_math_sign_vector3.nodedef_node = 'sign'; -mtlx_math_sign_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector3',mtlx_math_sign_vector3); - -// MaterialX node type: mtlx/math/sign_vector4 -// -function mtlx_math_sign_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sign_vector4'; - this.desc = "MaterialX:mtlx/math/sign_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sign_vector4.nodedef_name = 'ND_sign_vector4'; -mtlx_math_sign_vector4.nodedef_node = 'sign'; -mtlx_math_sign_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector4',mtlx_math_sign_vector4); - -// MaterialX node type: mtlx/math/clamp_float -// -function mtlx_math_clamp_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'clamp_float'; - this.desc = "MaterialX:mtlx/math/clamp_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_clamp_float.nodedef_name = 'ND_clamp_float'; -mtlx_math_clamp_float.nodedef_node = 'clamp'; -mtlx_math_clamp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_float',mtlx_math_clamp_float); - -// MaterialX node type: mtlx/math/clamp_color3 -// -function mtlx_math_clamp_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'clamp_color3'; - this.desc = "MaterialX:mtlx/math/clamp_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_clamp_color3.nodedef_name = 'ND_clamp_color3'; -mtlx_math_clamp_color3.nodedef_node = 'clamp'; -mtlx_math_clamp_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color3',mtlx_math_clamp_color3); - -// MaterialX node type: mtlx/math/clamp_color4 -// -function mtlx_math_clamp_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'clamp_color4'; - this.desc = "MaterialX:mtlx/math/clamp_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_clamp_color4.nodedef_name = 'ND_clamp_color4'; -mtlx_math_clamp_color4.nodedef_node = 'clamp'; -mtlx_math_clamp_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color4',mtlx_math_clamp_color4); - -// MaterialX node type: mtlx/math/clamp_vector2 -// -function mtlx_math_clamp_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector2'); - this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector2'); - this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'clamp_vector2'; - this.desc = "MaterialX:mtlx/math/clamp_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_clamp_vector2.nodedef_name = 'ND_clamp_vector2'; -mtlx_math_clamp_vector2.nodedef_node = 'clamp'; -mtlx_math_clamp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector2',mtlx_math_clamp_vector2); - -// MaterialX node type: mtlx/math/clamp_vector3 -// -function mtlx_math_clamp_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'clamp_vector3'; - this.desc = "MaterialX:mtlx/math/clamp_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_clamp_vector3.nodedef_name = 'ND_clamp_vector3'; -mtlx_math_clamp_vector3.nodedef_node = 'clamp'; -mtlx_math_clamp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector3',mtlx_math_clamp_vector3); - -// MaterialX node type: mtlx/math/clamp_vector4 -// -function mtlx_math_clamp_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'clamp_vector4'; - this.desc = "MaterialX:mtlx/math/clamp_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_clamp_vector4.nodedef_name = 'ND_clamp_vector4'; -mtlx_math_clamp_vector4.nodedef_node = 'clamp'; -mtlx_math_clamp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector4',mtlx_math_clamp_vector4); - -// MaterialX node type: mtlx/math/clamp_color3FA -// -function mtlx_math_clamp_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'clamp_color3'; - this.desc = "MaterialX:mtlx/math/clamp_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_clamp_color3FA.nodedef_name = 'ND_clamp_color3FA'; -mtlx_math_clamp_color3FA.nodedef_node = 'clamp'; -mtlx_math_clamp_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color3FA',mtlx_math_clamp_color3FA); - -// MaterialX node type: mtlx/math/clamp_color4FA -// -function mtlx_math_clamp_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'clamp_color4'; - this.desc = "MaterialX:mtlx/math/clamp_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_clamp_color4FA.nodedef_name = 'ND_clamp_color4FA'; -mtlx_math_clamp_color4FA.nodedef_node = 'clamp'; -mtlx_math_clamp_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color4FA',mtlx_math_clamp_color4FA); - -// MaterialX node type: mtlx/math/clamp_vector2FA -// -function mtlx_math_clamp_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'clamp_vector2'; - this.desc = "MaterialX:mtlx/math/clamp_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_clamp_vector2FA.nodedef_name = 'ND_clamp_vector2FA'; -mtlx_math_clamp_vector2FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector2FA',mtlx_math_clamp_vector2FA); - -// MaterialX node type: mtlx/math/clamp_vector3FA -// -function mtlx_math_clamp_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'clamp_vector3'; - this.desc = "MaterialX:mtlx/math/clamp_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_clamp_vector3FA.nodedef_name = 'ND_clamp_vector3FA'; -mtlx_math_clamp_vector3FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector3FA',mtlx_math_clamp_vector3FA); - -// MaterialX node type: mtlx/math/clamp_vector4FA -// -function mtlx_math_clamp_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'clamp_vector4'; - this.desc = "MaterialX:mtlx/math/clamp_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_clamp_vector4FA.nodedef_name = 'ND_clamp_vector4FA'; -mtlx_math_clamp_vector4FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector4FA',mtlx_math_clamp_vector4FA); - -// MaterialX node type: mtlx/math/min_float -// -function mtlx_math_min_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'min_float'; - this.desc = "MaterialX:mtlx/math/min_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_min_float.nodedef_name = 'ND_min_float'; -mtlx_math_min_float.nodedef_node = 'min'; -mtlx_math_min_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_float',mtlx_math_min_float); - -// MaterialX node type: mtlx/math/min_color3 -// -function mtlx_math_min_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'min_color3'; - this.desc = "MaterialX:mtlx/math/min_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_min_color3.nodedef_name = 'ND_min_color3'; -mtlx_math_min_color3.nodedef_node = 'min'; -mtlx_math_min_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color3',mtlx_math_min_color3); - -// MaterialX node type: mtlx/math/min_color4 -// -function mtlx_math_min_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'min_color4'; - this.desc = "MaterialX:mtlx/math/min_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_min_color4.nodedef_name = 'ND_min_color4'; -mtlx_math_min_color4.nodedef_node = 'min'; -mtlx_math_min_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color4',mtlx_math_min_color4); - -// MaterialX node type: mtlx/math/min_vector2 -// -function mtlx_math_min_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'min_vector2'; - this.desc = "MaterialX:mtlx/math/min_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_min_vector2.nodedef_name = 'ND_min_vector2'; -mtlx_math_min_vector2.nodedef_node = 'min'; -mtlx_math_min_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector2',mtlx_math_min_vector2); - -// MaterialX node type: mtlx/math/min_vector3 -// -function mtlx_math_min_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'min_vector3'; - this.desc = "MaterialX:mtlx/math/min_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_min_vector3.nodedef_name = 'ND_min_vector3'; -mtlx_math_min_vector3.nodedef_node = 'min'; -mtlx_math_min_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector3',mtlx_math_min_vector3); - -// MaterialX node type: mtlx/math/min_vector4 -// -function mtlx_math_min_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'min_vector4'; - this.desc = "MaterialX:mtlx/math/min_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_min_vector4.nodedef_name = 'ND_min_vector4'; -mtlx_math_min_vector4.nodedef_node = 'min'; -mtlx_math_min_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector4',mtlx_math_min_vector4); - -// MaterialX node type: mtlx/math/min_color3FA -// -function mtlx_math_min_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'min_color3'; - this.desc = "MaterialX:mtlx/math/min_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_min_color3FA.nodedef_name = 'ND_min_color3FA'; -mtlx_math_min_color3FA.nodedef_node = 'min'; -mtlx_math_min_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color3FA',mtlx_math_min_color3FA); - -// MaterialX node type: mtlx/math/min_color4FA -// -function mtlx_math_min_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'min_color4'; - this.desc = "MaterialX:mtlx/math/min_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_min_color4FA.nodedef_name = 'ND_min_color4FA'; -mtlx_math_min_color4FA.nodedef_node = 'min'; -mtlx_math_min_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color4FA',mtlx_math_min_color4FA); - -// MaterialX node type: mtlx/math/min_vector2FA -// -function mtlx_math_min_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'min_vector2'; - this.desc = "MaterialX:mtlx/math/min_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_min_vector2FA.nodedef_name = 'ND_min_vector2FA'; -mtlx_math_min_vector2FA.nodedef_node = 'min'; -mtlx_math_min_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector2FA',mtlx_math_min_vector2FA); - -// MaterialX node type: mtlx/math/min_vector3FA -// -function mtlx_math_min_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'min_vector3'; - this.desc = "MaterialX:mtlx/math/min_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_min_vector3FA.nodedef_name = 'ND_min_vector3FA'; -mtlx_math_min_vector3FA.nodedef_node = 'min'; -mtlx_math_min_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector3FA',mtlx_math_min_vector3FA); - -// MaterialX node type: mtlx/math/min_vector4FA -// -function mtlx_math_min_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'min_vector4'; - this.desc = "MaterialX:mtlx/math/min_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_min_vector4FA.nodedef_name = 'ND_min_vector4FA'; -mtlx_math_min_vector4FA.nodedef_node = 'min'; -mtlx_math_min_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector4FA',mtlx_math_min_vector4FA); - -// MaterialX node type: mtlx/math/max_float -// -function mtlx_math_max_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'max_float'; - this.desc = "MaterialX:mtlx/math/max_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_max_float.nodedef_name = 'ND_max_float'; -mtlx_math_max_float.nodedef_node = 'max'; -mtlx_math_max_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_float',mtlx_math_max_float); - -// MaterialX node type: mtlx/math/max_color3 -// -function mtlx_math_max_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'max_color3'; - this.desc = "MaterialX:mtlx/math/max_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_max_color3.nodedef_name = 'ND_max_color3'; -mtlx_math_max_color3.nodedef_node = 'max'; -mtlx_math_max_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color3',mtlx_math_max_color3); - -// MaterialX node type: mtlx/math/max_color4 -// -function mtlx_math_max_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'max_color4'; - this.desc = "MaterialX:mtlx/math/max_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_max_color4.nodedef_name = 'ND_max_color4'; -mtlx_math_max_color4.nodedef_node = 'max'; -mtlx_math_max_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color4',mtlx_math_max_color4); - -// MaterialX node type: mtlx/math/max_vector2 -// -function mtlx_math_max_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'max_vector2'; - this.desc = "MaterialX:mtlx/math/max_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_max_vector2.nodedef_name = 'ND_max_vector2'; -mtlx_math_max_vector2.nodedef_node = 'max'; -mtlx_math_max_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector2',mtlx_math_max_vector2); - -// MaterialX node type: mtlx/math/max_vector3 -// -function mtlx_math_max_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'max_vector3'; - this.desc = "MaterialX:mtlx/math/max_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_max_vector3.nodedef_name = 'ND_max_vector3'; -mtlx_math_max_vector3.nodedef_node = 'max'; -mtlx_math_max_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector3',mtlx_math_max_vector3); - -// MaterialX node type: mtlx/math/max_vector4 -// -function mtlx_math_max_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'max_vector4'; - this.desc = "MaterialX:mtlx/math/max_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_max_vector4.nodedef_name = 'ND_max_vector4'; -mtlx_math_max_vector4.nodedef_node = 'max'; -mtlx_math_max_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector4',mtlx_math_max_vector4); - -// MaterialX node type: mtlx/math/max_color3FA -// -function mtlx_math_max_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'max_color3'; - this.desc = "MaterialX:mtlx/math/max_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_max_color3FA.nodedef_name = 'ND_max_color3FA'; -mtlx_math_max_color3FA.nodedef_node = 'max'; -mtlx_math_max_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color3FA',mtlx_math_max_color3FA); - -// MaterialX node type: mtlx/math/max_color4FA -// -function mtlx_math_max_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'max_color4'; - this.desc = "MaterialX:mtlx/math/max_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_max_color4FA.nodedef_name = 'ND_max_color4FA'; -mtlx_math_max_color4FA.nodedef_node = 'max'; -mtlx_math_max_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color4FA',mtlx_math_max_color4FA); - -// MaterialX node type: mtlx/math/max_vector2FA -// -function mtlx_math_max_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'max_vector2'; - this.desc = "MaterialX:mtlx/math/max_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_max_vector2FA.nodedef_name = 'ND_max_vector2FA'; -mtlx_math_max_vector2FA.nodedef_node = 'max'; -mtlx_math_max_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector2FA',mtlx_math_max_vector2FA); - -// MaterialX node type: mtlx/math/max_vector3FA -// -function mtlx_math_max_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'max_vector3'; - this.desc = "MaterialX:mtlx/math/max_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_max_vector3FA.nodedef_name = 'ND_max_vector3FA'; -mtlx_math_max_vector3FA.nodedef_node = 'max'; -mtlx_math_max_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector3FA',mtlx_math_max_vector3FA); - -// MaterialX node type: mtlx/math/max_vector4FA -// -function mtlx_math_max_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'max_vector4'; - this.desc = "MaterialX:mtlx/math/max_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_max_vector4FA.nodedef_name = 'ND_max_vector4FA'; -mtlx_math_max_vector4FA.nodedef_node = 'max'; -mtlx_math_max_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector4FA',mtlx_math_max_vector4FA); - -// MaterialX node type: mtlx/math/normalize_vector2 -// -function mtlx_math_normalize_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'normalize_vector2'; - this.desc = "MaterialX:mtlx/math/normalize_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_normalize_vector2.nodedef_name = 'ND_normalize_vector2'; -mtlx_math_normalize_vector2.nodedef_node = 'normalize'; -mtlx_math_normalize_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector2',mtlx_math_normalize_vector2); - -// MaterialX node type: mtlx/math/normalize_vector3 -// -function mtlx_math_normalize_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalize_vector3'; - this.desc = "MaterialX:mtlx/math/normalize_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalize_vector3.nodedef_name = 'ND_normalize_vector3'; -mtlx_math_normalize_vector3.nodedef_node = 'normalize'; -mtlx_math_normalize_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector3',mtlx_math_normalize_vector3); - -// MaterialX node type: mtlx/math/normalize_vector4 -// -function mtlx_math_normalize_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'normalize_vector4'; - this.desc = "MaterialX:mtlx/math/normalize_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_normalize_vector4.nodedef_name = 'ND_normalize_vector4'; -mtlx_math_normalize_vector4.nodedef_node = 'normalize'; -mtlx_math_normalize_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector4',mtlx_math_normalize_vector4); - -// MaterialX node type: mtlx/math/magnitude_vector2 -// -function mtlx_math_magnitude_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector2.nodedef_name = 'ND_magnitude_vector2'; -mtlx_math_magnitude_vector2.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector2',mtlx_math_magnitude_vector2); - -// MaterialX node type: mtlx/math/magnitude_vector3 -// -function mtlx_math_magnitude_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector3.nodedef_name = 'ND_magnitude_vector3'; -mtlx_math_magnitude_vector3.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector3',mtlx_math_magnitude_vector3); - -// MaterialX node type: mtlx/math/magnitude_vector4 -// -function mtlx_math_magnitude_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector4.nodedef_name = 'ND_magnitude_vector4'; -mtlx_math_magnitude_vector4.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector4',mtlx_math_magnitude_vector4); - -// MaterialX node type: mtlx/math/distance_vector2 -// -function mtlx_math_distance_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector2.nodedef_name = 'ND_distance_vector2'; -mtlx_math_distance_vector2.nodedef_node = 'distance'; -mtlx_math_distance_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector2',mtlx_math_distance_vector2); - -// MaterialX node type: mtlx/math/distance_vector3 -// -function mtlx_math_distance_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector3.nodedef_name = 'ND_distance_vector3'; -mtlx_math_distance_vector3.nodedef_node = 'distance'; -mtlx_math_distance_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector3',mtlx_math_distance_vector3); - -// MaterialX node type: mtlx/math/distance_vector4 -// -function mtlx_math_distance_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector4.nodedef_name = 'ND_distance_vector4'; -mtlx_math_distance_vector4.nodedef_node = 'distance'; -mtlx_math_distance_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector4',mtlx_math_distance_vector4); - -// MaterialX node type: mtlx/math/dotproduct_vector2 -// -function mtlx_math_dotproduct_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector2.nodedef_name = 'ND_dotproduct_vector2'; -mtlx_math_dotproduct_vector2.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector2',mtlx_math_dotproduct_vector2); - -// MaterialX node type: mtlx/math/dotproduct_vector3 -// -function mtlx_math_dotproduct_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector3.nodedef_name = 'ND_dotproduct_vector3'; -mtlx_math_dotproduct_vector3.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector3',mtlx_math_dotproduct_vector3); - -// MaterialX node type: mtlx/math/dotproduct_vector4 -// -function mtlx_math_dotproduct_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector4.nodedef_name = 'ND_dotproduct_vector4'; -mtlx_math_dotproduct_vector4.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector4',mtlx_math_dotproduct_vector4); - -// MaterialX node type: mtlx/math/crossproduct_vector3 -// -function mtlx_math_crossproduct_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_crossproduct_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'crossproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crossproduct_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'crossproduct_vector3'; - this.desc = "MaterialX:mtlx/math/crossproduct_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_crossproduct_vector3.nodedef_name = 'ND_crossproduct_vector3'; -mtlx_math_crossproduct_vector3.nodedef_node = 'crossproduct'; -mtlx_math_crossproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; -LiteGraph.registerNodeType('mtlx/math/crossproduct_vector3',mtlx_math_crossproduct_vector3); - -// MaterialX node type: mtlx/math/transformpoint_vector3 -// -function mtlx_math_transformpoint_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformpoint_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformpoint'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformpoint_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformpoint_vector3'; - this.desc = "MaterialX:mtlx/math/transformpoint_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformpoint_vector3.nodedef_name = 'ND_transformpoint_vector3'; -mtlx_math_transformpoint_vector3.nodedef_node = 'transformpoint'; -mtlx_math_transformpoint_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; -LiteGraph.registerNodeType('mtlx/math/transformpoint_vector3',mtlx_math_transformpoint_vector3); - -// MaterialX node type: mtlx/math/transformvector_vector3 -// -function mtlx_math_transformvector_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformvector_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformvector'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformvector_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformvector_vector3'; - this.desc = "MaterialX:mtlx/math/transformvector_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformvector_vector3.nodedef_name = 'ND_transformvector_vector3'; -mtlx_math_transformvector_vector3.nodedef_node = 'transformvector'; -mtlx_math_transformvector_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; -LiteGraph.registerNodeType('mtlx/math/transformvector_vector3',mtlx_math_transformvector_vector3); - -// MaterialX node type: mtlx/math/transformnormal_vector3 -// -function mtlx_math_transformnormal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformnormal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformnormal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformnormal_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformnormal_vector3'; - this.desc = "MaterialX:mtlx/math/transformnormal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformnormal_vector3.nodedef_name = 'ND_transformnormal_vector3'; -mtlx_math_transformnormal_vector3.nodedef_node = 'transformnormal'; -mtlx_math_transformnormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; -LiteGraph.registerNodeType('mtlx/math/transformnormal_vector3',mtlx_math_transformnormal_vector3); - -// MaterialX node type: mtlx/math/transformmatrix_vector2M3 -// -function mtlx_math_transformmatrix_vector2M3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector2M3'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector2M3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix33'); - this.addProperty('mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'transformmatrix_vector2'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector2M3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_transformmatrix_vector2M3.nodedef_name = 'ND_transformmatrix_vector2M3'; -mtlx_math_transformmatrix_vector2M3.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector2M3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector2M3',mtlx_math_transformmatrix_vector2M3); - -// MaterialX node type: mtlx/math/transformmatrix_vector3 -// -function mtlx_math_transformmatrix_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix33'); - this.addProperty('mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformmatrix_vector3'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformmatrix_vector3.nodedef_name = 'ND_transformmatrix_vector3'; -mtlx_math_transformmatrix_vector3.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3',mtlx_math_transformmatrix_vector3); - -// MaterialX node type: mtlx/math/transformmatrix_vector3M4 -// -function mtlx_math_transformmatrix_vector3M4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector3M4'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3M4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix44'); - this.addProperty('mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformmatrix_vector3'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector3M4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformmatrix_vector3M4.nodedef_name = 'ND_transformmatrix_vector3M4'; -mtlx_math_transformmatrix_vector3M4.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector3M4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3M4',mtlx_math_transformmatrix_vector3M4); - -// MaterialX node type: mtlx/math/transformmatrix_vector4 -// -function mtlx_math_transformmatrix_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix44'); - this.addProperty('mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'transformmatrix_vector4'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_transformmatrix_vector4.nodedef_name = 'ND_transformmatrix_vector4'; -mtlx_math_transformmatrix_vector4.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector4',mtlx_math_transformmatrix_vector4); - -// MaterialX node type: mtlx/math/normalmap_float -// -function mtlx_math_normalmap_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalmap_float'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('space','string'); - this.addProperty('space', 'tangent', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalmap_vector3'; - this.desc = "MaterialX:mtlx/math/normalmap_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalmap_float.nodedef_name = 'ND_normalmap_float'; -mtlx_math_normalmap_float.nodedef_node = 'normalmap'; -mtlx_math_normalmap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; -LiteGraph.registerNodeType('mtlx/math/normalmap_float',mtlx_math_normalmap_float); - -// MaterialX node type: mtlx/math/normalmap_vector2 -// -function mtlx_math_normalmap_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalmap_vector2'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('space','string'); - this.addProperty('space', 'tangent', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalmap_vector3'; - this.desc = "MaterialX:mtlx/math/normalmap_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalmap_vector2.nodedef_name = 'ND_normalmap_vector2'; -mtlx_math_normalmap_vector2.nodedef_node = 'normalmap'; -mtlx_math_normalmap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; -LiteGraph.registerNodeType('mtlx/math/normalmap_vector2',mtlx_math_normalmap_vector2); - -// MaterialX node type: mtlx/math/transpose_matrix33 -// -function mtlx_math_transpose_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transpose_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'transpose'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'transpose_matrix33'; - this.desc = "MaterialX:mtlx/math/transpose_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_transpose_matrix33.nodedef_name = 'ND_transpose_matrix33'; -mtlx_math_transpose_matrix33.nodedef_node = 'transpose'; -mtlx_math_transpose_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; -LiteGraph.registerNodeType('mtlx/math/transpose_matrix33',mtlx_math_transpose_matrix33); - -// MaterialX node type: mtlx/math/transpose_matrix44 -// -function mtlx_math_transpose_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transpose_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'transpose'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'transpose_matrix44'; - this.desc = "MaterialX:mtlx/math/transpose_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_transpose_matrix44.nodedef_name = 'ND_transpose_matrix44'; -mtlx_math_transpose_matrix44.nodedef_node = 'transpose'; -mtlx_math_transpose_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; -LiteGraph.registerNodeType('mtlx/math/transpose_matrix44',mtlx_math_transpose_matrix44); - -// MaterialX node type: mtlx/math/determinant_matrix33 -// -function mtlx_math_determinant_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_determinant_matrix33'; - this.nodedef_type = 'float'; - this.nodedef_node = 'determinant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'determinant_float'; - this.desc = "MaterialX:mtlx/math/determinant_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_determinant_matrix33.nodedef_name = 'ND_determinant_matrix33'; -mtlx_math_determinant_matrix33.nodedef_node = 'determinant'; -mtlx_math_determinant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; -LiteGraph.registerNodeType('mtlx/math/determinant_matrix33',mtlx_math_determinant_matrix33); - -// MaterialX node type: mtlx/math/determinant_matrix44 -// -function mtlx_math_determinant_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_determinant_matrix44'; - this.nodedef_type = 'float'; - this.nodedef_node = 'determinant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'determinant_float'; - this.desc = "MaterialX:mtlx/math/determinant_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_determinant_matrix44.nodedef_name = 'ND_determinant_matrix44'; -mtlx_math_determinant_matrix44.nodedef_node = 'determinant'; -mtlx_math_determinant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; -LiteGraph.registerNodeType('mtlx/math/determinant_matrix44',mtlx_math_determinant_matrix44); - -// MaterialX node type: mtlx/math/invertmatrix_matrix33 -// -function mtlx_math_invertmatrix_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invertmatrix_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'invertmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'invertmatrix_matrix33'; - this.desc = "MaterialX:mtlx/math/invertmatrix_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_invertmatrix_matrix33.nodedef_name = 'ND_invertmatrix_matrix33'; -mtlx_math_invertmatrix_matrix33.nodedef_node = 'invertmatrix'; -mtlx_math_invertmatrix_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix33',mtlx_math_invertmatrix_matrix33); - -// MaterialX node type: mtlx/math/invertmatrix_matrix44 -// -function mtlx_math_invertmatrix_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invertmatrix_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'invertmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'invertmatrix_matrix44'; - this.desc = "MaterialX:mtlx/math/invertmatrix_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_invertmatrix_matrix44.nodedef_name = 'ND_invertmatrix_matrix44'; -mtlx_math_invertmatrix_matrix44.nodedef_node = 'invertmatrix'; -mtlx_math_invertmatrix_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix44',mtlx_math_invertmatrix_matrix44); - -// MaterialX node type: mtlx/math/rotate2d_vector2 -// -function mtlx_math_rotate2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rotate2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'rotate2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate2d_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'rotate2d_vector2'; - this.desc = "MaterialX:mtlx/math/rotate2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_rotate2d_vector2.nodedef_name = 'ND_rotate2d_vector2'; -mtlx_math_rotate2d_vector2.nodedef_node = 'rotate2d'; -mtlx_math_rotate2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; -LiteGraph.registerNodeType('mtlx/math/rotate2d_vector2',mtlx_math_rotate2d_vector2); - -// MaterialX node type: mtlx/math/rotate3d_vector3 -// -function mtlx_math_rotate3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rotate3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'rotate3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate3d_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('axis','vector3'); - this.addProperty('axis', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'rotate3d_vector3'; - this.desc = "MaterialX:mtlx/math/rotate3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_rotate3d_vector3.nodedef_name = 'ND_rotate3d_vector3'; -mtlx_math_rotate3d_vector3.nodedef_node = 'rotate3d'; -mtlx_math_rotate3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; -LiteGraph.registerNodeType('mtlx/math/rotate3d_vector3',mtlx_math_rotate3d_vector3); - -// MaterialX node type: mtlx/math/place2d_vector2 -// -function mtlx_math_place2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_place2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'place2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_place2d_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1.0,1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'place2d_vector2'; - this.desc = "MaterialX:mtlx/math/place2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_place2d_vector2.nodedef_name = 'ND_place2d_vector2'; -mtlx_math_place2d_vector2.nodedef_node = 'place2d'; -mtlx_math_place2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; -LiteGraph.registerNodeType('mtlx/math/place2d_vector2',mtlx_math_place2d_vector2); - -// MaterialX node type: mtlx/math/trianglewave_float -// -function mtlx_math_trianglewave_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_trianglewave_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'trianglewave'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_trianglewave_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'trianglewave_float'; - this.desc = "MaterialX:mtlx/math/trianglewave_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_trianglewave_float.nodedef_name = 'ND_trianglewave_float'; -mtlx_math_trianglewave_float.nodedef_node = 'trianglewave'; -mtlx_math_trianglewave_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; -LiteGraph.registerNodeType('mtlx/math/trianglewave_float',mtlx_math_trianglewave_float); - -// MaterialX node type: mtlx/math/reflect_vector3 -// -function mtlx_math_reflect_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_reflect_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'reflect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_reflect_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'reflect_vector3'; - this.desc = "MaterialX:mtlx/math/reflect_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_reflect_vector3.nodedef_name = 'ND_reflect_vector3'; -mtlx_math_reflect_vector3.nodedef_node = 'reflect'; -mtlx_math_reflect_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; -LiteGraph.registerNodeType('mtlx/math/reflect_vector3',mtlx_math_reflect_vector3); - -// MaterialX node type: mtlx/math/refract_vector3 -// -function mtlx_math_refract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_refract_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'refract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_refract_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'refract_vector3'; - this.desc = "MaterialX:mtlx/math/refract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_refract_vector3.nodedef_name = 'ND_refract_vector3'; -mtlx_math_refract_vector3.nodedef_node = 'refract'; -mtlx_math_refract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; -LiteGraph.registerNodeType('mtlx/math/refract_vector3',mtlx_math_refract_vector3); - -// MaterialX node type: mtlx/adjustment/remap_float -// -function mtlx_adjustment_remap_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'remap_float'; - this.desc = "MaterialX:mtlx/adjustment/remap_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_remap_float.nodedef_name = 'ND_remap_float'; -mtlx_adjustment_remap_float.nodedef_node = 'remap'; -mtlx_adjustment_remap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_float',mtlx_adjustment_remap_float); - -// MaterialX node type: mtlx/adjustment/remap_color3 -// -function mtlx_adjustment_remap_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'remap_color3'; - this.desc = "MaterialX:mtlx/adjustment/remap_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_remap_color3.nodedef_name = 'ND_remap_color3'; -mtlx_adjustment_remap_color3.nodedef_node = 'remap'; -mtlx_adjustment_remap_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color3',mtlx_adjustment_remap_color3); - -// MaterialX node type: mtlx/adjustment/remap_color4 -// -function mtlx_adjustment_remap_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'remap_color4'; - this.desc = "MaterialX:mtlx/adjustment/remap_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_remap_color4.nodedef_name = 'ND_remap_color4'; -mtlx_adjustment_remap_color4.nodedef_node = 'remap'; -mtlx_adjustment_remap_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color4',mtlx_adjustment_remap_color4); - -// MaterialX node type: mtlx/adjustment/remap_vector2 -// -function mtlx_adjustment_remap_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector2'); - this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector2'); - this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector2'); - this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector2'); - this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'remap_vector2'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_remap_vector2.nodedef_name = 'ND_remap_vector2'; -mtlx_adjustment_remap_vector2.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2',mtlx_adjustment_remap_vector2); - -// MaterialX node type: mtlx/adjustment/remap_vector3 -// -function mtlx_adjustment_remap_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'remap_vector3'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_remap_vector3.nodedef_name = 'ND_remap_vector3'; -mtlx_adjustment_remap_vector3.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3',mtlx_adjustment_remap_vector3); - -// MaterialX node type: mtlx/adjustment/remap_vector4 -// -function mtlx_adjustment_remap_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'remap_vector4'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_remap_vector4.nodedef_name = 'ND_remap_vector4'; -mtlx_adjustment_remap_vector4.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4',mtlx_adjustment_remap_vector4); - -// MaterialX node type: mtlx/adjustment/remap_color3FA -// -function mtlx_adjustment_remap_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'remap_color3'; - this.desc = "MaterialX:mtlx/adjustment/remap_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_remap_color3FA.nodedef_name = 'ND_remap_color3FA'; -mtlx_adjustment_remap_color3FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color3FA',mtlx_adjustment_remap_color3FA); - -// MaterialX node type: mtlx/adjustment/remap_color4FA -// -function mtlx_adjustment_remap_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'remap_color4'; - this.desc = "MaterialX:mtlx/adjustment/remap_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_remap_color4FA.nodedef_name = 'ND_remap_color4FA'; -mtlx_adjustment_remap_color4FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color4FA',mtlx_adjustment_remap_color4FA); - -// MaterialX node type: mtlx/adjustment/remap_vector2FA -// -function mtlx_adjustment_remap_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'remap_vector2'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_remap_vector2FA.nodedef_name = 'ND_remap_vector2FA'; -mtlx_adjustment_remap_vector2FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2FA',mtlx_adjustment_remap_vector2FA); - -// MaterialX node type: mtlx/adjustment/remap_vector3FA -// -function mtlx_adjustment_remap_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'remap_vector3'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_remap_vector3FA.nodedef_name = 'ND_remap_vector3FA'; -mtlx_adjustment_remap_vector3FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3FA',mtlx_adjustment_remap_vector3FA); - -// MaterialX node type: mtlx/adjustment/remap_vector4FA -// -function mtlx_adjustment_remap_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'remap_vector4'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_remap_vector4FA.nodedef_name = 'ND_remap_vector4FA'; -mtlx_adjustment_remap_vector4FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4FA',mtlx_adjustment_remap_vector4FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_float -// -function mtlx_adjustment_smoothstep_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'smoothstep_float'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_smoothstep_float.nodedef_name = 'ND_smoothstep_float'; -mtlx_adjustment_smoothstep_float.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_float',mtlx_adjustment_smoothstep_float); - -// MaterialX node type: mtlx/adjustment/smoothstep_color3 -// -function mtlx_adjustment_smoothstep_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'smoothstep_color3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_smoothstep_color3.nodedef_name = 'ND_smoothstep_color3'; -mtlx_adjustment_smoothstep_color3.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3',mtlx_adjustment_smoothstep_color3); - -// MaterialX node type: mtlx/adjustment/smoothstep_color4 -// -function mtlx_adjustment_smoothstep_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'smoothstep_color4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_smoothstep_color4.nodedef_name = 'ND_smoothstep_color4'; -mtlx_adjustment_smoothstep_color4.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4',mtlx_adjustment_smoothstep_color4); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector2 -// -function mtlx_adjustment_smoothstep_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector2'); - this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector2'); - this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'smoothstep_vector2'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_smoothstep_vector2.nodedef_name = 'ND_smoothstep_vector2'; -mtlx_adjustment_smoothstep_vector2.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2',mtlx_adjustment_smoothstep_vector2); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector3 -// -function mtlx_adjustment_smoothstep_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'smoothstep_vector3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_smoothstep_vector3.nodedef_name = 'ND_smoothstep_vector3'; -mtlx_adjustment_smoothstep_vector3.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3',mtlx_adjustment_smoothstep_vector3); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector4 -// -function mtlx_adjustment_smoothstep_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'smoothstep_vector4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_smoothstep_vector4.nodedef_name = 'ND_smoothstep_vector4'; -mtlx_adjustment_smoothstep_vector4.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4',mtlx_adjustment_smoothstep_vector4); - -// MaterialX node type: mtlx/adjustment/smoothstep_color3FA -// -function mtlx_adjustment_smoothstep_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'smoothstep_color3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_smoothstep_color3FA.nodedef_name = 'ND_smoothstep_color3FA'; -mtlx_adjustment_smoothstep_color3FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3FA',mtlx_adjustment_smoothstep_color3FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_color4FA -// -function mtlx_adjustment_smoothstep_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'smoothstep_color4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_smoothstep_color4FA.nodedef_name = 'ND_smoothstep_color4FA'; -mtlx_adjustment_smoothstep_color4FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4FA',mtlx_adjustment_smoothstep_color4FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector2FA -// -function mtlx_adjustment_smoothstep_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'smoothstep_vector2'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_smoothstep_vector2FA.nodedef_name = 'ND_smoothstep_vector2FA'; -mtlx_adjustment_smoothstep_vector2FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2FA',mtlx_adjustment_smoothstep_vector2FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector3FA -// -function mtlx_adjustment_smoothstep_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'smoothstep_vector3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_smoothstep_vector3FA.nodedef_name = 'ND_smoothstep_vector3FA'; -mtlx_adjustment_smoothstep_vector3FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3FA',mtlx_adjustment_smoothstep_vector3FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector4FA -// -function mtlx_adjustment_smoothstep_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'smoothstep_vector4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_smoothstep_vector4FA.nodedef_name = 'ND_smoothstep_vector4FA'; -mtlx_adjustment_smoothstep_vector4FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4FA',mtlx_adjustment_smoothstep_vector4FA); - -// MaterialX node type: mtlx/adjustment/curveadjust_float -// -function mtlx_adjustment_curveadjust_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'curveadjust_float'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_curveadjust_float.nodedef_name = 'ND_curveadjust_float'; -mtlx_adjustment_curveadjust_float.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_float',mtlx_adjustment_curveadjust_float); - -// MaterialX node type: mtlx/adjustment/curveadjust_color3 -// -function mtlx_adjustment_curveadjust_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'curveadjust_color3'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_curveadjust_color3.nodedef_name = 'ND_curveadjust_color3'; -mtlx_adjustment_curveadjust_color3.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color3',mtlx_adjustment_curveadjust_color3); - -// MaterialX node type: mtlx/adjustment/curveadjust_color4 -// -function mtlx_adjustment_curveadjust_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'curveadjust_color4'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_curveadjust_color4.nodedef_name = 'ND_curveadjust_color4'; -mtlx_adjustment_curveadjust_color4.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color4',mtlx_adjustment_curveadjust_color4); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector2 -// -function mtlx_adjustment_curveadjust_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'curveadjust_vector2'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_curveadjust_vector2.nodedef_name = 'ND_curveadjust_vector2'; -mtlx_adjustment_curveadjust_vector2.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector2',mtlx_adjustment_curveadjust_vector2); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector3 -// -function mtlx_adjustment_curveadjust_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'curveadjust_vector3'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_curveadjust_vector3.nodedef_name = 'ND_curveadjust_vector3'; -mtlx_adjustment_curveadjust_vector3.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector3',mtlx_adjustment_curveadjust_vector3); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector4 -// -function mtlx_adjustment_curveadjust_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'curveadjust_vector4'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_curveadjust_vector4.nodedef_name = 'ND_curveadjust_vector4'; -mtlx_adjustment_curveadjust_vector4.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector4',mtlx_adjustment_curveadjust_vector4); - -// MaterialX node type: mtlx/adjustment/luminance_color3 -// -function mtlx_adjustment_luminance_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_luminance_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'luminance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'luminance_color3'; - this.desc = "MaterialX:mtlx/adjustment/luminance_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_luminance_color3.nodedef_name = 'ND_luminance_color3'; -mtlx_adjustment_luminance_color3.nodedef_node = 'luminance'; -mtlx_adjustment_luminance_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; -LiteGraph.registerNodeType('mtlx/adjustment/luminance_color3',mtlx_adjustment_luminance_color3); - -// MaterialX node type: mtlx/adjustment/luminance_color4 -// -function mtlx_adjustment_luminance_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_luminance_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'luminance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'luminance_color4'; - this.desc = "MaterialX:mtlx/adjustment/luminance_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_luminance_color4.nodedef_name = 'ND_luminance_color4'; -mtlx_adjustment_luminance_color4.nodedef_node = 'luminance'; -mtlx_adjustment_luminance_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; -LiteGraph.registerNodeType('mtlx/adjustment/luminance_color4',mtlx_adjustment_luminance_color4); - -// MaterialX node type: mtlx/adjustment/rgbtohsv_color3 -// -function mtlx_adjustment_rgbtohsv_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rgbtohsv_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'rgbtohsv'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'rgbtohsv_color3'; - this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_rgbtohsv_color3.nodedef_name = 'ND_rgbtohsv_color3'; -mtlx_adjustment_rgbtohsv_color3.nodedef_node = 'rgbtohsv'; -mtlx_adjustment_rgbtohsv_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; -LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color3',mtlx_adjustment_rgbtohsv_color3); - -// MaterialX node type: mtlx/adjustment/rgbtohsv_color4 -// -function mtlx_adjustment_rgbtohsv_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rgbtohsv_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'rgbtohsv'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'rgbtohsv_color4'; - this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_rgbtohsv_color4.nodedef_name = 'ND_rgbtohsv_color4'; -mtlx_adjustment_rgbtohsv_color4.nodedef_node = 'rgbtohsv'; -mtlx_adjustment_rgbtohsv_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; -LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color4',mtlx_adjustment_rgbtohsv_color4); - -// MaterialX node type: mtlx/adjustment/hsvtorgb_color3 -// -function mtlx_adjustment_hsvtorgb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvtorgb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'hsvtorgb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'hsvtorgb_color3'; - this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_hsvtorgb_color3.nodedef_name = 'ND_hsvtorgb_color3'; -mtlx_adjustment_hsvtorgb_color3.nodedef_node = 'hsvtorgb'; -mtlx_adjustment_hsvtorgb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color3',mtlx_adjustment_hsvtorgb_color3); - -// MaterialX node type: mtlx/adjustment/hsvtorgb_color4 -// -function mtlx_adjustment_hsvtorgb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvtorgb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'hsvtorgb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'hsvtorgb_color4'; - this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_hsvtorgb_color4.nodedef_name = 'ND_hsvtorgb_color4'; -mtlx_adjustment_hsvtorgb_color4.nodedef_node = 'hsvtorgb'; -mtlx_adjustment_hsvtorgb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color4',mtlx_adjustment_hsvtorgb_color4); - -// MaterialX node type: mtlx/adjustment/contrast_float -// -function mtlx_adjustment_contrast_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'contrast_float'; - this.desc = "MaterialX:mtlx/adjustment/contrast_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_contrast_float.nodedef_name = 'ND_contrast_float'; -mtlx_adjustment_contrast_float.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_float',mtlx_adjustment_contrast_float); - -// MaterialX node type: mtlx/adjustment/contrast_color3 -// -function mtlx_adjustment_contrast_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','color3'); - this.addProperty('pivot', [0.5, 0.5, 0.5], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'contrast_color3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_contrast_color3.nodedef_name = 'ND_contrast_color3'; -mtlx_adjustment_contrast_color3.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3',mtlx_adjustment_contrast_color3); - -// MaterialX node type: mtlx/adjustment/contrast_color4 -// -function mtlx_adjustment_contrast_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','color4'); - this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'contrast_color4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_contrast_color4.nodedef_name = 'ND_contrast_color4'; -mtlx_adjustment_contrast_color4.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4',mtlx_adjustment_contrast_color4); - -// MaterialX node type: mtlx/adjustment/contrast_vector2 -// -function mtlx_adjustment_contrast_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector2'); - this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0.5, 0.5], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'contrast_vector2'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_contrast_vector2.nodedef_name = 'ND_contrast_vector2'; -mtlx_adjustment_contrast_vector2.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2',mtlx_adjustment_contrast_vector2); - -// MaterialX node type: mtlx/adjustment/contrast_vector3 -// -function mtlx_adjustment_contrast_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector3'); - this.addProperty('pivot', [0.5, 0.5, 0.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'contrast_vector3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_contrast_vector3.nodedef_name = 'ND_contrast_vector3'; -mtlx_adjustment_contrast_vector3.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3',mtlx_adjustment_contrast_vector3); - -// MaterialX node type: mtlx/adjustment/contrast_vector4 -// -function mtlx_adjustment_contrast_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector4'); - this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'contrast_vector4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_contrast_vector4.nodedef_name = 'ND_contrast_vector4'; -mtlx_adjustment_contrast_vector4.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4',mtlx_adjustment_contrast_vector4); - -// MaterialX node type: mtlx/adjustment/contrast_color3FA -// -function mtlx_adjustment_contrast_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'contrast_color3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_contrast_color3FA.nodedef_name = 'ND_contrast_color3FA'; -mtlx_adjustment_contrast_color3FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3FA',mtlx_adjustment_contrast_color3FA); - -// MaterialX node type: mtlx/adjustment/contrast_color4FA -// -function mtlx_adjustment_contrast_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'contrast_color4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_contrast_color4FA.nodedef_name = 'ND_contrast_color4FA'; -mtlx_adjustment_contrast_color4FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4FA',mtlx_adjustment_contrast_color4FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector2FA -// -function mtlx_adjustment_contrast_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'contrast_vector2'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_contrast_vector2FA.nodedef_name = 'ND_contrast_vector2FA'; -mtlx_adjustment_contrast_vector2FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2FA',mtlx_adjustment_contrast_vector2FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector3FA -// -function mtlx_adjustment_contrast_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'contrast_vector3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_contrast_vector3FA.nodedef_name = 'ND_contrast_vector3FA'; -mtlx_adjustment_contrast_vector3FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3FA',mtlx_adjustment_contrast_vector3FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector4FA -// -function mtlx_adjustment_contrast_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'contrast_vector4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_contrast_vector4FA.nodedef_name = 'ND_contrast_vector4FA'; -mtlx_adjustment_contrast_vector4FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4FA',mtlx_adjustment_contrast_vector4FA); - -// MaterialX node type: mtlx/adjustment/range_float -// -function mtlx_adjustment_range_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'range_float'; - this.desc = "MaterialX:mtlx/adjustment/range_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_range_float.nodedef_name = 'ND_range_float'; -mtlx_adjustment_range_float.nodedef_node = 'range'; -mtlx_adjustment_range_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_float',mtlx_adjustment_range_float); - -// MaterialX node type: mtlx/adjustment/range_color3 -// -function mtlx_adjustment_range_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','color3'); - this.addProperty('gamma', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'range_color3'; - this.desc = "MaterialX:mtlx/adjustment/range_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_range_color3.nodedef_name = 'ND_range_color3'; -mtlx_adjustment_range_color3.nodedef_node = 'range'; -mtlx_adjustment_range_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color3',mtlx_adjustment_range_color3); - -// MaterialX node type: mtlx/adjustment/range_color4 -// -function mtlx_adjustment_range_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','color4'); - this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'range_color4'; - this.desc = "MaterialX:mtlx/adjustment/range_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_range_color4.nodedef_name = 'ND_range_color4'; -mtlx_adjustment_range_color4.nodedef_node = 'range'; -mtlx_adjustment_range_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color4',mtlx_adjustment_range_color4); - -// MaterialX node type: mtlx/adjustment/range_vector2 -// -function mtlx_adjustment_range_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector2'); - this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector2'); - this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector2'); - this.addProperty('gamma', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector2'); - this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector2'); - this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'range_vector2'; - this.desc = "MaterialX:mtlx/adjustment/range_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_range_vector2.nodedef_name = 'ND_range_vector2'; -mtlx_adjustment_range_vector2.nodedef_node = 'range'; -mtlx_adjustment_range_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector2',mtlx_adjustment_range_vector2); - -// MaterialX node type: mtlx/adjustment/range_vector3 -// -function mtlx_adjustment_range_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector3'); - this.addProperty('gamma', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'range_vector3'; - this.desc = "MaterialX:mtlx/adjustment/range_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_range_vector3.nodedef_name = 'ND_range_vector3'; -mtlx_adjustment_range_vector3.nodedef_node = 'range'; -mtlx_adjustment_range_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector3',mtlx_adjustment_range_vector3); - -// MaterialX node type: mtlx/adjustment/range_vector4 -// -function mtlx_adjustment_range_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector4'); - this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'range_vector4'; - this.desc = "MaterialX:mtlx/adjustment/range_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_range_vector4.nodedef_name = 'ND_range_vector4'; -mtlx_adjustment_range_vector4.nodedef_node = 'range'; -mtlx_adjustment_range_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector4',mtlx_adjustment_range_vector4); - -// MaterialX node type: mtlx/adjustment/range_color3FA -// -function mtlx_adjustment_range_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'range_color3'; - this.desc = "MaterialX:mtlx/adjustment/range_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_range_color3FA.nodedef_name = 'ND_range_color3FA'; -mtlx_adjustment_range_color3FA.nodedef_node = 'range'; -mtlx_adjustment_range_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color3FA',mtlx_adjustment_range_color3FA); - -// MaterialX node type: mtlx/adjustment/range_color4FA -// -function mtlx_adjustment_range_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'range_color4'; - this.desc = "MaterialX:mtlx/adjustment/range_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_range_color4FA.nodedef_name = 'ND_range_color4FA'; -mtlx_adjustment_range_color4FA.nodedef_node = 'range'; -mtlx_adjustment_range_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color4FA',mtlx_adjustment_range_color4FA); - -// MaterialX node type: mtlx/adjustment/range_vector2FA -// -function mtlx_adjustment_range_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'range_vector2'; - this.desc = "MaterialX:mtlx/adjustment/range_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_range_vector2FA.nodedef_name = 'ND_range_vector2FA'; -mtlx_adjustment_range_vector2FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector2FA',mtlx_adjustment_range_vector2FA); - -// MaterialX node type: mtlx/adjustment/range_vector3FA -// -function mtlx_adjustment_range_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'range_vector3'; - this.desc = "MaterialX:mtlx/adjustment/range_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_range_vector3FA.nodedef_name = 'ND_range_vector3FA'; -mtlx_adjustment_range_vector3FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector3FA',mtlx_adjustment_range_vector3FA); - -// MaterialX node type: mtlx/adjustment/range_vector4FA -// -function mtlx_adjustment_range_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'range_vector4'; - this.desc = "MaterialX:mtlx/adjustment/range_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_range_vector4FA.nodedef_name = 'ND_range_vector4FA'; -mtlx_adjustment_range_vector4FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector4FA',mtlx_adjustment_range_vector4FA); - -// MaterialX node type: mtlx/adjustment/hsvadjust_color3 -// -function mtlx_adjustment_hsvadjust_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvadjust_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'hsvadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'hsvadjust_color3'; - this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_hsvadjust_color3.nodedef_name = 'ND_hsvadjust_color3'; -mtlx_adjustment_hsvadjust_color3.nodedef_node = 'hsvadjust'; -mtlx_adjustment_hsvadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color3',mtlx_adjustment_hsvadjust_color3); - -// MaterialX node type: mtlx/adjustment/hsvadjust_color4 -// -function mtlx_adjustment_hsvadjust_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvadjust_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'hsvadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'hsvadjust_color4'; - this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_hsvadjust_color4.nodedef_name = 'ND_hsvadjust_color4'; -mtlx_adjustment_hsvadjust_color4.nodedef_node = 'hsvadjust'; -mtlx_adjustment_hsvadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color4',mtlx_adjustment_hsvadjust_color4); - -// MaterialX node type: mtlx/adjustment/saturate_color3 -// -function mtlx_adjustment_saturate_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_saturate_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'saturate'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'saturate_color3'; - this.desc = "MaterialX:mtlx/adjustment/saturate_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_saturate_color3.nodedef_name = 'ND_saturate_color3'; -mtlx_adjustment_saturate_color3.nodedef_node = 'saturate'; -mtlx_adjustment_saturate_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; -LiteGraph.registerNodeType('mtlx/adjustment/saturate_color3',mtlx_adjustment_saturate_color3); - -// MaterialX node type: mtlx/adjustment/saturate_color4 -// -function mtlx_adjustment_saturate_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_saturate_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'saturate'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'saturate_color4'; - this.desc = "MaterialX:mtlx/adjustment/saturate_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_saturate_color4.nodedef_name = 'ND_saturate_color4'; -mtlx_adjustment_saturate_color4.nodedef_node = 'saturate'; -mtlx_adjustment_saturate_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; -LiteGraph.registerNodeType('mtlx/adjustment/saturate_color4',mtlx_adjustment_saturate_color4); - -// MaterialX node type: mtlx/adjustment/colorcorrect_color3 -// -function mtlx_adjustment_colorcorrect_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_colorcorrect_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'colorcorrect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('hue','float'); - this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturation','float'); - this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lift','float'); - this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gain','float'); - this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrast','float'); - this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrastpivot','float'); - this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'colorcorrect_color3'; - this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_colorcorrect_color3.nodedef_name = 'ND_colorcorrect_color3'; -mtlx_adjustment_colorcorrect_color3.nodedef_node = 'colorcorrect'; -mtlx_adjustment_colorcorrect_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; -LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color3',mtlx_adjustment_colorcorrect_color3); - -// MaterialX node type: mtlx/adjustment/colorcorrect_color4 -// -function mtlx_adjustment_colorcorrect_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_colorcorrect_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'colorcorrect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [1, 1, 1, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('hue','float'); - this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturation','float'); - this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lift','float'); - this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gain','float'); - this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrast','float'); - this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrastpivot','float'); - this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'colorcorrect_color4'; - this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_colorcorrect_color4.nodedef_name = 'ND_colorcorrect_color4'; -mtlx_adjustment_colorcorrect_color4.nodedef_node = 'colorcorrect'; -mtlx_adjustment_colorcorrect_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; -LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color4',mtlx_adjustment_colorcorrect_color4); - -// MaterialX node type: mtlx/compositing/premult_color4 -// -function mtlx_compositing_premult_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_premult_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'premult'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_premult_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'premult_color4'; - this.desc = "MaterialX:mtlx/compositing/premult_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_premult_color4.nodedef_name = 'ND_premult_color4'; -mtlx_compositing_premult_color4.nodedef_node = 'premult'; -mtlx_compositing_premult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; -LiteGraph.registerNodeType('mtlx/compositing/premult_color4',mtlx_compositing_premult_color4); - -// MaterialX node type: mtlx/compositing/unpremult_color4 -// -function mtlx_compositing_unpremult_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unpremult_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'unpremult'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unpremult_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'unpremult_color4'; - this.desc = "MaterialX:mtlx/compositing/unpremult_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_unpremult_color4.nodedef_name = 'ND_unpremult_color4'; -mtlx_compositing_unpremult_color4.nodedef_node = 'unpremult'; -mtlx_compositing_unpremult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; -LiteGraph.registerNodeType('mtlx/compositing/unpremult_color4',mtlx_compositing_unpremult_color4); - -// MaterialX node type: mtlx/compositing/plus_float -// -function mtlx_compositing_plus_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'plus_float'; - this.desc = "MaterialX:mtlx/compositing/plus_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_plus_float.nodedef_name = 'ND_plus_float'; -mtlx_compositing_plus_float.nodedef_node = 'plus'; -mtlx_compositing_plus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_float',mtlx_compositing_plus_float); - -// MaterialX node type: mtlx/compositing/plus_color3 -// -function mtlx_compositing_plus_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'plus_color3'; - this.desc = "MaterialX:mtlx/compositing/plus_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_plus_color3.nodedef_name = 'ND_plus_color3'; -mtlx_compositing_plus_color3.nodedef_node = 'plus'; -mtlx_compositing_plus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_color3',mtlx_compositing_plus_color3); - -// MaterialX node type: mtlx/compositing/plus_color4 -// -function mtlx_compositing_plus_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'plus_color4'; - this.desc = "MaterialX:mtlx/compositing/plus_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_plus_color4.nodedef_name = 'ND_plus_color4'; -mtlx_compositing_plus_color4.nodedef_node = 'plus'; -mtlx_compositing_plus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_color4',mtlx_compositing_plus_color4); - -// MaterialX node type: mtlx/compositing/minus_float -// -function mtlx_compositing_minus_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'minus_float'; - this.desc = "MaterialX:mtlx/compositing/minus_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_minus_float.nodedef_name = 'ND_minus_float'; -mtlx_compositing_minus_float.nodedef_node = 'minus'; -mtlx_compositing_minus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_float',mtlx_compositing_minus_float); - -// MaterialX node type: mtlx/compositing/minus_color3 -// -function mtlx_compositing_minus_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'minus_color3'; - this.desc = "MaterialX:mtlx/compositing/minus_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_minus_color3.nodedef_name = 'ND_minus_color3'; -mtlx_compositing_minus_color3.nodedef_node = 'minus'; -mtlx_compositing_minus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_color3',mtlx_compositing_minus_color3); - -// MaterialX node type: mtlx/compositing/minus_color4 -// -function mtlx_compositing_minus_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'minus_color4'; - this.desc = "MaterialX:mtlx/compositing/minus_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_minus_color4.nodedef_name = 'ND_minus_color4'; -mtlx_compositing_minus_color4.nodedef_node = 'minus'; -mtlx_compositing_minus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_color4',mtlx_compositing_minus_color4); - -// MaterialX node type: mtlx/compositing/difference_float -// -function mtlx_compositing_difference_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'difference_float'; - this.desc = "MaterialX:mtlx/compositing/difference_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_difference_float.nodedef_name = 'ND_difference_float'; -mtlx_compositing_difference_float.nodedef_node = 'difference'; -mtlx_compositing_difference_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_float',mtlx_compositing_difference_float); - -// MaterialX node type: mtlx/compositing/difference_color3 -// -function mtlx_compositing_difference_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'difference_color3'; - this.desc = "MaterialX:mtlx/compositing/difference_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_difference_color3.nodedef_name = 'ND_difference_color3'; -mtlx_compositing_difference_color3.nodedef_node = 'difference'; -mtlx_compositing_difference_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_color3',mtlx_compositing_difference_color3); - -// MaterialX node type: mtlx/compositing/difference_color4 -// -function mtlx_compositing_difference_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'difference_color4'; - this.desc = "MaterialX:mtlx/compositing/difference_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_difference_color4.nodedef_name = 'ND_difference_color4'; -mtlx_compositing_difference_color4.nodedef_node = 'difference'; -mtlx_compositing_difference_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_color4',mtlx_compositing_difference_color4); - -// MaterialX node type: mtlx/compositing/burn_float -// -function mtlx_compositing_burn_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'burn_float'; - this.desc = "MaterialX:mtlx/compositing/burn_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_burn_float.nodedef_name = 'ND_burn_float'; -mtlx_compositing_burn_float.nodedef_node = 'burn'; -mtlx_compositing_burn_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_float',mtlx_compositing_burn_float); - -// MaterialX node type: mtlx/compositing/burn_color3 -// -function mtlx_compositing_burn_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'burn_color3'; - this.desc = "MaterialX:mtlx/compositing/burn_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_burn_color3.nodedef_name = 'ND_burn_color3'; -mtlx_compositing_burn_color3.nodedef_node = 'burn'; -mtlx_compositing_burn_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_color3',mtlx_compositing_burn_color3); - -// MaterialX node type: mtlx/compositing/burn_color4 -// -function mtlx_compositing_burn_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'burn_color4'; - this.desc = "MaterialX:mtlx/compositing/burn_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_burn_color4.nodedef_name = 'ND_burn_color4'; -mtlx_compositing_burn_color4.nodedef_node = 'burn'; -mtlx_compositing_burn_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_color4',mtlx_compositing_burn_color4); - -// MaterialX node type: mtlx/compositing/dodge_float -// -function mtlx_compositing_dodge_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dodge_float'; - this.desc = "MaterialX:mtlx/compositing/dodge_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_dodge_float.nodedef_name = 'ND_dodge_float'; -mtlx_compositing_dodge_float.nodedef_node = 'dodge'; -mtlx_compositing_dodge_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_float',mtlx_compositing_dodge_float); - -// MaterialX node type: mtlx/compositing/dodge_color3 -// -function mtlx_compositing_dodge_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'dodge_color3'; - this.desc = "MaterialX:mtlx/compositing/dodge_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_dodge_color3.nodedef_name = 'ND_dodge_color3'; -mtlx_compositing_dodge_color3.nodedef_node = 'dodge'; -mtlx_compositing_dodge_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_color3',mtlx_compositing_dodge_color3); - -// MaterialX node type: mtlx/compositing/dodge_color4 -// -function mtlx_compositing_dodge_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'dodge_color4'; - this.desc = "MaterialX:mtlx/compositing/dodge_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_dodge_color4.nodedef_name = 'ND_dodge_color4'; -mtlx_compositing_dodge_color4.nodedef_node = 'dodge'; -mtlx_compositing_dodge_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_color4',mtlx_compositing_dodge_color4); - -// MaterialX node type: mtlx/compositing/screen_float -// -function mtlx_compositing_screen_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'screen_float'; - this.desc = "MaterialX:mtlx/compositing/screen_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_screen_float.nodedef_name = 'ND_screen_float'; -mtlx_compositing_screen_float.nodedef_node = 'screen'; -mtlx_compositing_screen_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_float',mtlx_compositing_screen_float); - -// MaterialX node type: mtlx/compositing/screen_color3 -// -function mtlx_compositing_screen_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'screen_color3'; - this.desc = "MaterialX:mtlx/compositing/screen_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_screen_color3.nodedef_name = 'ND_screen_color3'; -mtlx_compositing_screen_color3.nodedef_node = 'screen'; -mtlx_compositing_screen_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_color3',mtlx_compositing_screen_color3); - -// MaterialX node type: mtlx/compositing/screen_color4 -// -function mtlx_compositing_screen_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'screen_color4'; - this.desc = "MaterialX:mtlx/compositing/screen_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_screen_color4.nodedef_name = 'ND_screen_color4'; -mtlx_compositing_screen_color4.nodedef_node = 'screen'; -mtlx_compositing_screen_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_color4',mtlx_compositing_screen_color4); - -// MaterialX node type: mtlx/compositing/overlay_float -// -function mtlx_compositing_overlay_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'overlay_float'; - this.desc = "MaterialX:mtlx/compositing/overlay_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_overlay_float.nodedef_name = 'ND_overlay_float'; -mtlx_compositing_overlay_float.nodedef_node = 'overlay'; -mtlx_compositing_overlay_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_float',mtlx_compositing_overlay_float); - -// MaterialX node type: mtlx/compositing/overlay_color3 -// -function mtlx_compositing_overlay_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'overlay_color3'; - this.desc = "MaterialX:mtlx/compositing/overlay_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_overlay_color3.nodedef_name = 'ND_overlay_color3'; -mtlx_compositing_overlay_color3.nodedef_node = 'overlay'; -mtlx_compositing_overlay_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_color3',mtlx_compositing_overlay_color3); - -// MaterialX node type: mtlx/compositing/overlay_color4 -// -function mtlx_compositing_overlay_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'overlay_color4'; - this.desc = "MaterialX:mtlx/compositing/overlay_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_overlay_color4.nodedef_name = 'ND_overlay_color4'; -mtlx_compositing_overlay_color4.nodedef_node = 'overlay'; -mtlx_compositing_overlay_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_color4',mtlx_compositing_overlay_color4); - -// MaterialX node type: mtlx/compositing/disjointover_color4 -// -function mtlx_compositing_disjointover_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disjointover_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'disjointover'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disjointover_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'disjointover_color4'; - this.desc = "MaterialX:mtlx/compositing/disjointover_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_disjointover_color4.nodedef_name = 'ND_disjointover_color4'; -mtlx_compositing_disjointover_color4.nodedef_node = 'disjointover'; -mtlx_compositing_disjointover_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; -LiteGraph.registerNodeType('mtlx/compositing/disjointover_color4',mtlx_compositing_disjointover_color4); - -// MaterialX node type: mtlx/compositing/in_color4 -// -function mtlx_compositing_in_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_in_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'in'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_in_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'in_color4'; - this.desc = "MaterialX:mtlx/compositing/in_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_in_color4.nodedef_name = 'ND_in_color4'; -mtlx_compositing_in_color4.nodedef_node = 'in'; -mtlx_compositing_in_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; -LiteGraph.registerNodeType('mtlx/compositing/in_color4',mtlx_compositing_in_color4); - -// MaterialX node type: mtlx/compositing/mask_color4 -// -function mtlx_compositing_mask_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mask_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mask'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mask_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mask_color4'; - this.desc = "MaterialX:mtlx/compositing/mask_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mask_color4.nodedef_name = 'ND_mask_color4'; -mtlx_compositing_mask_color4.nodedef_node = 'mask'; -mtlx_compositing_mask_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; -LiteGraph.registerNodeType('mtlx/compositing/mask_color4',mtlx_compositing_mask_color4); - -// MaterialX node type: mtlx/compositing/matte_color4 -// -function mtlx_compositing_matte_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_matte_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'matte'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_matte_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'matte_color4'; - this.desc = "MaterialX:mtlx/compositing/matte_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_matte_color4.nodedef_name = 'ND_matte_color4'; -mtlx_compositing_matte_color4.nodedef_node = 'matte'; -mtlx_compositing_matte_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; -LiteGraph.registerNodeType('mtlx/compositing/matte_color4',mtlx_compositing_matte_color4); - -// MaterialX node type: mtlx/compositing/out_color4 -// -function mtlx_compositing_out_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_out_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'out'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_out_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'out_color4'; - this.desc = "MaterialX:mtlx/compositing/out_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_out_color4.nodedef_name = 'ND_out_color4'; -mtlx_compositing_out_color4.nodedef_node = 'out'; -mtlx_compositing_out_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; -LiteGraph.registerNodeType('mtlx/compositing/out_color4',mtlx_compositing_out_color4); - -// MaterialX node type: mtlx/compositing/over_color4 -// -function mtlx_compositing_over_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_over_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'over'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_over_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'over_color4'; - this.desc = "MaterialX:mtlx/compositing/over_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_over_color4.nodedef_name = 'ND_over_color4'; -mtlx_compositing_over_color4.nodedef_node = 'over'; -mtlx_compositing_over_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; -LiteGraph.registerNodeType('mtlx/compositing/over_color4',mtlx_compositing_over_color4); - -// MaterialX node type: mtlx/compositing/inside_float -// -function mtlx_compositing_inside_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'inside_float'; - this.desc = "MaterialX:mtlx/compositing/inside_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_inside_float.nodedef_name = 'ND_inside_float'; -mtlx_compositing_inside_float.nodedef_node = 'inside'; -mtlx_compositing_inside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_float',mtlx_compositing_inside_float); - -// MaterialX node type: mtlx/compositing/inside_color3 -// -function mtlx_compositing_inside_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'inside_color3'; - this.desc = "MaterialX:mtlx/compositing/inside_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_inside_color3.nodedef_name = 'ND_inside_color3'; -mtlx_compositing_inside_color3.nodedef_node = 'inside'; -mtlx_compositing_inside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_color3',mtlx_compositing_inside_color3); - -// MaterialX node type: mtlx/compositing/inside_color4 -// -function mtlx_compositing_inside_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'inside_color4'; - this.desc = "MaterialX:mtlx/compositing/inside_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_inside_color4.nodedef_name = 'ND_inside_color4'; -mtlx_compositing_inside_color4.nodedef_node = 'inside'; -mtlx_compositing_inside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_color4',mtlx_compositing_inside_color4); - -// MaterialX node type: mtlx/compositing/outside_float -// -function mtlx_compositing_outside_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'outside_float'; - this.desc = "MaterialX:mtlx/compositing/outside_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_outside_float.nodedef_name = 'ND_outside_float'; -mtlx_compositing_outside_float.nodedef_node = 'outside'; -mtlx_compositing_outside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_float',mtlx_compositing_outside_float); - -// MaterialX node type: mtlx/compositing/outside_color3 -// -function mtlx_compositing_outside_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'outside_color3'; - this.desc = "MaterialX:mtlx/compositing/outside_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_outside_color3.nodedef_name = 'ND_outside_color3'; -mtlx_compositing_outside_color3.nodedef_node = 'outside'; -mtlx_compositing_outside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_color3',mtlx_compositing_outside_color3); - -// MaterialX node type: mtlx/compositing/outside_color4 -// -function mtlx_compositing_outside_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'outside_color4'; - this.desc = "MaterialX:mtlx/compositing/outside_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_outside_color4.nodedef_name = 'ND_outside_color4'; -mtlx_compositing_outside_color4.nodedef_node = 'outside'; -mtlx_compositing_outside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_color4',mtlx_compositing_outside_color4); - -// MaterialX node type: mtlx/compositing/mix_float -// -function mtlx_compositing_mix_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'mix_float'; - this.desc = "MaterialX:mtlx/compositing/mix_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_mix_float.nodedef_name = 'ND_mix_float'; -mtlx_compositing_mix_float.nodedef_node = 'mix'; -mtlx_compositing_mix_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_float',mtlx_compositing_mix_float); - -// MaterialX node type: mtlx/compositing/mix_color3 -// -function mtlx_compositing_mix_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'mix_color3'; - this.desc = "MaterialX:mtlx/compositing/mix_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_mix_color3.nodedef_name = 'ND_mix_color3'; -mtlx_compositing_mix_color3.nodedef_node = 'mix'; -mtlx_compositing_mix_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color3',mtlx_compositing_mix_color3); - -// MaterialX node type: mtlx/compositing/mix_color3_color3 -// -function mtlx_compositing_mix_color3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','color3'); - this.addProperty('mix', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'mix_color3'; - this.desc = "MaterialX:mtlx/compositing/mix_color3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_mix_color3_color3.nodedef_name = 'ND_mix_color3_color3'; -mtlx_compositing_mix_color3_color3.nodedef_node = 'mix'; -mtlx_compositing_mix_color3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color3_color3',mtlx_compositing_mix_color3_color3); - -// MaterialX node type: mtlx/compositing/mix_color4 -// -function mtlx_compositing_mix_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mix_color4'; - this.desc = "MaterialX:mtlx/compositing/mix_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mix_color4.nodedef_name = 'ND_mix_color4'; -mtlx_compositing_mix_color4.nodedef_node = 'mix'; -mtlx_compositing_mix_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color4',mtlx_compositing_mix_color4); - -// MaterialX node type: mtlx/compositing/mix_color4_color4 -// -function mtlx_compositing_mix_color4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','color4'); - this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mix_color4'; - this.desc = "MaterialX:mtlx/compositing/mix_color4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mix_color4_color4.nodedef_name = 'ND_mix_color4_color4'; -mtlx_compositing_mix_color4_color4.nodedef_node = 'mix'; -mtlx_compositing_mix_color4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color4_color4',mtlx_compositing_mix_color4_color4); - -// MaterialX node type: mtlx/compositing/mix_vector2 -// -function mtlx_compositing_mix_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector2'); - this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector2'); - this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'mix_vector2'; - this.desc = "MaterialX:mtlx/compositing/mix_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_compositing_mix_vector2.nodedef_name = 'ND_mix_vector2'; -mtlx_compositing_mix_vector2.nodedef_node = 'mix'; -mtlx_compositing_mix_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector2',mtlx_compositing_mix_vector2); - -// MaterialX node type: mtlx/compositing/mix_vector2_vector2 -// -function mtlx_compositing_mix_vector2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_vector2_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector2'); - this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector2'); - this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector2'); - this.addProperty('mix', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'mix_vector2'; - this.desc = "MaterialX:mtlx/compositing/mix_vector2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_compositing_mix_vector2_vector2.nodedef_name = 'ND_mix_vector2_vector2'; -mtlx_compositing_mix_vector2_vector2.nodedef_node = 'mix'; -mtlx_compositing_mix_vector2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector2_vector2',mtlx_compositing_mix_vector2_vector2); - -// MaterialX node type: mtlx/compositing/mix_vector3 -// -function mtlx_compositing_mix_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'mix_vector3'; - this.desc = "MaterialX:mtlx/compositing/mix_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_compositing_mix_vector3.nodedef_name = 'ND_mix_vector3'; -mtlx_compositing_mix_vector3.nodedef_node = 'mix'; -mtlx_compositing_mix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector3',mtlx_compositing_mix_vector3); - -// MaterialX node type: mtlx/compositing/mix_vector3_vector3 -// -function mtlx_compositing_mix_vector3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_vector3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector3'); - this.addProperty('mix', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'mix_vector3'; - this.desc = "MaterialX:mtlx/compositing/mix_vector3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_compositing_mix_vector3_vector3.nodedef_name = 'ND_mix_vector3_vector3'; -mtlx_compositing_mix_vector3_vector3.nodedef_node = 'mix'; -mtlx_compositing_mix_vector3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector3_vector3',mtlx_compositing_mix_vector3_vector3); - -// MaterialX node type: mtlx/compositing/mix_vector4 -// -function mtlx_compositing_mix_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'mix_vector4'; - this.desc = "MaterialX:mtlx/compositing/mix_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_compositing_mix_vector4.nodedef_name = 'ND_mix_vector4'; -mtlx_compositing_mix_vector4.nodedef_node = 'mix'; -mtlx_compositing_mix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector4',mtlx_compositing_mix_vector4); - -// MaterialX node type: mtlx/compositing/mix_vector4_vector4 -// -function mtlx_compositing_mix_vector4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_vector4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector4'); - this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'mix_vector4'; - this.desc = "MaterialX:mtlx/compositing/mix_vector4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_compositing_mix_vector4_vector4.nodedef_name = 'ND_mix_vector4_vector4'; -mtlx_compositing_mix_vector4_vector4.nodedef_node = 'mix'; -mtlx_compositing_mix_vector4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector4_vector4',mtlx_compositing_mix_vector4_vector4); - -// MaterialX node type: mtlx/compositing/mix_surfaceshader -// -function mtlx_compositing_mix_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','surfaceshader'); - this.addProperty('fg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','surfaceshader'); - this.addProperty('bg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'mix_surfaceshader'; - this.desc = "MaterialX:mtlx/compositing/mix_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_surfaceshader.nodedef_name = 'ND_mix_surfaceshader'; -mtlx_compositing_mix_surfaceshader.nodedef_node = 'mix'; -mtlx_compositing_mix_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_surfaceshader',mtlx_compositing_mix_surfaceshader); - -// MaterialX node type: mtlx/compositing/mix_displacementshader -// -function mtlx_compositing_mix_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_displacementshader'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_displacementshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','displacementshader'); - this.addProperty('fg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','displacementshader'); - this.addProperty('bg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'mix_displacementshader'; - this.desc = "MaterialX:mtlx/compositing/mix_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_displacementshader.nodedef_name = 'ND_mix_displacementshader'; -mtlx_compositing_mix_displacementshader.nodedef_node = 'mix'; -mtlx_compositing_mix_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_displacementshader',mtlx_compositing_mix_displacementshader); - -// MaterialX node type: mtlx/compositing/mix_volumeshader -// -function mtlx_compositing_mix_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_volumeshader'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_volumeshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','volumeshader'); - this.addProperty('fg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','volumeshader'); - this.addProperty('bg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'mix_volumeshader'; - this.desc = "MaterialX:mtlx/compositing/mix_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_volumeshader.nodedef_name = 'ND_mix_volumeshader'; -mtlx_compositing_mix_volumeshader.nodedef_node = 'mix'; -mtlx_compositing_mix_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_volumeshader',mtlx_compositing_mix_volumeshader); - -// MaterialX node type: mtlx/conditional/ifgreater_float -// -function mtlx_conditional_ifgreater_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreater_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreater_float.nodedef_name = 'ND_ifgreater_float'; -mtlx_conditional_ifgreater_float.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_float',mtlx_conditional_ifgreater_float); - -// MaterialX node type: mtlx/conditional/ifgreater_integer -// -function mtlx_conditional_ifgreater_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreater_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_integer.nodedef_name = 'ND_ifgreater_integer'; -mtlx_conditional_ifgreater_integer.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integer',mtlx_conditional_ifgreater_integer); - -// MaterialX node type: mtlx/conditional/ifgreater_color3 -// -function mtlx_conditional_ifgreater_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreater_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreater_color3.nodedef_name = 'ND_ifgreater_color3'; -mtlx_conditional_ifgreater_color3.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3',mtlx_conditional_ifgreater_color3); - -// MaterialX node type: mtlx/conditional/ifgreater_color4 -// -function mtlx_conditional_ifgreater_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreater_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreater_color4.nodedef_name = 'ND_ifgreater_color4'; -mtlx_conditional_ifgreater_color4.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4',mtlx_conditional_ifgreater_color4); - -// MaterialX node type: mtlx/conditional/ifgreater_vector2 -// -function mtlx_conditional_ifgreater_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreater_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_vector2.nodedef_name = 'ND_ifgreater_vector2'; -mtlx_conditional_ifgreater_vector2.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2',mtlx_conditional_ifgreater_vector2); - -// MaterialX node type: mtlx/conditional/ifgreater_vector3 -// -function mtlx_conditional_ifgreater_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreater_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreater_vector3.nodedef_name = 'ND_ifgreater_vector3'; -mtlx_conditional_ifgreater_vector3.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3',mtlx_conditional_ifgreater_vector3); - -// MaterialX node type: mtlx/conditional/ifgreater_vector4 -// -function mtlx_conditional_ifgreater_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreater_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreater_vector4.nodedef_name = 'ND_ifgreater_vector4'; -mtlx_conditional_ifgreater_vector4.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4',mtlx_conditional_ifgreater_vector4); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix33 -// -function mtlx_conditional_ifgreater_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreater_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreater_matrix33.nodedef_name = 'ND_ifgreater_matrix33'; -mtlx_conditional_ifgreater_matrix33.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33',mtlx_conditional_ifgreater_matrix33); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix44 -// -function mtlx_conditional_ifgreater_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreater_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreater_matrix44.nodedef_name = 'ND_ifgreater_matrix44'; -mtlx_conditional_ifgreater_matrix44.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44',mtlx_conditional_ifgreater_matrix44); - -// MaterialX node type: mtlx/conditional/ifgreater_floatI -// -function mtlx_conditional_ifgreater_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreater_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreater_floatI.nodedef_name = 'ND_ifgreater_floatI'; -mtlx_conditional_ifgreater_floatI.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_floatI',mtlx_conditional_ifgreater_floatI); - -// MaterialX node type: mtlx/conditional/ifgreater_integerI -// -function mtlx_conditional_ifgreater_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreater_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_integerI.nodedef_name = 'ND_ifgreater_integerI'; -mtlx_conditional_ifgreater_integerI.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integerI',mtlx_conditional_ifgreater_integerI); - -// MaterialX node type: mtlx/conditional/ifgreater_color3I -// -function mtlx_conditional_ifgreater_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreater_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreater_color3I.nodedef_name = 'ND_ifgreater_color3I'; -mtlx_conditional_ifgreater_color3I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3I',mtlx_conditional_ifgreater_color3I); - -// MaterialX node type: mtlx/conditional/ifgreater_color4I -// -function mtlx_conditional_ifgreater_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreater_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreater_color4I.nodedef_name = 'ND_ifgreater_color4I'; -mtlx_conditional_ifgreater_color4I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4I',mtlx_conditional_ifgreater_color4I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector2I -// -function mtlx_conditional_ifgreater_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreater_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_vector2I.nodedef_name = 'ND_ifgreater_vector2I'; -mtlx_conditional_ifgreater_vector2I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2I',mtlx_conditional_ifgreater_vector2I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector3I -// -function mtlx_conditional_ifgreater_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreater_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreater_vector3I.nodedef_name = 'ND_ifgreater_vector3I'; -mtlx_conditional_ifgreater_vector3I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3I',mtlx_conditional_ifgreater_vector3I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector4I -// -function mtlx_conditional_ifgreater_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreater_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreater_vector4I.nodedef_name = 'ND_ifgreater_vector4I'; -mtlx_conditional_ifgreater_vector4I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4I',mtlx_conditional_ifgreater_vector4I); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix33I -// -function mtlx_conditional_ifgreater_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreater_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreater_matrix33I.nodedef_name = 'ND_ifgreater_matrix33I'; -mtlx_conditional_ifgreater_matrix33I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33I',mtlx_conditional_ifgreater_matrix33I); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix44I -// -function mtlx_conditional_ifgreater_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreater_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreater_matrix44I.nodedef_name = 'ND_ifgreater_matrix44I'; -mtlx_conditional_ifgreater_matrix44I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44I',mtlx_conditional_ifgreater_matrix44I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_float -// -function mtlx_conditional_ifgreatereq_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreatereq_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreatereq_float.nodedef_name = 'ND_ifgreatereq_float'; -mtlx_conditional_ifgreatereq_float.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_float',mtlx_conditional_ifgreatereq_float); - -// MaterialX node type: mtlx/conditional/ifgreatereq_integer -// -function mtlx_conditional_ifgreatereq_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreatereq_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_integer.nodedef_name = 'ND_ifgreatereq_integer'; -mtlx_conditional_ifgreatereq_integer.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integer',mtlx_conditional_ifgreatereq_integer); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color3 -// -function mtlx_conditional_ifgreatereq_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreatereq_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreatereq_color3.nodedef_name = 'ND_ifgreatereq_color3'; -mtlx_conditional_ifgreatereq_color3.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3',mtlx_conditional_ifgreatereq_color3); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color4 -// -function mtlx_conditional_ifgreatereq_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreatereq_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreatereq_color4.nodedef_name = 'ND_ifgreatereq_color4'; -mtlx_conditional_ifgreatereq_color4.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4',mtlx_conditional_ifgreatereq_color4); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector2 -// -function mtlx_conditional_ifgreatereq_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreatereq_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_vector2.nodedef_name = 'ND_ifgreatereq_vector2'; -mtlx_conditional_ifgreatereq_vector2.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2',mtlx_conditional_ifgreatereq_vector2); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector3 -// -function mtlx_conditional_ifgreatereq_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreatereq_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreatereq_vector3.nodedef_name = 'ND_ifgreatereq_vector3'; -mtlx_conditional_ifgreatereq_vector3.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3',mtlx_conditional_ifgreatereq_vector3); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector4 -// -function mtlx_conditional_ifgreatereq_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreatereq_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreatereq_vector4.nodedef_name = 'ND_ifgreatereq_vector4'; -mtlx_conditional_ifgreatereq_vector4.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4',mtlx_conditional_ifgreatereq_vector4); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33 -// -function mtlx_conditional_ifgreatereq_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreatereq_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreatereq_matrix33.nodedef_name = 'ND_ifgreatereq_matrix33'; -mtlx_conditional_ifgreatereq_matrix33.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33',mtlx_conditional_ifgreatereq_matrix33); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44 -// -function mtlx_conditional_ifgreatereq_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreatereq_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreatereq_matrix44.nodedef_name = 'ND_ifgreatereq_matrix44'; -mtlx_conditional_ifgreatereq_matrix44.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44',mtlx_conditional_ifgreatereq_matrix44); - -// MaterialX node type: mtlx/conditional/ifgreatereq_floatI -// -function mtlx_conditional_ifgreatereq_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreatereq_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreatereq_floatI.nodedef_name = 'ND_ifgreatereq_floatI'; -mtlx_conditional_ifgreatereq_floatI.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_floatI',mtlx_conditional_ifgreatereq_floatI); - -// MaterialX node type: mtlx/conditional/ifgreatereq_integerI -// -function mtlx_conditional_ifgreatereq_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreatereq_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_integerI.nodedef_name = 'ND_ifgreatereq_integerI'; -mtlx_conditional_ifgreatereq_integerI.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integerI',mtlx_conditional_ifgreatereq_integerI); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color3I -// -function mtlx_conditional_ifgreatereq_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreatereq_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreatereq_color3I.nodedef_name = 'ND_ifgreatereq_color3I'; -mtlx_conditional_ifgreatereq_color3I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3I',mtlx_conditional_ifgreatereq_color3I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color4I -// -function mtlx_conditional_ifgreatereq_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreatereq_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreatereq_color4I.nodedef_name = 'ND_ifgreatereq_color4I'; -mtlx_conditional_ifgreatereq_color4I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4I',mtlx_conditional_ifgreatereq_color4I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector2I -// -function mtlx_conditional_ifgreatereq_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreatereq_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_vector2I.nodedef_name = 'ND_ifgreatereq_vector2I'; -mtlx_conditional_ifgreatereq_vector2I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2I',mtlx_conditional_ifgreatereq_vector2I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector3I -// -function mtlx_conditional_ifgreatereq_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreatereq_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreatereq_vector3I.nodedef_name = 'ND_ifgreatereq_vector3I'; -mtlx_conditional_ifgreatereq_vector3I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3I',mtlx_conditional_ifgreatereq_vector3I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector4I -// -function mtlx_conditional_ifgreatereq_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreatereq_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreatereq_vector4I.nodedef_name = 'ND_ifgreatereq_vector4I'; -mtlx_conditional_ifgreatereq_vector4I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4I',mtlx_conditional_ifgreatereq_vector4I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33I -// -function mtlx_conditional_ifgreatereq_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreatereq_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreatereq_matrix33I.nodedef_name = 'ND_ifgreatereq_matrix33I'; -mtlx_conditional_ifgreatereq_matrix33I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33I',mtlx_conditional_ifgreatereq_matrix33I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44I -// -function mtlx_conditional_ifgreatereq_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreatereq_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreatereq_matrix44I.nodedef_name = 'ND_ifgreatereq_matrix44I'; -mtlx_conditional_ifgreatereq_matrix44I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44I',mtlx_conditional_ifgreatereq_matrix44I); - -// MaterialX node type: mtlx/conditional/ifequal_float -// -function mtlx_conditional_ifequal_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_float.nodedef_name = 'ND_ifequal_float'; -mtlx_conditional_ifequal_float.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_float',mtlx_conditional_ifequal_float); - -// MaterialX node type: mtlx/conditional/ifequal_integer -// -function mtlx_conditional_ifequal_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integer.nodedef_name = 'ND_ifequal_integer'; -mtlx_conditional_ifequal_integer.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integer',mtlx_conditional_ifequal_integer); - -// MaterialX node type: mtlx/conditional/ifequal_color3 -// -function mtlx_conditional_ifequal_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3.nodedef_name = 'ND_ifequal_color3'; -mtlx_conditional_ifequal_color3.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3',mtlx_conditional_ifequal_color3); - -// MaterialX node type: mtlx/conditional/ifequal_color4 -// -function mtlx_conditional_ifequal_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4.nodedef_name = 'ND_ifequal_color4'; -mtlx_conditional_ifequal_color4.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4',mtlx_conditional_ifequal_color4); - -// MaterialX node type: mtlx/conditional/ifequal_vector2 -// -function mtlx_conditional_ifequal_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2.nodedef_name = 'ND_ifequal_vector2'; -mtlx_conditional_ifequal_vector2.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2',mtlx_conditional_ifequal_vector2); - -// MaterialX node type: mtlx/conditional/ifequal_vector3 -// -function mtlx_conditional_ifequal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3.nodedef_name = 'ND_ifequal_vector3'; -mtlx_conditional_ifequal_vector3.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3',mtlx_conditional_ifequal_vector3); - -// MaterialX node type: mtlx/conditional/ifequal_vector4 -// -function mtlx_conditional_ifequal_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4.nodedef_name = 'ND_ifequal_vector4'; -mtlx_conditional_ifequal_vector4.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4',mtlx_conditional_ifequal_vector4); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33 -// -function mtlx_conditional_ifequal_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33.nodedef_name = 'ND_ifequal_matrix33'; -mtlx_conditional_ifequal_matrix33.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33',mtlx_conditional_ifequal_matrix33); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44 -// -function mtlx_conditional_ifequal_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44.nodedef_name = 'ND_ifequal_matrix44'; -mtlx_conditional_ifequal_matrix44.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44',mtlx_conditional_ifequal_matrix44); - -// MaterialX node type: mtlx/conditional/ifequal_floatI -// -function mtlx_conditional_ifequal_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_floatI.nodedef_name = 'ND_ifequal_floatI'; -mtlx_conditional_ifequal_floatI.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatI',mtlx_conditional_ifequal_floatI); - -// MaterialX node type: mtlx/conditional/ifequal_integerI -// -function mtlx_conditional_ifequal_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integerI.nodedef_name = 'ND_ifequal_integerI'; -mtlx_conditional_ifequal_integerI.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerI',mtlx_conditional_ifequal_integerI); - -// MaterialX node type: mtlx/conditional/ifequal_color3I -// -function mtlx_conditional_ifequal_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3I.nodedef_name = 'ND_ifequal_color3I'; -mtlx_conditional_ifequal_color3I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3I',mtlx_conditional_ifequal_color3I); - -// MaterialX node type: mtlx/conditional/ifequal_color4I -// -function mtlx_conditional_ifequal_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4I.nodedef_name = 'ND_ifequal_color4I'; -mtlx_conditional_ifequal_color4I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4I',mtlx_conditional_ifequal_color4I); - -// MaterialX node type: mtlx/conditional/ifequal_vector2I -// -function mtlx_conditional_ifequal_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2I.nodedef_name = 'ND_ifequal_vector2I'; -mtlx_conditional_ifequal_vector2I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2I',mtlx_conditional_ifequal_vector2I); - -// MaterialX node type: mtlx/conditional/ifequal_vector3I -// -function mtlx_conditional_ifequal_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3I.nodedef_name = 'ND_ifequal_vector3I'; -mtlx_conditional_ifequal_vector3I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3I',mtlx_conditional_ifequal_vector3I); - -// MaterialX node type: mtlx/conditional/ifequal_vector4I -// -function mtlx_conditional_ifequal_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4I.nodedef_name = 'ND_ifequal_vector4I'; -mtlx_conditional_ifequal_vector4I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4I',mtlx_conditional_ifequal_vector4I); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33I -// -function mtlx_conditional_ifequal_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33I.nodedef_name = 'ND_ifequal_matrix33I'; -mtlx_conditional_ifequal_matrix33I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33I',mtlx_conditional_ifequal_matrix33I); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44I -// -function mtlx_conditional_ifequal_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44I.nodedef_name = 'ND_ifequal_matrix44I'; -mtlx_conditional_ifequal_matrix44I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44I',mtlx_conditional_ifequal_matrix44I); - -// MaterialX node type: mtlx/conditional/ifequal_floatB -// -function mtlx_conditional_ifequal_floatB() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_floatB'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatB_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_floatB"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_floatB.nodedef_name = 'ND_ifequal_floatB'; -mtlx_conditional_ifequal_floatB.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_floatB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatB',mtlx_conditional_ifequal_floatB); - -// MaterialX node type: mtlx/conditional/ifequal_integerB -// -function mtlx_conditional_ifequal_integerB() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integerB'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerB_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integerB"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integerB.nodedef_name = 'ND_ifequal_integerB'; -mtlx_conditional_ifequal_integerB.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integerB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerB',mtlx_conditional_ifequal_integerB); - -// MaterialX node type: mtlx/conditional/ifequal_color3B -// -function mtlx_conditional_ifequal_color3B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3B'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3B.nodedef_name = 'ND_ifequal_color3B'; -mtlx_conditional_ifequal_color3B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3B',mtlx_conditional_ifequal_color3B); - -// MaterialX node type: mtlx/conditional/ifequal_color4B -// -function mtlx_conditional_ifequal_color4B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4B'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4B.nodedef_name = 'ND_ifequal_color4B'; -mtlx_conditional_ifequal_color4B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4B',mtlx_conditional_ifequal_color4B); - -// MaterialX node type: mtlx/conditional/ifequal_vector2B -// -function mtlx_conditional_ifequal_vector2B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2B'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2B.nodedef_name = 'ND_ifequal_vector2B'; -mtlx_conditional_ifequal_vector2B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2B',mtlx_conditional_ifequal_vector2B); - -// MaterialX node type: mtlx/conditional/ifequal_vector3B -// -function mtlx_conditional_ifequal_vector3B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3B'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3B.nodedef_name = 'ND_ifequal_vector3B'; -mtlx_conditional_ifequal_vector3B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3B',mtlx_conditional_ifequal_vector3B); - -// MaterialX node type: mtlx/conditional/ifequal_vector4B -// -function mtlx_conditional_ifequal_vector4B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4B'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4B.nodedef_name = 'ND_ifequal_vector4B'; -mtlx_conditional_ifequal_vector4B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4B',mtlx_conditional_ifequal_vector4B); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33B -// -function mtlx_conditional_ifequal_matrix33B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33B'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33B.nodedef_name = 'ND_ifequal_matrix33B'; -mtlx_conditional_ifequal_matrix33B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33B',mtlx_conditional_ifequal_matrix33B); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44B -// -function mtlx_conditional_ifequal_matrix44B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44B'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44B.nodedef_name = 'ND_ifequal_matrix44B'; -mtlx_conditional_ifequal_matrix44B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44B',mtlx_conditional_ifequal_matrix44B); - -// MaterialX node type: mtlx/conditional/switch_float -// -function mtlx_conditional_switch_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','float'); - this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','float'); - this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','float'); - this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','float'); - this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','float'); - this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','float'); - this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'switch_float'; - this.desc = "MaterialX:mtlx/conditional/switch_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_switch_float.nodedef_name = 'ND_switch_float'; -mtlx_conditional_switch_float.nodedef_node = 'switch'; -mtlx_conditional_switch_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_float',mtlx_conditional_switch_float); - -// MaterialX node type: mtlx/conditional/switch_color3 -// -function mtlx_conditional_switch_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'switch_color3'; - this.desc = "MaterialX:mtlx/conditional/switch_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_switch_color3.nodedef_name = 'ND_switch_color3'; -mtlx_conditional_switch_color3.nodedef_node = 'switch'; -mtlx_conditional_switch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color3',mtlx_conditional_switch_color3); - -// MaterialX node type: mtlx/conditional/switch_color4 -// -function mtlx_conditional_switch_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'switch_color4'; - this.desc = "MaterialX:mtlx/conditional/switch_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_switch_color4.nodedef_name = 'ND_switch_color4'; -mtlx_conditional_switch_color4.nodedef_node = 'switch'; -mtlx_conditional_switch_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color4',mtlx_conditional_switch_color4); - -// MaterialX node type: mtlx/conditional/switch_vector2 -// -function mtlx_conditional_switch_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector2'); - this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector2'); - this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector2'); - this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector2'); - this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector2'); - this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector2'); - this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector2'); - this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector2'); - this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'switch_vector2'; - this.desc = "MaterialX:mtlx/conditional/switch_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_switch_vector2.nodedef_name = 'ND_switch_vector2'; -mtlx_conditional_switch_vector2.nodedef_node = 'switch'; -mtlx_conditional_switch_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector2',mtlx_conditional_switch_vector2); - -// MaterialX node type: mtlx/conditional/switch_vector3 -// -function mtlx_conditional_switch_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'switch_vector3'; - this.desc = "MaterialX:mtlx/conditional/switch_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_switch_vector3.nodedef_name = 'ND_switch_vector3'; -mtlx_conditional_switch_vector3.nodedef_node = 'switch'; -mtlx_conditional_switch_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector3',mtlx_conditional_switch_vector3); - -// MaterialX node type: mtlx/conditional/switch_vector4 -// -function mtlx_conditional_switch_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'switch_vector4'; - this.desc = "MaterialX:mtlx/conditional/switch_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_switch_vector4.nodedef_name = 'ND_switch_vector4'; -mtlx_conditional_switch_vector4.nodedef_node = 'switch'; -mtlx_conditional_switch_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector4',mtlx_conditional_switch_vector4); - -// MaterialX node type: mtlx/conditional/switch_matrix33 -// -function mtlx_conditional_switch_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix33'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix33'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix33'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix33'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix33'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix33'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix33'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix33'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'switch_matrix33'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_switch_matrix33.nodedef_name = 'ND_switch_matrix33'; -mtlx_conditional_switch_matrix33.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33',mtlx_conditional_switch_matrix33); - -// MaterialX node type: mtlx/conditional/switch_matrix44 -// -function mtlx_conditional_switch_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix44'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix44'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix44'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix44'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix44'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix44'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix44'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix44'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'switch_matrix44'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_switch_matrix44.nodedef_name = 'ND_switch_matrix44'; -mtlx_conditional_switch_matrix44.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44',mtlx_conditional_switch_matrix44); - -// MaterialX node type: mtlx/conditional/switch_floatI -// -function mtlx_conditional_switch_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','float'); - this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','float'); - this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','float'); - this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','float'); - this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','float'); - this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','float'); - this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'switch_float'; - this.desc = "MaterialX:mtlx/conditional/switch_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_switch_floatI.nodedef_name = 'ND_switch_floatI'; -mtlx_conditional_switch_floatI.nodedef_node = 'switch'; -mtlx_conditional_switch_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_floatI',mtlx_conditional_switch_floatI); - -// MaterialX node type: mtlx/conditional/switch_color3I -// -function mtlx_conditional_switch_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'switch_color3'; - this.desc = "MaterialX:mtlx/conditional/switch_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_switch_color3I.nodedef_name = 'ND_switch_color3I'; -mtlx_conditional_switch_color3I.nodedef_node = 'switch'; -mtlx_conditional_switch_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color3I',mtlx_conditional_switch_color3I); - -// MaterialX node type: mtlx/conditional/switch_color4I -// -function mtlx_conditional_switch_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'switch_color4'; - this.desc = "MaterialX:mtlx/conditional/switch_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_switch_color4I.nodedef_name = 'ND_switch_color4I'; -mtlx_conditional_switch_color4I.nodedef_node = 'switch'; -mtlx_conditional_switch_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color4I',mtlx_conditional_switch_color4I); - -// MaterialX node type: mtlx/conditional/switch_vector2I -// -function mtlx_conditional_switch_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector2'); - this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector2'); - this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector2'); - this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector2'); - this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector2'); - this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector2'); - this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector2'); - this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector2'); - this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'switch_vector2'; - this.desc = "MaterialX:mtlx/conditional/switch_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_switch_vector2I.nodedef_name = 'ND_switch_vector2I'; -mtlx_conditional_switch_vector2I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector2I',mtlx_conditional_switch_vector2I); - -// MaterialX node type: mtlx/conditional/switch_vector3I -// -function mtlx_conditional_switch_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'switch_vector3'; - this.desc = "MaterialX:mtlx/conditional/switch_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_switch_vector3I.nodedef_name = 'ND_switch_vector3I'; -mtlx_conditional_switch_vector3I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector3I',mtlx_conditional_switch_vector3I); - -// MaterialX node type: mtlx/conditional/switch_vector4I -// -function mtlx_conditional_switch_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'switch_vector4'; - this.desc = "MaterialX:mtlx/conditional/switch_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_switch_vector4I.nodedef_name = 'ND_switch_vector4I'; -mtlx_conditional_switch_vector4I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector4I',mtlx_conditional_switch_vector4I); - -// MaterialX node type: mtlx/conditional/switch_matrix33I -// -function mtlx_conditional_switch_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix33'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix33'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix33'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix33'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix33'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix33'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix33'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix33'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'switch_matrix33'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_switch_matrix33I.nodedef_name = 'ND_switch_matrix33I'; -mtlx_conditional_switch_matrix33I.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33I',mtlx_conditional_switch_matrix33I); - -// MaterialX node type: mtlx/conditional/switch_matrix44I -// -function mtlx_conditional_switch_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix44'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix44'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix44'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix44'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix44'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix44'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix44'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix44'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'switch_matrix44'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_switch_matrix44I.nodedef_name = 'ND_switch_matrix44I'; -mtlx_conditional_switch_matrix44I.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44I',mtlx_conditional_switch_matrix44I); - -// MaterialX node type: mtlx/channel/convert_float_color3 -// -function mtlx_channel_convert_float_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_float_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_float_color3.nodedef_name = 'ND_convert_float_color3'; -mtlx_channel_convert_float_color3.nodedef_node = 'convert'; -mtlx_channel_convert_float_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_color3',mtlx_channel_convert_float_color3); - -// MaterialX node type: mtlx/channel/convert_float_color4 -// -function mtlx_channel_convert_float_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_float_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_float_color4.nodedef_name = 'ND_convert_float_color4'; -mtlx_channel_convert_float_color4.nodedef_node = 'convert'; -mtlx_channel_convert_float_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_color4',mtlx_channel_convert_float_color4); - -// MaterialX node type: mtlx/channel/convert_float_vector2 -// -function mtlx_channel_convert_float_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'convert_vector2'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_convert_float_vector2.nodedef_name = 'ND_convert_float_vector2'; -mtlx_channel_convert_float_vector2.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector2',mtlx_channel_convert_float_vector2); - -// MaterialX node type: mtlx/channel/convert_float_vector3 -// -function mtlx_channel_convert_float_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_float_vector3.nodedef_name = 'ND_convert_float_vector3'; -mtlx_channel_convert_float_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector3',mtlx_channel_convert_float_vector3); - -// MaterialX node type: mtlx/channel/convert_float_vector4 -// -function mtlx_channel_convert_float_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_float_vector4.nodedef_name = 'ND_convert_float_vector4'; -mtlx_channel_convert_float_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector4',mtlx_channel_convert_float_vector4); - -// MaterialX node type: mtlx/channel/convert_vector2_vector3 -// -function mtlx_channel_convert_vector2_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector2_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_vector2_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_vector2_vector3.nodedef_name = 'ND_convert_vector2_vector3'; -mtlx_channel_convert_vector2_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_vector2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector2_vector3',mtlx_channel_convert_vector2_vector3); - -// MaterialX node type: mtlx/channel/convert_vector3_color3 -// -function mtlx_channel_convert_vector3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_vector3_color3.nodedef_name = 'ND_convert_vector3_color3'; -mtlx_channel_convert_vector3_color3.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_color3',mtlx_channel_convert_vector3_color3); - -// MaterialX node type: mtlx/channel/convert_vector3_vector2 -// -function mtlx_channel_convert_vector3_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'convert_vector2'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_convert_vector3_vector2.nodedef_name = 'ND_convert_vector3_vector2'; -mtlx_channel_convert_vector3_vector2.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector2',mtlx_channel_convert_vector3_vector2); - -// MaterialX node type: mtlx/channel/convert_vector3_vector4 -// -function mtlx_channel_convert_vector3_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_vector3_vector4.nodedef_name = 'ND_convert_vector3_vector4'; -mtlx_channel_convert_vector3_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector4',mtlx_channel_convert_vector3_vector4); - -// MaterialX node type: mtlx/channel/convert_vector4_color4 -// -function mtlx_channel_convert_vector4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_vector4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_vector4_color4.nodedef_name = 'ND_convert_vector4_color4'; -mtlx_channel_convert_vector4_color4.nodedef_node = 'convert'; -mtlx_channel_convert_vector4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector4_color4',mtlx_channel_convert_vector4_color4); - -// MaterialX node type: mtlx/channel/convert_vector4_vector3 -// -function mtlx_channel_convert_vector4_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_vector4_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_vector4_vector3.nodedef_name = 'ND_convert_vector4_vector3'; -mtlx_channel_convert_vector4_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_vector4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector4_vector3',mtlx_channel_convert_vector4_vector3); - -// MaterialX node type: mtlx/channel/convert_color3_vector3 -// -function mtlx_channel_convert_color3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_color3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_color3_vector3.nodedef_name = 'ND_convert_color3_vector3'; -mtlx_channel_convert_color3_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_color3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color3_vector3',mtlx_channel_convert_color3_vector3); - -// MaterialX node type: mtlx/channel/convert_color4_vector4 -// -function mtlx_channel_convert_color4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_color4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_color4_vector4.nodedef_name = 'ND_convert_color4_vector4'; -mtlx_channel_convert_color4_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_color4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color4_vector4',mtlx_channel_convert_color4_vector4); - -// MaterialX node type: mtlx/channel/convert_color3_color4 -// -function mtlx_channel_convert_color3_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_color3_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_color3_color4.nodedef_name = 'ND_convert_color3_color4'; -mtlx_channel_convert_color3_color4.nodedef_node = 'convert'; -mtlx_channel_convert_color3_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color3_color4',mtlx_channel_convert_color3_color4); - -// MaterialX node type: mtlx/channel/convert_color4_color3 -// -function mtlx_channel_convert_color4_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_color4_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_color4_color3.nodedef_name = 'ND_convert_color4_color3'; -mtlx_channel_convert_color4_color3.nodedef_node = 'convert'; -mtlx_channel_convert_color4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color4_color3',mtlx_channel_convert_color4_color3); - -// MaterialX node type: mtlx/channel/convert_boolean_float -// -function mtlx_channel_convert_boolean_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_boolean_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_float_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'convert_float'; - this.desc = "MaterialX:mtlx/channel/convert_boolean_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_convert_boolean_float.nodedef_name = 'ND_convert_boolean_float'; -mtlx_channel_convert_boolean_float.nodedef_node = 'convert'; -mtlx_channel_convert_boolean_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_boolean_float',mtlx_channel_convert_boolean_float); - -// MaterialX node type: mtlx/channel/convert_integer_float -// -function mtlx_channel_convert_integer_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_integer_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_float_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'convert_float'; - this.desc = "MaterialX:mtlx/channel/convert_integer_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_convert_integer_float.nodedef_name = 'ND_convert_integer_float'; -mtlx_channel_convert_integer_float.nodedef_node = 'convert'; -mtlx_channel_convert_integer_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_integer_float',mtlx_channel_convert_integer_float); - -// MaterialX node type: mtlx/shader/convert_color3_surfaceshader -// -function mtlx_shader_convert_color3_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','color3'); - this.addProperty('in', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_color3_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_color3_surfaceshader.nodedef_name = 'ND_convert_color3_surfaceshader'; -mtlx_shader_convert_color3_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_color3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_color3_surfaceshader',mtlx_shader_convert_color3_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_color4_surfaceshader -// -function mtlx_shader_convert_color4_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','color4'); - this.addProperty('in', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_color4_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_color4_surfaceshader.nodedef_name = 'ND_convert_color4_surfaceshader'; -mtlx_shader_convert_color4_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_color4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_color4_surfaceshader',mtlx_shader_convert_color4_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_float_surfaceshader -// -function mtlx_shader_convert_float_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_float_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_float_surfaceshader.nodedef_name = 'ND_convert_float_surfaceshader'; -mtlx_shader_convert_float_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_float_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_float_surfaceshader',mtlx_shader_convert_float_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector2_surfaceshader -// -function mtlx_shader_convert_vector2_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector2_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector2'); - this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector2_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector2_surfaceshader.nodedef_name = 'ND_convert_vector2_surfaceshader'; -mtlx_shader_convert_vector2_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector2_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector2_surfaceshader',mtlx_shader_convert_vector2_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector3_surfaceshader -// -function mtlx_shader_convert_vector3_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector3'); - this.addProperty('in', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector3_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector3_surfaceshader.nodedef_name = 'ND_convert_vector3_surfaceshader'; -mtlx_shader_convert_vector3_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector3_surfaceshader',mtlx_shader_convert_vector3_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector4_surfaceshader -// -function mtlx_shader_convert_vector4_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector4'); - this.addProperty('in', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector4_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector4_surfaceshader.nodedef_name = 'ND_convert_vector4_surfaceshader'; -mtlx_shader_convert_vector4_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector4_surfaceshader',mtlx_shader_convert_vector4_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_integer_surfaceshader -// -function mtlx_shader_convert_integer_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_integer_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_integer_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_integer_surfaceshader.nodedef_name = 'ND_convert_integer_surfaceshader'; -mtlx_shader_convert_integer_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_integer_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_integer_surfaceshader',mtlx_shader_convert_integer_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_boolean_surfaceshader -// -function mtlx_shader_convert_boolean_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_boolean_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_boolean_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_boolean_surfaceshader.nodedef_name = 'ND_convert_boolean_surfaceshader'; -mtlx_shader_convert_boolean_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_boolean_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_boolean_surfaceshader',mtlx_shader_convert_boolean_surfaceshader); - -// MaterialX node type: mtlx/channel/combine2_vector2 -// -function mtlx_channel_combine2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'combine2_vector2'; - this.desc = "MaterialX:mtlx/channel/combine2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_combine2_vector2.nodedef_name = 'ND_combine2_vector2'; -mtlx_channel_combine2_vector2.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector2',mtlx_channel_combine2_vector2); - -// MaterialX node type: mtlx/channel/combine2_color4CF -// -function mtlx_channel_combine2_color4CF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_color4CF'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_color4CF_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'combine2_color4'; - this.desc = "MaterialX:mtlx/channel/combine2_color4CF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_combine2_color4CF.nodedef_name = 'ND_combine2_color4CF'; -mtlx_channel_combine2_color4CF.nodedef_node = 'combine2'; -mtlx_channel_combine2_color4CF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_color4CF',mtlx_channel_combine2_color4CF); - -// MaterialX node type: mtlx/channel/combine2_vector4VF -// -function mtlx_channel_combine2_vector4VF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector4VF'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VF_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine2_vector4'; - this.desc = "MaterialX:mtlx/channel/combine2_vector4VF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine2_vector4VF.nodedef_name = 'ND_combine2_vector4VF'; -mtlx_channel_combine2_vector4VF.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector4VF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VF',mtlx_channel_combine2_vector4VF); - -// MaterialX node type: mtlx/channel/combine2_vector4VV -// -function mtlx_channel_combine2_vector4VV() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector4VV'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VV_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine2_vector4'; - this.desc = "MaterialX:mtlx/channel/combine2_vector4VV"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine2_vector4VV.nodedef_name = 'ND_combine2_vector4VV'; -mtlx_channel_combine2_vector4VV.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector4VV.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VV',mtlx_channel_combine2_vector4VV); - -// MaterialX node type: mtlx/channel/combine3_color3 -// -function mtlx_channel_combine3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'combine3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'combine3_color3'; - this.desc = "MaterialX:mtlx/channel/combine3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_combine3_color3.nodedef_name = 'ND_combine3_color3'; -mtlx_channel_combine3_color3.nodedef_node = 'combine3'; -mtlx_channel_combine3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; -LiteGraph.registerNodeType('mtlx/channel/combine3_color3',mtlx_channel_combine3_color3); - -// MaterialX node type: mtlx/channel/combine3_vector3 -// -function mtlx_channel_combine3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'combine3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'combine3_vector3'; - this.desc = "MaterialX:mtlx/channel/combine3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_combine3_vector3.nodedef_name = 'ND_combine3_vector3'; -mtlx_channel_combine3_vector3.nodedef_node = 'combine3'; -mtlx_channel_combine3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; -LiteGraph.registerNodeType('mtlx/channel/combine3_vector3',mtlx_channel_combine3_vector3); - -// MaterialX node type: mtlx/channel/combine4_color4 -// -function mtlx_channel_combine4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'combine4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'combine4_color4'; - this.desc = "MaterialX:mtlx/channel/combine4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_combine4_color4.nodedef_name = 'ND_combine4_color4'; -mtlx_channel_combine4_color4.nodedef_node = 'combine4'; -mtlx_channel_combine4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; -LiteGraph.registerNodeType('mtlx/channel/combine4_color4',mtlx_channel_combine4_color4); - -// MaterialX node type: mtlx/channel/combine4_vector4 -// -function mtlx_channel_combine4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine4_vector4'; - this.desc = "MaterialX:mtlx/channel/combine4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine4_vector4.nodedef_name = 'ND_combine4_vector4'; -mtlx_channel_combine4_vector4.nodedef_node = 'combine4'; -mtlx_channel_combine4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; -LiteGraph.registerNodeType('mtlx/channel/combine4_vector4',mtlx_channel_combine4_vector4); - -// MaterialX node type: mtlx/math/creatematrix_vector3_matrix33 -// -function mtlx_math_creatematrix_vector3_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector3_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'creatematrix_matrix33'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_creatematrix_vector3_matrix33.nodedef_name = 'ND_creatematrix_vector3_matrix33'; -mtlx_math_creatematrix_vector3_matrix33.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector3_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix33',mtlx_math_creatematrix_vector3_matrix33); - -// MaterialX node type: mtlx/math/creatematrix_vector3_matrix44 -// -function mtlx_math_creatematrix_vector3_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector3_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'creatematrix_matrix44'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_creatematrix_vector3_matrix44.nodedef_name = 'ND_creatematrix_vector3_matrix44'; -mtlx_math_creatematrix_vector3_matrix44.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector3_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix44',mtlx_math_creatematrix_vector3_matrix44); - -// MaterialX node type: mtlx/math/creatematrix_vector4_matrix44 -// -function mtlx_math_creatematrix_vector4_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector4_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector4_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [1.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 1.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 1.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'creatematrix_matrix44'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector4_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_creatematrix_vector4_matrix44.nodedef_name = 'ND_creatematrix_vector4_matrix44'; -mtlx_math_creatematrix_vector4_matrix44.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector4_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector4_matrix44',mtlx_math_creatematrix_vector4_matrix44); - -// MaterialX node type: mtlx/channel/extract_color3 -// -function mtlx_channel_extract_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_color3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_color3.nodedef_name = 'ND_extract_color3'; -mtlx_channel_extract_color3.nodedef_node = 'extract'; -mtlx_channel_extract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_color3',mtlx_channel_extract_color3); - -// MaterialX node type: mtlx/channel/extract_color4 -// -function mtlx_channel_extract_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_color4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_color4.nodedef_name = 'ND_extract_color4'; -mtlx_channel_extract_color4.nodedef_node = 'extract'; -mtlx_channel_extract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_color4',mtlx_channel_extract_color4); - -// MaterialX node type: mtlx/channel/extract_vector2 -// -function mtlx_channel_extract_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector2.nodedef_name = 'ND_extract_vector2'; -mtlx_channel_extract_vector2.nodedef_node = 'extract'; -mtlx_channel_extract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector2',mtlx_channel_extract_vector2); - -// MaterialX node type: mtlx/channel/extract_vector3 -// -function mtlx_channel_extract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector3.nodedef_name = 'ND_extract_vector3'; -mtlx_channel_extract_vector3.nodedef_node = 'extract'; -mtlx_channel_extract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector3',mtlx_channel_extract_vector3); - -// MaterialX node type: mtlx/channel/extract_vector4 -// -function mtlx_channel_extract_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector4.nodedef_name = 'ND_extract_vector4'; -mtlx_channel_extract_vector4.nodedef_node = 'extract'; -mtlx_channel_extract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector4',mtlx_channel_extract_vector4); - -// MaterialX node type: mtlx/channel/separate2_vector2 -// -function mtlx_channel_separate2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate2_vector2'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate2_vector2_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.title = 'separate2_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate2_vector2.nodedef_name = 'ND_separate2_vector2'; -mtlx_channel_separate2_vector2.nodedef_node = 'separate2'; -mtlx_channel_separate2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; -LiteGraph.registerNodeType('mtlx/channel/separate2_vector2',mtlx_channel_separate2_vector2); - -// MaterialX node type: mtlx/channel/separate3_color3 -// -function mtlx_channel_separate3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate3_color3'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_color3_outr_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outr','float'); - this.addOutput('outg','float'); - this.addOutput('outb','float'); - this.title = 'separate3_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate3_color3.nodedef_name = 'ND_separate3_color3'; -mtlx_channel_separate3_color3.nodedef_node = 'separate3'; -mtlx_channel_separate3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; -LiteGraph.registerNodeType('mtlx/channel/separate3_color3',mtlx_channel_separate3_color3); - -// MaterialX node type: mtlx/channel/separate3_vector3 -// -function mtlx_channel_separate3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate3_vector3'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_vector3_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.addOutput('outz','float'); - this.title = 'separate3_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate3_vector3.nodedef_name = 'ND_separate3_vector3'; -mtlx_channel_separate3_vector3.nodedef_node = 'separate3'; -mtlx_channel_separate3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; -LiteGraph.registerNodeType('mtlx/channel/separate3_vector3',mtlx_channel_separate3_vector3); - -// MaterialX node type: mtlx/channel/separate4_color4 -// -function mtlx_channel_separate4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate4_color4'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_color4_outr_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outr','float'); - this.addOutput('outg','float'); - this.addOutput('outb','float'); - this.addOutput('outa','float'); - this.title = 'separate4_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate4_color4.nodedef_name = 'ND_separate4_color4'; -mtlx_channel_separate4_color4.nodedef_node = 'separate4'; -mtlx_channel_separate4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; -LiteGraph.registerNodeType('mtlx/channel/separate4_color4',mtlx_channel_separate4_color4); - -// MaterialX node type: mtlx/channel/separate4_vector4 -// -function mtlx_channel_separate4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate4_vector4'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_vector4_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.addOutput('outz','float'); - this.addOutput('outw','float'); - this.title = 'separate4_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate4_vector4.nodedef_name = 'ND_separate4_vector4'; -mtlx_channel_separate4_vector4.nodedef_node = 'separate4'; -mtlx_channel_separate4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; -LiteGraph.registerNodeType('mtlx/channel/separate4_vector4',mtlx_channel_separate4_vector4); - -// MaterialX node type: mtlx/convolution2d/blur_float -// -function mtlx_convolution2d_blur_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_float_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'blur_float'; - this.desc = "MaterialX:mtlx/convolution2d/blur_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_convolution2d_blur_float.nodedef_name = 'ND_blur_float'; -mtlx_convolution2d_blur_float.nodedef_node = 'blur'; -mtlx_convolution2d_blur_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_float',mtlx_convolution2d_blur_float); - -// MaterialX node type: mtlx/convolution2d/blur_color3 -// -function mtlx_convolution2d_blur_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'blur_color3'; - this.desc = "MaterialX:mtlx/convolution2d/blur_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_convolution2d_blur_color3.nodedef_name = 'ND_blur_color3'; -mtlx_convolution2d_blur_color3.nodedef_node = 'blur'; -mtlx_convolution2d_blur_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_color3',mtlx_convolution2d_blur_color3); - -// MaterialX node type: mtlx/convolution2d/blur_color4 -// -function mtlx_convolution2d_blur_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color4_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'blur_color4'; - this.desc = "MaterialX:mtlx/convolution2d/blur_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_convolution2d_blur_color4.nodedef_name = 'ND_blur_color4'; -mtlx_convolution2d_blur_color4.nodedef_node = 'blur'; -mtlx_convolution2d_blur_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_color4',mtlx_convolution2d_blur_color4); - -// MaterialX node type: mtlx/convolution2d/blur_vector2 -// -function mtlx_convolution2d_blur_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector2_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'blur_vector2'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_convolution2d_blur_vector2.nodedef_name = 'ND_blur_vector2'; -mtlx_convolution2d_blur_vector2.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector2',mtlx_convolution2d_blur_vector2); - -// MaterialX node type: mtlx/convolution2d/blur_vector3 -// -function mtlx_convolution2d_blur_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'blur_vector3'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_convolution2d_blur_vector3.nodedef_name = 'ND_blur_vector3'; -mtlx_convolution2d_blur_vector3.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector3',mtlx_convolution2d_blur_vector3); - -// MaterialX node type: mtlx/convolution2d/blur_vector4 -// -function mtlx_convolution2d_blur_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector4_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'blur_vector4'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_convolution2d_blur_vector4.nodedef_name = 'ND_blur_vector4'; -mtlx_convolution2d_blur_vector4.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector4',mtlx_convolution2d_blur_vector4); - -// MaterialX node type: mtlx/convolution2d/heighttonormal_vector3 -// -function mtlx_convolution2d_heighttonormal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_heighttonormal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'heighttonormal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_heighttonormal_vector3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'heighttonormal_vector3'; - this.desc = "MaterialX:mtlx/convolution2d/heighttonormal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_convolution2d_heighttonormal_vector3.nodedef_name = 'ND_heighttonormal_vector3'; -mtlx_convolution2d_heighttonormal_vector3.nodedef_node = 'heighttonormal'; -mtlx_convolution2d_heighttonormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/heighttonormal_vector3',mtlx_convolution2d_heighttonormal_vector3); - -// MaterialX node type: mtlx/organization/dot_float -// -function mtlx_organization_dot_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_float_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dot_float'; - this.desc = "MaterialX:mtlx/organization/dot_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_organization_dot_float.nodedef_name = 'ND_dot_float'; -mtlx_organization_dot_float.nodedef_node = 'dot'; -mtlx_organization_dot_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_float',mtlx_organization_dot_float); - -// MaterialX node type: mtlx/organization/dot_color3 -// -function mtlx_organization_dot_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color3_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'dot_color3'; - this.desc = "MaterialX:mtlx/organization/dot_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_organization_dot_color3.nodedef_name = 'ND_dot_color3'; -mtlx_organization_dot_color3.nodedef_node = 'dot'; -mtlx_organization_dot_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_color3',mtlx_organization_dot_color3); - -// MaterialX node type: mtlx/organization/dot_color4 -// -function mtlx_organization_dot_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color4_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'dot_color4'; - this.desc = "MaterialX:mtlx/organization/dot_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_organization_dot_color4.nodedef_name = 'ND_dot_color4'; -mtlx_organization_dot_color4.nodedef_node = 'dot'; -mtlx_organization_dot_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_color4',mtlx_organization_dot_color4); - -// MaterialX node type: mtlx/organization/dot_vector2 -// -function mtlx_organization_dot_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector2_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'dot_vector2'; - this.desc = "MaterialX:mtlx/organization/dot_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_organization_dot_vector2.nodedef_name = 'ND_dot_vector2'; -mtlx_organization_dot_vector2.nodedef_node = 'dot'; -mtlx_organization_dot_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector2',mtlx_organization_dot_vector2); - -// MaterialX node type: mtlx/organization/dot_vector3 -// -function mtlx_organization_dot_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector3_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'dot_vector3'; - this.desc = "MaterialX:mtlx/organization/dot_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_organization_dot_vector3.nodedef_name = 'ND_dot_vector3'; -mtlx_organization_dot_vector3.nodedef_node = 'dot'; -mtlx_organization_dot_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector3',mtlx_organization_dot_vector3); - -// MaterialX node type: mtlx/organization/dot_vector4 -// -function mtlx_organization_dot_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector4_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'dot_vector4'; - this.desc = "MaterialX:mtlx/organization/dot_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_organization_dot_vector4.nodedef_name = 'ND_dot_vector4'; -mtlx_organization_dot_vector4.nodedef_node = 'dot'; -mtlx_organization_dot_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector4',mtlx_organization_dot_vector4); - -// MaterialX node type: mtlx/organization/dot_boolean -// -function mtlx_organization_dot_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_boolean_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'dot_boolean'; - this.desc = "MaterialX:mtlx/organization/dot_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_organization_dot_boolean.nodedef_name = 'ND_dot_boolean'; -mtlx_organization_dot_boolean.nodedef_node = 'dot'; -mtlx_organization_dot_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_boolean',mtlx_organization_dot_boolean); - -// MaterialX node type: mtlx/organization/dot_integer -// -function mtlx_organization_dot_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_integer_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'dot_integer'; - this.desc = "MaterialX:mtlx/organization/dot_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_organization_dot_integer.nodedef_name = 'ND_dot_integer'; -mtlx_organization_dot_integer.nodedef_node = 'dot'; -mtlx_organization_dot_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_integer',mtlx_organization_dot_integer); - -// MaterialX node type: mtlx/organization/dot_matrix33 -// -function mtlx_organization_dot_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix33_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'dot_matrix33'; - this.desc = "MaterialX:mtlx/organization/dot_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_organization_dot_matrix33.nodedef_name = 'ND_dot_matrix33'; -mtlx_organization_dot_matrix33.nodedef_node = 'dot'; -mtlx_organization_dot_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_matrix33',mtlx_organization_dot_matrix33); - -// MaterialX node type: mtlx/organization/dot_matrix44 -// -function mtlx_organization_dot_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix44_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'dot_matrix44'; - this.desc = "MaterialX:mtlx/organization/dot_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_organization_dot_matrix44.nodedef_name = 'ND_dot_matrix44'; -mtlx_organization_dot_matrix44.nodedef_node = 'dot'; -mtlx_organization_dot_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_matrix44',mtlx_organization_dot_matrix44); - -// MaterialX node type: mtlx/organization/dot_string -// -function mtlx_organization_dot_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_string_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','string'); - this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'dot_string'; - this.desc = "MaterialX:mtlx/organization/dot_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_organization_dot_string.nodedef_name = 'ND_dot_string'; -mtlx_organization_dot_string.nodedef_node = 'dot'; -mtlx_organization_dot_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_string',mtlx_organization_dot_string); - -// MaterialX node type: mtlx/organization/dot_filename -// -function mtlx_organization_dot_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_filename'; - this.nodedef_type = 'filename'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_filename_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','filename'); - this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','filename'); - this.title = 'dot_filename'; - this.desc = "MaterialX:mtlx/organization/dot_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#58E'; -} -mtlx_organization_dot_filename.nodedef_name = 'ND_dot_filename'; -mtlx_organization_dot_filename.nodedef_node = 'dot'; -mtlx_organization_dot_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_filename',mtlx_organization_dot_filename); - -// MaterialX node type: mtlx/organization/dot_surfaceshader -// -function mtlx_organization_dot_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','surfaceshader'); - this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'dot_surfaceshader'; - this.desc = "MaterialX:mtlx/organization/dot_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_surfaceshader.nodedef_name = 'ND_dot_surfaceshader'; -mtlx_organization_dot_surfaceshader.nodedef_node = 'dot'; -mtlx_organization_dot_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_surfaceshader',mtlx_organization_dot_surfaceshader); - -// MaterialX node type: mtlx/organization/dot_displacementshader -// -function mtlx_organization_dot_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_displacementshader'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_displacementshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','displacementshader'); - this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'dot_displacementshader'; - this.desc = "MaterialX:mtlx/organization/dot_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_displacementshader.nodedef_name = 'ND_dot_displacementshader'; -mtlx_organization_dot_displacementshader.nodedef_node = 'dot'; -mtlx_organization_dot_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_displacementshader',mtlx_organization_dot_displacementshader); - -// MaterialX node type: mtlx/organization/dot_volumeshader -// -function mtlx_organization_dot_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_volumeshader'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_volumeshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','volumeshader'); - this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'dot_volumeshader'; - this.desc = "MaterialX:mtlx/organization/dot_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_volumeshader.nodedef_name = 'ND_dot_volumeshader'; -mtlx_organization_dot_volumeshader.nodedef_node = 'dot'; -mtlx_organization_dot_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_volumeshader',mtlx_organization_dot_volumeshader); - -// MaterialX node type: mtlx/organization/dot_lightshader -// -function mtlx_organization_dot_lightshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_lightshader'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_lightshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','lightshader'); - this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'dot_lightshader'; - this.desc = "MaterialX:mtlx/organization/dot_lightshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_lightshader.nodedef_name = 'ND_dot_lightshader'; -mtlx_organization_dot_lightshader.nodedef_node = 'dot'; -mtlx_organization_dot_lightshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_lightshader',mtlx_organization_dot_lightshader); - -// MaterialX node type: mtlx/pbr/gltf_pbr_surfaceshader -// -function mtlx_pbr_gltf_pbr_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_pbr_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'gltf_pbr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_pbr_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base_color','color3'); - this.addProperty('base_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Base"}); - this.addInput('metallic','float'); - this.addProperty('metallic', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metallic","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Base"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Base"}); - this.addInput('occlusion','float'); - this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Occlusion","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0, 0, 0","uimax":null,"uifolder":"Base"}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"1","uimax":null,"uifolder":"Base"}); - this.addInput('alpha','float'); - this.addProperty('alpha', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha","uimin":"0","uimax":"1","uifolder":"Alpha"}); - this.addInput('alpha_mode','integer'); - this.addProperty('alpha_mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Mode","uimin":null,"uimax":null,"uifolder":"Alpha"}); - this.addInput('alpha_cutoff','float'); - this.addProperty('alpha_cutoff', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Cutoff","uimin":"0","uimax":"1","uifolder":"Alpha"}); - this.addInput('iridescence','float'); - this.addProperty('iridescence', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence","uimin":"0","uimax":"1","uifolder":"Iridescence"}); - this.addInput('iridescence_ior','float'); - this.addProperty('iridescence_ior', 1.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Index of Refraction","uimin":"1","uimax":null,"uifolder":"Iridescence"}); - this.addInput('iridescence_thickness','float'); - this.addProperty('iridescence_thickness', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Thickness","uimin":"0","uimax":null,"uifolder":"Iridescence"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0","uimax":"1","uifolder":"Sheen"}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat","uimin":"0","uimax":"1","uifolder":"Clearcoat"}); - this.addInput('clearcoat_roughness','float'); - this.addProperty('clearcoat_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Roughness","uimin":"0","uimax":"1","uifolder":"Clearcoat"}); - this.addInput('clearcoat_normal','vector3'); - this.addProperty('clearcoat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Normal","uimin":null,"uimax":null,"uifolder":"Clearcoat"}); - this.addInput('emissive','color3'); - this.addProperty('emissive', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Emission"}); - this.addInput('emissive_strength','float'); - this.addProperty('emissive_strength', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive Strength","uimin":"0","uimax":null,"uifolder":"Emission"}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thickness","uimin":"0","uimax":null,"uifolder":"Volume"}); - this.addInput('attenuation_distance','float'); - this.addProperty('attenuation_distance', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Distance","uimin":"0","uimax":null,"uifolder":"Volume"}); - this.addInput('attenuation_color','color3'); - this.addProperty('attenuation_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Volume"}); - this.addOutput('out','surfaceshader'); - this.title = 'gltf_pbr_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/gltf_pbr_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_name = 'ND_gltf_pbr_surfaceshader'; -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_node = 'gltf_pbr'; -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; -LiteGraph.registerNodeType('mtlx/pbr/gltf_pbr_surfaceshader',mtlx_pbr_gltf_pbr_surfaceshader); - -// MaterialX node type: mtlx/texture2d/gltf_colorimage -// -function mtlx_texture2d_gltf_colorimage() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_colorimage'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'gltf_colorimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_colorimage_outcolor_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('default','color4'); - this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":"Image"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('color','color4'); - this.addProperty('color', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Color"}); - this.addInput('geomcolor','color4'); - this.addProperty('geomcolor', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Geometry Color","uimin":null,"uimax":null,"uifolder":"Color"}); - this.addOutput('outcolor','color3'); - this.addOutput('outa','float'); - this.title = 'gltf_colorimage_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/gltf_colorimage"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_gltf_colorimage.nodedef_name = 'ND_gltf_colorimage'; -mtlx_texture2d_gltf_colorimage.nodedef_node = 'gltf_colorimage'; -mtlx_texture2d_gltf_colorimage.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_colorimage',mtlx_texture2d_gltf_colorimage); - -// MaterialX node type: mtlx/texture2d/gltf_image_color3_color3_1_0 -// -function mtlx_texture2d_gltf_image_color3_color3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color3_color3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','color3'); - this.addProperty('factor', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'gltf_image_color3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_color3_color3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color3_color3_1_0',mtlx_texture2d_gltf_image_color3_color3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_color4_color4_1_0 -// -function mtlx_texture2d_gltf_image_color4_color4_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color4_color4_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','color4'); - this.addProperty('factor', [1,1,1,1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'gltf_image_color4'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_color4_color4_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color4_color4_1_0',mtlx_texture2d_gltf_image_color4_color4_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_float_float_1_0 -// -function mtlx_texture2d_gltf_image_float_float_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_float_float_1_0'; - this.nodedef_type = 'float'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_float_float_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','float'); - this.addProperty('factor', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'gltf_image_float'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_float_float_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_name = 'ND_gltf_image_float_float_1_0'; -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_float_float_1_0',mtlx_texture2d_gltf_image_float_float_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_vector3_vector3_1_0 -// -function mtlx_texture2d_gltf_image_vector3_vector3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_vector3_vector3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'gltf_image_vector3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_vector3_vector3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_vector3_vector3_1_0',mtlx_texture2d_gltf_image_vector3_vector3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_normalmap_vector3_1_0 -// -function mtlx_texture2d_gltf_normalmap_vector3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'gltf_normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_normalmap_vector3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.5, 0.5, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'gltf_normalmap_vector3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_normalmap_vector3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_node = 'gltf_normalmap'; -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_normalmap_vector3_1_0',mtlx_texture2d_gltf_normalmap_vector3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_iridescence_thickness_float_1_0 -// -function mtlx_texture2d_gltf_iridescence_thickness_float_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; - this.nodedef_type = 'float'; - this.nodedef_node = 'gltf_iridescence_thickness'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_iridescence_thickness_float_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('default','vector3'); - this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('thicknessMin','float'); - this.addProperty('thicknessMin', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness"}); - this.addInput('thicknessMax','float'); - this.addProperty('thicknessMax', 400, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness"}); - this.addOutput('out','float'); - this.title = 'gltf_iridescence_thickness_float'; - this.desc = "MaterialX:mtlx/texture2d/gltf_iridescence_thickness_float_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_node = 'gltf_iridescence_thickness'; -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_iridescence_thickness_float_1_0',mtlx_texture2d_gltf_iridescence_thickness_float_1_0); - -// MaterialX node type: mtlx/pbr/UsdPreviewSurface_surfaceshader -// -function mtlx_pbr_UsdPreviewSurface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'UsdPreviewSurface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPreviewSurface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('diffuseColor','color3'); - this.addProperty('diffuseColor', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":""}); - this.addInput('emissiveColor','color3'); - this.addProperty('emissiveColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":null,"uifolder":""}); - this.addInput('useSpecularWorkflow','integer'); - this.addProperty('useSpecularWorkflow', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":""}); - this.addInput('specularColor','color3'); - this.addProperty('specularColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('clearcoatRoughness','float'); - this.addProperty('clearcoatRoughness', 0.01, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('opacityThreshold','float'); - this.addProperty('opacityThreshold', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0, 0, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[-1,-1,-1],"uimax":[1,1,1],"uifolder":""}); - this.addInput('displacement','float'); - this.addProperty('displacement', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('occlusion','float'); - this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'UsdPreviewSurface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/UsdPreviewSurface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_node = 'UsdPreviewSurface'; -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; -LiteGraph.registerNodeType('mtlx/pbr/UsdPreviewSurface_surfaceshader',mtlx_pbr_UsdPreviewSurface_surfaceshader); - -// MaterialX node type: mtlx/texture2d/UsdUVTexture -// -function mtlx_texture2d_UsdUVTexture() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdUVTexture'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'UsdUVTexture'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_r_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('st','vector2'); - this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapS','string'); - this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapT','string'); - this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','color4'); - this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','color4'); - this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bias','color4'); - this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('r','float'); - this.addOutput('g','float'); - this.addOutput('b','float'); - this.addOutput('a','float'); - this.addOutput('rgb','color3'); - this.addOutput('rgba','color4'); - this.title = 'UsdUVTexture_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_UsdUVTexture.nodedef_name = 'ND_UsdUVTexture'; -mtlx_texture2d_UsdUVTexture.nodedef_node = 'UsdUVTexture'; -mtlx_texture2d_UsdUVTexture.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; -LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture',mtlx_texture2d_UsdUVTexture); - -// MaterialX node type: mtlx/texture2d/UsdUVTexture_23 -// -function mtlx_texture2d_UsdUVTexture_23() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdUVTexture_23'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'UsdUVTexture'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_23_r_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('st','vector2'); - this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapS','string'); - this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapT','string'); - this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','color4'); - this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','color4'); - this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bias','color4'); - this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('r','float'); - this.addOutput('g','float'); - this.addOutput('b','float'); - this.addOutput('a','float'); - this.addOutput('rgb','color3'); - this.title = 'UsdUVTexture_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture_23"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_UsdUVTexture_23.nodedef_name = 'ND_UsdUVTexture_23'; -mtlx_texture2d_UsdUVTexture_23.nodedef_node = 'UsdUVTexture'; -mtlx_texture2d_UsdUVTexture_23.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; -LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture_23',mtlx_texture2d_UsdUVTexture_23); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_integer -// -function mtlx_geometric_UsdPrimvarReader_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_integer_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','integer'); - this.addProperty('fallback', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'UsdPrimvarReader_integer'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_UsdPrimvarReader_integer.nodedef_name = 'ND_UsdPrimvarReader_integer'; -mtlx_geometric_UsdPrimvarReader_integer.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_integer',mtlx_geometric_UsdPrimvarReader_integer); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_boolean -// -function mtlx_geometric_UsdPrimvarReader_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_boolean_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','boolean'); - this.addProperty('fallback', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'UsdPrimvarReader_boolean'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_name = 'ND_UsdPrimvarReader_boolean'; -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_boolean',mtlx_geometric_UsdPrimvarReader_boolean); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_string -// -function mtlx_geometric_UsdPrimvarReader_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_string_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','string'); - this.addProperty('fallback', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'UsdPrimvarReader_string'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_geometric_UsdPrimvarReader_string.nodedef_name = 'ND_UsdPrimvarReader_string'; -mtlx_geometric_UsdPrimvarReader_string.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_string',mtlx_geometric_UsdPrimvarReader_string); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_float -// -function mtlx_geometric_UsdPrimvarReader_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','float'); - this.addProperty('fallback', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'UsdPrimvarReader_float'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_UsdPrimvarReader_float.nodedef_name = 'ND_UsdPrimvarReader_float'; -mtlx_geometric_UsdPrimvarReader_float.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_float',mtlx_geometric_UsdPrimvarReader_float); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector2 -// -function mtlx_geometric_UsdPrimvarReader_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector2'); - this.addProperty('fallback', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'UsdPrimvarReader_vector2'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_name = 'ND_UsdPrimvarReader_vector2'; -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector2',mtlx_geometric_UsdPrimvarReader_vector2); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector3 -// -function mtlx_geometric_UsdPrimvarReader_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector3'); - this.addProperty('fallback', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'UsdPrimvarReader_vector3'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_name = 'ND_UsdPrimvarReader_vector3'; -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector3',mtlx_geometric_UsdPrimvarReader_vector3); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector4 -// -function mtlx_geometric_UsdPrimvarReader_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector4'); - this.addProperty('fallback', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'UsdPrimvarReader_vector4'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_name = 'ND_UsdPrimvarReader_vector4'; -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector4',mtlx_geometric_UsdPrimvarReader_vector4); - -// MaterialX node type: mtlx/math/UsdTransform2d -// -function mtlx_math_UsdTransform2d() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdTransform2d'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'UsdTransform2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdTransform2d_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotation','float'); - this.addProperty('rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('translation','vector2'); - this.addProperty('translation', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'UsdTransform2d_vector2'; - this.desc = "MaterialX:mtlx/math/UsdTransform2d"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_UsdTransform2d.nodedef_name = 'ND_UsdTransform2d'; -mtlx_math_UsdTransform2d.nodedef_node = 'UsdTransform2d'; -mtlx_math_UsdTransform2d.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; -LiteGraph.registerNodeType('mtlx/math/UsdTransform2d',mtlx_math_UsdTransform2d); - -// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader -// -function mtlx_pbr_standard_surface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'standard_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base','float'); - this.addProperty('base', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('diffuse_roughness','float'); - this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_anisotropy','float'); - this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_rotation','float'); - this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion','float'); - this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_extra_roughness','float'); - this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','color3'); - this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scale','float'); - this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_anisotropy','float'); - this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_anisotropy','float'); - this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_rotation','float'); - this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_IOR','float'); - this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_normal','vector3'); - this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat"}); - this.addInput('coat_affect_color','float'); - this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('coat_affect_roughness','float'); - this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_IOR','float'); - this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry"}); - this.addInput('thin_walled','boolean'); - this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'standard_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_standard_surface_surfaceshader.nodedef_name = 'ND_standard_surface_surfaceshader'; -mtlx_pbr_standard_surface_surfaceshader.nodedef_node = 'standard_surface'; -mtlx_pbr_standard_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader',mtlx_pbr_standard_surface_surfaceshader); - -// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader_100 -// -function mtlx_pbr_standard_surface_surfaceshader_100() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_surfaceshader_100'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'standard_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_100_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base','float'); - this.addProperty('base', 0.8, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('diffuse_roughness','float'); - this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_anisotropy','float'); - this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_rotation','float'); - this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion','float'); - this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_extra_roughness','float'); - this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','color3'); - this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scale','float'); - this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_anisotropy','float'); - this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_anisotropy','float'); - this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_rotation','float'); - this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_IOR','float'); - this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_normal','vector3'); - this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat"}); - this.addInput('coat_affect_color','float'); - this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('coat_affect_roughness','float'); - this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_IOR','float'); - this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry"}); - this.addInput('thin_walled','boolean'); - this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'standard_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader_100"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_name = 'ND_standard_surface_surfaceshader_100'; -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_node = 'standard_surface'; -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader_100',mtlx_pbr_standard_surface_surfaceshader_100); - -// MaterialX node type: mtlx/pbr/disney_brdf_2012_surface -// -function mtlx_pbr_disney_brdf_2012_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disney_brdf_2012_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'disney_brdf_2012'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_brdf_2012_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('baseColor','color3'); - this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular','float'); - this.addProperty('specular', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specularTint','float'); - this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropic','float'); - this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheenTint','float'); - this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoatGloss','float'); - this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'disney_brdf_2012_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/disney_brdf_2012_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_disney_brdf_2012_surface.nodedef_name = 'ND_disney_brdf_2012_surface'; -mtlx_pbr_disney_brdf_2012_surface.nodedef_node = 'disney_brdf_2012'; -mtlx_pbr_disney_brdf_2012_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; -LiteGraph.registerNodeType('mtlx/pbr/disney_brdf_2012_surface',mtlx_pbr_disney_brdf_2012_surface); - -// MaterialX node type: mtlx/pbr/disney_bsdf_2015_surface -// -function mtlx_pbr_disney_bsdf_2015_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disney_bsdf_2015_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'disney_bsdf_2015'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_bsdf_2015_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('baseColor','color3'); - this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropic','float'); - this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specularTint','float'); - this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheenTint','float'); - this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoatGloss','float'); - this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specTrans','float'); - this.addProperty('specTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatterDistance','vector3'); - this.addProperty('scatterDistance', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('flatness','float'); - this.addProperty('flatness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diffTrans','float'); - this.addProperty('diffTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thin','boolean'); - this.addProperty('thin', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'disney_bsdf_2015_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/disney_bsdf_2015_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_disney_bsdf_2015_surface.nodedef_name = 'ND_disney_bsdf_2015_surface'; -mtlx_pbr_disney_bsdf_2015_surface.nodedef_node = 'disney_bsdf_2015'; -mtlx_pbr_disney_bsdf_2015_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; -LiteGraph.registerNodeType('mtlx/pbr/disney_bsdf_2015_surface',mtlx_pbr_disney_bsdf_2015_surface); - -// MaterialX node type: mtlx/pbr/open_pbr_surface_surfaceshader -// -function mtlx_pbr_open_pbr_surface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'open_pbr_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_surface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base_weight','float'); - this.addProperty('base_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Weight","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('base_diffuse_roughness','float'); - this.addProperty('base_diffuse_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_metalness','float'); - this.addProperty('base_metalness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular_weight','float'); - this.addProperty('specular_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Weight","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_ior','float'); - this.addProperty('specular_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_roughness_anisotropy','float'); - this.addProperty('specular_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission_weight','float'); - this.addProperty('transmission_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Weight","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion_scale','float'); - this.addProperty('transmission_dispersion_scale', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Scale","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion_abbe_number','float'); - this.addProperty('transmission_dispersion_abbe_number', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Abbe Number","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('subsurface_weight','float'); - this.addProperty('subsurface_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Weight","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','float'); - this.addProperty('subsurface_radius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_radius_scale','color3'); - this.addProperty('subsurface_radius_scale', [1.0, 0.5, 0.25], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius Scale","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scatter_anisotropy','float'); - this.addProperty('subsurface_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('fuzz_weight','float'); - this.addProperty('fuzz_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Weight","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz"}); - this.addInput('fuzz_color','color3'); - this.addProperty('fuzz_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Fuzz"}); - this.addInput('fuzz_roughness','float'); - this.addProperty('fuzz_roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz"}); - this.addInput('coat_weight','float'); - this.addProperty('coat_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Weight","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_roughness_anisotropy','float'); - this.addProperty('coat_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_ior','float'); - this.addProperty('coat_ior', 1.6, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_darkening','float'); - this.addProperty('coat_darkening', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Darkening","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('thin_film_weight','float'); - this.addProperty('thin_film_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Weight","uimin":"0.0","uimax":"1.0","uifolder":"Thin Film"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_ior','float'); - this.addProperty('thin_film_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission_luminance','float'); - this.addProperty('emission_luminance', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Luminance","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('geometry_opacity','float'); - this.addProperty('geometry_opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0","uimax":"1","uifolder":"Geometry"}); - this.addInput('geometry_thin_walled','boolean'); - this.addProperty('geometry_thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_normal','vector3'); - this.addProperty('geometry_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_coat_normal','vector3'); - this.addProperty('geometry_coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_tangent','vector3'); - this.addProperty('geometry_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_coat_tangent','vector3'); - this.addProperty('geometry_coat_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Tangent","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'open_pbr_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/open_pbr_surface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_node = 'open_pbr_surface'; -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/open_pbr_surface_surfaceshader',mtlx_pbr_open_pbr_surface_surfaceshader); - -// MaterialX node type: mtlx/pbr/open_pbr_anisotropy -// -function mtlx_pbr_open_pbr_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_open_pbr_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'open_pbr_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'open_pbr_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/open_pbr_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_open_pbr_anisotropy.nodedef_name = 'ND_open_pbr_anisotropy'; -mtlx_pbr_open_pbr_anisotropy.nodedef_node = 'open_pbr_anisotropy'; -mtlx_pbr_open_pbr_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/open_pbr_anisotropy',mtlx_pbr_open_pbr_anisotropy); - -// MaterialX node type: mtlx/pbr/lama_sheen -// -function mtlx_pbr_lama_sheen() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_sheen'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaSheen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sheen_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addOutput('out','BSDF'); - this.title = 'LamaSheen_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_sheen"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_sheen.nodedef_name = 'ND_lama_sheen'; -mtlx_pbr_lama_sheen.nodedef_node = 'LamaSheen'; -mtlx_pbr_lama_sheen.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_sheen',mtlx_pbr_lama_sheen); - -// MaterialX node type: mtlx/pbr/lama_sss -// -function mtlx_pbr_lama_sss() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_sss'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaSSS'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sss_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('sssRadius','color3'); - this.addProperty('sssRadius', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Radius","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssScale','float'); - this.addProperty('sssScale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssMode','integer'); - this.addProperty('sssMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('sssIOR','float'); - this.addProperty('sssIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"2.0","uifolder":"SSS"}); - this.addInput('sssAnisotropy','float'); - this.addProperty('sssAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssBleed','float'); - this.addProperty('sssBleed', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bleed","uimin":"0.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssFollowTopology','float'); - this.addProperty('sssFollowTopology', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Follow Topology","uimin":"0.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssSubset','string'); - this.addProperty('sssSubset', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Subset","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssContinuationRays','integer'); - this.addProperty('sssContinuationRays', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Continuation Rays","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssUnitLength','float'); - this.addProperty('sssUnitLength', 0.00328, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Unit Length","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('mode','integer'); - this.addProperty('mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('albedoInversionMethod','integer'); - this.addProperty('albedoInversionMethod', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Albedo Inversion Method","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('diffuseLobeName','string'); - this.addProperty('diffuseLobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssEntryLobeName','string'); - this.addProperty('sssEntryLobeName', 'irradiance', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Entry Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssExitLobeName','string'); - this.addProperty('sssExitLobeName', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Exit Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssId','integer'); - this.addProperty('sssId', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Id","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaSSS_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_sss"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_sss.nodedef_name = 'ND_lama_sss'; -mtlx_pbr_lama_sss.nodedef_node = 'LamaSSS'; -mtlx_pbr_lama_sss.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_sss',mtlx_pbr_lama_sss); - -// MaterialX node type: mtlx/pbr/lama_translucent -// -function mtlx_pbr_lama_translucent() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_translucent'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaTranslucent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_translucent_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('energyCompensation','float'); - this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced"}); - this.addInput('lobeName','string'); - this.addProperty('lobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaTranslucent_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_translucent"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_translucent.nodedef_name = 'ND_lama_translucent'; -mtlx_pbr_lama_translucent.nodedef_node = 'LamaTranslucent'; -mtlx_pbr_lama_translucent.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_translucent',mtlx_pbr_lama_translucent); - -// MaterialX node type: mtlx/pbr/lama_conductor -// -function mtlx_pbr_lama_conductor() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_conductor'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaConductor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_conductor_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('tint','color3'); - this.addProperty('tint', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('fresnelMode','integer'); - this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('IOR','vector3'); - this.addProperty('IOR', [0.180000007153,0.419999986887,1.37000000477], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('extinction','vector3'); - this.addProperty('extinction', [3.42000007629,2.34999990463,1.76999998093], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Extinction","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('reflectivity','color3'); - this.addProperty('reflectivity', [0.9450, 0.7772, 0.3737], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('edgeColor','color3'); - this.addProperty('edgeColor', [0.9979, 0.9813, 0.7523], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Edge Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy"}); - this.addInput('anisotropyDirection','vector3'); - this.addProperty('anisotropyDirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('anisotropyRotation','float'); - this.addProperty('anisotropyRotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('iridescenceThickness','float'); - this.addProperty('iridescenceThickness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thickness","uimin":"0.0","uimax":null,"uifolder":"Iridescence"}); - this.addInput('iridescenceIOR','float'); - this.addProperty('iridescenceIOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"3.0","uifolder":"Iridescence"}); - this.addInput('exteriorIOR','float'); - this.addProperty('exteriorIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exterior IOR","uimin":"1.0","uimax":"3.0","uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaConductor_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_conductor"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_conductor.nodedef_name = 'ND_lama_conductor'; -mtlx_pbr_lama_conductor.nodedef_node = 'LamaConductor'; -mtlx_pbr_lama_conductor.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_conductor',mtlx_pbr_lama_conductor); - -// MaterialX node type: mtlx/pbr/lama_dielectric -// -function mtlx_pbr_lama_dielectric() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_dielectric'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaDielectric'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_dielectric_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('reflectionTint','color3'); - this.addProperty('reflectionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflection Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('transmissionTint','color3'); - this.addProperty('transmissionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('fresnelMode','integer'); - this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('IOR','float'); - this.addProperty('IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"3.0","uifolder":"Main"}); - this.addInput('reflectivity','float'); - this.addProperty('reflectivity', 0.04, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy"}); - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('rotation','float'); - this.addProperty('rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('exteriorIOR','float'); - this.addProperty('exteriorIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exterior IOR","uimin":"1.0","uimax":"3.0","uifolder":"Advanced"}); - this.addInput('absorptionColor','color3'); - this.addProperty('absorptionColor', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Color","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('absorptionRadius','float'); - this.addProperty('absorptionRadius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Radius","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('scatterColor','color3'); - this.addProperty('scatterColor', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Color","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('scatterAnisotropy','float'); - this.addProperty('scatterAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Interior"}); - this.addOutput('out','BSDF'); - this.title = 'LamaDielectric_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_dielectric"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_dielectric.nodedef_name = 'ND_lama_dielectric'; -mtlx_pbr_lama_dielectric.nodedef_node = 'LamaDielectric'; -mtlx_pbr_lama_dielectric.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_dielectric',mtlx_pbr_lama_dielectric); - -// MaterialX node type: mtlx/pbr/lama_add_bsdf -// -function mtlx_pbr_lama_add_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_add_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaAdd'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','BSDF'); - this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','BSDF'); - this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('weight1','float'); - this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('weight2','float'); - this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaAdd_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_add_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_add_bsdf.nodedef_name = 'ND_lama_add_bsdf'; -mtlx_pbr_lama_add_bsdf.nodedef_node = 'LamaAdd'; -mtlx_pbr_lama_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_add_bsdf',mtlx_pbr_lama_add_bsdf); - -// MaterialX node type: mtlx/pbr/lama_add_edf -// -function mtlx_pbr_lama_add_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_add_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaAdd'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','EDF'); - this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','EDF'); - this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('weight1','float'); - this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('weight2','float'); - this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'LamaAdd_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_add_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_add_edf.nodedef_name = 'ND_lama_add_edf'; -mtlx_pbr_lama_add_edf.nodedef_node = 'LamaAdd'; -mtlx_pbr_lama_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_add_edf',mtlx_pbr_lama_add_edf); - -// MaterialX node type: mtlx/pbr/lama_diffuse -// -function mtlx_pbr_lama_diffuse() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_diffuse'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaDiffuse'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_diffuse_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('energyCompensation','float'); - this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced"}); - this.addInput('lobeName','string'); - this.addProperty('lobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaDiffuse_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_diffuse"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_diffuse.nodedef_name = 'ND_lama_diffuse'; -mtlx_pbr_lama_diffuse.nodedef_node = 'LamaDiffuse'; -mtlx_pbr_lama_diffuse.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_diffuse',mtlx_pbr_lama_diffuse); - -// MaterialX node type: mtlx/pbr/lama_mix_bsdf -// -function mtlx_pbr_lama_mix_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_mix_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaMix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','BSDF'); - this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','BSDF'); - this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaMix_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_mix_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_mix_bsdf.nodedef_name = 'ND_lama_mix_bsdf'; -mtlx_pbr_lama_mix_bsdf.nodedef_node = 'LamaMix'; -mtlx_pbr_lama_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_mix_bsdf',mtlx_pbr_lama_mix_bsdf); - -// MaterialX node type: mtlx/pbr/lama_mix_edf -// -function mtlx_pbr_lama_mix_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_mix_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaMix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','EDF'); - this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','EDF'); - this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'LamaMix_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_mix_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_mix_edf.nodedef_name = 'ND_lama_mix_edf'; -mtlx_pbr_lama_mix_edf.nodedef_node = 'LamaMix'; -mtlx_pbr_lama_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_mix_edf',mtlx_pbr_lama_mix_edf); - -// MaterialX node type: mtlx/pbr/lama_emission -// -function mtlx_pbr_lama_emission() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_emission'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaEmission'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_emission_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addOutput('out','EDF'); - this.title = 'LamaEmission_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_emission"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_emission.nodedef_name = 'ND_lama_emission'; -mtlx_pbr_lama_emission.nodedef_node = 'LamaEmission'; -mtlx_pbr_lama_emission.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_emission',mtlx_pbr_lama_emission); - -// MaterialX node type: mtlx/pbr/lama_layer_bsdf -// -function mtlx_pbr_lama_layer_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_layer_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaLayer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_layer_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('materialTop','BSDF'); - this.addProperty('materialTop', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('materialBase','BSDF'); - this.addProperty('materialBase', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Base","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('topMix','float'); - this.addProperty('topMix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Mix","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('topThickness','float'); - this.addProperty('topThickness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Thickness","uimin":"0.0","uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaLayer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_layer_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_layer_bsdf.nodedef_name = 'ND_lama_layer_bsdf'; -mtlx_pbr_lama_layer_bsdf.nodedef_node = 'LamaLayer'; -mtlx_pbr_lama_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_layer_bsdf',mtlx_pbr_lama_layer_bsdf); - -// MaterialX node type: mtlx/translation/standard_surface_to_gltf_pbr -// -function mtlx_translation_standard_surface_to_gltf_pbr() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'standard_surface_to_gltf_pbr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_gltf_pbr_base_color_out_genglsl.png'; - this.nodedef_group = 'translation'; - this.addInput('base','float'); - this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('base_color_out','color3'); - this.addOutput('metallic_out','float'); - this.addOutput('roughness_out','float'); - this.addOutput('transmission_out','float'); - this.addOutput('thickness_out','float'); - this.addOutput('attenuation_color_out','color3'); - this.addOutput('sheen_color_out','color3'); - this.addOutput('sheen_roughness_out','float'); - this.addOutput('clearcoat_out','float'); - this.addOutput('clearcoat_roughness_out','float'); - this.addOutput('emissive_out','color3'); - this.title = 'standard_surface_to_gltf_pbr_multioutput'; - this.desc = "MaterialX:mtlx/translation/standard_surface_to_gltf_pbr"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_node = 'standard_surface_to_gltf_pbr'; -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; -LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_gltf_pbr',mtlx_translation_standard_surface_to_gltf_pbr); - -// MaterialX node type: mtlx/translation/standard_surface_to_UsdPreviewSurface -// -function mtlx_translation_standard_surface_to_UsdPreviewSurface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_UsdPreviewSurface_diffuseColor_out_genglsl.png'; - this.nodedef_group = 'translation'; - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','float'); - this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('diffuseColor_out','color3'); - this.addOutput('emissiveColor_out','color3'); - this.addOutput('metallic_out','float'); - this.addOutput('roughness_out','float'); - this.addOutput('clearcoat_out','float'); - this.addOutput('clearcoatRoughness_out','float'); - this.addOutput('opacity_out','float'); - this.addOutput('ior_out','float'); - this.addOutput('normal_out','vector3'); - this.title = 'standard_surface_to_UsdPreviewSurface_multioutput'; - this.desc = "MaterialX:mtlx/translation/standard_surface_to_UsdPreviewSurface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; -LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_UsdPreviewSurface',mtlx_translation_standard_surface_to_UsdPreviewSurface); diff --git a/javascript/materialxnode/dist/node_editor.js b/javascript/materialxnode/dist/node_editor.js deleted file mode 100644 index 3c9fba66..00000000 --- a/javascript/materialxnode/dist/node_editor.js +++ /dev/null @@ -1,475 +0,0 @@ - -var viewer = null; - -export function initializeNodeEditor(theRenderer) { - - // Customize what icon to show based on nodedef name prefix or nodegroup - // Note that this is just a heuristic based on current nodegroup and naming - // convention. Default is "mtlx" for MaterialX nodes. - var my_icon_map = { - "gltf": "./Images/gltf_logo.webp", - "usd": "./Images/openusd_logo.webp", - "open_pbr": "./Images/openpbr_logo.webp", - "houdini": "./Images/houdini_icon.webp", - "maya": "./Images/maya_surfaces.webp", - "_default_": "./Images/materialx_logo.webp", - "_default_graph_": "./Images/nodegraph_white.svg" - }; - - function uriExists(uri) { - // Add try / catch block to handle network errors - return fetch(uri) - .then(response => { - if (response.ok) { - return true; - } else { - return false; - } - }) - .catch(error => { - console.log('Error checking URI:', error); - return false; - }); - } - - // Get URL options. Fallback to defaults if not specified. - var materialFilename = 'Materials/Examples/StandardSurface/gooch_shade.mtlx'; - var inputFilename = new URLSearchParams(document.location.search).get("file"); - if (inputFilename && uriExists(inputFilename)) { - console.log('Override default file on load: ', materialFilename); - materialFilename = inputFilename; - } - - var geometryFilename = 'Geometry/teapot.glb' - if (theRenderer) - { - viewer = theRenderer.initializeViewer(materialFilename, geometryFilename); - console.log('Setup viewer:', viewer); - } - else - { - let preview_panel = document.getElementById("preview_panel"); - // Hide preview_panel DOM element - preview_panel.style.display = 'none'; - } - - var canvas = document.getElementById('mygraphcanvas'); - var cmeditor = setupXMLSyntax(); - var cmeditor2 = setupJavascriptSyntax(); - var ui = { - console_area: document.getElementById('console_area'), - nodeTypesList: document.getElementById('nodeTypesList'), - mtlxdoc: cmeditor, - mtlxlib: cmeditor2, - mtlxdoc_colorspace: null, // document.getElementById('mtlxdoc_colorspace'), - propertypanel_content: document.getElementById('propertypanel_content'), - propertypanel_icon: document.getElementById('propertypanel_icon'), - icon_map: my_icon_map - }; - var editor = new MxShadingGraphEditor(); - editor.initialize(false, canvas, ui); - - function addUIHandlers() { - // Add event listener to save canvas as image when button is clicked - var saveCanvasButton = document.getElementById('captureGraph'); - saveCanvasButton.addEventListener('click', function () { - var canvas = document.getElementById('mygraphcanvas'); - var dataURL = canvas.toDataURL('image/png'); - var link = document.createElement('a'); - link.href = dataURL; - link.download = 'graph_capture.png'; - link.click(); - }); - - // TODO: Make this a user option - var auto_arrange_size = 80; - - // Add load materialx graph event listener - var loadMaterialXDocumentFromFile = document.getElementById('loadMaterialXDocumentFromFile'); - loadMaterialXDocumentFromFile.addEventListener('click', function () { - editor.loadGraphFromFile('mtlx', auto_arrange_size); - }); - - // Add load materialx graph from text event listener - var texAreaNumber = 0; - var loadMaterialXDocumentFromText = document.getElementById('loadMaterialXDocumentFromText'); - loadMaterialXDocumentFromText.addEventListener('click', function () { - var mtlxdoc = document.getElementById('mtlxdoc').value; - // Generate a name for the graph - if (mtlxdoc.length > 0) { - var name = 'MaterialXGraph' + texAreaNumber++; - editor.loadGraphFromString('mtlx', mtlxdoc, name, auto_arrange_size); - } - }); - - // Add load definitions event listener - var loadMaterialXDefinitions = document.getElementById('loadMaterialXDefinitions'); - loadMaterialXDefinitions.addEventListener('click', function () { - editor.loadDefinitionsFromFile('mtlx'); - }); - - // Add clear graph event listener - var clearGraphButton = document.getElementById('clearGraph'); - clearGraphButton.addEventListener('click', function () { - editor.clearGraph(); - }); - - // Add save materialx graph event listener - var saveMaterialXGraph = document.getElementById('saveMaterialXGraph'); - saveMaterialXGraph.addEventListener('click', function () { - var saveCustomLibs = document.getElementById('saveCustomLibs').checked; - var saveNodePositions = document.getElementById('saveNodePositions').checked; - editor.saveGraphToFile('mtlx', saveCustomLibs, saveNodePositions); - }); - - // Add save materialx graph text event listener - var saveMaterialXGraphText = document.getElementById('saveMaterialXGraphText'); - saveMaterialXGraphText.addEventListener('click', function () { - saveToStringUI(); - }); - - // Add open subgraph event handler - var openSubgraph = document.getElementById('openSubgraph'); - openSubgraph.addEventListener('click', function () { - editor.openSubgraph(); - }); - - // Add close subgraph event handler - var closeSubgraph = document.getElementById('closeSubgraph'); - closeSubgraph.addEventListener('click', function () { - editor.closeSubgraph(); - }); - - - // Add reset view event handler - var resetView = document.getElementById('resetView'); - resetView.addEventListener('click', function () { - editor.resetView(); - }); - - // Add arrange graph event listener - var arrangeGraphButton = document.getElementById('arrangeGraph'); - arrangeGraphButton.addEventListener('click', function () { - editor.arrangeGraph(); - }); - - // Add center node event listener - var centerNodeButton = document.getElementById('centerNode'); - centerNodeButton.addEventListener('click', function () { - editor.centerNode(); - }); - - // Add collapse/expand nodes event listener - var collapseNodesButton = document.getElementById('collapseNodes'); - collapseNodesButton.addEventListener('click', function () { - editor.collapseExpandNodes(true); - }); - var expandNodesButton = document.getElementById('expandNodes'); - expandNodesButton.addEventListener('click', function () { - editor.collapseExpandNodes(false); - }); - - // Add copy selected event listener - var copySelectedButton = document.getElementById('copySelected'); - copySelectedButton.addEventListener('click', function () { - editor.copyToClipboard(); - }); - - // Add paste selected event listener - var pasteSelectedButton = document.getElementById('pasteSelected'); - pasteSelectedButton.addEventListener('click', function () { - editor.pasteFromClipboard(); - }); - - // Add create subgraph event listener - var createNodeGraphButton = document.getElementById('createNodeGraph'); - createNodeGraphButton.addEventListener('click', function () { - editor.createNodeGraph(); - }); - - // Add extract subgraph event listener - var extractNodeGraphButton = document.getElementById('extractNodeGraph'); - extractNodeGraphButton.addEventListener('click', function () { - editor.extractNodeGraph(); - }); - - /* - // Add load serialization event listener - var loadSerialization = document.getElementById('loadSerialization'); - loadSerialization.addEventListener('click', function () { - editor.loadSerialization(); - }); - - // Add download graph event listener - var downloadGraph = document.getElementById('downloadGraph'); - downloadGraph.addEventListener('click', function () { - editor.saveSerialization(); - }); */ - - // Add xml to graph event listener - var xmltograph = document.getElementById('xmltograph'); - xmltograph.addEventListener('click', function () { - var name = 'MaterialXGraph' + texAreaNumber++; - var mtlxdoc = document.getElementById('mtlxdoc').value; - editor.loadGraphFromString('mtlx', mtlxdoc, 'MaterialXGraph', auto_arrange_size); - }); - - function updateRenderableItemUI(renderableItems) - { - let renderableItemSelect = document.getElementById('renderableItem'); - // Remove any previous children - while (renderableItemSelect.firstChild) { - renderableItemSelect.removeChild(renderableItemSelect.firstChild); - } - for (let i = 0; i < renderableItems.length; i++) { - let item = renderableItems[i]; - let option = document.createElement('option'); - option.value = i; - option.text = item; // item.getNamePath(); - renderableItemSelect.appendChild(option); - } - } - - function saveToStringUI() { - var saveCustomLibs = document.getElementById('saveCustomLibs').checked; - var saveNodePositions = document.getElementById('saveNodePositions').checked; - var result = editor.saveGraphToString('mtlx', saveCustomLibs, saveNodePositions); - cmeditor.setValue(result); - - if (theRenderer) - theRenderer.updateMaterialFromText(result); - - //console.log(viewer); - - let currentMaterials = viewer.getMaterial()._materials; - //console.log('>>> currentMaterials: ', currentMaterials); - let renderableItems = []; - for (let i in currentMaterials) - { - var matassign = currentMaterials[i]; - if (matassign) { - renderableItems.push(matassign.getMaterial().getNamePath()) - } - updateRenderableItemUI(renderableItems); - //console.log('material: ', matassign.getMaterial().getNamePath()); - //var shader = matassign.getShader(); - //console.log('shader.uniforms', shader.uniforms); - } - - } - - // Add graph to xml event listener - var graphtoxml = document.getElementById('graphtoxml'); - graphtoxml.addEventListener('click', function () { - saveToStringUI(); - }); - - var graphtoxml = document.getElementById('graphtoxml2'); - graphtoxml.addEventListener('click', function () { - saveToStringUI(); - }); - - - // Handle turntabe option - let turntableEnabledUI = document.getElementById('turntableEnabled'); - if (turntableEnabledUI) - { - turntableEnabledUI.addEventListener('click', (e) => - { - // Toggle inverting the button colors no toggling danger - turntableEnabledUI.classList.toggle('btn-secondary'); - if (theRenderer) - theRenderer.toggleTurntable(); - }); - } - - // Handle render disabled option - let disableRenderingUI = document.getElementById('disableRendering'); - if (disableRenderingUI) { - disableRenderingUI.addEventListener('click', (e) => { - // Toggle inverting the button colors - disableRenderingUI.classList.toggle('btn-danger'); - if (theRenderer) - theRenderer.toggleRendering(); - }); - } - - // Handle background display option - let toggleBackgroundTextureUI = document.getElementById('toggleBackgroundTexture'); - if (toggleBackgroundTextureUI) - { - toggleBackgroundTextureUI.addEventListener('click', (e) => - { - toggleBackgroundTextureUI.classList.toggle('btn-secondary'); - if (theRenderer) - theRenderer.toggleBackgroundTexture(); - }); - } - // Handle reset camera option - let resetCameraUI = document.getElementById('resetCamera'); - if (resetCameraUI) - { - resetCameraUI.addEventListener('click', (e) => - { - if (theRenderer) - theRenderer.resetCamera(); - }); - } - - // Handle renderable geometry option - function loadFromMenu(e) - { - var uiItem = e.target.value; - if (uiItem == '_loadFromFile_') - { - // Create a file dialog to get the filename - var fileInput = document.createElement('input'); - fileInput.type = 'file'; - fileInput.accept = '.glb'; - - fileInput.onchange = function (event) - { - var file = event.target.files[0]; - if (file) - { - var fileURL = URL.createObjectURL(file); - if (theRenderer) - theRenderer.setRenderGeometry(fileURL); - console.log('Change geometry to:', fileURL); - } - } - fileInput.click(); - } - else - { - // Convert to lowercase and remove spaces - var geometryURL = uiItem.toLowerCase().replace(/\s/g, ''); - var geometryPath = 'Geometry/' + geometryURL + '.glb'; - console.log('Change geometry to:', geometryPath); - if (theRenderer) - theRenderer.setRenderGeometry(geometryPath); - } - } - - // Handle geometry item changed - let geometryItemSelect = document.getElementById('loadGeometry'); - if (geometryItemSelect) - { - // Add event handler for selection - geometryItemSelect.addEventListener('change', (e) => - { - loadFromMenu(e); - if (e.target.value == '_loadFromFile_') - e.target.value = 'Custom Geometry' - }); - } - - // Get the canvas element and its container - var canvas = document.getElementById('mygraphcanvas'); - var canvasContainer = document.getElementById('canvasContainer'); - var colContainer = document.getElementById('colContainer'); - - // Create a new ResizeObserver - var observer = new ResizeObserver(function (entries) { - for (var entry of entries) { - // Get the new width and height of the column - var newWidth = entry.contentRect.width; - var newHeight = entry.contentRect.height; - - // Set the canvas size to match the column - canvas.width = newWidth; - canvas.height = newHeight; - - // Mark the editor as dirty to redraw the graph. - editor.setDirty(); - } - }); - - // Start observing the canvas container - observer.observe(colContainer); - - } - - function setupJavascriptSyntax() { - // Initialize CodeMirror for JS syntax highlighting - const elem = document.getElementById('mtlxlib'); - if (!elem) { - return; - } - var cmeditor = CodeMirror.fromTextArea(elem, { - mode: 'application/javascript', - lineNumbers: true, - dragDrop: false, - theme: 'dracula', - readOnly: true - }); - - elem.value = ''; - cmeditor.setValue(''); - - // Update CodeMirror whenever the textarea content changes - cmeditor.on('change', () => { - elem.value = cmeditor.getValue(); - }); - - return cmeditor; - } - - - function setupXMLSyntax() { - // Initialize CodeMirror for XML syntax highlighting - const materialXTextArea = document.getElementById('mtlxdoc'); - var cmeditor = CodeMirror.fromTextArea(materialXTextArea, { - mode: 'application/xml', - lineNumbers: true, - dragDrop: true, - theme: 'night' - }); - - // Optional: Set an initial value for the textarea - const initialXML = ''; - materialXTextArea.value = initialXML; - cmeditor.setValue(initialXML); - - // Update CodeMirror whenever the textarea content changes - cmeditor.on('change', (e) => { - materialXTextArea.value = cmeditor.getValue(); - }); - - var pasteButton = document.getElementById('mtlxdoc_paste'); - if (pasteButton) - addPasteHandler(pasteButton, cmeditor); - - return cmeditor; - } - - function loadDefaultDocument() { - - function loadInitialText(filePath) { - try { - fetch(filePath) - .then(response => response.blob()) - .then(blob => { - //console.log(blob); - const reader = new FileReader(); - reader.onload = function (e) { - cmeditor.setValue(e.target.result); - - var mtlxdoc = document.getElementById('mtlxdoc').value; - editor.loadGraphFromString('mtlx', mtlxdoc, filePath, 80); - } - reader.readAsText(blob); - }) - } catch (error) { - console.error('Error loading file %s:' % filePath, error); - } - } - - loadInitialText(materialFilename); - } - - addUIHandlers(); - addCopyHandlers(); - loadDefaultDocument(); -} - diff --git a/javascript/materialxtoy/Definitions/maya_surfaces.mtlx b/javascript/materialxtoy/Definitions/maya_surfaces.mtlx deleted file mode 100644 index b9789b4f..00000000 --- a/javascript/materialxtoy/Definitions/maya_surfaces.mtlx +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/MayaLambert_embedded_def.mtlx b/javascript/materialxtoy/Materials/MayaLambert_embedded_def.mtlx deleted file mode 100644 index 58ee7cad..00000000 --- a/javascript/materialxtoy/Materials/MayaLambert_embedded_def.mtlx +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/channels.mtlx b/javascript/materialxtoy/Materials/channels.mtlx deleted file mode 100644 index d5cd6c7c..00000000 --- a/javascript/materialxtoy/Materials/channels.mtlx +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/compound_graph_example.mtlx b/javascript/materialxtoy/Materials/compound_graph_example.mtlx deleted file mode 100644 index 58b5c4fe..00000000 --- a/javascript/materialxtoy/Materials/compound_graph_example.mtlx +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/extract_graph_example.mtlx b/javascript/materialxtoy/Materials/extract_graph_example.mtlx deleted file mode 100644 index d3ed18f9..00000000 --- a/javascript/materialxtoy/Materials/extract_graph_example.mtlx +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/gltf_pattern.mtlx b/javascript/materialxtoy/Materials/gltf_pattern.mtlx deleted file mode 100644 index ce1b2ee4..00000000 --- a/javascript/materialxtoy/Materials/gltf_pattern.mtlx +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/gltf_pattern_modified.mtlx b/javascript/materialxtoy/Materials/gltf_pattern_modified.mtlx deleted file mode 100644 index c28926e6..00000000 --- a/javascript/materialxtoy/Materials/gltf_pattern_modified.mtlx +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/mapped_surfaceshader.mtlx b/javascript/materialxtoy/Materials/mapped_surfaceshader.mtlx deleted file mode 100644 index b11c4586..00000000 --- a/javascript/materialxtoy/Materials/mapped_surfaceshader.mtlx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/pseudo_hatching.mtlx b/javascript/materialxtoy/Materials/pseudo_hatching.mtlx deleted file mode 100644 index 8f4ecf25..00000000 --- a/javascript/materialxtoy/Materials/pseudo_hatching.mtlx +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/pseudo_hatching_publish.mtlx b/javascript/materialxtoy/Materials/pseudo_hatching_publish.mtlx deleted file mode 100644 index c4942405..00000000 --- a/javascript/materialxtoy/Materials/pseudo_hatching_publish.mtlx +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/Materials/sample_olives.mtlx b/javascript/materialxtoy/Materials/sample_olives.mtlx deleted file mode 100644 index 8199ed3e..00000000 --- a/javascript/materialxtoy/Materials/sample_olives.mtlx +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javascript/materialxtoy/mtlx_stdlib.js b/javascript/materialxtoy/mtlx_stdlib.js deleted file mode 100644 index d9ef2fc5..00000000 --- a/javascript/materialxtoy/mtlx_stdlib.js +++ /dev/null @@ -1,27895 +0,0 @@ - -// MaterialX node type: mtlx/input/input_float -// -function mtlx_input_input_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_float'; - this.nodedef_node = 'input'; - this.nodedef_type = 'float'; - this.nodedef_group = 'input'; - this.addInput('in', 'float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'float'); - this.title = 'input_float'; - this.desc = "MaterialX:mtlx/input/input_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#753'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_float', mtlx_input_input_float); - -// MaterialX node type: mtlx/input/input_color3 -// -function mtlx_input_input_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_color3'; - this.nodedef_node = 'input'; - this.nodedef_type = 'color3'; - this.nodedef_group = 'input'; - this.addInput('in', 'color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'color3'); - this.title = 'input_color3'; - this.desc = "MaterialX:mtlx/input/input_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#679'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_color3', mtlx_input_input_color3); - -// MaterialX node type: mtlx/input/input_color4 -// -function mtlx_input_input_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_color4'; - this.nodedef_node = 'input'; - this.nodedef_type = 'color4'; - this.nodedef_group = 'input'; - this.addInput('in', 'color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'color4'); - this.title = 'input_color4'; - this.desc = "MaterialX:mtlx/input/input_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#899'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_color4', mtlx_input_input_color4); - -// MaterialX node type: mtlx/input/input_vector2 -// -function mtlx_input_input_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector2'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector2'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector2'); - this.title = 'input_vector2'; - this.desc = "MaterialX:mtlx/input/input_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector2', mtlx_input_input_vector2); - -// MaterialX node type: mtlx/input/input_vector3 -// -function mtlx_input_input_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector3'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector3'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector3'); - this.title = 'input_vector3'; - this.desc = "MaterialX:mtlx/input/input_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A76'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector3', mtlx_input_input_vector3); - -// MaterialX node type: mtlx/input/input_vector4 -// -function mtlx_input_input_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector4'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector4'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector4'); - this.title = 'input_vector4'; - this.desc = "MaterialX:mtlx/input/input_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A98'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector4', mtlx_input_input_vector4); - -// MaterialX node type: mtlx/input/input_matrix33 -// -function mtlx_input_input_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_matrix33'; - this.nodedef_node = 'input'; - this.nodedef_type = 'matrix33'; - this.nodedef_group = 'input'; - this.addInput('in', 'matrix33'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'matrix33'); - this.title = 'input_matrix33'; - this.desc = "MaterialX:mtlx/input/input_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#333'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_matrix33', mtlx_input_input_matrix33); - -// MaterialX node type: mtlx/input/input_matrix44 -// -function mtlx_input_input_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_matrix44'; - this.nodedef_node = 'input'; - this.nodedef_type = 'matrix44'; - this.nodedef_group = 'input'; - this.addInput('in', 'matrix44'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'matrix44'); - this.title = 'input_matrix44'; - this.desc = "MaterialX:mtlx/input/input_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#444'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_matrix44', mtlx_input_input_matrix44); - -// MaterialX node type: mtlx/input/input_integer -// -function mtlx_input_input_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_integer'; - this.nodedef_node = 'input'; - this.nodedef_type = 'integer'; - this.nodedef_group = 'input'; - this.addInput('in', 'integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'integer'); - this.title = 'input_integer'; - this.desc = "MaterialX:mtlx/input/input_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_integer', mtlx_input_input_integer); - -// MaterialX node type: mtlx/input/input_string -// -function mtlx_input_input_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_string'; - this.nodedef_node = 'input'; - this.nodedef_type = 'string'; - this.nodedef_group = 'input'; - this.addInput('in', 'string'); - this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'string'); - this.title = 'input_string'; - this.desc = "MaterialX:mtlx/input/input_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#888'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_string', mtlx_input_input_string); - -// MaterialX node type: mtlx/input/input_boolean -// -function mtlx_input_input_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_boolean'; - this.nodedef_node = 'input'; - this.nodedef_type = 'boolean'; - this.nodedef_group = 'input'; - this.addInput('in', 'boolean'); - this.addProperty('in', false, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'boolean'); - this.title = 'input_boolean'; - this.desc = "MaterialX:mtlx/input/input_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#48A'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_boolean', mtlx_input_input_boolean); - -// MaterialX node type: mtlx/input/input_filename -// -function mtlx_input_input_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_filename'; - this.nodedef_node = 'input'; - this.nodedef_type = 'filename'; - this.nodedef_group = 'input'; - this.addInput('in', 'filename'); - this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'filename'); - this.title = 'input_filename'; - this.desc = "MaterialX:mtlx/input/input_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#58E'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_filename', mtlx_input_input_filename); - -// MaterialX node type: mtlx/input/input_BSDF -// -function mtlx_input_input_BSDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_BSDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'BSDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'BSDF'); - this.addProperty('in', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'BSDF'); - this.title = 'input_BSDF'; - this.desc = "MaterialX:mtlx/input/input_BSDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_BSDF', mtlx_input_input_BSDF); - -// MaterialX node type: mtlx/input/input_EDF -// -function mtlx_input_input_EDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_EDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'EDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'EDF'); - this.addProperty('in', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'EDF'); - this.title = 'input_EDF'; - this.desc = "MaterialX:mtlx/input/input_EDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_EDF', mtlx_input_input_EDF); - -// MaterialX node type: mtlx/input/input_VDF -// -function mtlx_input_input_VDF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_VDF'; - this.nodedef_node = 'input'; - this.nodedef_type = 'VDF'; - this.nodedef_group = 'input'; - this.addInput('in', 'VDF'); - this.addProperty('in', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'VDF'); - this.title = 'input_VDF'; - this.desc = "MaterialX:mtlx/input/input_VDF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_VDF', mtlx_input_input_VDF); - -// MaterialX node type: mtlx/input/input_surfaceshader -// -function mtlx_input_input_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_surfaceshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'surfaceshader'); - this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'surfaceshader'); - this.title = 'input_surfaceshader'; - this.desc = "MaterialX:mtlx/input/input_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_surfaceshader', mtlx_input_input_surfaceshader); - -// MaterialX node type: mtlx/input/input_volumeshader -// -function mtlx_input_input_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_volumeshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'volumeshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'volumeshader'); - this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'volumeshader'); - this.title = 'input_volumeshader'; - this.desc = "MaterialX:mtlx/input/input_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_volumeshader', mtlx_input_input_volumeshader); - -// MaterialX node type: mtlx/input/input_displacementshader -// -function mtlx_input_input_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_displacementshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'displacementshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'displacementshader'); - this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'displacementshader'); - this.title = 'input_displacementshader'; - this.desc = "MaterialX:mtlx/input/input_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_displacementshader', mtlx_input_input_displacementshader); - -// MaterialX node type: mtlx/input/input_lightshader -// -function mtlx_input_input_lightshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_lightshader'; - this.nodedef_node = 'input'; - this.nodedef_type = 'lightshader'; - this.nodedef_group = 'input'; - this.addInput('in', 'lightshader'); - this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'lightshader'); - this.title = 'input_lightshader'; - this.desc = "MaterialX:mtlx/input/input_lightshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_lightshader', mtlx_input_input_lightshader); - -// MaterialX node type: mtlx/input/input_material -// -function mtlx_input_input_material() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_material'; - this.nodedef_node = 'input'; - this.nodedef_type = 'material'; - this.nodedef_group = 'input'; - this.addInput('in', 'material'); - this.addProperty('in', '', 'material',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'material'); - this.title = 'input_material'; - this.desc = "MaterialX:mtlx/input/input_material"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_material', mtlx_input_input_material); - -// MaterialX node type: mtlx/input/input_vector2array -// -function mtlx_input_input_vector2array() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_input_vector2array'; - this.nodedef_node = 'input'; - this.nodedef_type = 'vector2array'; - this.nodedef_group = 'input'; - this.addInput('in', 'vector2array'); - this.addProperty('in', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out', 'vector2array'); - this.title = 'input_vector2array'; - this.desc = "MaterialX:mtlx/input/input_vector2array"; - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node: ', this); - } -} -LiteGraph.registerNodeType('mtlx/input/input_vector2array', mtlx_input_input_vector2array); - -// MaterialX node type: mtlx/output/output_float -// -function mtlx_output_output_float() { - this.title = 'output_float'; - this.desc = "MaterialX Node :mtlx/output/output_float"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'float'; - this.nodedef_group = 'output'; - this.addInput('in', 'float'); - this.addProperty('in', 0, 'float'); - this.addOutput('out', 'float'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#753'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_float', mtlx_output_output_float); - -// MaterialX node type: mtlx/output/output_color3 -// -function mtlx_output_output_color3() { - this.title = 'output_color3'; - this.desc = "MaterialX Node :mtlx/output/output_color3"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'color3'; - this.nodedef_group = 'output'; - this.addInput('in', 'color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3'); - this.addOutput('out', 'color3'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#679'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_color3', mtlx_output_output_color3); - -// MaterialX node type: mtlx/output/output_color4 -// -function mtlx_output_output_color4() { - this.title = 'output_color4'; - this.desc = "MaterialX Node :mtlx/output/output_color4"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'color4'; - this.nodedef_group = 'output'; - this.addInput('in', 'color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4'); - this.addOutput('out', 'color4'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#899'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_color4', mtlx_output_output_color4); - -// MaterialX node type: mtlx/output/output_vector2 -// -function mtlx_output_output_vector2() { - this.title = 'output_vector2'; - this.desc = "MaterialX Node :mtlx/output/output_vector2"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector2'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2'); - this.addOutput('out', 'vector2'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector2', mtlx_output_output_vector2); - -// MaterialX node type: mtlx/output/output_vector3 -// -function mtlx_output_output_vector3() { - this.title = 'output_vector3'; - this.desc = "MaterialX Node :mtlx/output/output_vector3"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector3'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3'); - this.addOutput('out', 'vector3'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A76'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector3', mtlx_output_output_vector3); - -// MaterialX node type: mtlx/output/output_vector4 -// -function mtlx_output_output_vector4() { - this.title = 'output_vector4'; - this.desc = "MaterialX Node :mtlx/output/output_vector4"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector4'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4'); - this.addOutput('out', 'vector4'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A98'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector4', mtlx_output_output_vector4); - -// MaterialX node type: mtlx/output/output_matrix33 -// -function mtlx_output_output_matrix33() { - this.title = 'output_matrix33'; - this.desc = "MaterialX Node :mtlx/output/output_matrix33"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'matrix33'; - this.nodedef_group = 'output'; - this.addInput('in', 'matrix33'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33'); - this.addOutput('out', 'matrix33'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#333'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_matrix33', mtlx_output_output_matrix33); - -// MaterialX node type: mtlx/output/output_matrix44 -// -function mtlx_output_output_matrix44() { - this.title = 'output_matrix44'; - this.desc = "MaterialX Node :mtlx/output/output_matrix44"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'matrix44'; - this.nodedef_group = 'output'; - this.addInput('in', 'matrix44'); - this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44'); - this.addOutput('out', 'matrix44'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#444'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_matrix44', mtlx_output_output_matrix44); - -// MaterialX node type: mtlx/output/output_integer -// -function mtlx_output_output_integer() { - this.title = 'output_integer'; - this.desc = "MaterialX Node :mtlx/output/output_integer"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'integer'; - this.nodedef_group = 'output'; - this.addInput('in', 'integer'); - this.addProperty('in', 0, 'integer'); - this.addOutput('out', 'integer'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#A32'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_integer', mtlx_output_output_integer); - -// MaterialX node type: mtlx/output/output_string -// -function mtlx_output_output_string() { - this.title = 'output_string'; - this.desc = "MaterialX Node :mtlx/output/output_string"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'string'; - this.nodedef_group = 'output'; - this.addInput('in', 'string'); - this.addProperty('in', '', 'string'); - this.addOutput('out', 'string'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#888'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_string', mtlx_output_output_string); - -// MaterialX node type: mtlx/output/output_boolean -// -function mtlx_output_output_boolean() { - this.title = 'output_boolean'; - this.desc = "MaterialX Node :mtlx/output/output_boolean"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'boolean'; - this.nodedef_group = 'output'; - this.addInput('in', 'boolean'); - this.addProperty('in', false, 'boolean'); - this.addOutput('out', 'boolean'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#48A'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_boolean', mtlx_output_output_boolean); - -// MaterialX node type: mtlx/output/output_filename -// -function mtlx_output_output_filename() { - this.title = 'output_filename'; - this.desc = "MaterialX Node :mtlx/output/output_filename"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'filename'; - this.nodedef_group = 'output'; - this.addInput('in', 'filename'); - this.addProperty('in', '', 'filename'); - this.addOutput('out', 'filename'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.boxcolor = '#58E'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_filename', mtlx_output_output_filename); - -// MaterialX node type: mtlx/output/output_BSDF -// -function mtlx_output_output_BSDF() { - this.title = 'output_BSDF'; - this.desc = "MaterialX Node :mtlx/output/output_BSDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'BSDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'BSDF'); - this.addProperty('in', '', 'BSDF'); - this.addOutput('out', 'BSDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_BSDF', mtlx_output_output_BSDF); - -// MaterialX node type: mtlx/output/output_EDF -// -function mtlx_output_output_EDF() { - this.title = 'output_EDF'; - this.desc = "MaterialX Node :mtlx/output/output_EDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'EDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'EDF'); - this.addProperty('in', '', 'EDF'); - this.addOutput('out', 'EDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_EDF', mtlx_output_output_EDF); - -// MaterialX node type: mtlx/output/output_VDF -// -function mtlx_output_output_VDF() { - this.title = 'output_VDF'; - this.desc = "MaterialX Node :mtlx/output/output_VDF"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'VDF'; - this.nodedef_group = 'output'; - this.addInput('in', 'VDF'); - this.addProperty('in', '', 'VDF'); - this.addOutput('out', 'VDF'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_VDF', mtlx_output_output_VDF); - -// MaterialX node type: mtlx/output/output_surfaceshader -// -function mtlx_output_output_surfaceshader() { - this.title = 'output_surfaceshader'; - this.desc = "MaterialX Node :mtlx/output/output_surfaceshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'surfaceshader'); - this.addProperty('in', '', 'surfaceshader'); - this.addOutput('out', 'surfaceshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_surfaceshader', mtlx_output_output_surfaceshader); - -// MaterialX node type: mtlx/output/output_volumeshader -// -function mtlx_output_output_volumeshader() { - this.title = 'output_volumeshader'; - this.desc = "MaterialX Node :mtlx/output/output_volumeshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'volumeshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'volumeshader'); - this.addProperty('in', '', 'volumeshader'); - this.addOutput('out', 'volumeshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_volumeshader', mtlx_output_output_volumeshader); - -// MaterialX node type: mtlx/output/output_displacementshader -// -function mtlx_output_output_displacementshader() { - this.title = 'output_displacementshader'; - this.desc = "MaterialX Node :mtlx/output/output_displacementshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'displacementshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'displacementshader'); - this.addProperty('in', '', 'displacementshader'); - this.addOutput('out', 'displacementshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_displacementshader', mtlx_output_output_displacementshader); - -// MaterialX node type: mtlx/output/output_lightshader -// -function mtlx_output_output_lightshader() { - this.title = 'output_lightshader'; - this.desc = "MaterialX Node :mtlx/output/output_lightshader"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'lightshader'; - this.nodedef_group = 'output'; - this.addInput('in', 'lightshader'); - this.addProperty('in', '', 'lightshader'); - this.addOutput('out', 'lightshader'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_lightshader', mtlx_output_output_lightshader); - -// MaterialX node type: mtlx/output/output_material -// -function mtlx_output_output_material() { - this.title = 'output_material'; - this.desc = "MaterialX Node :mtlx/output/output_material"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'material'; - this.nodedef_group = 'output'; - this.addInput('in', 'material'); - this.addProperty('in', '', 'material'); - this.addOutput('out', 'material'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_material', mtlx_output_output_material); - -// MaterialX node type: mtlx/output/output_vector2array -// -function mtlx_output_output_vector2array() { - this.title = 'output_vector2array'; - this.desc = "MaterialX Node :mtlx/output/output_vector2array"; - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_output_NaN'; - this.nodedef_node = 'output'; - this.nodedef_type = 'vector2array'; - this.nodedef_group = 'output'; - this.addInput('in', 'vector2array'); - this.addProperty('in', '', 'vector2array'); - this.addOutput('out', 'vector2array'); - this.onNodeCreated = function() { - //console.log('Node created:', this); - } - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.color = '#004C94'; - this.bgcolor = '#000'; - this.shape = LiteGraph.ROUND_SHAPE; - this.onExecute = function() { - console.log('Executing node:', this); - } -} -LiteGraph.registerNodeType('mtlx/output/output_vector2array', mtlx_output_output_vector2array); - -// MaterialX node type: mtlx/pbr/oren_nayar_diffuse_bsdf -// -function mtlx_pbr_oren_nayar_diffuse_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'oren_nayar_diffuse_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_oren_nayar_diffuse_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'oren_nayar_diffuse_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/oren_nayar_diffuse_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_node = 'oren_nayar_diffuse_bsdf'; -mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/oren_nayar_diffuse_bsdf',mtlx_pbr_oren_nayar_diffuse_bsdf); - -// MaterialX node type: mtlx/pbr/burley_diffuse_bsdf -// -function mtlx_pbr_burley_diffuse_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burley_diffuse_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'burley_diffuse_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burley_diffuse_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'burley_diffuse_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/burley_diffuse_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_burley_diffuse_bsdf.nodedef_name = 'ND_burley_diffuse_bsdf'; -mtlx_pbr_burley_diffuse_bsdf.nodedef_node = 'burley_diffuse_bsdf'; -mtlx_pbr_burley_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/burley_diffuse_bsdf',mtlx_pbr_burley_diffuse_bsdf); - -// MaterialX node type: mtlx/pbr/translucent_bsdf -// -function mtlx_pbr_translucent_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_translucent_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'translucent_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_translucent_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'translucent_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/translucent_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_translucent_bsdf.nodedef_name = 'ND_translucent_bsdf'; -mtlx_pbr_translucent_bsdf.nodedef_node = 'translucent_bsdf'; -mtlx_pbr_translucent_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/translucent_bsdf',mtlx_pbr_translucent_bsdf); - -// MaterialX node type: mtlx/pbr/dielectric_bsdf -// -function mtlx_pbr_dielectric_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dielectric_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'dielectric_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dielectric_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('tint','color3'); - this.addProperty('tint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatter_mode','string'); - this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'dielectric_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/dielectric_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_dielectric_bsdf.nodedef_name = 'ND_dielectric_bsdf'; -mtlx_pbr_dielectric_bsdf.nodedef_node = 'dielectric_bsdf'; -mtlx_pbr_dielectric_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/dielectric_bsdf',mtlx_pbr_dielectric_bsdf); - -// MaterialX node type: mtlx/pbr/conductor_bsdf -// -function mtlx_pbr_conductor_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_conductor_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'conductor_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conductor_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('ior','color3'); - this.addProperty('ior', [0.183, 0.421, 1.373], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('extinction','color3'); - this.addProperty('extinction', [3.424, 2.346, 1.770], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'conductor_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/conductor_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_conductor_bsdf.nodedef_name = 'ND_conductor_bsdf'; -mtlx_pbr_conductor_bsdf.nodedef_node = 'conductor_bsdf'; -mtlx_pbr_conductor_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/conductor_bsdf',mtlx_pbr_conductor_bsdf); - -// MaterialX node type: mtlx/pbr/generalized_schlick_bsdf -// -function mtlx_pbr_generalized_schlick_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_generalized_schlick_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'generalized_schlick_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color0','color3'); - this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color82','color3'); - this.addProperty('color82', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color90','color3'); - this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exponent','float'); - this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_thickness','float'); - this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thinfilm_ior','float'); - this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('distribution','string'); - this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatter_mode','string'); - this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'generalized_schlick_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/generalized_schlick_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_generalized_schlick_bsdf.nodedef_name = 'ND_generalized_schlick_bsdf'; -mtlx_pbr_generalized_schlick_bsdf.nodedef_node = 'generalized_schlick_bsdf'; -mtlx_pbr_generalized_schlick_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_bsdf',mtlx_pbr_generalized_schlick_bsdf); - -// MaterialX node type: mtlx/pbr/subsurface_bsdf -// -function mtlx_pbr_subsurface_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subsurface_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'subsurface_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subsurface_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','vector3'); - this.addProperty('radius', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'subsurface_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/subsurface_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_subsurface_bsdf.nodedef_name = 'ND_subsurface_bsdf'; -mtlx_pbr_subsurface_bsdf.nodedef_node = 'subsurface_bsdf'; -mtlx_pbr_subsurface_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/subsurface_bsdf',mtlx_pbr_subsurface_bsdf); - -// MaterialX node type: mtlx/pbr/sheen_bsdf -// -function mtlx_pbr_sheen_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sheen_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'sheen_bsdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sheen_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('weight','float'); - this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'sheen_bsdf_BSDF'; - this.desc = "MaterialX:mtlx/pbr/sheen_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_sheen_bsdf.nodedef_name = 'ND_sheen_bsdf'; -mtlx_pbr_sheen_bsdf.nodedef_node = 'sheen_bsdf'; -mtlx_pbr_sheen_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/sheen_bsdf',mtlx_pbr_sheen_bsdf); - -// MaterialX node type: mtlx/pbr/uniform_edf -// -function mtlx_pbr_uniform_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_uniform_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'uniform_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_uniform_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'uniform_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/uniform_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_uniform_edf.nodedef_name = 'ND_uniform_edf'; -mtlx_pbr_uniform_edf.nodedef_node = 'uniform_edf'; -mtlx_pbr_uniform_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/uniform_edf',mtlx_pbr_uniform_edf); - -// MaterialX node type: mtlx/pbr/conical_edf -// -function mtlx_pbr_conical_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_conical_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'conical_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conical_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inner_angle','float'); - this.addProperty('inner_angle', 60.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outer_angle','float'); - this.addProperty('outer_angle', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'conical_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/conical_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_conical_edf.nodedef_name = 'ND_conical_edf'; -mtlx_pbr_conical_edf.nodedef_node = 'conical_edf'; -mtlx_pbr_conical_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/conical_edf',mtlx_pbr_conical_edf); - -// MaterialX node type: mtlx/pbr/measured_edf -// -function mtlx_pbr_measured_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_measured_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'measured_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_measured_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'measured_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/measured_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_measured_edf.nodedef_name = 'ND_measured_edf'; -mtlx_pbr_measured_edf.nodedef_node = 'measured_edf'; -mtlx_pbr_measured_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/measured_edf',mtlx_pbr_measured_edf); - -// MaterialX node type: mtlx/pbr/generalized_schlick_edf -// -function mtlx_pbr_generalized_schlick_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_generalized_schlick_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'generalized_schlick_edf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color0','color3'); - this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color90','color3'); - this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exponent','float'); - this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','EDF'); - this.addProperty('base', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'generalized_schlick_edf_EDF'; - this.desc = "MaterialX:mtlx/pbr/generalized_schlick_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_generalized_schlick_edf.nodedef_name = 'ND_generalized_schlick_edf'; -mtlx_pbr_generalized_schlick_edf.nodedef_node = 'generalized_schlick_edf'; -mtlx_pbr_generalized_schlick_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; -LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_edf',mtlx_pbr_generalized_schlick_edf); - -// MaterialX node type: mtlx/pbr/absorption_vdf -// -function mtlx_pbr_absorption_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absorption_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'absorption_vdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absorption_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('absorption','vector3'); - this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'absorption_vdf_VDF'; - this.desc = "MaterialX:mtlx/pbr/absorption_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_absorption_vdf.nodedef_name = 'ND_absorption_vdf'; -mtlx_pbr_absorption_vdf.nodedef_node = 'absorption_vdf'; -mtlx_pbr_absorption_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/absorption_vdf',mtlx_pbr_absorption_vdf); - -// MaterialX node type: mtlx/pbr/anisotropic_vdf -// -function mtlx_pbr_anisotropic_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_anisotropic_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'anisotropic_vdf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_anisotropic_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('absorption','vector3'); - this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scattering','vector3'); - this.addProperty('scattering', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'anisotropic_vdf_VDF'; - this.desc = "MaterialX:mtlx/pbr/anisotropic_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_anisotropic_vdf.nodedef_name = 'ND_anisotropic_vdf'; -mtlx_pbr_anisotropic_vdf.nodedef_node = 'anisotropic_vdf'; -mtlx_pbr_anisotropic_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; -LiteGraph.registerNodeType('mtlx/pbr/anisotropic_vdf',mtlx_pbr_anisotropic_vdf); - -// MaterialX node type: mtlx/pbr/surface -// -function mtlx_pbr_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('bsdf','BSDF'); - this.addProperty('bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_surface.nodedef_name = 'ND_surface'; -mtlx_pbr_surface.nodedef_node = 'surface'; -mtlx_pbr_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/surface',mtlx_pbr_surface); - -// MaterialX node type: mtlx/pbr/thin_surface -// -function mtlx_pbr_thin_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_thin_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'thin_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_thin_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('front_bsdf','BSDF'); - this.addProperty('front_bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('front_edf','EDF'); - this.addProperty('front_edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('back_bsdf','BSDF'); - this.addProperty('back_bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('back_edf','EDF'); - this.addProperty('back_edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'thin_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/thin_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_thin_surface.nodedef_name = 'ND_thin_surface'; -mtlx_pbr_thin_surface.nodedef_node = 'thin_surface'; -mtlx_pbr_thin_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/thin_surface',mtlx_pbr_thin_surface); - -// MaterialX node type: mtlx/pbr/volume -// -function mtlx_pbr_volume() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_volume'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'volume'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volume_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('vdf','VDF'); - this.addProperty('vdf', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'volume_volumeshader'; - this.desc = "MaterialX:mtlx/pbr/volume"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_volume.nodedef_name = 'ND_volume'; -mtlx_pbr_volume.nodedef_node = 'volume'; -mtlx_pbr_volume.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; -LiteGraph.registerNodeType('mtlx/pbr/volume',mtlx_pbr_volume); - -// MaterialX node type: mtlx/pbr/light -// -function mtlx_pbr_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_light_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('edf','EDF'); - this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'light_lightshader'; - this.desc = "MaterialX:mtlx/pbr/light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_light.nodedef_name = 'ND_light'; -mtlx_pbr_light.nodedef_node = 'light'; -mtlx_pbr_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; -LiteGraph.registerNodeType('mtlx/pbr/light',mtlx_pbr_light); - -// MaterialX node type: mtlx/pbr/displacement_float -// -function mtlx_pbr_displacement_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_displacement_float'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'displacement'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_float_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('displacement','float'); - this.addProperty('displacement', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'displacement_displacementshader'; - this.desc = "MaterialX:mtlx/pbr/displacement_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_displacement_float.nodedef_name = 'ND_displacement_float'; -mtlx_pbr_displacement_float.nodedef_node = 'displacement'; -mtlx_pbr_displacement_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; -LiteGraph.registerNodeType('mtlx/pbr/displacement_float',mtlx_pbr_displacement_float); - -// MaterialX node type: mtlx/pbr/displacement_vector3 -// -function mtlx_pbr_displacement_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_displacement_vector3'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'displacement'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_vector3_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('displacement','vector3'); - this.addProperty('displacement', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'displacement_displacementshader'; - this.desc = "MaterialX:mtlx/pbr/displacement_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_displacement_vector3.nodedef_name = 'ND_displacement_vector3'; -mtlx_pbr_displacement_vector3.nodedef_node = 'displacement'; -mtlx_pbr_displacement_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; -LiteGraph.registerNodeType('mtlx/pbr/displacement_vector3',mtlx_pbr_displacement_vector3); - -// MaterialX node type: mtlx/pbr/layer_bsdf -// -function mtlx_pbr_layer_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_layer_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'layer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('top','BSDF'); - this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','BSDF'); - this.addProperty('base', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'layer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/layer_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_layer_bsdf.nodedef_name = 'ND_layer_bsdf'; -mtlx_pbr_layer_bsdf.nodedef_node = 'layer'; -mtlx_pbr_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; -LiteGraph.registerNodeType('mtlx/pbr/layer_bsdf',mtlx_pbr_layer_bsdf); - -// MaterialX node type: mtlx/pbr/layer_vdf -// -function mtlx_pbr_layer_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_layer_vdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'layer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('top','BSDF'); - this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','VDF'); - this.addProperty('base', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'layer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/layer_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_layer_vdf.nodedef_name = 'ND_layer_vdf'; -mtlx_pbr_layer_vdf.nodedef_node = 'layer'; -mtlx_pbr_layer_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; -LiteGraph.registerNodeType('mtlx/pbr/layer_vdf',mtlx_pbr_layer_vdf); - -// MaterialX node type: mtlx/pbr/mix_bsdf -// -function mtlx_pbr_mix_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','BSDF'); - this.addProperty('fg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','BSDF'); - this.addProperty('bg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'mix_BSDF'; - this.desc = "MaterialX:mtlx/pbr/mix_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_bsdf.nodedef_name = 'ND_mix_bsdf'; -mtlx_pbr_mix_bsdf.nodedef_node = 'mix'; -mtlx_pbr_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_bsdf',mtlx_pbr_mix_bsdf); - -// MaterialX node type: mtlx/pbr/mix_edf -// -function mtlx_pbr_mix_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','EDF'); - this.addProperty('fg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','EDF'); - this.addProperty('bg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'mix_EDF'; - this.desc = "MaterialX:mtlx/pbr/mix_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_edf.nodedef_name = 'ND_mix_edf'; -mtlx_pbr_mix_edf.nodedef_node = 'mix'; -mtlx_pbr_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_edf',mtlx_pbr_mix_edf); - -// MaterialX node type: mtlx/pbr/mix_vdf -// -function mtlx_pbr_mix_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('fg','VDF'); - this.addProperty('fg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','VDF'); - this.addProperty('bg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'mix_VDF'; - this.desc = "MaterialX:mtlx/pbr/mix_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_mix_vdf.nodedef_name = 'ND_mix_vdf'; -mtlx_pbr_mix_vdf.nodedef_node = 'mix'; -mtlx_pbr_mix_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/pbr/mix_vdf',mtlx_pbr_mix_vdf); - -// MaterialX node type: mtlx/pbr/add_bsdf -// -function mtlx_pbr_add_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','BSDF'); - this.addProperty('in2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'add_BSDF'; - this.desc = "MaterialX:mtlx/pbr/add_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_bsdf.nodedef_name = 'ND_add_bsdf'; -mtlx_pbr_add_bsdf.nodedef_node = 'add'; -mtlx_pbr_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_bsdf',mtlx_pbr_add_bsdf); - -// MaterialX node type: mtlx/pbr/add_edf -// -function mtlx_pbr_add_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','EDF'); - this.addProperty('in2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'add_EDF'; - this.desc = "MaterialX:mtlx/pbr/add_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_edf.nodedef_name = 'ND_add_edf'; -mtlx_pbr_add_edf.nodedef_node = 'add'; -mtlx_pbr_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_edf',mtlx_pbr_add_edf); - -// MaterialX node type: mtlx/pbr/add_vdf -// -function mtlx_pbr_add_vdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vdf'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','VDF'); - this.addProperty('in2', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'add_VDF'; - this.desc = "MaterialX:mtlx/pbr/add_vdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_add_vdf.nodedef_name = 'ND_add_vdf'; -mtlx_pbr_add_vdf.nodedef_node = 'add'; -mtlx_pbr_add_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/pbr/add_vdf',mtlx_pbr_add_vdf); - -// MaterialX node type: mtlx/pbr/multiply_bsdfC -// -function mtlx_pbr_multiply_bsdfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_bsdfC'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'multiply_BSDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_bsdfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_bsdfC.nodedef_name = 'ND_multiply_bsdfC'; -mtlx_pbr_multiply_bsdfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_bsdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfC',mtlx_pbr_multiply_bsdfC); - -// MaterialX node type: mtlx/pbr/multiply_bsdfF -// -function mtlx_pbr_multiply_bsdfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_bsdfF'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','BSDF'); - this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'multiply_BSDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_bsdfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_bsdfF.nodedef_name = 'ND_multiply_bsdfF'; -mtlx_pbr_multiply_bsdfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_bsdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfF',mtlx_pbr_multiply_bsdfF); - -// MaterialX node type: mtlx/pbr/multiply_edfC -// -function mtlx_pbr_multiply_edfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_edfC'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'multiply_EDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_edfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_edfC.nodedef_name = 'ND_multiply_edfC'; -mtlx_pbr_multiply_edfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_edfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_edfC',mtlx_pbr_multiply_edfC); - -// MaterialX node type: mtlx/pbr/multiply_edfF -// -function mtlx_pbr_multiply_edfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_edfF'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','EDF'); - this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'multiply_EDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_edfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_edfF.nodedef_name = 'ND_multiply_edfF'; -mtlx_pbr_multiply_edfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_edfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_edfF',mtlx_pbr_multiply_edfF); - -// MaterialX node type: mtlx/pbr/multiply_vdfC -// -function mtlx_pbr_multiply_vdfC() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vdfC'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfC_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'multiply_VDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_vdfC"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_vdfC.nodedef_name = 'ND_multiply_vdfC'; -mtlx_pbr_multiply_vdfC.nodedef_node = 'multiply'; -mtlx_pbr_multiply_vdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfC',mtlx_pbr_multiply_vdfC); - -// MaterialX node type: mtlx/pbr/multiply_vdfF -// -function mtlx_pbr_multiply_vdfF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vdfF'; - this.nodedef_type = 'VDF'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfF_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('in1','VDF'); - this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','VDF'); - this.title = 'multiply_VDF'; - this.desc = "MaterialX:mtlx/pbr/multiply_vdfF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_multiply_vdfF.nodedef_name = 'ND_multiply_vdfF'; -mtlx_pbr_multiply_vdfF.nodedef_node = 'multiply'; -mtlx_pbr_multiply_vdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfF',mtlx_pbr_multiply_vdfF); - -// MaterialX node type: mtlx/pbr/roughness_anisotropy -// -function mtlx_pbr_roughness_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_roughness_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'roughness_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'roughness_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/roughness_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_roughness_anisotropy.nodedef_name = 'ND_roughness_anisotropy'; -mtlx_pbr_roughness_anisotropy.nodedef_node = 'roughness_anisotropy'; -mtlx_pbr_roughness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/roughness_anisotropy',mtlx_pbr_roughness_anisotropy); - -// MaterialX node type: mtlx/pbr/roughness_dual -// -function mtlx_pbr_roughness_dual() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_roughness_dual'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'roughness_dual'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_dual_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','vector2'); - this.addProperty('roughness', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'roughness_dual_vector2'; - this.desc = "MaterialX:mtlx/pbr/roughness_dual"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_roughness_dual.nodedef_name = 'ND_roughness_dual'; -mtlx_pbr_roughness_dual.nodedef_node = 'roughness_dual'; -mtlx_pbr_roughness_dual.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; -LiteGraph.registerNodeType('mtlx/pbr/roughness_dual',mtlx_pbr_roughness_dual); - -// MaterialX node type: mtlx/pbr/glossiness_anisotropy -// -function mtlx_pbr_glossiness_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_glossiness_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'glossiness_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_glossiness_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('glossiness','float'); - this.addProperty('glossiness', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'glossiness_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/glossiness_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_glossiness_anisotropy.nodedef_name = 'ND_glossiness_anisotropy'; -mtlx_pbr_glossiness_anisotropy.nodedef_node = 'glossiness_anisotropy'; -mtlx_pbr_glossiness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/glossiness_anisotropy',mtlx_pbr_glossiness_anisotropy); - -// MaterialX node type: mtlx/pbr/blackbody -// -function mtlx_pbr_blackbody() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blackbody'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'blackbody'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blackbody_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('temperature','float'); - this.addProperty('temperature', 5000.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'blackbody_color3'; - this.desc = "MaterialX:mtlx/pbr/blackbody"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_pbr_blackbody.nodedef_name = 'ND_blackbody'; -mtlx_pbr_blackbody.nodedef_node = 'blackbody'; -mtlx_pbr_blackbody.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; -LiteGraph.registerNodeType('mtlx/pbr/blackbody',mtlx_pbr_blackbody); - -// MaterialX node type: mtlx/pbr/artistic_ior -// -function mtlx_pbr_artistic_ior() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_artistic_ior'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'artistic_ior'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_artistic_ior_ior_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('reflectivity','color3'); - this.addProperty('reflectivity', [0.944, 0.776, 0.373], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('edge_color','color3'); - this.addProperty('edge_color', [0.998, 0.981, 0.751], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('ior','color3'); - this.addOutput('extinction','color3'); - this.title = 'artistic_ior_multioutput'; - this.desc = "MaterialX:mtlx/pbr/artistic_ior"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_artistic_ior.nodedef_name = 'ND_artistic_ior'; -mtlx_pbr_artistic_ior.nodedef_node = 'artistic_ior'; -mtlx_pbr_artistic_ior.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; -LiteGraph.registerNodeType('mtlx/pbr/artistic_ior',mtlx_pbr_artistic_ior); - -// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color3 -// -function mtlx_colortransform_g18_rec709_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g18_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g18_rec709_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_node = 'g18_rec709_to_lin_rec709'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color3',mtlx_colortransform_g18_rec709_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color4 -// -function mtlx_colortransform_g18_rec709_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g18_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g18_rec709_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_node = 'g18_rec709_to_lin_rec709'; -mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color4',mtlx_colortransform_g18_rec709_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color3 -// -function mtlx_colortransform_g22_rec709_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g22_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g22_rec709_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_node = 'g22_rec709_to_lin_rec709'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color3',mtlx_colortransform_g22_rec709_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color4 -// -function mtlx_colortransform_g22_rec709_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g22_rec709_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g22_rec709_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_node = 'g22_rec709_to_lin_rec709'; -mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color4',mtlx_colortransform_g22_rec709_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color3 -// -function mtlx_colortransform_rec709_display_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'rec709_display_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'rec709_display_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_node = 'rec709_display_to_lin_rec709'; -mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color3',mtlx_colortransform_rec709_display_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color4 -// -function mtlx_colortransform_rec709_display_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'rec709_display_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'rec709_display_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_node = 'rec709_display_to_lin_rec709'; -mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color4',mtlx_colortransform_rec709_display_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color3 -// -function mtlx_colortransform_acescg_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'acescg_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'acescg_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_node = 'acescg_to_lin_rec709'; -mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color3',mtlx_colortransform_acescg_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color4 -// -function mtlx_colortransform_acescg_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'acescg_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'acescg_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_node = 'acescg_to_lin_rec709'; -mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color4',mtlx_colortransform_acescg_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color3 -// -function mtlx_colortransform_g22_ap1_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'g22_ap1_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'g22_ap1_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_node = 'g22_ap1_to_lin_rec709'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color3',mtlx_colortransform_g22_ap1_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color4 -// -function mtlx_colortransform_g22_ap1_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'g22_ap1_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'g22_ap1_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_node = 'g22_ap1_to_lin_rec709'; -mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color4',mtlx_colortransform_g22_ap1_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color3 -// -function mtlx_colortransform_srgb_texture_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'srgb_texture_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'srgb_texture_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_node = 'srgb_texture_to_lin_rec709'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color3',mtlx_colortransform_srgb_texture_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color4 -// -function mtlx_colortransform_srgb_texture_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'srgb_texture_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'srgb_texture_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_node = 'srgb_texture_to_lin_rec709'; -mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color4',mtlx_colortransform_srgb_texture_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color3 -// -function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'lin_adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'lin_adobergb_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_node = 'lin_adobergb_to_lin_rec709'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color3',mtlx_colortransform_lin_adobergb_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color4 -// -function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'lin_adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'lin_adobergb_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_node = 'lin_adobergb_to_lin_rec709'; -mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color4',mtlx_colortransform_lin_adobergb_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color3 -// -function mtlx_colortransform_adobergb_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'adobergb_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_node = 'adobergb_to_lin_rec709'; -mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color3',mtlx_colortransform_adobergb_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color4 -// -function mtlx_colortransform_adobergb_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'adobergb_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'adobergb_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_node = 'adobergb_to_lin_rec709'; -mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color4',mtlx_colortransform_adobergb_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3 -// -function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'srgb_displayp3_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_node = 'srgb_displayp3_to_lin_rec709'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3',mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4 -// -function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'srgb_displayp3_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_node = 'srgb_displayp3_to_lin_rec709'; -mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4',mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4); - -// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color3 -// -function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'lin_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color3_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'lin_displayp3_to_lin_rec709_color3'; - this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_node = 'lin_displayp3_to_lin_rec709'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color3',mtlx_colortransform_lin_displayp3_to_lin_rec709_color3); - -// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color4 -// -function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'lin_displayp3_to_lin_rec709'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color4_out_genglsl.png'; - this.nodedef_group = 'colortransform'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'lin_displayp3_to_lin_rec709_color4'; - this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_node = 'lin_displayp3_to_lin_rec709'; -mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; -LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color4',mtlx_colortransform_lin_displayp3_to_lin_rec709_color4); - -// MaterialX node type: mtlx/light/point_light -// -function mtlx_light_point_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_point_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'point_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_point_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('decay_rate','float'); - this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'point_light_lightshader'; - this.desc = "MaterialX:mtlx/light/point_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_point_light.nodedef_name = 'ND_point_light'; -mtlx_light_point_light.nodedef_node = 'point_light'; -mtlx_light_point_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; -LiteGraph.registerNodeType('mtlx/light/point_light',mtlx_light_point_light); - -// MaterialX node type: mtlx/light/directional_light -// -function mtlx_light_directional_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_directional_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'directional_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_directional_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'directional_light_lightshader'; - this.desc = "MaterialX:mtlx/light/directional_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_directional_light.nodedef_name = 'ND_directional_light'; -mtlx_light_directional_light.nodedef_node = 'directional_light'; -mtlx_light_directional_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; -LiteGraph.registerNodeType('mtlx/light/directional_light',mtlx_light_directional_light); - -// MaterialX node type: mtlx/light/spot_light -// -function mtlx_light_spot_light() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_spot_light'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'spot_light'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_spot_light_out_genglsl.png'; - this.nodedef_group = 'light'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color','color3'); - this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('intensity','float'); - this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('decay_rate','float'); - this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inner_angle','float'); - this.addProperty('inner_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outer_angle','float'); - this.addProperty('outer_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'spot_light_lightshader'; - this.desc = "MaterialX:mtlx/light/spot_light"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_light_spot_light.nodedef_name = 'ND_spot_light'; -mtlx_light_spot_light.nodedef_node = 'spot_light'; -mtlx_light_spot_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; -LiteGraph.registerNodeType('mtlx/light/spot_light',mtlx_light_spot_light); - -// MaterialX node type: mtlx/npr/viewdirection_vector3 -// -function mtlx_npr_viewdirection_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_viewdirection_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'viewdirection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_viewdirection_vector3_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('space','string'); - this.addProperty('space', 'world', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'viewdirection_vector3'; - this.desc = "MaterialX:mtlx/npr/viewdirection_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_npr_viewdirection_vector3.nodedef_name = 'ND_viewdirection_vector3'; -mtlx_npr_viewdirection_vector3.nodedef_node = 'viewdirection'; -mtlx_npr_viewdirection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; -LiteGraph.registerNodeType('mtlx/npr/viewdirection_vector3',mtlx_npr_viewdirection_vector3); - -// MaterialX node type: mtlx/npr/facingratio_float -// -function mtlx_npr_facingratio_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_facingratio_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'facingratio'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_facingratio_float_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('viewdirection','vector3'); - this.addProperty('viewdirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('faceforward','boolean'); - this.addProperty('faceforward', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('invert','boolean'); - this.addProperty('invert', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'facingratio_float'; - this.desc = "MaterialX:mtlx/npr/facingratio_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_npr_facingratio_float.nodedef_name = 'ND_facingratio_float'; -mtlx_npr_facingratio_float.nodedef_node = 'facingratio'; -mtlx_npr_facingratio_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; -LiteGraph.registerNodeType('mtlx/npr/facingratio_float',mtlx_npr_facingratio_float); - -// MaterialX node type: mtlx/npr/gooch_shade -// -function mtlx_npr_gooch_shade() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gooch_shade'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'gooch_shade'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gooch_shade_out_genglsl.png'; - this.nodedef_group = 'npr'; - this.addInput('warm_color','color3'); - this.addProperty('warm_color', [0.8, 0.8, 0.7], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Warm Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('cool_color','color3'); - this.addProperty('cool_color', [0.3, 0.3, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Cool Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_intensity','float'); - this.addProperty('specular_intensity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Intensity","uimin":"0","uimax":"1","uifolder":""}); - this.addInput('shininess','float'); - this.addProperty('shininess', 64, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Shininess","uimin":"1","uimax":null,"uifolder":""}); - this.addInput('light_direction','vector3'); - this.addProperty('light_direction', [1, -0.5, -0.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Light Direction","uimin":[-1,-1,-1],"uimax":[1,1,1],"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'gooch_shade_color3'; - this.desc = "MaterialX:mtlx/npr/gooch_shade"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_npr_gooch_shade.nodedef_name = 'ND_gooch_shade'; -mtlx_npr_gooch_shade.nodedef_node = 'gooch_shade'; -mtlx_npr_gooch_shade.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; -LiteGraph.registerNodeType('mtlx/npr/gooch_shade',mtlx_npr_gooch_shade); - -// MaterialX node type: mtlx/material/surfacematerial -// -function mtlx_material_surfacematerial() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surfacematerial'; - this.nodedef_type = 'material'; - this.nodedef_node = 'surfacematerial'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surfacematerial_out_genglsl.png'; - this.nodedef_group = 'material'; - this.addInput('surfaceshader','surfaceshader'); - this.addProperty('surfaceshader', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('displacementshader','displacementshader'); - this.addProperty('displacementshader', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','material'); - this.title = 'surfacematerial_material'; - this.desc = "MaterialX:mtlx/material/surfacematerial"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#151'; - this.shape = LiteGraph.BOX_SHAPE; -} -mtlx_material_surfacematerial.nodedef_name = 'ND_surfacematerial'; -mtlx_material_surfacematerial.nodedef_node = 'surfacematerial'; -mtlx_material_surfacematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; -LiteGraph.registerNodeType('mtlx/material/surfacematerial',mtlx_material_surfacematerial); - -// MaterialX node type: mtlx/material/volumematerial -// -function mtlx_material_volumematerial() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_volumematerial'; - this.nodedef_type = 'material'; - this.nodedef_node = 'volumematerial'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volumematerial_out_genglsl.png'; - this.nodedef_group = 'material'; - this.addInput('volumeshader','volumeshader'); - this.addProperty('volumeshader', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','material'); - this.title = 'volumematerial_material'; - this.desc = "MaterialX:mtlx/material/volumematerial"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#151'; - this.shape = LiteGraph.BOX_SHAPE; -} -mtlx_material_volumematerial.nodedef_name = 'ND_volumematerial'; -mtlx_material_volumematerial.nodedef_node = 'volumematerial'; -mtlx_material_volumematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; -LiteGraph.registerNodeType('mtlx/material/volumematerial',mtlx_material_volumematerial); - -// MaterialX node type: mtlx/shader/surface_unlit -// -function mtlx_shader_surface_unlit() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_surface_unlit'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'surface_unlit'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_unlit_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('emission','float'); - this.addProperty('emission', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'surface_unlit_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/surface_unlit"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_surface_unlit.nodedef_name = 'ND_surface_unlit'; -mtlx_shader_surface_unlit.nodedef_node = 'surface_unlit'; -mtlx_shader_surface_unlit.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; -LiteGraph.registerNodeType('mtlx/shader/surface_unlit',mtlx_shader_surface_unlit); - -// MaterialX node type: mtlx/texture2d/image_float -// -function mtlx_texture2d_image_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_float_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'image_float'; - this.desc = "MaterialX:mtlx/texture2d/image_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_image_float.nodedef_name = 'ND_image_float'; -mtlx_texture2d_image_float.nodedef_node = 'image'; -mtlx_texture2d_image_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_float',mtlx_texture2d_image_float); - -// MaterialX node type: mtlx/texture2d/image_color3 -// -function mtlx_texture2d_image_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'image_color3'; - this.desc = "MaterialX:mtlx/texture2d/image_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_image_color3.nodedef_name = 'ND_image_color3'; -mtlx_texture2d_image_color3.nodedef_node = 'image'; -mtlx_texture2d_image_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_color3',mtlx_texture2d_image_color3); - -// MaterialX node type: mtlx/texture2d/image_color4 -// -function mtlx_texture2d_image_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'image_color4'; - this.desc = "MaterialX:mtlx/texture2d/image_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_image_color4.nodedef_name = 'ND_image_color4'; -mtlx_texture2d_image_color4.nodedef_node = 'image'; -mtlx_texture2d_image_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_color4',mtlx_texture2d_image_color4); - -// MaterialX node type: mtlx/texture2d/image_vector2 -// -function mtlx_texture2d_image_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector2_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'image_vector2'; - this.desc = "MaterialX:mtlx/texture2d/image_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture2d_image_vector2.nodedef_name = 'ND_image_vector2'; -mtlx_texture2d_image_vector2.nodedef_node = 'image'; -mtlx_texture2d_image_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector2',mtlx_texture2d_image_vector2); - -// MaterialX node type: mtlx/texture2d/image_vector3 -// -function mtlx_texture2d_image_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'image_vector3'; - this.desc = "MaterialX:mtlx/texture2d/image_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_image_vector3.nodedef_name = 'ND_image_vector3'; -mtlx_texture2d_image_vector3.nodedef_node = 'image'; -mtlx_texture2d_image_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector3',mtlx_texture2d_image_vector3); - -// MaterialX node type: mtlx/texture2d/image_vector4 -// -function mtlx_texture2d_image_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_image_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layer','string'); - this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'image_vector4'; - this.desc = "MaterialX:mtlx/texture2d/image_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture2d_image_vector4.nodedef_name = 'ND_image_vector4'; -mtlx_texture2d_image_vector4.nodedef_node = 'image'; -mtlx_texture2d_image_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/image_vector4',mtlx_texture2d_image_vector4); - -// MaterialX node type: mtlx/texture2d/tiledimage_float -// -function mtlx_texture2d_tiledimage_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'tiledimage_float'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_tiledimage_float.nodedef_name = 'ND_tiledimage_float'; -mtlx_texture2d_tiledimage_float.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_float',mtlx_texture2d_tiledimage_float); - -// MaterialX node type: mtlx/texture2d/tiledimage_color3 -// -function mtlx_texture2d_tiledimage_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledimage_color3'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_tiledimage_color3.nodedef_name = 'ND_tiledimage_color3'; -mtlx_texture2d_tiledimage_color3.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color3',mtlx_texture2d_tiledimage_color3); - -// MaterialX node type: mtlx/texture2d/tiledimage_color4 -// -function mtlx_texture2d_tiledimage_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'tiledimage_color4'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_tiledimage_color4.nodedef_name = 'ND_tiledimage_color4'; -mtlx_texture2d_tiledimage_color4.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color4',mtlx_texture2d_tiledimage_color4); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector2 -// -function mtlx_texture2d_tiledimage_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector2_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'tiledimage_vector2'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture2d_tiledimage_vector2.nodedef_name = 'ND_tiledimage_vector2'; -mtlx_texture2d_tiledimage_vector2.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector2',mtlx_texture2d_tiledimage_vector2); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector3 -// -function mtlx_texture2d_tiledimage_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector3_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tiledimage_vector3'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_tiledimage_vector3.nodedef_name = 'ND_tiledimage_vector3'; -mtlx_texture2d_tiledimage_vector3.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector3',mtlx_texture2d_tiledimage_vector3); - -// MaterialX node type: mtlx/texture2d/tiledimage_vector4 -// -function mtlx_texture2d_tiledimage_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledimage_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'tiledimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector4_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldimagesize','vector2'); - this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('realworldtilesize','vector2'); - this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'tiledimage_vector4'; - this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture2d_tiledimage_vector4.nodedef_name = 'ND_tiledimage_vector4'; -mtlx_texture2d_tiledimage_vector4.nodedef_node = 'tiledimage'; -mtlx_texture2d_tiledimage_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector4',mtlx_texture2d_tiledimage_vector4); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_float -// -function mtlx_texture3d_triplanarprojection_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_float_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'triplanarprojection_float'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture3d_triplanarprojection_float.nodedef_name = 'ND_triplanarprojection_float'; -mtlx_texture3d_triplanarprojection_float.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_float',mtlx_texture3d_triplanarprojection_float); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_color3 -// -function mtlx_texture3d_triplanarprojection_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color3_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'triplanarprojection_color3'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture3d_triplanarprojection_color3.nodedef_name = 'ND_triplanarprojection_color3'; -mtlx_texture3d_triplanarprojection_color3.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color3',mtlx_texture3d_triplanarprojection_color3); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_color4 -// -function mtlx_texture3d_triplanarprojection_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color4_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'triplanarprojection_color4'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture3d_triplanarprojection_color4.nodedef_name = 'ND_triplanarprojection_color4'; -mtlx_texture3d_triplanarprojection_color4.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color4',mtlx_texture3d_triplanarprojection_color4); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector2 -// -function mtlx_texture3d_triplanarprojection_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector2_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'triplanarprojection_vector2'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_texture3d_triplanarprojection_vector2.nodedef_name = 'ND_triplanarprojection_vector2'; -mtlx_texture3d_triplanarprojection_vector2.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector2',mtlx_texture3d_triplanarprojection_vector2); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector3 -// -function mtlx_texture3d_triplanarprojection_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector3_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'triplanarprojection_vector3'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture3d_triplanarprojection_vector3.nodedef_name = 'ND_triplanarprojection_vector3'; -mtlx_texture3d_triplanarprojection_vector3.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector3',mtlx_texture3d_triplanarprojection_vector3); - -// MaterialX node type: mtlx/texture3d/triplanarprojection_vector4 -// -function mtlx_texture3d_triplanarprojection_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_triplanarprojection_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'triplanarprojection'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector4_out_genglsl.png'; - this.nodedef_group = 'texture3d'; - this.addInput('filex','filename'); - this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filey','filename'); - this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filez','filename'); - this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerx','string'); - this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layery','string'); - this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('layerz','string'); - this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('upaxis','integer'); - this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('blend','float'); - this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('framerange','string'); - this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameoffset','integer'); - this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('frameendaction','string'); - this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'triplanarprojection_vector4'; - this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_texture3d_triplanarprojection_vector4.nodedef_name = 'ND_triplanarprojection_vector4'; -mtlx_texture3d_triplanarprojection_vector4.nodedef_node = 'triplanarprojection'; -mtlx_texture3d_triplanarprojection_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; -LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector4',mtlx_texture3d_triplanarprojection_vector4); - -// MaterialX node type: mtlx/procedural/constant_float -// -function mtlx_procedural_constant_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_float_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','float'); - this.addProperty('value', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'constant_float'; - this.desc = "MaterialX:mtlx/procedural/constant_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_constant_float.nodedef_name = 'ND_constant_float'; -mtlx_procedural_constant_float.nodedef_node = 'constant'; -mtlx_procedural_constant_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_float',mtlx_procedural_constant_float); - -// MaterialX node type: mtlx/procedural/constant_color3 -// -function mtlx_procedural_constant_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color3_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','color3'); - this.addProperty('value', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'constant_color3'; - this.desc = "MaterialX:mtlx/procedural/constant_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural_constant_color3.nodedef_name = 'ND_constant_color3'; -mtlx_procedural_constant_color3.nodedef_node = 'constant'; -mtlx_procedural_constant_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_color3',mtlx_procedural_constant_color3); - -// MaterialX node type: mtlx/procedural/constant_color4 -// -function mtlx_procedural_constant_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color4_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','color4'); - this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'constant_color4'; - this.desc = "MaterialX:mtlx/procedural/constant_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural_constant_color4.nodedef_name = 'ND_constant_color4'; -mtlx_procedural_constant_color4.nodedef_node = 'constant'; -mtlx_procedural_constant_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_color4',mtlx_procedural_constant_color4); - -// MaterialX node type: mtlx/procedural/constant_vector2 -// -function mtlx_procedural_constant_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector2'); - this.addProperty('value', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'constant_vector2'; - this.desc = "MaterialX:mtlx/procedural/constant_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural_constant_vector2.nodedef_name = 'ND_constant_vector2'; -mtlx_procedural_constant_vector2.nodedef_node = 'constant'; -mtlx_procedural_constant_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector2',mtlx_procedural_constant_vector2); - -// MaterialX node type: mtlx/procedural/constant_vector3 -// -function mtlx_procedural_constant_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector3'); - this.addProperty('value', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'constant_vector3'; - this.desc = "MaterialX:mtlx/procedural/constant_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural_constant_vector3.nodedef_name = 'ND_constant_vector3'; -mtlx_procedural_constant_vector3.nodedef_node = 'constant'; -mtlx_procedural_constant_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector3',mtlx_procedural_constant_vector3); - -// MaterialX node type: mtlx/procedural/constant_vector4 -// -function mtlx_procedural_constant_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','vector4'); - this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'constant_vector4'; - this.desc = "MaterialX:mtlx/procedural/constant_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural_constant_vector4.nodedef_name = 'ND_constant_vector4'; -mtlx_procedural_constant_vector4.nodedef_node = 'constant'; -mtlx_procedural_constant_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_vector4',mtlx_procedural_constant_vector4); - -// MaterialX node type: mtlx/procedural/constant_boolean -// -function mtlx_procedural_constant_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_boolean_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','boolean'); - this.addProperty('value', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'constant_boolean'; - this.desc = "MaterialX:mtlx/procedural/constant_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_procedural_constant_boolean.nodedef_name = 'ND_constant_boolean'; -mtlx_procedural_constant_boolean.nodedef_node = 'constant'; -mtlx_procedural_constant_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_boolean',mtlx_procedural_constant_boolean); - -// MaterialX node type: mtlx/procedural/constant_integer -// -function mtlx_procedural_constant_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_integer_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','integer'); - this.addProperty('value', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'constant_integer'; - this.desc = "MaterialX:mtlx/procedural/constant_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural_constant_integer.nodedef_name = 'ND_constant_integer'; -mtlx_procedural_constant_integer.nodedef_node = 'constant'; -mtlx_procedural_constant_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_integer',mtlx_procedural_constant_integer); - -// MaterialX node type: mtlx/procedural/constant_matrix33 -// -function mtlx_procedural_constant_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix33_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','matrix33'); - this.addProperty('value', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'constant_matrix33'; - this.desc = "MaterialX:mtlx/procedural/constant_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_procedural_constant_matrix33.nodedef_name = 'ND_constant_matrix33'; -mtlx_procedural_constant_matrix33.nodedef_node = 'constant'; -mtlx_procedural_constant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_matrix33',mtlx_procedural_constant_matrix33); - -// MaterialX node type: mtlx/procedural/constant_matrix44 -// -function mtlx_procedural_constant_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix44_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','matrix44'); - this.addProperty('value', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'constant_matrix44'; - this.desc = "MaterialX:mtlx/procedural/constant_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_procedural_constant_matrix44.nodedef_name = 'ND_constant_matrix44'; -mtlx_procedural_constant_matrix44.nodedef_node = 'constant'; -mtlx_procedural_constant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_matrix44',mtlx_procedural_constant_matrix44); - -// MaterialX node type: mtlx/procedural/constant_string -// -function mtlx_procedural_constant_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_string_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','string'); - this.addProperty('value', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'constant_string'; - this.desc = "MaterialX:mtlx/procedural/constant_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_procedural_constant_string.nodedef_name = 'ND_constant_string'; -mtlx_procedural_constant_string.nodedef_node = 'constant'; -mtlx_procedural_constant_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_string',mtlx_procedural_constant_string); - -// MaterialX node type: mtlx/procedural/constant_filename -// -function mtlx_procedural_constant_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_constant_filename'; - this.nodedef_type = 'filename'; - this.nodedef_node = 'constant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_filename_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('value','filename'); - this.addProperty('value', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','filename'); - this.title = 'constant_filename'; - this.desc = "MaterialX:mtlx/procedural/constant_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#58E'; -} -mtlx_procedural_constant_filename.nodedef_name = 'ND_constant_filename'; -mtlx_procedural_constant_filename.nodedef_node = 'constant'; -mtlx_procedural_constant_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; -LiteGraph.registerNodeType('mtlx/procedural/constant_filename',mtlx_procedural_constant_filename); - -// MaterialX node type: mtlx/procedural2d/ramplr_float -// -function mtlx_procedural2d_ramplr_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','float'); - this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','float'); - this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramplr_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramplr_float.nodedef_name = 'ND_ramplr_float'; -mtlx_procedural2d_ramplr_float.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_float',mtlx_procedural2d_ramplr_float); - -// MaterialX node type: mtlx/procedural2d/ramplr_color3 -// -function mtlx_procedural2d_ramplr_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramplr_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramplr_color3.nodedef_name = 'ND_ramplr_color3'; -mtlx_procedural2d_ramplr_color3.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color3',mtlx_procedural2d_ramplr_color3); - -// MaterialX node type: mtlx/procedural2d/ramplr_color4 -// -function mtlx_procedural2d_ramplr_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramplr_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramplr_color4.nodedef_name = 'ND_ramplr_color4'; -mtlx_procedural2d_ramplr_color4.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color4',mtlx_procedural2d_ramplr_color4); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector2 -// -function mtlx_procedural2d_ramplr_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector2'); - this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector2'); - this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramplr_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramplr_vector2.nodedef_name = 'ND_ramplr_vector2'; -mtlx_procedural2d_ramplr_vector2.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector2',mtlx_procedural2d_ramplr_vector2); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector3 -// -function mtlx_procedural2d_ramplr_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramplr_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramplr_vector3.nodedef_name = 'ND_ramplr_vector3'; -mtlx_procedural2d_ramplr_vector3.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector3',mtlx_procedural2d_ramplr_vector3); - -// MaterialX node type: mtlx/procedural2d/ramplr_vector4 -// -function mtlx_procedural2d_ramplr_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramplr_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramplr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramplr_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramplr_vector4.nodedef_name = 'ND_ramplr_vector4'; -mtlx_procedural2d_ramplr_vector4.nodedef_node = 'ramplr'; -mtlx_procedural2d_ramplr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector4',mtlx_procedural2d_ramplr_vector4); - -// MaterialX node type: mtlx/procedural2d/ramptb_float -// -function mtlx_procedural2d_ramptb_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','float'); - this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','float'); - this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramptb_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramptb_float.nodedef_name = 'ND_ramptb_float'; -mtlx_procedural2d_ramptb_float.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_float',mtlx_procedural2d_ramptb_float); - -// MaterialX node type: mtlx/procedural2d/ramptb_color3 -// -function mtlx_procedural2d_ramptb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramptb_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramptb_color3.nodedef_name = 'ND_ramptb_color3'; -mtlx_procedural2d_ramptb_color3.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color3',mtlx_procedural2d_ramptb_color3); - -// MaterialX node type: mtlx/procedural2d/ramptb_color4 -// -function mtlx_procedural2d_ramptb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramptb_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramptb_color4.nodedef_name = 'ND_ramptb_color4'; -mtlx_procedural2d_ramptb_color4.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color4',mtlx_procedural2d_ramptb_color4); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector2 -// -function mtlx_procedural2d_ramptb_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector2'); - this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector2'); - this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramptb_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramptb_vector2.nodedef_name = 'ND_ramptb_vector2'; -mtlx_procedural2d_ramptb_vector2.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector2',mtlx_procedural2d_ramptb_vector2); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector3 -// -function mtlx_procedural2d_ramptb_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramptb_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramptb_vector3.nodedef_name = 'ND_ramptb_vector3'; -mtlx_procedural2d_ramptb_vector3.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector3',mtlx_procedural2d_ramptb_vector3); - -// MaterialX node type: mtlx/procedural2d/ramptb_vector4 -// -function mtlx_procedural2d_ramptb_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramptb_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramptb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramptb_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramptb_vector4.nodedef_name = 'ND_ramptb_vector4'; -mtlx_procedural2d_ramptb_vector4.nodedef_node = 'ramptb'; -mtlx_procedural2d_ramptb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector4',mtlx_procedural2d_ramptb_vector4); - -// MaterialX node type: mtlx/procedural2d/ramp4_float -// -function mtlx_procedural2d_ramp4_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','float'); - this.addProperty('valuetl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','float'); - this.addProperty('valuetr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','float'); - this.addProperty('valuebl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','float'); - this.addProperty('valuebr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ramp4_float'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_ramp4_float.nodedef_name = 'ND_ramp4_float'; -mtlx_procedural2d_ramp4_float.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_float',mtlx_procedural2d_ramp4_float); - -// MaterialX node type: mtlx/procedural2d/ramp4_color3 -// -function mtlx_procedural2d_ramp4_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','color3'); - this.addProperty('valuetl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','color3'); - this.addProperty('valuetr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','color3'); - this.addProperty('valuebl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','color3'); - this.addProperty('valuebr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ramp4_color3'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_ramp4_color3.nodedef_name = 'ND_ramp4_color3'; -mtlx_procedural2d_ramp4_color3.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color3',mtlx_procedural2d_ramp4_color3); - -// MaterialX node type: mtlx/procedural2d/ramp4_color4 -// -function mtlx_procedural2d_ramp4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','color4'); - this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','color4'); - this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','color4'); - this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','color4'); - this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ramp4_color4'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_ramp4_color4.nodedef_name = 'ND_ramp4_color4'; -mtlx_procedural2d_ramp4_color4.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color4',mtlx_procedural2d_ramp4_color4); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector2 -// -function mtlx_procedural2d_ramp4_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector2'); - this.addProperty('valuetl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector2'); - this.addProperty('valuetr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector2'); - this.addProperty('valuebl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector2'); - this.addProperty('valuebr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ramp4_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_ramp4_vector2.nodedef_name = 'ND_ramp4_vector2'; -mtlx_procedural2d_ramp4_vector2.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector2',mtlx_procedural2d_ramp4_vector2); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector3 -// -function mtlx_procedural2d_ramp4_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector3'); - this.addProperty('valuetl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector3'); - this.addProperty('valuetr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector3'); - this.addProperty('valuebl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector3'); - this.addProperty('valuebr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ramp4_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_ramp4_vector3.nodedef_name = 'ND_ramp4_vector3'; -mtlx_procedural2d_ramp4_vector3.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector3',mtlx_procedural2d_ramp4_vector3); - -// MaterialX node type: mtlx/procedural2d/ramp4_vector4 -// -function mtlx_procedural2d_ramp4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ramp4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ramp4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuetl','vector4'); - this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuetr','vector4'); - this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebl','vector4'); - this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuebr','vector4'); - this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ramp4_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_ramp4_vector4.nodedef_name = 'ND_ramp4_vector4'; -mtlx_procedural2d_ramp4_vector4.nodedef_node = 'ramp4'; -mtlx_procedural2d_ramp4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector4',mtlx_procedural2d_ramp4_vector4); - -// MaterialX node type: mtlx/procedural2d/splitlr_float -// -function mtlx_procedural2d_splitlr_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','float'); - this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','float'); - this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'splitlr_float'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_splitlr_float.nodedef_name = 'ND_splitlr_float'; -mtlx_procedural2d_splitlr_float.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_float',mtlx_procedural2d_splitlr_float); - -// MaterialX node type: mtlx/procedural2d/splitlr_color3 -// -function mtlx_procedural2d_splitlr_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'splitlr_color3'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_splitlr_color3.nodedef_name = 'ND_splitlr_color3'; -mtlx_procedural2d_splitlr_color3.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color3',mtlx_procedural2d_splitlr_color3); - -// MaterialX node type: mtlx/procedural2d/splitlr_color4 -// -function mtlx_procedural2d_splitlr_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','color4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','color4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'splitlr_color4'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_splitlr_color4.nodedef_name = 'ND_splitlr_color4'; -mtlx_procedural2d_splitlr_color4.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color4',mtlx_procedural2d_splitlr_color4); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector2 -// -function mtlx_procedural2d_splitlr_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector2'); - this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector2'); - this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'splitlr_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_splitlr_vector2.nodedef_name = 'ND_splitlr_vector2'; -mtlx_procedural2d_splitlr_vector2.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector2',mtlx_procedural2d_splitlr_vector2); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector3 -// -function mtlx_procedural2d_splitlr_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector3'); - this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector3'); - this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'splitlr_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_splitlr_vector3.nodedef_name = 'ND_splitlr_vector3'; -mtlx_procedural2d_splitlr_vector3.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector3',mtlx_procedural2d_splitlr_vector3); - -// MaterialX node type: mtlx/procedural2d/splitlr_vector4 -// -function mtlx_procedural2d_splitlr_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splitlr_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'splitlr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuel','vector4'); - this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valuer','vector4'); - this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'splitlr_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_splitlr_vector4.nodedef_name = 'ND_splitlr_vector4'; -mtlx_procedural2d_splitlr_vector4.nodedef_node = 'splitlr'; -mtlx_procedural2d_splitlr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector4',mtlx_procedural2d_splitlr_vector4); - -// MaterialX node type: mtlx/procedural2d/splittb_float -// -function mtlx_procedural2d_splittb_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','float'); - this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','float'); - this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'splittb_float'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_splittb_float.nodedef_name = 'ND_splittb_float'; -mtlx_procedural2d_splittb_float.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_float',mtlx_procedural2d_splittb_float); - -// MaterialX node type: mtlx/procedural2d/splittb_color3 -// -function mtlx_procedural2d_splittb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'splittb_color3'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_splittb_color3.nodedef_name = 'ND_splittb_color3'; -mtlx_procedural2d_splittb_color3.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color3',mtlx_procedural2d_splittb_color3); - -// MaterialX node type: mtlx/procedural2d/splittb_color4 -// -function mtlx_procedural2d_splittb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','color4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','color4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'splittb_color4'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_splittb_color4.nodedef_name = 'ND_splittb_color4'; -mtlx_procedural2d_splittb_color4.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color4',mtlx_procedural2d_splittb_color4); - -// MaterialX node type: mtlx/procedural2d/splittb_vector2 -// -function mtlx_procedural2d_splittb_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector2'); - this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector2'); - this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'splittb_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_splittb_vector2.nodedef_name = 'ND_splittb_vector2'; -mtlx_procedural2d_splittb_vector2.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector2',mtlx_procedural2d_splittb_vector2); - -// MaterialX node type: mtlx/procedural2d/splittb_vector3 -// -function mtlx_procedural2d_splittb_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector3'); - this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector3'); - this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'splittb_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_splittb_vector3.nodedef_name = 'ND_splittb_vector3'; -mtlx_procedural2d_splittb_vector3.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector3',mtlx_procedural2d_splittb_vector3); - -// MaterialX node type: mtlx/procedural2d/splittb_vector4 -// -function mtlx_procedural2d_splittb_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_splittb_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'splittb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('valuet','vector4'); - this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('valueb','vector4'); - this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','float'); - this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'splittb_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/splittb_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_splittb_vector4.nodedef_name = 'ND_splittb_vector4'; -mtlx_procedural2d_splittb_vector4.nodedef_node = 'splittb'; -mtlx_procedural2d_splittb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector4',mtlx_procedural2d_splittb_vector4); - -// MaterialX node type: mtlx/procedural2d/noise2d_float -// -function mtlx_procedural2d_noise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'noise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_noise2d_float.nodedef_name = 'ND_noise2d_float'; -mtlx_procedural2d_noise2d_float.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_float',mtlx_procedural2d_noise2d_float); - -// MaterialX node type: mtlx/procedural2d/noise2d_color3 -// -function mtlx_procedural2d_noise2d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise2d_color3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_noise2d_color3.nodedef_name = 'ND_noise2d_color3'; -mtlx_procedural2d_noise2d_color3.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3',mtlx_procedural2d_noise2d_color3); - -// MaterialX node type: mtlx/procedural2d/noise2d_color4 -// -function mtlx_procedural2d_noise2d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise2d_color4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_noise2d_color4.nodedef_name = 'ND_noise2d_color4'; -mtlx_procedural2d_noise2d_color4.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4',mtlx_procedural2d_noise2d_color4); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector2 -// -function mtlx_procedural2d_noise2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_noise2d_vector2.nodedef_name = 'ND_noise2d_vector2'; -mtlx_procedural2d_noise2d_vector2.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2',mtlx_procedural2d_noise2d_vector2); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector3 -// -function mtlx_procedural2d_noise2d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_noise2d_vector3.nodedef_name = 'ND_noise2d_vector3'; -mtlx_procedural2d_noise2d_vector3.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3',mtlx_procedural2d_noise2d_vector3); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector4 -// -function mtlx_procedural2d_noise2d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise2d_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_noise2d_vector4.nodedef_name = 'ND_noise2d_vector4'; -mtlx_procedural2d_noise2d_vector4.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4',mtlx_procedural2d_noise2d_vector4); - -// MaterialX node type: mtlx/procedural2d/noise2d_color3FA -// -function mtlx_procedural2d_noise2d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise2d_color3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_noise2d_color3FA.nodedef_name = 'ND_noise2d_color3FA'; -mtlx_procedural2d_noise2d_color3FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3FA',mtlx_procedural2d_noise2d_color3FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_color4FA -// -function mtlx_procedural2d_noise2d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise2d_color4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural2d_noise2d_color4FA.nodedef_name = 'ND_noise2d_color4FA'; -mtlx_procedural2d_noise2d_color4FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4FA',mtlx_procedural2d_noise2d_color4FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector2FA -// -function mtlx_procedural2d_noise2d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_noise2d_vector2FA.nodedef_name = 'ND_noise2d_vector2FA'; -mtlx_procedural2d_noise2d_vector2FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2FA',mtlx_procedural2d_noise2d_vector2FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector3FA -// -function mtlx_procedural2d_noise2d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_noise2d_vector3FA.nodedef_name = 'ND_noise2d_vector3FA'; -mtlx_procedural2d_noise2d_vector3FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3FA',mtlx_procedural2d_noise2d_vector3FA); - -// MaterialX node type: mtlx/procedural2d/noise2d_vector4FA -// -function mtlx_procedural2d_noise2d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise2d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise2d_vector4'; - this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural2d_noise2d_vector4FA.nodedef_name = 'ND_noise2d_vector4FA'; -mtlx_procedural2d_noise2d_vector4FA.nodedef_node = 'noise2d'; -mtlx_procedural2d_noise2d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4FA',mtlx_procedural2d_noise2d_vector4FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_float -// -function mtlx_procedural3d_noise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'noise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_noise3d_float.nodedef_name = 'ND_noise3d_float'; -mtlx_procedural3d_noise3d_float.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_float',mtlx_procedural3d_noise3d_float); - -// MaterialX node type: mtlx/procedural3d/noise3d_color3 -// -function mtlx_procedural3d_noise3d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_noise3d_color3.nodedef_name = 'ND_noise3d_color3'; -mtlx_procedural3d_noise3d_color3.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3',mtlx_procedural3d_noise3d_color3); - -// MaterialX node type: mtlx/procedural3d/noise3d_color4 -// -function mtlx_procedural3d_noise3d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_noise3d_color4.nodedef_name = 'ND_noise3d_color4'; -mtlx_procedural3d_noise3d_color4.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4',mtlx_procedural3d_noise3d_color4); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector2 -// -function mtlx_procedural3d_noise3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_noise3d_vector2.nodedef_name = 'ND_noise3d_vector2'; -mtlx_procedural3d_noise3d_vector2.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2',mtlx_procedural3d_noise3d_vector2); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector3 -// -function mtlx_procedural3d_noise3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_noise3d_vector3.nodedef_name = 'ND_noise3d_vector3'; -mtlx_procedural3d_noise3d_vector3.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3',mtlx_procedural3d_noise3d_vector3); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector4 -// -function mtlx_procedural3d_noise3d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_noise3d_vector4.nodedef_name = 'ND_noise3d_vector4'; -mtlx_procedural3d_noise3d_vector4.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4',mtlx_procedural3d_noise3d_vector4); - -// MaterialX node type: mtlx/procedural3d/noise3d_color3FA -// -function mtlx_procedural3d_noise3d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'noise3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_noise3d_color3FA.nodedef_name = 'ND_noise3d_color3FA'; -mtlx_procedural3d_noise3d_color3FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3FA',mtlx_procedural3d_noise3d_color3FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_color4FA -// -function mtlx_procedural3d_noise3d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'noise3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_noise3d_color4FA.nodedef_name = 'ND_noise3d_color4FA'; -mtlx_procedural3d_noise3d_color4FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4FA',mtlx_procedural3d_noise3d_color4FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector2FA -// -function mtlx_procedural3d_noise3d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'noise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_noise3d_vector2FA.nodedef_name = 'ND_noise3d_vector2FA'; -mtlx_procedural3d_noise3d_vector2FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2FA',mtlx_procedural3d_noise3d_vector2FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector3FA -// -function mtlx_procedural3d_noise3d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'noise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_noise3d_vector3FA.nodedef_name = 'ND_noise3d_vector3FA'; -mtlx_procedural3d_noise3d_vector3FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3FA',mtlx_procedural3d_noise3d_vector3FA); - -// MaterialX node type: mtlx/procedural3d/noise3d_vector4FA -// -function mtlx_procedural3d_noise3d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_noise3d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'noise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'noise3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_noise3d_vector4FA.nodedef_name = 'ND_noise3d_vector4FA'; -mtlx_procedural3d_noise3d_vector4FA.nodedef_node = 'noise3d'; -mtlx_procedural3d_noise3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4FA',mtlx_procedural3d_noise3d_vector4FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_float -// -function mtlx_procedural3d_fractal3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'fractal3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_fractal3d_float.nodedef_name = 'ND_fractal3d_float'; -mtlx_procedural3d_fractal3d_float.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_float',mtlx_procedural3d_fractal3d_float); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color3 -// -function mtlx_procedural3d_fractal3d_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'fractal3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_fractal3d_color3.nodedef_name = 'ND_fractal3d_color3'; -mtlx_procedural3d_fractal3d_color3.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3',mtlx_procedural3d_fractal3d_color3); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color4 -// -function mtlx_procedural3d_fractal3d_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'fractal3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_fractal3d_color4.nodedef_name = 'ND_fractal3d_color4'; -mtlx_procedural3d_fractal3d_color4.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4',mtlx_procedural3d_fractal3d_color4); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector2 -// -function mtlx_procedural3d_fractal3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector2'); - this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'fractal3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_fractal3d_vector2.nodedef_name = 'ND_fractal3d_vector2'; -mtlx_procedural3d_fractal3d_vector2.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2',mtlx_procedural3d_fractal3d_vector2); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector3 -// -function mtlx_procedural3d_fractal3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector3'); - this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'fractal3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_fractal3d_vector3.nodedef_name = 'ND_fractal3d_vector3'; -mtlx_procedural3d_fractal3d_vector3.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3',mtlx_procedural3d_fractal3d_vector3); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector4 -// -function mtlx_procedural3d_fractal3d_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','vector4'); - this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'fractal3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_fractal3d_vector4.nodedef_name = 'ND_fractal3d_vector4'; -mtlx_procedural3d_fractal3d_vector4.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4',mtlx_procedural3d_fractal3d_vector4); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color3FA -// -function mtlx_procedural3d_fractal3d_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'fractal3d_color3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_fractal3d_color3FA.nodedef_name = 'ND_fractal3d_color3FA'; -mtlx_procedural3d_fractal3d_color3FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3FA',mtlx_procedural3d_fractal3d_color3FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_color4FA -// -function mtlx_procedural3d_fractal3d_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'fractal3d_color4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_procedural3d_fractal3d_color4FA.nodedef_name = 'ND_fractal3d_color4FA'; -mtlx_procedural3d_fractal3d_color4FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4FA',mtlx_procedural3d_fractal3d_color4FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector2FA -// -function mtlx_procedural3d_fractal3d_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'fractal3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_fractal3d_vector2FA.nodedef_name = 'ND_fractal3d_vector2FA'; -mtlx_procedural3d_fractal3d_vector2FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2FA',mtlx_procedural3d_fractal3d_vector2FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector3FA -// -function mtlx_procedural3d_fractal3d_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'fractal3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_fractal3d_vector3FA.nodedef_name = 'ND_fractal3d_vector3FA'; -mtlx_procedural3d_fractal3d_vector3FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3FA',mtlx_procedural3d_fractal3d_vector3FA); - -// MaterialX node type: mtlx/procedural3d/fractal3d_vector4FA -// -function mtlx_procedural3d_fractal3d_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_fractal3d_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'fractal3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4FA_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('amplitude','float'); - this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'fractal3d_vector4'; - this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_procedural3d_fractal3d_vector4FA.nodedef_name = 'ND_fractal3d_vector4FA'; -mtlx_procedural3d_fractal3d_vector4FA.nodedef_node = 'fractal3d'; -mtlx_procedural3d_fractal3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4FA',mtlx_procedural3d_fractal3d_vector4FA); - -// MaterialX node type: mtlx/procedural2d/cellnoise2d_float -// -function mtlx_procedural2d_cellnoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cellnoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cellnoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cellnoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/cellnoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_cellnoise2d_float.nodedef_name = 'ND_cellnoise2d_float'; -mtlx_procedural2d_cellnoise2d_float.nodedef_node = 'cellnoise2d'; -mtlx_procedural2d_cellnoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/cellnoise2d_float',mtlx_procedural2d_cellnoise2d_float); - -// MaterialX node type: mtlx/procedural3d/cellnoise3d_float -// -function mtlx_procedural3d_cellnoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cellnoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cellnoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cellnoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/cellnoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_cellnoise3d_float.nodedef_name = 'ND_cellnoise3d_float'; -mtlx_procedural3d_cellnoise3d_float.nodedef_node = 'cellnoise3d'; -mtlx_procedural3d_cellnoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/cellnoise3d_float',mtlx_procedural3d_cellnoise3d_float); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_float -// -function mtlx_procedural2d_worleynoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'worleynoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_worleynoise2d_float.nodedef_name = 'ND_worleynoise2d_float'; -mtlx_procedural2d_worleynoise2d_float.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_float',mtlx_procedural2d_worleynoise2d_float); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector2 -// -function mtlx_procedural2d_worleynoise2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'worleynoise2d_vector2'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural2d_worleynoise2d_vector2.nodedef_name = 'ND_worleynoise2d_vector2'; -mtlx_procedural2d_worleynoise2d_vector2.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector2',mtlx_procedural2d_worleynoise2d_vector2); - -// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector3 -// -function mtlx_procedural2d_worleynoise2d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise2d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'worleynoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'worleynoise2d_vector3'; - this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural2d_worleynoise2d_vector3.nodedef_name = 'ND_worleynoise2d_vector3'; -mtlx_procedural2d_worleynoise2d_vector3.nodedef_node = 'worleynoise2d'; -mtlx_procedural2d_worleynoise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector3',mtlx_procedural2d_worleynoise2d_vector3); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_float -// -function mtlx_procedural3d_worleynoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'worleynoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_worleynoise3d_float.nodedef_name = 'ND_worleynoise3d_float'; -mtlx_procedural3d_worleynoise3d_float.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_float',mtlx_procedural3d_worleynoise3d_float); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector2 -// -function mtlx_procedural3d_worleynoise3d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector2_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'worleynoise3d_vector2'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_procedural3d_worleynoise3d_vector2.nodedef_name = 'ND_worleynoise3d_vector2'; -mtlx_procedural3d_worleynoise3d_vector2.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector2',mtlx_procedural3d_worleynoise3d_vector2); - -// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector3 -// -function mtlx_procedural3d_worleynoise3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_worleynoise3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'worleynoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector3_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'worleynoise3d_vector3'; - this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_procedural3d_worleynoise3d_vector3.nodedef_name = 'ND_worleynoise3d_vector3'; -mtlx_procedural3d_worleynoise3d_vector3.nodedef_node = 'worleynoise3d'; -mtlx_procedural3d_worleynoise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector3',mtlx_procedural3d_worleynoise3d_vector3); - -// MaterialX node type: mtlx/procedural2d/unifiednoise2d_float -// -function mtlx_procedural2d_unifiednoise2d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unifiednoise2d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'unifiednoise2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise2d_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('freq','vector2'); - this.addProperty('freq', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('outmin','float'); - this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('outmax','float'); - this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('clampoutput','boolean'); - this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('type','integer'); - this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addOutput('out','float'); - this.title = 'unifiednoise2d_float'; - this.desc = "MaterialX:mtlx/procedural2d/unifiednoise2d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_unifiednoise2d_float.nodedef_name = 'ND_unifiednoise2d_float'; -mtlx_procedural2d_unifiednoise2d_float.nodedef_node = 'unifiednoise2d'; -mtlx_procedural2d_unifiednoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/unifiednoise2d_float',mtlx_procedural2d_unifiednoise2d_float); - -// MaterialX node type: mtlx/procedural3d/unifiednoise3d_float -// -function mtlx_procedural3d_unifiednoise3d_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unifiednoise3d_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'unifiednoise3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise3d_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('position','vector3'); - this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('freq','vector3'); - this.addProperty('freq', [1, 1, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('offset','vector3'); - this.addProperty('offset', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('jitter','float'); - this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addInput('outmin','float'); - this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('outmax','float'); - this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('clampoutput','boolean'); - this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process"}); - this.addInput('octaves','integer'); - this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('lacunarity','float'); - this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('diminish','float'); - this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":null,"uimax":null,"uifolder":"Fractal"}); - this.addInput('type','integer'); - this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":null,"uimax":null,"uifolder":"Common"}); - this.addOutput('out','float'); - this.title = 'unifiednoise3d_float'; - this.desc = "MaterialX:mtlx/procedural3d/unifiednoise3d_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural3d_unifiednoise3d_float.nodedef_name = 'ND_unifiednoise3d_float'; -mtlx_procedural3d_unifiednoise3d_float.nodedef_node = 'unifiednoise3d'; -mtlx_procedural3d_unifiednoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/unifiednoise3d_float',mtlx_procedural3d_unifiednoise3d_float); - -// MaterialX node type: mtlx/procedural/randomfloat_float -// -function mtlx_procedural_randomfloat_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomfloat_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'randomfloat'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_float_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('min','float'); - this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('max','float'); - this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'randomfloat_float'; - this.desc = "MaterialX:mtlx/procedural/randomfloat_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_randomfloat_float.nodedef_name = 'ND_randomfloat_float'; -mtlx_procedural_randomfloat_float.nodedef_node = 'randomfloat'; -mtlx_procedural_randomfloat_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; -LiteGraph.registerNodeType('mtlx/procedural/randomfloat_float',mtlx_procedural_randomfloat_float); - -// MaterialX node type: mtlx/procedural/randomfloat_integer -// -function mtlx_procedural_randomfloat_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomfloat_integer'; - this.nodedef_type = 'float'; - this.nodedef_node = 'randomfloat'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_integer_out_genglsl.png'; - this.nodedef_group = 'procedural'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('min','float'); - this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('max','float'); - this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'randomfloat_float'; - this.desc = "MaterialX:mtlx/procedural/randomfloat_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural_randomfloat_integer.nodedef_name = 'ND_randomfloat_integer'; -mtlx_procedural_randomfloat_integer.nodedef_node = 'randomfloat'; -mtlx_procedural_randomfloat_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; -LiteGraph.registerNodeType('mtlx/procedural/randomfloat_integer',mtlx_procedural_randomfloat_integer); - -// MaterialX node type: mtlx/procedural3d/randomcolor_float -// -function mtlx_procedural3d_randomcolor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomcolor_float'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'randomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_float_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huelow','float'); - this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huehigh','float'); - this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationlow','float'); - this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationhigh','float'); - this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesslow','float'); - this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesshigh','float'); - this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'randomcolor_color3'; - this.desc = "MaterialX:mtlx/procedural3d/randomcolor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_randomcolor_float.nodedef_name = 'ND_randomcolor_float'; -mtlx_procedural3d_randomcolor_float.nodedef_node = 'randomcolor'; -mtlx_procedural3d_randomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_float',mtlx_procedural3d_randomcolor_float); - -// MaterialX node type: mtlx/procedural3d/randomcolor_integer -// -function mtlx_procedural3d_randomcolor_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_randomcolor_integer'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'randomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_integer_out_genglsl.png'; - this.nodedef_group = 'procedural3d'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huelow','float'); - this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('huehigh','float'); - this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationlow','float'); - this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturationhigh','float'); - this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesslow','float'); - this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('brightnesshigh','float'); - this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('seed','integer'); - this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'randomcolor_color3'; - this.desc = "MaterialX:mtlx/procedural3d/randomcolor_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural3d_randomcolor_integer.nodedef_name = 'ND_randomcolor_integer'; -mtlx_procedural3d_randomcolor_integer.nodedef_node = 'randomcolor'; -mtlx_procedural3d_randomcolor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; -LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_integer',mtlx_procedural3d_randomcolor_integer); - -// MaterialX node type: mtlx/procedural2d/checkerboard_color3 -// -function mtlx_procedural2d_checkerboard_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_checkerboard_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'checkerboard'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_checkerboard_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('color1','color3'); - this.addProperty('color1', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('color2','color3'); - this.addProperty('color2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [8, 8], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Tiling","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Offset","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'checkerboard_color3'; - this.desc = "MaterialX:mtlx/procedural2d/checkerboard_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_checkerboard_color3.nodedef_name = 'ND_checkerboard_color3'; -mtlx_procedural2d_checkerboard_color3.nodedef_node = 'checkerboard'; -mtlx_procedural2d_checkerboard_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/checkerboard_color3',mtlx_procedural2d_checkerboard_color3); - -// MaterialX node type: mtlx/procedural2d/line_float -// -function mtlx_procedural2d_line_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_line_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'line'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_line_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('point1','vector2'); - this.addProperty('point1', [0.25, 0.25], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('point2','vector2'); - this.addProperty('point2', [0.75, 0.75], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'line_float'; - this.desc = "MaterialX:mtlx/procedural2d/line_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_line_float.nodedef_name = 'ND_line_float'; -mtlx_procedural2d_line_float.nodedef_node = 'line'; -mtlx_procedural2d_line_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/line_float',mtlx_procedural2d_line_float); - -// MaterialX node type: mtlx/procedural2d/circle_float -// -function mtlx_procedural2d_circle_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_circle_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'circle'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_circle_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'circle_float'; - this.desc = "MaterialX:mtlx/procedural2d/circle_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_circle_float.nodedef_name = 'ND_circle_float'; -mtlx_procedural2d_circle_float.nodedef_node = 'circle'; -mtlx_procedural2d_circle_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/circle_float',mtlx_procedural2d_circle_float); - -// MaterialX node type: mtlx/procedural2d/cloverleaf_float -// -function mtlx_procedural2d_cloverleaf_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cloverleaf_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cloverleaf'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cloverleaf_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cloverleaf_float'; - this.desc = "MaterialX:mtlx/procedural2d/cloverleaf_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_cloverleaf_float.nodedef_name = 'ND_cloverleaf_float'; -mtlx_procedural2d_cloverleaf_float.nodedef_node = 'cloverleaf'; -mtlx_procedural2d_cloverleaf_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/cloverleaf_float',mtlx_procedural2d_cloverleaf_float); - -// MaterialX node type: mtlx/procedural2d/hexagon_float -// -function mtlx_procedural2d_hexagon_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hexagon_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'hexagon'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hexagon_float_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('center','vector2'); - this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('radius','float'); - this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'hexagon_float'; - this.desc = "MaterialX:mtlx/procedural2d/hexagon_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_procedural2d_hexagon_float.nodedef_name = 'ND_hexagon_float'; -mtlx_procedural2d_hexagon_float.nodedef_node = 'hexagon'; -mtlx_procedural2d_hexagon_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/hexagon_float',mtlx_procedural2d_hexagon_float); - -// MaterialX node type: mtlx/procedural2d/grid_color3 -// -function mtlx_procedural2d_grid_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_grid_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'grid'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_grid_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'grid_color3'; - this.desc = "MaterialX:mtlx/procedural2d/grid_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_grid_color3.nodedef_name = 'ND_grid_color3'; -mtlx_procedural2d_grid_color3.nodedef_node = 'grid'; -mtlx_procedural2d_grid_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/grid_color3',mtlx_procedural2d_grid_color3); - -// MaterialX node type: mtlx/procedural2d/crosshatch_color3 -// -function mtlx_procedural2d_crosshatch_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_crosshatch_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'crosshatch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crosshatch_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'crosshatch_color3'; - this.desc = "MaterialX:mtlx/procedural2d/crosshatch_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_crosshatch_color3.nodedef_name = 'ND_crosshatch_color3'; -mtlx_procedural2d_crosshatch_color3.nodedef_node = 'crosshatch'; -mtlx_procedural2d_crosshatch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/crosshatch_color3',mtlx_procedural2d_crosshatch_color3); - -// MaterialX node type: mtlx/procedural2d/tiledcircles_color3 -// -function mtlx_procedural2d_tiledcircles_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledcircles_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledcircles'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcircles_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledcircles_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledcircles_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledcircles_color3.nodedef_name = 'ND_tiledcircles_color3'; -mtlx_procedural2d_tiledcircles_color3.nodedef_node = 'tiledcircles'; -mtlx_procedural2d_tiledcircles_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledcircles_color3',mtlx_procedural2d_tiledcircles_color3); - -// MaterialX node type: mtlx/procedural2d/tiledcloverleafs_color3 -// -function mtlx_procedural2d_tiledcloverleafs_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledcloverleafs_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledcloverleafs'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcloverleafs_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledcloverleafs_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledcloverleafs_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_name = 'ND_tiledcloverleafs_color3'; -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_node = 'tiledcloverleafs'; -mtlx_procedural2d_tiledcloverleafs_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledcloverleafs_color3',mtlx_procedural2d_tiledcloverleafs_color3); - -// MaterialX node type: mtlx/procedural2d/tiledhexagons_color3 -// -function mtlx_procedural2d_tiledhexagons_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tiledhexagons_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'tiledhexagons'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledhexagons_color3_out_genglsl.png'; - this.nodedef_group = 'procedural2d'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvtiling','vector2'); - this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uvoffset','vector2'); - this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('staggered','boolean'); - this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'tiledhexagons_color3'; - this.desc = "MaterialX:mtlx/procedural2d/tiledhexagons_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_procedural2d_tiledhexagons_color3.nodedef_name = 'ND_tiledhexagons_color3'; -mtlx_procedural2d_tiledhexagons_color3.nodedef_node = 'tiledhexagons'; -mtlx_procedural2d_tiledhexagons_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; -LiteGraph.registerNodeType('mtlx/procedural2d/tiledhexagons_color3',mtlx_procedural2d_tiledhexagons_color3); - -// MaterialX node type: mtlx/geometric/position_vector3 -// -function mtlx_geometric_position_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_position_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'position'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_position_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'position_vector3'; - this.desc = "MaterialX:mtlx/geometric/position_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_position_vector3.nodedef_name = 'ND_position_vector3'; -mtlx_geometric_position_vector3.nodedef_node = 'position'; -mtlx_geometric_position_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; -LiteGraph.registerNodeType('mtlx/geometric/position_vector3',mtlx_geometric_position_vector3); - -// MaterialX node type: mtlx/geometric/normal_vector3 -// -function mtlx_geometric_normal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normal_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normal_vector3'; - this.desc = "MaterialX:mtlx/geometric/normal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_normal_vector3.nodedef_name = 'ND_normal_vector3'; -mtlx_geometric_normal_vector3.nodedef_node = 'normal'; -mtlx_geometric_normal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; -LiteGraph.registerNodeType('mtlx/geometric/normal_vector3',mtlx_geometric_normal_vector3); - -// MaterialX node type: mtlx/geometric/tangent_vector3 -// -function mtlx_geometric_tangent_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tangent_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tangent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tangent_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tangent_vector3'; - this.desc = "MaterialX:mtlx/geometric/tangent_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_tangent_vector3.nodedef_name = 'ND_tangent_vector3'; -mtlx_geometric_tangent_vector3.nodedef_node = 'tangent'; -mtlx_geometric_tangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; -LiteGraph.registerNodeType('mtlx/geometric/tangent_vector3',mtlx_geometric_tangent_vector3); - -// MaterialX node type: mtlx/geometric/bitangent_vector3 -// -function mtlx_geometric_bitangent_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_bitangent_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'bitangent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bitangent_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('space','string'); - this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'bitangent_vector3'; - this.desc = "MaterialX:mtlx/geometric/bitangent_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_bitangent_vector3.nodedef_name = 'ND_bitangent_vector3'; -mtlx_geometric_bitangent_vector3.nodedef_node = 'bitangent'; -mtlx_geometric_bitangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; -LiteGraph.registerNodeType('mtlx/geometric/bitangent_vector3',mtlx_geometric_bitangent_vector3); - -// MaterialX node type: mtlx/geometric/texcoord_vector2 -// -function mtlx_geometric_texcoord_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_texcoord_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'texcoord'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'texcoord_vector2'; - this.desc = "MaterialX:mtlx/geometric/texcoord_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_texcoord_vector2.nodedef_name = 'ND_texcoord_vector2'; -mtlx_geometric_texcoord_vector2.nodedef_node = 'texcoord'; -mtlx_geometric_texcoord_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; -LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector2',mtlx_geometric_texcoord_vector2); - -// MaterialX node type: mtlx/geometric/texcoord_vector3 -// -function mtlx_geometric_texcoord_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_texcoord_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'texcoord'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'texcoord_vector3'; - this.desc = "MaterialX:mtlx/geometric/texcoord_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_texcoord_vector3.nodedef_name = 'ND_texcoord_vector3'; -mtlx_geometric_texcoord_vector3.nodedef_node = 'texcoord'; -mtlx_geometric_texcoord_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; -LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector3',mtlx_geometric_texcoord_vector3); - -// MaterialX node type: mtlx/geometric/geomcolor_float -// -function mtlx_geometric_geomcolor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'geomcolor_float'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_geomcolor_float.nodedef_name = 'ND_geomcolor_float'; -mtlx_geometric_geomcolor_float.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_float',mtlx_geometric_geomcolor_float); - -// MaterialX node type: mtlx/geometric/geomcolor_color3 -// -function mtlx_geometric_geomcolor_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'geomcolor_color3'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_geometric_geomcolor_color3.nodedef_name = 'ND_geomcolor_color3'; -mtlx_geometric_geomcolor_color3.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color3',mtlx_geometric_geomcolor_color3); - -// MaterialX node type: mtlx/geometric/geomcolor_color4 -// -function mtlx_geometric_geomcolor_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geomcolor_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'geomcolor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'geomcolor_color4'; - this.desc = "MaterialX:mtlx/geometric/geomcolor_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_geometric_geomcolor_color4.nodedef_name = 'ND_geomcolor_color4'; -mtlx_geometric_geomcolor_color4.nodedef_node = 'geomcolor'; -mtlx_geometric_geomcolor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; -LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color4',mtlx_geometric_geomcolor_color4); - -// MaterialX node type: mtlx/geometric/geompropvalue_integer -// -function mtlx_geometric_geompropvalue_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_integer_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','integer'); - this.addProperty('default', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'geompropvalue_integer'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_geompropvalue_integer.nodedef_name = 'ND_geompropvalue_integer'; -mtlx_geometric_geompropvalue_integer.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_integer',mtlx_geometric_geompropvalue_integer); - -// MaterialX node type: mtlx/geometric/geompropvalue_boolean -// -function mtlx_geometric_geompropvalue_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_boolean_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','boolean'); - this.addProperty('default', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'geompropvalue_boolean'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_geometric_geompropvalue_boolean.nodedef_name = 'ND_geompropvalue_boolean'; -mtlx_geometric_geompropvalue_boolean.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_boolean',mtlx_geometric_geompropvalue_boolean); - -// MaterialX node type: mtlx/geometric/geompropvalue_string -// -function mtlx_geometric_geompropvalue_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_string_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','string'); - this.addProperty('default', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'geompropvalue_string'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_geometric_geompropvalue_string.nodedef_name = 'ND_geompropvalue_string'; -mtlx_geometric_geompropvalue_string.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_string',mtlx_geometric_geompropvalue_string); - -// MaterialX node type: mtlx/geometric/geompropvalue_float -// -function mtlx_geometric_geompropvalue_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'geompropvalue_float'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_geompropvalue_float.nodedef_name = 'ND_geompropvalue_float'; -mtlx_geometric_geompropvalue_float.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_float',mtlx_geometric_geompropvalue_float); - -// MaterialX node type: mtlx/geometric/geompropvalue_color3 -// -function mtlx_geometric_geompropvalue_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'geompropvalue_color3'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_geometric_geompropvalue_color3.nodedef_name = 'ND_geompropvalue_color3'; -mtlx_geometric_geompropvalue_color3.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color3',mtlx_geometric_geompropvalue_color3); - -// MaterialX node type: mtlx/geometric/geompropvalue_color4 -// -function mtlx_geometric_geompropvalue_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'geompropvalue_color4'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_geometric_geompropvalue_color4.nodedef_name = 'ND_geompropvalue_color4'; -mtlx_geometric_geompropvalue_color4.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color4',mtlx_geometric_geompropvalue_color4); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector2 -// -function mtlx_geometric_geompropvalue_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector2'); - this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'geompropvalue_vector2'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_geompropvalue_vector2.nodedef_name = 'ND_geompropvalue_vector2'; -mtlx_geometric_geompropvalue_vector2.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector2',mtlx_geometric_geompropvalue_vector2); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector3 -// -function mtlx_geometric_geompropvalue_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'geompropvalue_vector3'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_geompropvalue_vector3.nodedef_name = 'ND_geompropvalue_vector3'; -mtlx_geometric_geompropvalue_vector3.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector3',mtlx_geometric_geompropvalue_vector3); - -// MaterialX node type: mtlx/geometric/geompropvalue_vector4 -// -function mtlx_geometric_geompropvalue_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_geompropvalue_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'geompropvalue'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('geomprop','string'); - this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector4'); - this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'geompropvalue_vector4'; - this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_geometric_geompropvalue_vector4.nodedef_name = 'ND_geompropvalue_vector4'; -mtlx_geometric_geompropvalue_vector4.nodedef_node = 'geompropvalue'; -mtlx_geometric_geompropvalue_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; -LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector4',mtlx_geometric_geompropvalue_vector4); - -// MaterialX node type: mtlx/geometric/bump_vector3 -// -function mtlx_geometric_bump_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_bump_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'bump'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bump_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('height','float'); - this.addProperty('height', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Height","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'bump_vector3'; - this.desc = "MaterialX:mtlx/geometric/bump_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_bump_vector3.nodedef_name = 'ND_bump_vector3'; -mtlx_geometric_bump_vector3.nodedef_node = 'bump'; -mtlx_geometric_bump_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; -LiteGraph.registerNodeType('mtlx/geometric/bump_vector3',mtlx_geometric_bump_vector3); - -// MaterialX node type: mtlx/global/ambientocclusion_float -// -function mtlx_global_ambientocclusion_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ambientocclusion_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ambientocclusion'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ambientocclusion_float_out_genglsl.png'; - this.nodedef_group = 'global'; - this.addInput('coneangle','float'); - this.addProperty('coneangle', 90.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('maxdistance','float'); - this.addProperty('maxdistance', 1e38, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ambientocclusion_float'; - this.desc = "MaterialX:mtlx/global/ambientocclusion_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_global_ambientocclusion_float.nodedef_name = 'ND_ambientocclusion_float'; -mtlx_global_ambientocclusion_float.nodedef_node = 'ambientocclusion'; -mtlx_global_ambientocclusion_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; -LiteGraph.registerNodeType('mtlx/global/ambientocclusion_float',mtlx_global_ambientocclusion_float); - -// MaterialX node type: mtlx/application/frame_float -// -function mtlx_application_frame_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_frame_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'frame'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_frame_float_out_genglsl.png'; - this.nodedef_group = 'application'; - this.addOutput('out','float'); - this.title = 'frame_float'; - this.desc = "MaterialX:mtlx/application/frame_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_application_frame_float.nodedef_name = 'ND_frame_float'; -mtlx_application_frame_float.nodedef_node = 'frame'; -mtlx_application_frame_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; -LiteGraph.registerNodeType('mtlx/application/frame_float',mtlx_application_frame_float); - -// MaterialX node type: mtlx/application/time_float -// -function mtlx_application_time_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_time_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'time'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_time_float_out_genglsl.png'; - this.nodedef_group = 'application'; - this.addInput('fps','float'); - this.addProperty('fps', 24.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'time_float'; - this.desc = "MaterialX:mtlx/application/time_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_application_time_float.nodedef_name = 'ND_time_float'; -mtlx_application_time_float.nodedef_node = 'time'; -mtlx_application_time_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; -LiteGraph.registerNodeType('mtlx/application/time_float',mtlx_application_time_float); - -// MaterialX node type: mtlx/math/add_float -// -function mtlx_math_add_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'add_float'; - this.desc = "MaterialX:mtlx/math/add_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_add_float.nodedef_name = 'ND_add_float'; -mtlx_math_add_float.nodedef_node = 'add'; -mtlx_math_add_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_float',mtlx_math_add_float); - -// MaterialX node type: mtlx/math/add_integer -// -function mtlx_math_add_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'add_integer'; - this.desc = "MaterialX:mtlx/math/add_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_integer.nodedef_name = 'ND_add_integer'; -mtlx_math_add_integer.nodedef_node = 'add'; -mtlx_math_add_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_integer',mtlx_math_add_integer); - -// MaterialX node type: mtlx/math/add_color3 -// -function mtlx_math_add_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'add_color3'; - this.desc = "MaterialX:mtlx/math/add_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_add_color3.nodedef_name = 'ND_add_color3'; -mtlx_math_add_color3.nodedef_node = 'add'; -mtlx_math_add_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color3',mtlx_math_add_color3); - -// MaterialX node type: mtlx/math/add_color4 -// -function mtlx_math_add_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'add_color4'; - this.desc = "MaterialX:mtlx/math/add_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_add_color4.nodedef_name = 'ND_add_color4'; -mtlx_math_add_color4.nodedef_node = 'add'; -mtlx_math_add_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color4',mtlx_math_add_color4); - -// MaterialX node type: mtlx/math/add_vector2 -// -function mtlx_math_add_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'add_vector2'; - this.desc = "MaterialX:mtlx/math/add_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_vector2.nodedef_name = 'ND_add_vector2'; -mtlx_math_add_vector2.nodedef_node = 'add'; -mtlx_math_add_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector2',mtlx_math_add_vector2); - -// MaterialX node type: mtlx/math/add_vector3 -// -function mtlx_math_add_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'add_vector3'; - this.desc = "MaterialX:mtlx/math/add_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_add_vector3.nodedef_name = 'ND_add_vector3'; -mtlx_math_add_vector3.nodedef_node = 'add'; -mtlx_math_add_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector3',mtlx_math_add_vector3); - -// MaterialX node type: mtlx/math/add_vector4 -// -function mtlx_math_add_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'add_vector4'; - this.desc = "MaterialX:mtlx/math/add_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_add_vector4.nodedef_name = 'ND_add_vector4'; -mtlx_math_add_vector4.nodedef_node = 'add'; -mtlx_math_add_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector4',mtlx_math_add_vector4); - -// MaterialX node type: mtlx/math/add_matrix33 -// -function mtlx_math_add_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'add_matrix33'; - this.desc = "MaterialX:mtlx/math/add_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_add_matrix33.nodedef_name = 'ND_add_matrix33'; -mtlx_math_add_matrix33.nodedef_node = 'add'; -mtlx_math_add_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix33',mtlx_math_add_matrix33); - -// MaterialX node type: mtlx/math/add_matrix44 -// -function mtlx_math_add_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'add_matrix44'; - this.desc = "MaterialX:mtlx/math/add_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_add_matrix44.nodedef_name = 'ND_add_matrix44'; -mtlx_math_add_matrix44.nodedef_node = 'add'; -mtlx_math_add_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix44',mtlx_math_add_matrix44); - -// MaterialX node type: mtlx/math/add_color3FA -// -function mtlx_math_add_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'add_color3'; - this.desc = "MaterialX:mtlx/math/add_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_add_color3FA.nodedef_name = 'ND_add_color3FA'; -mtlx_math_add_color3FA.nodedef_node = 'add'; -mtlx_math_add_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color3FA',mtlx_math_add_color3FA); - -// MaterialX node type: mtlx/math/add_color4FA -// -function mtlx_math_add_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'add_color4'; - this.desc = "MaterialX:mtlx/math/add_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_add_color4FA.nodedef_name = 'ND_add_color4FA'; -mtlx_math_add_color4FA.nodedef_node = 'add'; -mtlx_math_add_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_color4FA',mtlx_math_add_color4FA); - -// MaterialX node type: mtlx/math/add_vector2FA -// -function mtlx_math_add_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'add_vector2'; - this.desc = "MaterialX:mtlx/math/add_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_add_vector2FA.nodedef_name = 'ND_add_vector2FA'; -mtlx_math_add_vector2FA.nodedef_node = 'add'; -mtlx_math_add_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector2FA',mtlx_math_add_vector2FA); - -// MaterialX node type: mtlx/math/add_vector3FA -// -function mtlx_math_add_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'add_vector3'; - this.desc = "MaterialX:mtlx/math/add_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_add_vector3FA.nodedef_name = 'ND_add_vector3FA'; -mtlx_math_add_vector3FA.nodedef_node = 'add'; -mtlx_math_add_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector3FA',mtlx_math_add_vector3FA); - -// MaterialX node type: mtlx/math/add_vector4FA -// -function mtlx_math_add_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'add_vector4'; - this.desc = "MaterialX:mtlx/math/add_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_add_vector4FA.nodedef_name = 'ND_add_vector4FA'; -mtlx_math_add_vector4FA.nodedef_node = 'add'; -mtlx_math_add_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_vector4FA',mtlx_math_add_vector4FA); - -// MaterialX node type: mtlx/math/add_matrix33FA -// -function mtlx_math_add_matrix33FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix33FA'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'add_matrix33'; - this.desc = "MaterialX:mtlx/math/add_matrix33FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_add_matrix33FA.nodedef_name = 'ND_add_matrix33FA'; -mtlx_math_add_matrix33FA.nodedef_node = 'add'; -mtlx_math_add_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix33FA',mtlx_math_add_matrix33FA); - -// MaterialX node type: mtlx/math/add_matrix44FA -// -function mtlx_math_add_matrix44FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_add_matrix44FA'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'add'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'add_matrix44'; - this.desc = "MaterialX:mtlx/math/add_matrix44FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_add_matrix44FA.nodedef_name = 'ND_add_matrix44FA'; -mtlx_math_add_matrix44FA.nodedef_node = 'add'; -mtlx_math_add_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; -LiteGraph.registerNodeType('mtlx/math/add_matrix44FA',mtlx_math_add_matrix44FA); - -// MaterialX node type: mtlx/math/subtract_float -// -function mtlx_math_subtract_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'subtract_float'; - this.desc = "MaterialX:mtlx/math/subtract_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_subtract_float.nodedef_name = 'ND_subtract_float'; -mtlx_math_subtract_float.nodedef_node = 'subtract'; -mtlx_math_subtract_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_float',mtlx_math_subtract_float); - -// MaterialX node type: mtlx/math/subtract_integer -// -function mtlx_math_subtract_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'subtract_integer'; - this.desc = "MaterialX:mtlx/math/subtract_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_integer.nodedef_name = 'ND_subtract_integer'; -mtlx_math_subtract_integer.nodedef_node = 'subtract'; -mtlx_math_subtract_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_integer',mtlx_math_subtract_integer); - -// MaterialX node type: mtlx/math/subtract_color3 -// -function mtlx_math_subtract_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'subtract_color3'; - this.desc = "MaterialX:mtlx/math/subtract_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_subtract_color3.nodedef_name = 'ND_subtract_color3'; -mtlx_math_subtract_color3.nodedef_node = 'subtract'; -mtlx_math_subtract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color3',mtlx_math_subtract_color3); - -// MaterialX node type: mtlx/math/subtract_color4 -// -function mtlx_math_subtract_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'subtract_color4'; - this.desc = "MaterialX:mtlx/math/subtract_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_subtract_color4.nodedef_name = 'ND_subtract_color4'; -mtlx_math_subtract_color4.nodedef_node = 'subtract'; -mtlx_math_subtract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color4',mtlx_math_subtract_color4); - -// MaterialX node type: mtlx/math/subtract_vector2 -// -function mtlx_math_subtract_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'subtract_vector2'; - this.desc = "MaterialX:mtlx/math/subtract_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_vector2.nodedef_name = 'ND_subtract_vector2'; -mtlx_math_subtract_vector2.nodedef_node = 'subtract'; -mtlx_math_subtract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector2',mtlx_math_subtract_vector2); - -// MaterialX node type: mtlx/math/subtract_vector3 -// -function mtlx_math_subtract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'subtract_vector3'; - this.desc = "MaterialX:mtlx/math/subtract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_subtract_vector3.nodedef_name = 'ND_subtract_vector3'; -mtlx_math_subtract_vector3.nodedef_node = 'subtract'; -mtlx_math_subtract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector3',mtlx_math_subtract_vector3); - -// MaterialX node type: mtlx/math/subtract_vector4 -// -function mtlx_math_subtract_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'subtract_vector4'; - this.desc = "MaterialX:mtlx/math/subtract_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_subtract_vector4.nodedef_name = 'ND_subtract_vector4'; -mtlx_math_subtract_vector4.nodedef_node = 'subtract'; -mtlx_math_subtract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector4',mtlx_math_subtract_vector4); - -// MaterialX node type: mtlx/math/subtract_matrix33 -// -function mtlx_math_subtract_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'subtract_matrix33'; - this.desc = "MaterialX:mtlx/math/subtract_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_subtract_matrix33.nodedef_name = 'ND_subtract_matrix33'; -mtlx_math_subtract_matrix33.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix33',mtlx_math_subtract_matrix33); - -// MaterialX node type: mtlx/math/subtract_matrix44 -// -function mtlx_math_subtract_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'subtract_matrix44'; - this.desc = "MaterialX:mtlx/math/subtract_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_subtract_matrix44.nodedef_name = 'ND_subtract_matrix44'; -mtlx_math_subtract_matrix44.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix44',mtlx_math_subtract_matrix44); - -// MaterialX node type: mtlx/math/subtract_color3FA -// -function mtlx_math_subtract_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'subtract_color3'; - this.desc = "MaterialX:mtlx/math/subtract_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_subtract_color3FA.nodedef_name = 'ND_subtract_color3FA'; -mtlx_math_subtract_color3FA.nodedef_node = 'subtract'; -mtlx_math_subtract_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color3FA',mtlx_math_subtract_color3FA); - -// MaterialX node type: mtlx/math/subtract_color4FA -// -function mtlx_math_subtract_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'subtract_color4'; - this.desc = "MaterialX:mtlx/math/subtract_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_subtract_color4FA.nodedef_name = 'ND_subtract_color4FA'; -mtlx_math_subtract_color4FA.nodedef_node = 'subtract'; -mtlx_math_subtract_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_color4FA',mtlx_math_subtract_color4FA); - -// MaterialX node type: mtlx/math/subtract_vector2FA -// -function mtlx_math_subtract_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'subtract_vector2'; - this.desc = "MaterialX:mtlx/math/subtract_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_subtract_vector2FA.nodedef_name = 'ND_subtract_vector2FA'; -mtlx_math_subtract_vector2FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector2FA',mtlx_math_subtract_vector2FA); - -// MaterialX node type: mtlx/math/subtract_vector3FA -// -function mtlx_math_subtract_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'subtract_vector3'; - this.desc = "MaterialX:mtlx/math/subtract_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_subtract_vector3FA.nodedef_name = 'ND_subtract_vector3FA'; -mtlx_math_subtract_vector3FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector3FA',mtlx_math_subtract_vector3FA); - -// MaterialX node type: mtlx/math/subtract_vector4FA -// -function mtlx_math_subtract_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'subtract_vector4'; - this.desc = "MaterialX:mtlx/math/subtract_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_subtract_vector4FA.nodedef_name = 'ND_subtract_vector4FA'; -mtlx_math_subtract_vector4FA.nodedef_node = 'subtract'; -mtlx_math_subtract_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_vector4FA',mtlx_math_subtract_vector4FA); - -// MaterialX node type: mtlx/math/subtract_matrix33FA -// -function mtlx_math_subtract_matrix33FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix33FA'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'subtract_matrix33'; - this.desc = "MaterialX:mtlx/math/subtract_matrix33FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_subtract_matrix33FA.nodedef_name = 'ND_subtract_matrix33FA'; -mtlx_math_subtract_matrix33FA.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix33FA',mtlx_math_subtract_matrix33FA); - -// MaterialX node type: mtlx/math/subtract_matrix44FA -// -function mtlx_math_subtract_matrix44FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_subtract_matrix44FA'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'subtract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'subtract_matrix44'; - this.desc = "MaterialX:mtlx/math/subtract_matrix44FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_subtract_matrix44FA.nodedef_name = 'ND_subtract_matrix44FA'; -mtlx_math_subtract_matrix44FA.nodedef_node = 'subtract'; -mtlx_math_subtract_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; -LiteGraph.registerNodeType('mtlx/math/subtract_matrix44FA',mtlx_math_subtract_matrix44FA); - -// MaterialX node type: mtlx/math/multiply_float -// -function mtlx_math_multiply_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'multiply_float'; - this.desc = "MaterialX:mtlx/math/multiply_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_multiply_float.nodedef_name = 'ND_multiply_float'; -mtlx_math_multiply_float.nodedef_node = 'multiply'; -mtlx_math_multiply_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_float',mtlx_math_multiply_float); - -// MaterialX node type: mtlx/math/multiply_color3 -// -function mtlx_math_multiply_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'multiply_color3'; - this.desc = "MaterialX:mtlx/math/multiply_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_multiply_color3.nodedef_name = 'ND_multiply_color3'; -mtlx_math_multiply_color3.nodedef_node = 'multiply'; -mtlx_math_multiply_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color3',mtlx_math_multiply_color3); - -// MaterialX node type: mtlx/math/multiply_color4 -// -function mtlx_math_multiply_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'multiply_color4'; - this.desc = "MaterialX:mtlx/math/multiply_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_multiply_color4.nodedef_name = 'ND_multiply_color4'; -mtlx_math_multiply_color4.nodedef_node = 'multiply'; -mtlx_math_multiply_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color4',mtlx_math_multiply_color4); - -// MaterialX node type: mtlx/math/multiply_vector2 -// -function mtlx_math_multiply_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'multiply_vector2'; - this.desc = "MaterialX:mtlx/math/multiply_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_multiply_vector2.nodedef_name = 'ND_multiply_vector2'; -mtlx_math_multiply_vector2.nodedef_node = 'multiply'; -mtlx_math_multiply_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector2',mtlx_math_multiply_vector2); - -// MaterialX node type: mtlx/math/multiply_vector3 -// -function mtlx_math_multiply_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'multiply_vector3'; - this.desc = "MaterialX:mtlx/math/multiply_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_multiply_vector3.nodedef_name = 'ND_multiply_vector3'; -mtlx_math_multiply_vector3.nodedef_node = 'multiply'; -mtlx_math_multiply_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector3',mtlx_math_multiply_vector3); - -// MaterialX node type: mtlx/math/multiply_vector4 -// -function mtlx_math_multiply_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'multiply_vector4'; - this.desc = "MaterialX:mtlx/math/multiply_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_multiply_vector4.nodedef_name = 'ND_multiply_vector4'; -mtlx_math_multiply_vector4.nodedef_node = 'multiply'; -mtlx_math_multiply_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector4',mtlx_math_multiply_vector4); - -// MaterialX node type: mtlx/math/multiply_matrix33 -// -function mtlx_math_multiply_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'multiply_matrix33'; - this.desc = "MaterialX:mtlx/math/multiply_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_multiply_matrix33.nodedef_name = 'ND_multiply_matrix33'; -mtlx_math_multiply_matrix33.nodedef_node = 'multiply'; -mtlx_math_multiply_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_matrix33',mtlx_math_multiply_matrix33); - -// MaterialX node type: mtlx/math/multiply_matrix44 -// -function mtlx_math_multiply_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'multiply_matrix44'; - this.desc = "MaterialX:mtlx/math/multiply_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_multiply_matrix44.nodedef_name = 'ND_multiply_matrix44'; -mtlx_math_multiply_matrix44.nodedef_node = 'multiply'; -mtlx_math_multiply_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_matrix44',mtlx_math_multiply_matrix44); - -// MaterialX node type: mtlx/math/multiply_color3FA -// -function mtlx_math_multiply_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'multiply_color3'; - this.desc = "MaterialX:mtlx/math/multiply_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_multiply_color3FA.nodedef_name = 'ND_multiply_color3FA'; -mtlx_math_multiply_color3FA.nodedef_node = 'multiply'; -mtlx_math_multiply_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color3FA',mtlx_math_multiply_color3FA); - -// MaterialX node type: mtlx/math/multiply_color4FA -// -function mtlx_math_multiply_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'multiply_color4'; - this.desc = "MaterialX:mtlx/math/multiply_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_multiply_color4FA.nodedef_name = 'ND_multiply_color4FA'; -mtlx_math_multiply_color4FA.nodedef_node = 'multiply'; -mtlx_math_multiply_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_color4FA',mtlx_math_multiply_color4FA); - -// MaterialX node type: mtlx/math/multiply_vector2FA -// -function mtlx_math_multiply_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'multiply_vector2'; - this.desc = "MaterialX:mtlx/math/multiply_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_multiply_vector2FA.nodedef_name = 'ND_multiply_vector2FA'; -mtlx_math_multiply_vector2FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector2FA',mtlx_math_multiply_vector2FA); - -// MaterialX node type: mtlx/math/multiply_vector3FA -// -function mtlx_math_multiply_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'multiply_vector3'; - this.desc = "MaterialX:mtlx/math/multiply_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_multiply_vector3FA.nodedef_name = 'ND_multiply_vector3FA'; -mtlx_math_multiply_vector3FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector3FA',mtlx_math_multiply_vector3FA); - -// MaterialX node type: mtlx/math/multiply_vector4FA -// -function mtlx_math_multiply_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_multiply_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'multiply'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'multiply_vector4'; - this.desc = "MaterialX:mtlx/math/multiply_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_multiply_vector4FA.nodedef_name = 'ND_multiply_vector4FA'; -mtlx_math_multiply_vector4FA.nodedef_node = 'multiply'; -mtlx_math_multiply_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; -LiteGraph.registerNodeType('mtlx/math/multiply_vector4FA',mtlx_math_multiply_vector4FA); - -// MaterialX node type: mtlx/math/divide_float -// -function mtlx_math_divide_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'divide_float'; - this.desc = "MaterialX:mtlx/math/divide_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_divide_float.nodedef_name = 'ND_divide_float'; -mtlx_math_divide_float.nodedef_node = 'divide'; -mtlx_math_divide_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_float',mtlx_math_divide_float); - -// MaterialX node type: mtlx/math/divide_color3 -// -function mtlx_math_divide_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'divide_color3'; - this.desc = "MaterialX:mtlx/math/divide_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_divide_color3.nodedef_name = 'ND_divide_color3'; -mtlx_math_divide_color3.nodedef_node = 'divide'; -mtlx_math_divide_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color3',mtlx_math_divide_color3); - -// MaterialX node type: mtlx/math/divide_color4 -// -function mtlx_math_divide_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'divide_color4'; - this.desc = "MaterialX:mtlx/math/divide_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_divide_color4.nodedef_name = 'ND_divide_color4'; -mtlx_math_divide_color4.nodedef_node = 'divide'; -mtlx_math_divide_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color4',mtlx_math_divide_color4); - -// MaterialX node type: mtlx/math/divide_vector2 -// -function mtlx_math_divide_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'divide_vector2'; - this.desc = "MaterialX:mtlx/math/divide_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_divide_vector2.nodedef_name = 'ND_divide_vector2'; -mtlx_math_divide_vector2.nodedef_node = 'divide'; -mtlx_math_divide_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector2',mtlx_math_divide_vector2); - -// MaterialX node type: mtlx/math/divide_vector3 -// -function mtlx_math_divide_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'divide_vector3'; - this.desc = "MaterialX:mtlx/math/divide_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_divide_vector3.nodedef_name = 'ND_divide_vector3'; -mtlx_math_divide_vector3.nodedef_node = 'divide'; -mtlx_math_divide_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector3',mtlx_math_divide_vector3); - -// MaterialX node type: mtlx/math/divide_vector4 -// -function mtlx_math_divide_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'divide_vector4'; - this.desc = "MaterialX:mtlx/math/divide_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_divide_vector4.nodedef_name = 'ND_divide_vector4'; -mtlx_math_divide_vector4.nodedef_node = 'divide'; -mtlx_math_divide_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector4',mtlx_math_divide_vector4); - -// MaterialX node type: mtlx/math/divide_matrix33 -// -function mtlx_math_divide_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'divide_matrix33'; - this.desc = "MaterialX:mtlx/math/divide_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_divide_matrix33.nodedef_name = 'ND_divide_matrix33'; -mtlx_math_divide_matrix33.nodedef_node = 'divide'; -mtlx_math_divide_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_matrix33',mtlx_math_divide_matrix33); - -// MaterialX node type: mtlx/math/divide_matrix44 -// -function mtlx_math_divide_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'divide_matrix44'; - this.desc = "MaterialX:mtlx/math/divide_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_divide_matrix44.nodedef_name = 'ND_divide_matrix44'; -mtlx_math_divide_matrix44.nodedef_node = 'divide'; -mtlx_math_divide_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_matrix44',mtlx_math_divide_matrix44); - -// MaterialX node type: mtlx/math/divide_color3FA -// -function mtlx_math_divide_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'divide_color3'; - this.desc = "MaterialX:mtlx/math/divide_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_divide_color3FA.nodedef_name = 'ND_divide_color3FA'; -mtlx_math_divide_color3FA.nodedef_node = 'divide'; -mtlx_math_divide_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color3FA',mtlx_math_divide_color3FA); - -// MaterialX node type: mtlx/math/divide_color4FA -// -function mtlx_math_divide_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'divide_color4'; - this.desc = "MaterialX:mtlx/math/divide_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_divide_color4FA.nodedef_name = 'ND_divide_color4FA'; -mtlx_math_divide_color4FA.nodedef_node = 'divide'; -mtlx_math_divide_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_color4FA',mtlx_math_divide_color4FA); - -// MaterialX node type: mtlx/math/divide_vector2FA -// -function mtlx_math_divide_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'divide_vector2'; - this.desc = "MaterialX:mtlx/math/divide_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_divide_vector2FA.nodedef_name = 'ND_divide_vector2FA'; -mtlx_math_divide_vector2FA.nodedef_node = 'divide'; -mtlx_math_divide_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector2FA',mtlx_math_divide_vector2FA); - -// MaterialX node type: mtlx/math/divide_vector3FA -// -function mtlx_math_divide_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'divide_vector3'; - this.desc = "MaterialX:mtlx/math/divide_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_divide_vector3FA.nodedef_name = 'ND_divide_vector3FA'; -mtlx_math_divide_vector3FA.nodedef_node = 'divide'; -mtlx_math_divide_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector3FA',mtlx_math_divide_vector3FA); - -// MaterialX node type: mtlx/math/divide_vector4FA -// -function mtlx_math_divide_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_divide_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'divide'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'divide_vector4'; - this.desc = "MaterialX:mtlx/math/divide_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_divide_vector4FA.nodedef_name = 'ND_divide_vector4FA'; -mtlx_math_divide_vector4FA.nodedef_node = 'divide'; -mtlx_math_divide_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; -LiteGraph.registerNodeType('mtlx/math/divide_vector4FA',mtlx_math_divide_vector4FA); - -// MaterialX node type: mtlx/math/modulo_float -// -function mtlx_math_modulo_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'modulo_float'; - this.desc = "MaterialX:mtlx/math/modulo_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_modulo_float.nodedef_name = 'ND_modulo_float'; -mtlx_math_modulo_float.nodedef_node = 'modulo'; -mtlx_math_modulo_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_float',mtlx_math_modulo_float); - -// MaterialX node type: mtlx/math/modulo_color3 -// -function mtlx_math_modulo_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'modulo_color3'; - this.desc = "MaterialX:mtlx/math/modulo_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_modulo_color3.nodedef_name = 'ND_modulo_color3'; -mtlx_math_modulo_color3.nodedef_node = 'modulo'; -mtlx_math_modulo_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color3',mtlx_math_modulo_color3); - -// MaterialX node type: mtlx/math/modulo_color4 -// -function mtlx_math_modulo_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'modulo_color4'; - this.desc = "MaterialX:mtlx/math/modulo_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_modulo_color4.nodedef_name = 'ND_modulo_color4'; -mtlx_math_modulo_color4.nodedef_node = 'modulo'; -mtlx_math_modulo_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color4',mtlx_math_modulo_color4); - -// MaterialX node type: mtlx/math/modulo_vector2 -// -function mtlx_math_modulo_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'modulo_vector2'; - this.desc = "MaterialX:mtlx/math/modulo_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_modulo_vector2.nodedef_name = 'ND_modulo_vector2'; -mtlx_math_modulo_vector2.nodedef_node = 'modulo'; -mtlx_math_modulo_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector2',mtlx_math_modulo_vector2); - -// MaterialX node type: mtlx/math/modulo_vector3 -// -function mtlx_math_modulo_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'modulo_vector3'; - this.desc = "MaterialX:mtlx/math/modulo_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_modulo_vector3.nodedef_name = 'ND_modulo_vector3'; -mtlx_math_modulo_vector3.nodedef_node = 'modulo'; -mtlx_math_modulo_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector3',mtlx_math_modulo_vector3); - -// MaterialX node type: mtlx/math/modulo_vector4 -// -function mtlx_math_modulo_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'modulo_vector4'; - this.desc = "MaterialX:mtlx/math/modulo_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_modulo_vector4.nodedef_name = 'ND_modulo_vector4'; -mtlx_math_modulo_vector4.nodedef_node = 'modulo'; -mtlx_math_modulo_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector4',mtlx_math_modulo_vector4); - -// MaterialX node type: mtlx/math/modulo_color3FA -// -function mtlx_math_modulo_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'modulo_color3'; - this.desc = "MaterialX:mtlx/math/modulo_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_modulo_color3FA.nodedef_name = 'ND_modulo_color3FA'; -mtlx_math_modulo_color3FA.nodedef_node = 'modulo'; -mtlx_math_modulo_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color3FA',mtlx_math_modulo_color3FA); - -// MaterialX node type: mtlx/math/modulo_color4FA -// -function mtlx_math_modulo_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'modulo_color4'; - this.desc = "MaterialX:mtlx/math/modulo_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_modulo_color4FA.nodedef_name = 'ND_modulo_color4FA'; -mtlx_math_modulo_color4FA.nodedef_node = 'modulo'; -mtlx_math_modulo_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_color4FA',mtlx_math_modulo_color4FA); - -// MaterialX node type: mtlx/math/modulo_vector2FA -// -function mtlx_math_modulo_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'modulo_vector2'; - this.desc = "MaterialX:mtlx/math/modulo_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_modulo_vector2FA.nodedef_name = 'ND_modulo_vector2FA'; -mtlx_math_modulo_vector2FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector2FA',mtlx_math_modulo_vector2FA); - -// MaterialX node type: mtlx/math/modulo_vector3FA -// -function mtlx_math_modulo_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'modulo_vector3'; - this.desc = "MaterialX:mtlx/math/modulo_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_modulo_vector3FA.nodedef_name = 'ND_modulo_vector3FA'; -mtlx_math_modulo_vector3FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector3FA',mtlx_math_modulo_vector3FA); - -// MaterialX node type: mtlx/math/modulo_vector4FA -// -function mtlx_math_modulo_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_modulo_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'modulo'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'modulo_vector4'; - this.desc = "MaterialX:mtlx/math/modulo_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_modulo_vector4FA.nodedef_name = 'ND_modulo_vector4FA'; -mtlx_math_modulo_vector4FA.nodedef_node = 'modulo'; -mtlx_math_modulo_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; -LiteGraph.registerNodeType('mtlx/math/modulo_vector4FA',mtlx_math_modulo_vector4FA); - -// MaterialX node type: mtlx/math/invert_float -// -function mtlx_math_invert_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'invert_float'; - this.desc = "MaterialX:mtlx/math/invert_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_invert_float.nodedef_name = 'ND_invert_float'; -mtlx_math_invert_float.nodedef_node = 'invert'; -mtlx_math_invert_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_float',mtlx_math_invert_float); - -// MaterialX node type: mtlx/math/invert_color3 -// -function mtlx_math_invert_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'invert_color3'; - this.desc = "MaterialX:mtlx/math/invert_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_invert_color3.nodedef_name = 'ND_invert_color3'; -mtlx_math_invert_color3.nodedef_node = 'invert'; -mtlx_math_invert_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color3',mtlx_math_invert_color3); - -// MaterialX node type: mtlx/math/invert_color4 -// -function mtlx_math_invert_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'invert_color4'; - this.desc = "MaterialX:mtlx/math/invert_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_invert_color4.nodedef_name = 'ND_invert_color4'; -mtlx_math_invert_color4.nodedef_node = 'invert'; -mtlx_math_invert_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color4',mtlx_math_invert_color4); - -// MaterialX node type: mtlx/math/invert_vector2 -// -function mtlx_math_invert_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector2'); - this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'invert_vector2'; - this.desc = "MaterialX:mtlx/math/invert_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_invert_vector2.nodedef_name = 'ND_invert_vector2'; -mtlx_math_invert_vector2.nodedef_node = 'invert'; -mtlx_math_invert_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector2',mtlx_math_invert_vector2); - -// MaterialX node type: mtlx/math/invert_vector3 -// -function mtlx_math_invert_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'invert_vector3'; - this.desc = "MaterialX:mtlx/math/invert_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_invert_vector3.nodedef_name = 'ND_invert_vector3'; -mtlx_math_invert_vector3.nodedef_node = 'invert'; -mtlx_math_invert_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector3',mtlx_math_invert_vector3); - -// MaterialX node type: mtlx/math/invert_vector4 -// -function mtlx_math_invert_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'invert_vector4'; - this.desc = "MaterialX:mtlx/math/invert_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_invert_vector4.nodedef_name = 'ND_invert_vector4'; -mtlx_math_invert_vector4.nodedef_node = 'invert'; -mtlx_math_invert_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector4',mtlx_math_invert_vector4); - -// MaterialX node type: mtlx/math/invert_color3FA -// -function mtlx_math_invert_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'invert_color3'; - this.desc = "MaterialX:mtlx/math/invert_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_invert_color3FA.nodedef_name = 'ND_invert_color3FA'; -mtlx_math_invert_color3FA.nodedef_node = 'invert'; -mtlx_math_invert_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color3FA',mtlx_math_invert_color3FA); - -// MaterialX node type: mtlx/math/invert_color4FA -// -function mtlx_math_invert_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'invert_color4'; - this.desc = "MaterialX:mtlx/math/invert_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_invert_color4FA.nodedef_name = 'ND_invert_color4FA'; -mtlx_math_invert_color4FA.nodedef_node = 'invert'; -mtlx_math_invert_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_color4FA',mtlx_math_invert_color4FA); - -// MaterialX node type: mtlx/math/invert_vector2FA -// -function mtlx_math_invert_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'invert_vector2'; - this.desc = "MaterialX:mtlx/math/invert_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_invert_vector2FA.nodedef_name = 'ND_invert_vector2FA'; -mtlx_math_invert_vector2FA.nodedef_node = 'invert'; -mtlx_math_invert_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector2FA',mtlx_math_invert_vector2FA); - -// MaterialX node type: mtlx/math/invert_vector3FA -// -function mtlx_math_invert_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'invert_vector3'; - this.desc = "MaterialX:mtlx/math/invert_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_invert_vector3FA.nodedef_name = 'ND_invert_vector3FA'; -mtlx_math_invert_vector3FA.nodedef_node = 'invert'; -mtlx_math_invert_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector3FA',mtlx_math_invert_vector3FA); - -// MaterialX node type: mtlx/math/invert_vector4FA -// -function mtlx_math_invert_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invert_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'invert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'invert_vector4'; - this.desc = "MaterialX:mtlx/math/invert_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_invert_vector4FA.nodedef_name = 'ND_invert_vector4FA'; -mtlx_math_invert_vector4FA.nodedef_node = 'invert'; -mtlx_math_invert_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; -LiteGraph.registerNodeType('mtlx/math/invert_vector4FA',mtlx_math_invert_vector4FA); - -// MaterialX node type: mtlx/math/absval_float -// -function mtlx_math_absval_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'absval_float'; - this.desc = "MaterialX:mtlx/math/absval_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_absval_float.nodedef_name = 'ND_absval_float'; -mtlx_math_absval_float.nodedef_node = 'absval'; -mtlx_math_absval_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_float',mtlx_math_absval_float); - -// MaterialX node type: mtlx/math/absval_color3 -// -function mtlx_math_absval_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'absval_color3'; - this.desc = "MaterialX:mtlx/math/absval_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_absval_color3.nodedef_name = 'ND_absval_color3'; -mtlx_math_absval_color3.nodedef_node = 'absval'; -mtlx_math_absval_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_color3',mtlx_math_absval_color3); - -// MaterialX node type: mtlx/math/absval_color4 -// -function mtlx_math_absval_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'absval_color4'; - this.desc = "MaterialX:mtlx/math/absval_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_absval_color4.nodedef_name = 'ND_absval_color4'; -mtlx_math_absval_color4.nodedef_node = 'absval'; -mtlx_math_absval_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_color4',mtlx_math_absval_color4); - -// MaterialX node type: mtlx/math/absval_vector2 -// -function mtlx_math_absval_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'absval_vector2'; - this.desc = "MaterialX:mtlx/math/absval_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_absval_vector2.nodedef_name = 'ND_absval_vector2'; -mtlx_math_absval_vector2.nodedef_node = 'absval'; -mtlx_math_absval_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector2',mtlx_math_absval_vector2); - -// MaterialX node type: mtlx/math/absval_vector3 -// -function mtlx_math_absval_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'absval_vector3'; - this.desc = "MaterialX:mtlx/math/absval_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_absval_vector3.nodedef_name = 'ND_absval_vector3'; -mtlx_math_absval_vector3.nodedef_node = 'absval'; -mtlx_math_absval_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector3',mtlx_math_absval_vector3); - -// MaterialX node type: mtlx/math/absval_vector4 -// -function mtlx_math_absval_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_absval_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'absval'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'absval_vector4'; - this.desc = "MaterialX:mtlx/math/absval_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_absval_vector4.nodedef_name = 'ND_absval_vector4'; -mtlx_math_absval_vector4.nodedef_node = 'absval'; -mtlx_math_absval_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; -LiteGraph.registerNodeType('mtlx/math/absval_vector4',mtlx_math_absval_vector4); - -// MaterialX node type: mtlx/math/floor_float -// -function mtlx_math_floor_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'floor_float'; - this.desc = "MaterialX:mtlx/math/floor_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_floor_float.nodedef_name = 'ND_floor_float'; -mtlx_math_floor_float.nodedef_node = 'floor'; -mtlx_math_floor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_float',mtlx_math_floor_float); - -// MaterialX node type: mtlx/math/floor_color3 -// -function mtlx_math_floor_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'floor_color3'; - this.desc = "MaterialX:mtlx/math/floor_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_floor_color3.nodedef_name = 'ND_floor_color3'; -mtlx_math_floor_color3.nodedef_node = 'floor'; -mtlx_math_floor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_color3',mtlx_math_floor_color3); - -// MaterialX node type: mtlx/math/floor_color4 -// -function mtlx_math_floor_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'floor_color4'; - this.desc = "MaterialX:mtlx/math/floor_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_floor_color4.nodedef_name = 'ND_floor_color4'; -mtlx_math_floor_color4.nodedef_node = 'floor'; -mtlx_math_floor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_color4',mtlx_math_floor_color4); - -// MaterialX node type: mtlx/math/floor_vector2 -// -function mtlx_math_floor_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'floor_vector2'; - this.desc = "MaterialX:mtlx/math/floor_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_floor_vector2.nodedef_name = 'ND_floor_vector2'; -mtlx_math_floor_vector2.nodedef_node = 'floor'; -mtlx_math_floor_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector2',mtlx_math_floor_vector2); - -// MaterialX node type: mtlx/math/floor_vector3 -// -function mtlx_math_floor_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'floor_vector3'; - this.desc = "MaterialX:mtlx/math/floor_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_floor_vector3.nodedef_name = 'ND_floor_vector3'; -mtlx_math_floor_vector3.nodedef_node = 'floor'; -mtlx_math_floor_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector3',mtlx_math_floor_vector3); - -// MaterialX node type: mtlx/math/floor_vector4 -// -function mtlx_math_floor_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'floor_vector4'; - this.desc = "MaterialX:mtlx/math/floor_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_floor_vector4.nodedef_name = 'ND_floor_vector4'; -mtlx_math_floor_vector4.nodedef_node = 'floor'; -mtlx_math_floor_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_vector4',mtlx_math_floor_vector4); - -// MaterialX node type: mtlx/math/floor_integer -// -function mtlx_math_floor_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_floor_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'floor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'floor_integer'; - this.desc = "MaterialX:mtlx/math/floor_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_floor_integer.nodedef_name = 'ND_floor_integer'; -mtlx_math_floor_integer.nodedef_node = 'floor'; -mtlx_math_floor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; -LiteGraph.registerNodeType('mtlx/math/floor_integer',mtlx_math_floor_integer); - -// MaterialX node type: mtlx/math/ceil_float -// -function mtlx_math_ceil_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ceil_float'; - this.desc = "MaterialX:mtlx/math/ceil_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_ceil_float.nodedef_name = 'ND_ceil_float'; -mtlx_math_ceil_float.nodedef_node = 'ceil'; -mtlx_math_ceil_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_float',mtlx_math_ceil_float); - -// MaterialX node type: mtlx/math/ceil_color3 -// -function mtlx_math_ceil_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ceil_color3'; - this.desc = "MaterialX:mtlx/math/ceil_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_ceil_color3.nodedef_name = 'ND_ceil_color3'; -mtlx_math_ceil_color3.nodedef_node = 'ceil'; -mtlx_math_ceil_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_color3',mtlx_math_ceil_color3); - -// MaterialX node type: mtlx/math/ceil_color4 -// -function mtlx_math_ceil_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ceil_color4'; - this.desc = "MaterialX:mtlx/math/ceil_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_ceil_color4.nodedef_name = 'ND_ceil_color4'; -mtlx_math_ceil_color4.nodedef_node = 'ceil'; -mtlx_math_ceil_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_color4',mtlx_math_ceil_color4); - -// MaterialX node type: mtlx/math/ceil_vector2 -// -function mtlx_math_ceil_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ceil_vector2'; - this.desc = "MaterialX:mtlx/math/ceil_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ceil_vector2.nodedef_name = 'ND_ceil_vector2'; -mtlx_math_ceil_vector2.nodedef_node = 'ceil'; -mtlx_math_ceil_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector2',mtlx_math_ceil_vector2); - -// MaterialX node type: mtlx/math/ceil_vector3 -// -function mtlx_math_ceil_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ceil_vector3'; - this.desc = "MaterialX:mtlx/math/ceil_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_ceil_vector3.nodedef_name = 'ND_ceil_vector3'; -mtlx_math_ceil_vector3.nodedef_node = 'ceil'; -mtlx_math_ceil_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector3',mtlx_math_ceil_vector3); - -// MaterialX node type: mtlx/math/ceil_vector4 -// -function mtlx_math_ceil_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ceil_vector4'; - this.desc = "MaterialX:mtlx/math/ceil_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_ceil_vector4.nodedef_name = 'ND_ceil_vector4'; -mtlx_math_ceil_vector4.nodedef_node = 'ceil'; -mtlx_math_ceil_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_vector4',mtlx_math_ceil_vector4); - -// MaterialX node type: mtlx/math/ceil_integer -// -function mtlx_math_ceil_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ceil_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ceil'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ceil_integer'; - this.desc = "MaterialX:mtlx/math/ceil_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ceil_integer.nodedef_name = 'ND_ceil_integer'; -mtlx_math_ceil_integer.nodedef_node = 'ceil'; -mtlx_math_ceil_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; -LiteGraph.registerNodeType('mtlx/math/ceil_integer',mtlx_math_ceil_integer); - -// MaterialX node type: mtlx/math/round_float -// -function mtlx_math_round_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'round_float'; - this.desc = "MaterialX:mtlx/math/round_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_round_float.nodedef_name = 'ND_round_float'; -mtlx_math_round_float.nodedef_node = 'round'; -mtlx_math_round_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_float',mtlx_math_round_float); - -// MaterialX node type: mtlx/math/round_color3 -// -function mtlx_math_round_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'round_color3'; - this.desc = "MaterialX:mtlx/math/round_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_round_color3.nodedef_name = 'ND_round_color3'; -mtlx_math_round_color3.nodedef_node = 'round'; -mtlx_math_round_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_color3',mtlx_math_round_color3); - -// MaterialX node type: mtlx/math/round_color4 -// -function mtlx_math_round_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'round_color4'; - this.desc = "MaterialX:mtlx/math/round_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_round_color4.nodedef_name = 'ND_round_color4'; -mtlx_math_round_color4.nodedef_node = 'round'; -mtlx_math_round_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_color4',mtlx_math_round_color4); - -// MaterialX node type: mtlx/math/round_vector2 -// -function mtlx_math_round_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'round_vector2'; - this.desc = "MaterialX:mtlx/math/round_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_round_vector2.nodedef_name = 'ND_round_vector2'; -mtlx_math_round_vector2.nodedef_node = 'round'; -mtlx_math_round_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector2',mtlx_math_round_vector2); - -// MaterialX node type: mtlx/math/round_vector3 -// -function mtlx_math_round_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'round_vector3'; - this.desc = "MaterialX:mtlx/math/round_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_round_vector3.nodedef_name = 'ND_round_vector3'; -mtlx_math_round_vector3.nodedef_node = 'round'; -mtlx_math_round_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector3',mtlx_math_round_vector3); - -// MaterialX node type: mtlx/math/round_vector4 -// -function mtlx_math_round_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'round_vector4'; - this.desc = "MaterialX:mtlx/math/round_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_round_vector4.nodedef_name = 'ND_round_vector4'; -mtlx_math_round_vector4.nodedef_node = 'round'; -mtlx_math_round_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_vector4',mtlx_math_round_vector4); - -// MaterialX node type: mtlx/math/round_integer -// -function mtlx_math_round_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_round_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'round'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_integer_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'round_integer'; - this.desc = "MaterialX:mtlx/math/round_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_round_integer.nodedef_name = 'ND_round_integer'; -mtlx_math_round_integer.nodedef_node = 'round'; -mtlx_math_round_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; -LiteGraph.registerNodeType('mtlx/math/round_integer',mtlx_math_round_integer); - -// MaterialX node type: mtlx/math/power_float -// -function mtlx_math_power_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'power_float'; - this.desc = "MaterialX:mtlx/math/power_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_power_float.nodedef_name = 'ND_power_float'; -mtlx_math_power_float.nodedef_node = 'power'; -mtlx_math_power_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_float',mtlx_math_power_float); - -// MaterialX node type: mtlx/math/power_color3 -// -function mtlx_math_power_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'power_color3'; - this.desc = "MaterialX:mtlx/math/power_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_power_color3.nodedef_name = 'ND_power_color3'; -mtlx_math_power_color3.nodedef_node = 'power'; -mtlx_math_power_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color3',mtlx_math_power_color3); - -// MaterialX node type: mtlx/math/power_color4 -// -function mtlx_math_power_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'power_color4'; - this.desc = "MaterialX:mtlx/math/power_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_power_color4.nodedef_name = 'ND_power_color4'; -mtlx_math_power_color4.nodedef_node = 'power'; -mtlx_math_power_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color4',mtlx_math_power_color4); - -// MaterialX node type: mtlx/math/power_vector2 -// -function mtlx_math_power_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'power_vector2'; - this.desc = "MaterialX:mtlx/math/power_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_power_vector2.nodedef_name = 'ND_power_vector2'; -mtlx_math_power_vector2.nodedef_node = 'power'; -mtlx_math_power_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector2',mtlx_math_power_vector2); - -// MaterialX node type: mtlx/math/power_vector3 -// -function mtlx_math_power_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'power_vector3'; - this.desc = "MaterialX:mtlx/math/power_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_power_vector3.nodedef_name = 'ND_power_vector3'; -mtlx_math_power_vector3.nodedef_node = 'power'; -mtlx_math_power_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector3',mtlx_math_power_vector3); - -// MaterialX node type: mtlx/math/power_vector4 -// -function mtlx_math_power_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'power_vector4'; - this.desc = "MaterialX:mtlx/math/power_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_power_vector4.nodedef_name = 'ND_power_vector4'; -mtlx_math_power_vector4.nodedef_node = 'power'; -mtlx_math_power_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector4',mtlx_math_power_vector4); - -// MaterialX node type: mtlx/math/power_color3FA -// -function mtlx_math_power_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'power_color3'; - this.desc = "MaterialX:mtlx/math/power_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_power_color3FA.nodedef_name = 'ND_power_color3FA'; -mtlx_math_power_color3FA.nodedef_node = 'power'; -mtlx_math_power_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color3FA',mtlx_math_power_color3FA); - -// MaterialX node type: mtlx/math/power_color4FA -// -function mtlx_math_power_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'power_color4'; - this.desc = "MaterialX:mtlx/math/power_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_power_color4FA.nodedef_name = 'ND_power_color4FA'; -mtlx_math_power_color4FA.nodedef_node = 'power'; -mtlx_math_power_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_color4FA',mtlx_math_power_color4FA); - -// MaterialX node type: mtlx/math/power_vector2FA -// -function mtlx_math_power_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'power_vector2'; - this.desc = "MaterialX:mtlx/math/power_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_power_vector2FA.nodedef_name = 'ND_power_vector2FA'; -mtlx_math_power_vector2FA.nodedef_node = 'power'; -mtlx_math_power_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector2FA',mtlx_math_power_vector2FA); - -// MaterialX node type: mtlx/math/power_vector3FA -// -function mtlx_math_power_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'power_vector3'; - this.desc = "MaterialX:mtlx/math/power_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_power_vector3FA.nodedef_name = 'ND_power_vector3FA'; -mtlx_math_power_vector3FA.nodedef_node = 'power'; -mtlx_math_power_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector3FA',mtlx_math_power_vector3FA); - -// MaterialX node type: mtlx/math/power_vector4FA -// -function mtlx_math_power_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_power_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'power'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'power_vector4'; - this.desc = "MaterialX:mtlx/math/power_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_power_vector4FA.nodedef_name = 'ND_power_vector4FA'; -mtlx_math_power_vector4FA.nodedef_node = 'power'; -mtlx_math_power_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; -LiteGraph.registerNodeType('mtlx/math/power_vector4FA',mtlx_math_power_vector4FA); - -// MaterialX node type: mtlx/math/safepower_float -// -function mtlx_math_safepower_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'safepower_float'; - this.desc = "MaterialX:mtlx/math/safepower_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_safepower_float.nodedef_name = 'ND_safepower_float'; -mtlx_math_safepower_float.nodedef_node = 'safepower'; -mtlx_math_safepower_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_float',mtlx_math_safepower_float); - -// MaterialX node type: mtlx/math/safepower_color3 -// -function mtlx_math_safepower_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'safepower_color3'; - this.desc = "MaterialX:mtlx/math/safepower_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_safepower_color3.nodedef_name = 'ND_safepower_color3'; -mtlx_math_safepower_color3.nodedef_node = 'safepower'; -mtlx_math_safepower_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color3',mtlx_math_safepower_color3); - -// MaterialX node type: mtlx/math/safepower_color4 -// -function mtlx_math_safepower_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'safepower_color4'; - this.desc = "MaterialX:mtlx/math/safepower_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_safepower_color4.nodedef_name = 'ND_safepower_color4'; -mtlx_math_safepower_color4.nodedef_node = 'safepower'; -mtlx_math_safepower_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color4',mtlx_math_safepower_color4); - -// MaterialX node type: mtlx/math/safepower_vector2 -// -function mtlx_math_safepower_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'safepower_vector2'; - this.desc = "MaterialX:mtlx/math/safepower_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_safepower_vector2.nodedef_name = 'ND_safepower_vector2'; -mtlx_math_safepower_vector2.nodedef_node = 'safepower'; -mtlx_math_safepower_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector2',mtlx_math_safepower_vector2); - -// MaterialX node type: mtlx/math/safepower_vector3 -// -function mtlx_math_safepower_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'safepower_vector3'; - this.desc = "MaterialX:mtlx/math/safepower_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_safepower_vector3.nodedef_name = 'ND_safepower_vector3'; -mtlx_math_safepower_vector3.nodedef_node = 'safepower'; -mtlx_math_safepower_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector3',mtlx_math_safepower_vector3); - -// MaterialX node type: mtlx/math/safepower_vector4 -// -function mtlx_math_safepower_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'safepower_vector4'; - this.desc = "MaterialX:mtlx/math/safepower_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_safepower_vector4.nodedef_name = 'ND_safepower_vector4'; -mtlx_math_safepower_vector4.nodedef_node = 'safepower'; -mtlx_math_safepower_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector4',mtlx_math_safepower_vector4); - -// MaterialX node type: mtlx/math/safepower_color3FA -// -function mtlx_math_safepower_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'safepower_color3'; - this.desc = "MaterialX:mtlx/math/safepower_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_safepower_color3FA.nodedef_name = 'ND_safepower_color3FA'; -mtlx_math_safepower_color3FA.nodedef_node = 'safepower'; -mtlx_math_safepower_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color3FA',mtlx_math_safepower_color3FA); - -// MaterialX node type: mtlx/math/safepower_color4FA -// -function mtlx_math_safepower_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'safepower_color4'; - this.desc = "MaterialX:mtlx/math/safepower_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_safepower_color4FA.nodedef_name = 'ND_safepower_color4FA'; -mtlx_math_safepower_color4FA.nodedef_node = 'safepower'; -mtlx_math_safepower_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_color4FA',mtlx_math_safepower_color4FA); - -// MaterialX node type: mtlx/math/safepower_vector2FA -// -function mtlx_math_safepower_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'safepower_vector2'; - this.desc = "MaterialX:mtlx/math/safepower_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_safepower_vector2FA.nodedef_name = 'ND_safepower_vector2FA'; -mtlx_math_safepower_vector2FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector2FA',mtlx_math_safepower_vector2FA); - -// MaterialX node type: mtlx/math/safepower_vector3FA -// -function mtlx_math_safepower_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'safepower_vector3'; - this.desc = "MaterialX:mtlx/math/safepower_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_safepower_vector3FA.nodedef_name = 'ND_safepower_vector3FA'; -mtlx_math_safepower_vector3FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector3FA',mtlx_math_safepower_vector3FA); - -// MaterialX node type: mtlx/math/safepower_vector4FA -// -function mtlx_math_safepower_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_safepower_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'safepower'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'safepower_vector4'; - this.desc = "MaterialX:mtlx/math/safepower_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_safepower_vector4FA.nodedef_name = 'ND_safepower_vector4FA'; -mtlx_math_safepower_vector4FA.nodedef_node = 'safepower'; -mtlx_math_safepower_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; -LiteGraph.registerNodeType('mtlx/math/safepower_vector4FA',mtlx_math_safepower_vector4FA); - -// MaterialX node type: mtlx/math/sin_float -// -function mtlx_math_sin_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sin_float'; - this.desc = "MaterialX:mtlx/math/sin_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sin_float.nodedef_name = 'ND_sin_float'; -mtlx_math_sin_float.nodedef_node = 'sin'; -mtlx_math_sin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_float',mtlx_math_sin_float); - -// MaterialX node type: mtlx/math/cos_float -// -function mtlx_math_cos_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'cos_float'; - this.desc = "MaterialX:mtlx/math/cos_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_cos_float.nodedef_name = 'ND_cos_float'; -mtlx_math_cos_float.nodedef_node = 'cos'; -mtlx_math_cos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_float',mtlx_math_cos_float); - -// MaterialX node type: mtlx/math/tan_float -// -function mtlx_math_tan_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'tan_float'; - this.desc = "MaterialX:mtlx/math/tan_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_tan_float.nodedef_name = 'ND_tan_float'; -mtlx_math_tan_float.nodedef_node = 'tan'; -mtlx_math_tan_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_float',mtlx_math_tan_float); - -// MaterialX node type: mtlx/math/asin_float -// -function mtlx_math_asin_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'asin_float'; - this.desc = "MaterialX:mtlx/math/asin_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_asin_float.nodedef_name = 'ND_asin_float'; -mtlx_math_asin_float.nodedef_node = 'asin'; -mtlx_math_asin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_float',mtlx_math_asin_float); - -// MaterialX node type: mtlx/math/acos_float -// -function mtlx_math_acos_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'acos_float'; - this.desc = "MaterialX:mtlx/math/acos_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_acos_float.nodedef_name = 'ND_acos_float'; -mtlx_math_acos_float.nodedef_node = 'acos'; -mtlx_math_acos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_float',mtlx_math_acos_float); - -// MaterialX node type: mtlx/math/atan2_float -// -function mtlx_math_atan2_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','float'); - this.addProperty('iny', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','float'); - this.addProperty('inx', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'atan2_float'; - this.desc = "MaterialX:mtlx/math/atan2_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_atan2_float.nodedef_name = 'ND_atan2_float'; -mtlx_math_atan2_float.nodedef_node = 'atan2'; -mtlx_math_atan2_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_float',mtlx_math_atan2_float); - -// MaterialX node type: mtlx/math/sin_vector2 -// -function mtlx_math_sin_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sin_vector2'; - this.desc = "MaterialX:mtlx/math/sin_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sin_vector2.nodedef_name = 'ND_sin_vector2'; -mtlx_math_sin_vector2.nodedef_node = 'sin'; -mtlx_math_sin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector2',mtlx_math_sin_vector2); - -// MaterialX node type: mtlx/math/cos_vector2 -// -function mtlx_math_cos_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'cos_vector2'; - this.desc = "MaterialX:mtlx/math/cos_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_cos_vector2.nodedef_name = 'ND_cos_vector2'; -mtlx_math_cos_vector2.nodedef_node = 'cos'; -mtlx_math_cos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector2',mtlx_math_cos_vector2); - -// MaterialX node type: mtlx/math/tan_vector2 -// -function mtlx_math_tan_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'tan_vector2'; - this.desc = "MaterialX:mtlx/math/tan_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_tan_vector2.nodedef_name = 'ND_tan_vector2'; -mtlx_math_tan_vector2.nodedef_node = 'tan'; -mtlx_math_tan_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector2',mtlx_math_tan_vector2); - -// MaterialX node type: mtlx/math/asin_vector2 -// -function mtlx_math_asin_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'asin_vector2'; - this.desc = "MaterialX:mtlx/math/asin_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_asin_vector2.nodedef_name = 'ND_asin_vector2'; -mtlx_math_asin_vector2.nodedef_node = 'asin'; -mtlx_math_asin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector2',mtlx_math_asin_vector2); - -// MaterialX node type: mtlx/math/acos_vector2 -// -function mtlx_math_acos_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'acos_vector2'; - this.desc = "MaterialX:mtlx/math/acos_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_acos_vector2.nodedef_name = 'ND_acos_vector2'; -mtlx_math_acos_vector2.nodedef_node = 'acos'; -mtlx_math_acos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector2',mtlx_math_acos_vector2); - -// MaterialX node type: mtlx/math/atan2_vector2 -// -function mtlx_math_atan2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector2'); - this.addProperty('iny', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector2'); - this.addProperty('inx', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'atan2_vector2'; - this.desc = "MaterialX:mtlx/math/atan2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_atan2_vector2.nodedef_name = 'ND_atan2_vector2'; -mtlx_math_atan2_vector2.nodedef_node = 'atan2'; -mtlx_math_atan2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector2',mtlx_math_atan2_vector2); - -// MaterialX node type: mtlx/math/sin_vector3 -// -function mtlx_math_sin_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sin_vector3'; - this.desc = "MaterialX:mtlx/math/sin_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sin_vector3.nodedef_name = 'ND_sin_vector3'; -mtlx_math_sin_vector3.nodedef_node = 'sin'; -mtlx_math_sin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector3',mtlx_math_sin_vector3); - -// MaterialX node type: mtlx/math/cos_vector3 -// -function mtlx_math_cos_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'cos_vector3'; - this.desc = "MaterialX:mtlx/math/cos_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_cos_vector3.nodedef_name = 'ND_cos_vector3'; -mtlx_math_cos_vector3.nodedef_node = 'cos'; -mtlx_math_cos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector3',mtlx_math_cos_vector3); - -// MaterialX node type: mtlx/math/tan_vector3 -// -function mtlx_math_tan_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'tan_vector3'; - this.desc = "MaterialX:mtlx/math/tan_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_tan_vector3.nodedef_name = 'ND_tan_vector3'; -mtlx_math_tan_vector3.nodedef_node = 'tan'; -mtlx_math_tan_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector3',mtlx_math_tan_vector3); - -// MaterialX node type: mtlx/math/asin_vector3 -// -function mtlx_math_asin_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'asin_vector3'; - this.desc = "MaterialX:mtlx/math/asin_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_asin_vector3.nodedef_name = 'ND_asin_vector3'; -mtlx_math_asin_vector3.nodedef_node = 'asin'; -mtlx_math_asin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector3',mtlx_math_asin_vector3); - -// MaterialX node type: mtlx/math/acos_vector3 -// -function mtlx_math_acos_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'acos_vector3'; - this.desc = "MaterialX:mtlx/math/acos_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_acos_vector3.nodedef_name = 'ND_acos_vector3'; -mtlx_math_acos_vector3.nodedef_node = 'acos'; -mtlx_math_acos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector3',mtlx_math_acos_vector3); - -// MaterialX node type: mtlx/math/atan2_vector3 -// -function mtlx_math_atan2_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector3'); - this.addProperty('iny', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector3'); - this.addProperty('inx', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'atan2_vector3'; - this.desc = "MaterialX:mtlx/math/atan2_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_atan2_vector3.nodedef_name = 'ND_atan2_vector3'; -mtlx_math_atan2_vector3.nodedef_node = 'atan2'; -mtlx_math_atan2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector3',mtlx_math_atan2_vector3); - -// MaterialX node type: mtlx/math/sin_vector4 -// -function mtlx_math_sin_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sin_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sin_vector4'; - this.desc = "MaterialX:mtlx/math/sin_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sin_vector4.nodedef_name = 'ND_sin_vector4'; -mtlx_math_sin_vector4.nodedef_node = 'sin'; -mtlx_math_sin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; -LiteGraph.registerNodeType('mtlx/math/sin_vector4',mtlx_math_sin_vector4); - -// MaterialX node type: mtlx/math/cos_vector4 -// -function mtlx_math_cos_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_cos_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'cos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'cos_vector4'; - this.desc = "MaterialX:mtlx/math/cos_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_cos_vector4.nodedef_name = 'ND_cos_vector4'; -mtlx_math_cos_vector4.nodedef_node = 'cos'; -mtlx_math_cos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; -LiteGraph.registerNodeType('mtlx/math/cos_vector4',mtlx_math_cos_vector4); - -// MaterialX node type: mtlx/math/tan_vector4 -// -function mtlx_math_tan_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_tan_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'tan'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'tan_vector4'; - this.desc = "MaterialX:mtlx/math/tan_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_tan_vector4.nodedef_name = 'ND_tan_vector4'; -mtlx_math_tan_vector4.nodedef_node = 'tan'; -mtlx_math_tan_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; -LiteGraph.registerNodeType('mtlx/math/tan_vector4',mtlx_math_tan_vector4); - -// MaterialX node type: mtlx/math/asin_vector4 -// -function mtlx_math_asin_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_asin_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'asin'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'asin_vector4'; - this.desc = "MaterialX:mtlx/math/asin_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_asin_vector4.nodedef_name = 'ND_asin_vector4'; -mtlx_math_asin_vector4.nodedef_node = 'asin'; -mtlx_math_asin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; -LiteGraph.registerNodeType('mtlx/math/asin_vector4',mtlx_math_asin_vector4); - -// MaterialX node type: mtlx/math/acos_vector4 -// -function mtlx_math_acos_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_acos_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'acos'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'acos_vector4'; - this.desc = "MaterialX:mtlx/math/acos_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_acos_vector4.nodedef_name = 'ND_acos_vector4'; -mtlx_math_acos_vector4.nodedef_node = 'acos'; -mtlx_math_acos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; -LiteGraph.registerNodeType('mtlx/math/acos_vector4',mtlx_math_acos_vector4); - -// MaterialX node type: mtlx/math/atan2_vector4 -// -function mtlx_math_atan2_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_atan2_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'atan2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('iny','vector4'); - this.addProperty('iny', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inx','vector4'); - this.addProperty('inx', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'atan2_vector4'; - this.desc = "MaterialX:mtlx/math/atan2_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_atan2_vector4.nodedef_name = 'ND_atan2_vector4'; -mtlx_math_atan2_vector4.nodedef_node = 'atan2'; -mtlx_math_atan2_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; -LiteGraph.registerNodeType('mtlx/math/atan2_vector4',mtlx_math_atan2_vector4); - -// MaterialX node type: mtlx/math/sqrt_float -// -function mtlx_math_sqrt_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sqrt_float'; - this.desc = "MaterialX:mtlx/math/sqrt_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sqrt_float.nodedef_name = 'ND_sqrt_float'; -mtlx_math_sqrt_float.nodedef_node = 'sqrt'; -mtlx_math_sqrt_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_float',mtlx_math_sqrt_float); - -// MaterialX node type: mtlx/math/ln_float -// -function mtlx_math_ln_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ln_float'; - this.desc = "MaterialX:mtlx/math/ln_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_ln_float.nodedef_name = 'ND_ln_float'; -mtlx_math_ln_float.nodedef_node = 'ln'; -mtlx_math_ln_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_float',mtlx_math_ln_float); - -// MaterialX node type: mtlx/math/exp_float -// -function mtlx_math_exp_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'exp_float'; - this.desc = "MaterialX:mtlx/math/exp_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_exp_float.nodedef_name = 'ND_exp_float'; -mtlx_math_exp_float.nodedef_node = 'exp'; -mtlx_math_exp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_float',mtlx_math_exp_float); - -// MaterialX node type: mtlx/math/sqrt_vector2 -// -function mtlx_math_sqrt_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sqrt_vector2'; - this.desc = "MaterialX:mtlx/math/sqrt_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sqrt_vector2.nodedef_name = 'ND_sqrt_vector2'; -mtlx_math_sqrt_vector2.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector2',mtlx_math_sqrt_vector2); - -// MaterialX node type: mtlx/math/ln_vector2 -// -function mtlx_math_ln_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ln_vector2'; - this.desc = "MaterialX:mtlx/math/ln_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_ln_vector2.nodedef_name = 'ND_ln_vector2'; -mtlx_math_ln_vector2.nodedef_node = 'ln'; -mtlx_math_ln_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector2',mtlx_math_ln_vector2); - -// MaterialX node type: mtlx/math/exp_vector2 -// -function mtlx_math_exp_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'exp_vector2'; - this.desc = "MaterialX:mtlx/math/exp_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_exp_vector2.nodedef_name = 'ND_exp_vector2'; -mtlx_math_exp_vector2.nodedef_node = 'exp'; -mtlx_math_exp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector2',mtlx_math_exp_vector2); - -// MaterialX node type: mtlx/math/sqrt_vector3 -// -function mtlx_math_sqrt_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sqrt_vector3'; - this.desc = "MaterialX:mtlx/math/sqrt_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sqrt_vector3.nodedef_name = 'ND_sqrt_vector3'; -mtlx_math_sqrt_vector3.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector3',mtlx_math_sqrt_vector3); - -// MaterialX node type: mtlx/math/ln_vector3 -// -function mtlx_math_ln_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ln_vector3'; - this.desc = "MaterialX:mtlx/math/ln_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_ln_vector3.nodedef_name = 'ND_ln_vector3'; -mtlx_math_ln_vector3.nodedef_node = 'ln'; -mtlx_math_ln_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector3',mtlx_math_ln_vector3); - -// MaterialX node type: mtlx/math/exp_vector3 -// -function mtlx_math_exp_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'exp_vector3'; - this.desc = "MaterialX:mtlx/math/exp_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_exp_vector3.nodedef_name = 'ND_exp_vector3'; -mtlx_math_exp_vector3.nodedef_node = 'exp'; -mtlx_math_exp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector3',mtlx_math_exp_vector3); - -// MaterialX node type: mtlx/math/sqrt_vector4 -// -function mtlx_math_sqrt_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sqrt_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sqrt'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sqrt_vector4'; - this.desc = "MaterialX:mtlx/math/sqrt_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sqrt_vector4.nodedef_name = 'ND_sqrt_vector4'; -mtlx_math_sqrt_vector4.nodedef_node = 'sqrt'; -mtlx_math_sqrt_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; -LiteGraph.registerNodeType('mtlx/math/sqrt_vector4',mtlx_math_sqrt_vector4); - -// MaterialX node type: mtlx/math/ln_vector4 -// -function mtlx_math_ln_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ln_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ln'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ln_vector4'; - this.desc = "MaterialX:mtlx/math/ln_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_ln_vector4.nodedef_name = 'ND_ln_vector4'; -mtlx_math_ln_vector4.nodedef_node = 'ln'; -mtlx_math_ln_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; -LiteGraph.registerNodeType('mtlx/math/ln_vector4',mtlx_math_ln_vector4); - -// MaterialX node type: mtlx/math/exp_vector4 -// -function mtlx_math_exp_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_exp_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'exp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'exp_vector4'; - this.desc = "MaterialX:mtlx/math/exp_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_exp_vector4.nodedef_name = 'ND_exp_vector4'; -mtlx_math_exp_vector4.nodedef_node = 'exp'; -mtlx_math_exp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; -LiteGraph.registerNodeType('mtlx/math/exp_vector4',mtlx_math_exp_vector4); - -// MaterialX node type: mtlx/math/sign_float -// -function mtlx_math_sign_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'sign_float'; - this.desc = "MaterialX:mtlx/math/sign_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_sign_float.nodedef_name = 'ND_sign_float'; -mtlx_math_sign_float.nodedef_node = 'sign'; -mtlx_math_sign_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_float',mtlx_math_sign_float); - -// MaterialX node type: mtlx/math/sign_color3 -// -function mtlx_math_sign_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'sign_color3'; - this.desc = "MaterialX:mtlx/math/sign_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_sign_color3.nodedef_name = 'ND_sign_color3'; -mtlx_math_sign_color3.nodedef_node = 'sign'; -mtlx_math_sign_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_color3',mtlx_math_sign_color3); - -// MaterialX node type: mtlx/math/sign_color4 -// -function mtlx_math_sign_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'sign_color4'; - this.desc = "MaterialX:mtlx/math/sign_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_sign_color4.nodedef_name = 'ND_sign_color4'; -mtlx_math_sign_color4.nodedef_node = 'sign'; -mtlx_math_sign_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_color4',mtlx_math_sign_color4); - -// MaterialX node type: mtlx/math/sign_vector2 -// -function mtlx_math_sign_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'sign_vector2'; - this.desc = "MaterialX:mtlx/math/sign_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_sign_vector2.nodedef_name = 'ND_sign_vector2'; -mtlx_math_sign_vector2.nodedef_node = 'sign'; -mtlx_math_sign_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector2',mtlx_math_sign_vector2); - -// MaterialX node type: mtlx/math/sign_vector3 -// -function mtlx_math_sign_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'sign_vector3'; - this.desc = "MaterialX:mtlx/math/sign_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_sign_vector3.nodedef_name = 'ND_sign_vector3'; -mtlx_math_sign_vector3.nodedef_node = 'sign'; -mtlx_math_sign_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector3',mtlx_math_sign_vector3); - -// MaterialX node type: mtlx/math/sign_vector4 -// -function mtlx_math_sign_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_sign_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'sign'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'sign_vector4'; - this.desc = "MaterialX:mtlx/math/sign_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_sign_vector4.nodedef_name = 'ND_sign_vector4'; -mtlx_math_sign_vector4.nodedef_node = 'sign'; -mtlx_math_sign_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; -LiteGraph.registerNodeType('mtlx/math/sign_vector4',mtlx_math_sign_vector4); - -// MaterialX node type: mtlx/math/clamp_float -// -function mtlx_math_clamp_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'clamp_float'; - this.desc = "MaterialX:mtlx/math/clamp_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_clamp_float.nodedef_name = 'ND_clamp_float'; -mtlx_math_clamp_float.nodedef_node = 'clamp'; -mtlx_math_clamp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_float',mtlx_math_clamp_float); - -// MaterialX node type: mtlx/math/clamp_color3 -// -function mtlx_math_clamp_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'clamp_color3'; - this.desc = "MaterialX:mtlx/math/clamp_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_clamp_color3.nodedef_name = 'ND_clamp_color3'; -mtlx_math_clamp_color3.nodedef_node = 'clamp'; -mtlx_math_clamp_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color3',mtlx_math_clamp_color3); - -// MaterialX node type: mtlx/math/clamp_color4 -// -function mtlx_math_clamp_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'clamp_color4'; - this.desc = "MaterialX:mtlx/math/clamp_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_clamp_color4.nodedef_name = 'ND_clamp_color4'; -mtlx_math_clamp_color4.nodedef_node = 'clamp'; -mtlx_math_clamp_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color4',mtlx_math_clamp_color4); - -// MaterialX node type: mtlx/math/clamp_vector2 -// -function mtlx_math_clamp_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector2'); - this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector2'); - this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'clamp_vector2'; - this.desc = "MaterialX:mtlx/math/clamp_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_clamp_vector2.nodedef_name = 'ND_clamp_vector2'; -mtlx_math_clamp_vector2.nodedef_node = 'clamp'; -mtlx_math_clamp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector2',mtlx_math_clamp_vector2); - -// MaterialX node type: mtlx/math/clamp_vector3 -// -function mtlx_math_clamp_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'clamp_vector3'; - this.desc = "MaterialX:mtlx/math/clamp_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_clamp_vector3.nodedef_name = 'ND_clamp_vector3'; -mtlx_math_clamp_vector3.nodedef_node = 'clamp'; -mtlx_math_clamp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector3',mtlx_math_clamp_vector3); - -// MaterialX node type: mtlx/math/clamp_vector4 -// -function mtlx_math_clamp_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'clamp_vector4'; - this.desc = "MaterialX:mtlx/math/clamp_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_clamp_vector4.nodedef_name = 'ND_clamp_vector4'; -mtlx_math_clamp_vector4.nodedef_node = 'clamp'; -mtlx_math_clamp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector4',mtlx_math_clamp_vector4); - -// MaterialX node type: mtlx/math/clamp_color3FA -// -function mtlx_math_clamp_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'clamp_color3'; - this.desc = "MaterialX:mtlx/math/clamp_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_clamp_color3FA.nodedef_name = 'ND_clamp_color3FA'; -mtlx_math_clamp_color3FA.nodedef_node = 'clamp'; -mtlx_math_clamp_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color3FA',mtlx_math_clamp_color3FA); - -// MaterialX node type: mtlx/math/clamp_color4FA -// -function mtlx_math_clamp_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'clamp_color4'; - this.desc = "MaterialX:mtlx/math/clamp_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_clamp_color4FA.nodedef_name = 'ND_clamp_color4FA'; -mtlx_math_clamp_color4FA.nodedef_node = 'clamp'; -mtlx_math_clamp_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_color4FA',mtlx_math_clamp_color4FA); - -// MaterialX node type: mtlx/math/clamp_vector2FA -// -function mtlx_math_clamp_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'clamp_vector2'; - this.desc = "MaterialX:mtlx/math/clamp_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_clamp_vector2FA.nodedef_name = 'ND_clamp_vector2FA'; -mtlx_math_clamp_vector2FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector2FA',mtlx_math_clamp_vector2FA); - -// MaterialX node type: mtlx/math/clamp_vector3FA -// -function mtlx_math_clamp_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'clamp_vector3'; - this.desc = "MaterialX:mtlx/math/clamp_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_clamp_vector3FA.nodedef_name = 'ND_clamp_vector3FA'; -mtlx_math_clamp_vector3FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector3FA',mtlx_math_clamp_vector3FA); - -// MaterialX node type: mtlx/math/clamp_vector4FA -// -function mtlx_math_clamp_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_clamp_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'clamp'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'clamp_vector4'; - this.desc = "MaterialX:mtlx/math/clamp_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_clamp_vector4FA.nodedef_name = 'ND_clamp_vector4FA'; -mtlx_math_clamp_vector4FA.nodedef_node = 'clamp'; -mtlx_math_clamp_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; -LiteGraph.registerNodeType('mtlx/math/clamp_vector4FA',mtlx_math_clamp_vector4FA); - -// MaterialX node type: mtlx/math/min_float -// -function mtlx_math_min_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'min_float'; - this.desc = "MaterialX:mtlx/math/min_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_min_float.nodedef_name = 'ND_min_float'; -mtlx_math_min_float.nodedef_node = 'min'; -mtlx_math_min_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_float',mtlx_math_min_float); - -// MaterialX node type: mtlx/math/min_color3 -// -function mtlx_math_min_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'min_color3'; - this.desc = "MaterialX:mtlx/math/min_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_min_color3.nodedef_name = 'ND_min_color3'; -mtlx_math_min_color3.nodedef_node = 'min'; -mtlx_math_min_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color3',mtlx_math_min_color3); - -// MaterialX node type: mtlx/math/min_color4 -// -function mtlx_math_min_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'min_color4'; - this.desc = "MaterialX:mtlx/math/min_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_min_color4.nodedef_name = 'ND_min_color4'; -mtlx_math_min_color4.nodedef_node = 'min'; -mtlx_math_min_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color4',mtlx_math_min_color4); - -// MaterialX node type: mtlx/math/min_vector2 -// -function mtlx_math_min_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'min_vector2'; - this.desc = "MaterialX:mtlx/math/min_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_min_vector2.nodedef_name = 'ND_min_vector2'; -mtlx_math_min_vector2.nodedef_node = 'min'; -mtlx_math_min_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector2',mtlx_math_min_vector2); - -// MaterialX node type: mtlx/math/min_vector3 -// -function mtlx_math_min_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'min_vector3'; - this.desc = "MaterialX:mtlx/math/min_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_min_vector3.nodedef_name = 'ND_min_vector3'; -mtlx_math_min_vector3.nodedef_node = 'min'; -mtlx_math_min_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector3',mtlx_math_min_vector3); - -// MaterialX node type: mtlx/math/min_vector4 -// -function mtlx_math_min_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'min_vector4'; - this.desc = "MaterialX:mtlx/math/min_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_min_vector4.nodedef_name = 'ND_min_vector4'; -mtlx_math_min_vector4.nodedef_node = 'min'; -mtlx_math_min_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector4',mtlx_math_min_vector4); - -// MaterialX node type: mtlx/math/min_color3FA -// -function mtlx_math_min_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'min_color3'; - this.desc = "MaterialX:mtlx/math/min_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_min_color3FA.nodedef_name = 'ND_min_color3FA'; -mtlx_math_min_color3FA.nodedef_node = 'min'; -mtlx_math_min_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color3FA',mtlx_math_min_color3FA); - -// MaterialX node type: mtlx/math/min_color4FA -// -function mtlx_math_min_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'min_color4'; - this.desc = "MaterialX:mtlx/math/min_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_min_color4FA.nodedef_name = 'ND_min_color4FA'; -mtlx_math_min_color4FA.nodedef_node = 'min'; -mtlx_math_min_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_color4FA',mtlx_math_min_color4FA); - -// MaterialX node type: mtlx/math/min_vector2FA -// -function mtlx_math_min_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'min_vector2'; - this.desc = "MaterialX:mtlx/math/min_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_min_vector2FA.nodedef_name = 'ND_min_vector2FA'; -mtlx_math_min_vector2FA.nodedef_node = 'min'; -mtlx_math_min_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector2FA',mtlx_math_min_vector2FA); - -// MaterialX node type: mtlx/math/min_vector3FA -// -function mtlx_math_min_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'min_vector3'; - this.desc = "MaterialX:mtlx/math/min_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_min_vector3FA.nodedef_name = 'ND_min_vector3FA'; -mtlx_math_min_vector3FA.nodedef_node = 'min'; -mtlx_math_min_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector3FA',mtlx_math_min_vector3FA); - -// MaterialX node type: mtlx/math/min_vector4FA -// -function mtlx_math_min_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_min_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'min'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'min_vector4'; - this.desc = "MaterialX:mtlx/math/min_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_min_vector4FA.nodedef_name = 'ND_min_vector4FA'; -mtlx_math_min_vector4FA.nodedef_node = 'min'; -mtlx_math_min_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; -LiteGraph.registerNodeType('mtlx/math/min_vector4FA',mtlx_math_min_vector4FA); - -// MaterialX node type: mtlx/math/max_float -// -function mtlx_math_max_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'max_float'; - this.desc = "MaterialX:mtlx/math/max_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_max_float.nodedef_name = 'ND_max_float'; -mtlx_math_max_float.nodedef_node = 'max'; -mtlx_math_max_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_float',mtlx_math_max_float); - -// MaterialX node type: mtlx/math/max_color3 -// -function mtlx_math_max_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'max_color3'; - this.desc = "MaterialX:mtlx/math/max_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_max_color3.nodedef_name = 'ND_max_color3'; -mtlx_math_max_color3.nodedef_node = 'max'; -mtlx_math_max_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color3',mtlx_math_max_color3); - -// MaterialX node type: mtlx/math/max_color4 -// -function mtlx_math_max_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'max_color4'; - this.desc = "MaterialX:mtlx/math/max_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_max_color4.nodedef_name = 'ND_max_color4'; -mtlx_math_max_color4.nodedef_node = 'max'; -mtlx_math_max_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color4',mtlx_math_max_color4); - -// MaterialX node type: mtlx/math/max_vector2 -// -function mtlx_math_max_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'max_vector2'; - this.desc = "MaterialX:mtlx/math/max_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_max_vector2.nodedef_name = 'ND_max_vector2'; -mtlx_math_max_vector2.nodedef_node = 'max'; -mtlx_math_max_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector2',mtlx_math_max_vector2); - -// MaterialX node type: mtlx/math/max_vector3 -// -function mtlx_math_max_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'max_vector3'; - this.desc = "MaterialX:mtlx/math/max_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_max_vector3.nodedef_name = 'ND_max_vector3'; -mtlx_math_max_vector3.nodedef_node = 'max'; -mtlx_math_max_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector3',mtlx_math_max_vector3); - -// MaterialX node type: mtlx/math/max_vector4 -// -function mtlx_math_max_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'max_vector4'; - this.desc = "MaterialX:mtlx/math/max_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_max_vector4.nodedef_name = 'ND_max_vector4'; -mtlx_math_max_vector4.nodedef_node = 'max'; -mtlx_math_max_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector4',mtlx_math_max_vector4); - -// MaterialX node type: mtlx/math/max_color3FA -// -function mtlx_math_max_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'max_color3'; - this.desc = "MaterialX:mtlx/math/max_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_math_max_color3FA.nodedef_name = 'ND_max_color3FA'; -mtlx_math_max_color3FA.nodedef_node = 'max'; -mtlx_math_max_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color3FA',mtlx_math_max_color3FA); - -// MaterialX node type: mtlx/math/max_color4FA -// -function mtlx_math_max_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'max_color4'; - this.desc = "MaterialX:mtlx/math/max_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_math_max_color4FA.nodedef_name = 'ND_max_color4FA'; -mtlx_math_max_color4FA.nodedef_node = 'max'; -mtlx_math_max_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_color4FA',mtlx_math_max_color4FA); - -// MaterialX node type: mtlx/math/max_vector2FA -// -function mtlx_math_max_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'max_vector2'; - this.desc = "MaterialX:mtlx/math/max_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_max_vector2FA.nodedef_name = 'ND_max_vector2FA'; -mtlx_math_max_vector2FA.nodedef_node = 'max'; -mtlx_math_max_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector2FA',mtlx_math_max_vector2FA); - -// MaterialX node type: mtlx/math/max_vector3FA -// -function mtlx_math_max_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'max_vector3'; - this.desc = "MaterialX:mtlx/math/max_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_max_vector3FA.nodedef_name = 'ND_max_vector3FA'; -mtlx_math_max_vector3FA.nodedef_node = 'max'; -mtlx_math_max_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector3FA',mtlx_math_max_vector3FA); - -// MaterialX node type: mtlx/math/max_vector4FA -// -function mtlx_math_max_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_max_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'max'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4FA_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'max_vector4'; - this.desc = "MaterialX:mtlx/math/max_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_max_vector4FA.nodedef_name = 'ND_max_vector4FA'; -mtlx_math_max_vector4FA.nodedef_node = 'max'; -mtlx_math_max_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; -LiteGraph.registerNodeType('mtlx/math/max_vector4FA',mtlx_math_max_vector4FA); - -// MaterialX node type: mtlx/math/normalize_vector2 -// -function mtlx_math_normalize_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'normalize_vector2'; - this.desc = "MaterialX:mtlx/math/normalize_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_normalize_vector2.nodedef_name = 'ND_normalize_vector2'; -mtlx_math_normalize_vector2.nodedef_node = 'normalize'; -mtlx_math_normalize_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector2',mtlx_math_normalize_vector2); - -// MaterialX node type: mtlx/math/normalize_vector3 -// -function mtlx_math_normalize_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalize_vector3'; - this.desc = "MaterialX:mtlx/math/normalize_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalize_vector3.nodedef_name = 'ND_normalize_vector3'; -mtlx_math_normalize_vector3.nodedef_node = 'normalize'; -mtlx_math_normalize_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector3',mtlx_math_normalize_vector3); - -// MaterialX node type: mtlx/math/normalize_vector4 -// -function mtlx_math_normalize_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalize_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'normalize'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'normalize_vector4'; - this.desc = "MaterialX:mtlx/math/normalize_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_normalize_vector4.nodedef_name = 'ND_normalize_vector4'; -mtlx_math_normalize_vector4.nodedef_node = 'normalize'; -mtlx_math_normalize_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; -LiteGraph.registerNodeType('mtlx/math/normalize_vector4',mtlx_math_normalize_vector4); - -// MaterialX node type: mtlx/math/magnitude_vector2 -// -function mtlx_math_magnitude_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector2.nodedef_name = 'ND_magnitude_vector2'; -mtlx_math_magnitude_vector2.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector2',mtlx_math_magnitude_vector2); - -// MaterialX node type: mtlx/math/magnitude_vector3 -// -function mtlx_math_magnitude_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector3.nodedef_name = 'ND_magnitude_vector3'; -mtlx_math_magnitude_vector3.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector3',mtlx_math_magnitude_vector3); - -// MaterialX node type: mtlx/math/magnitude_vector4 -// -function mtlx_math_magnitude_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_magnitude_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'magnitude'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'magnitude_float'; - this.desc = "MaterialX:mtlx/math/magnitude_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_magnitude_vector4.nodedef_name = 'ND_magnitude_vector4'; -mtlx_math_magnitude_vector4.nodedef_node = 'magnitude'; -mtlx_math_magnitude_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; -LiteGraph.registerNodeType('mtlx/math/magnitude_vector4',mtlx_math_magnitude_vector4); - -// MaterialX node type: mtlx/math/distance_vector2 -// -function mtlx_math_distance_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector2.nodedef_name = 'ND_distance_vector2'; -mtlx_math_distance_vector2.nodedef_node = 'distance'; -mtlx_math_distance_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector2',mtlx_math_distance_vector2); - -// MaterialX node type: mtlx/math/distance_vector3 -// -function mtlx_math_distance_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector3.nodedef_name = 'ND_distance_vector3'; -mtlx_math_distance_vector3.nodedef_node = 'distance'; -mtlx_math_distance_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector3',mtlx_math_distance_vector3); - -// MaterialX node type: mtlx/math/distance_vector4 -// -function mtlx_math_distance_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_distance_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'distance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'distance_float'; - this.desc = "MaterialX:mtlx/math/distance_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_distance_vector4.nodedef_name = 'ND_distance_vector4'; -mtlx_math_distance_vector4.nodedef_node = 'distance'; -mtlx_math_distance_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; -LiteGraph.registerNodeType('mtlx/math/distance_vector4',mtlx_math_distance_vector4); - -// MaterialX node type: mtlx/math/dotproduct_vector2 -// -function mtlx_math_dotproduct_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector2.nodedef_name = 'ND_dotproduct_vector2'; -mtlx_math_dotproduct_vector2.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector2',mtlx_math_dotproduct_vector2); - -// MaterialX node type: mtlx/math/dotproduct_vector3 -// -function mtlx_math_dotproduct_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector3.nodedef_name = 'ND_dotproduct_vector3'; -mtlx_math_dotproduct_vector3.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector3',mtlx_math_dotproduct_vector3); - -// MaterialX node type: mtlx/math/dotproduct_vector4 -// -function mtlx_math_dotproduct_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dotproduct_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dotproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dotproduct_float'; - this.desc = "MaterialX:mtlx/math/dotproduct_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_dotproduct_vector4.nodedef_name = 'ND_dotproduct_vector4'; -mtlx_math_dotproduct_vector4.nodedef_node = 'dotproduct'; -mtlx_math_dotproduct_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; -LiteGraph.registerNodeType('mtlx/math/dotproduct_vector4',mtlx_math_dotproduct_vector4); - -// MaterialX node type: mtlx/math/crossproduct_vector3 -// -function mtlx_math_crossproduct_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_crossproduct_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'crossproduct'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crossproduct_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'crossproduct_vector3'; - this.desc = "MaterialX:mtlx/math/crossproduct_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_crossproduct_vector3.nodedef_name = 'ND_crossproduct_vector3'; -mtlx_math_crossproduct_vector3.nodedef_node = 'crossproduct'; -mtlx_math_crossproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; -LiteGraph.registerNodeType('mtlx/math/crossproduct_vector3',mtlx_math_crossproduct_vector3); - -// MaterialX node type: mtlx/math/transformpoint_vector3 -// -function mtlx_math_transformpoint_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformpoint_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformpoint'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformpoint_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformpoint_vector3'; - this.desc = "MaterialX:mtlx/math/transformpoint_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformpoint_vector3.nodedef_name = 'ND_transformpoint_vector3'; -mtlx_math_transformpoint_vector3.nodedef_node = 'transformpoint'; -mtlx_math_transformpoint_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; -LiteGraph.registerNodeType('mtlx/math/transformpoint_vector3',mtlx_math_transformpoint_vector3); - -// MaterialX node type: mtlx/math/transformvector_vector3 -// -function mtlx_math_transformvector_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformvector_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformvector'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformvector_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformvector_vector3'; - this.desc = "MaterialX:mtlx/math/transformvector_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformvector_vector3.nodedef_name = 'ND_transformvector_vector3'; -mtlx_math_transformvector_vector3.nodedef_node = 'transformvector'; -mtlx_math_transformvector_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; -LiteGraph.registerNodeType('mtlx/math/transformvector_vector3',mtlx_math_transformvector_vector3); - -// MaterialX node type: mtlx/math/transformnormal_vector3 -// -function mtlx_math_transformnormal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformnormal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformnormal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformnormal_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fromspace','string'); - this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tospace','string'); - this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformnormal_vector3'; - this.desc = "MaterialX:mtlx/math/transformnormal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformnormal_vector3.nodedef_name = 'ND_transformnormal_vector3'; -mtlx_math_transformnormal_vector3.nodedef_node = 'transformnormal'; -mtlx_math_transformnormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; -LiteGraph.registerNodeType('mtlx/math/transformnormal_vector3',mtlx_math_transformnormal_vector3); - -// MaterialX node type: mtlx/math/transformmatrix_vector2M3 -// -function mtlx_math_transformmatrix_vector2M3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector2M3'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector2M3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix33'); - this.addProperty('mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'transformmatrix_vector2'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector2M3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_transformmatrix_vector2M3.nodedef_name = 'ND_transformmatrix_vector2M3'; -mtlx_math_transformmatrix_vector2M3.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector2M3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector2M3',mtlx_math_transformmatrix_vector2M3); - -// MaterialX node type: mtlx/math/transformmatrix_vector3 -// -function mtlx_math_transformmatrix_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix33'); - this.addProperty('mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformmatrix_vector3'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformmatrix_vector3.nodedef_name = 'ND_transformmatrix_vector3'; -mtlx_math_transformmatrix_vector3.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3',mtlx_math_transformmatrix_vector3); - -// MaterialX node type: mtlx/math/transformmatrix_vector3M4 -// -function mtlx_math_transformmatrix_vector3M4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector3M4'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3M4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix44'); - this.addProperty('mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'transformmatrix_vector3'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector3M4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_transformmatrix_vector3M4.nodedef_name = 'ND_transformmatrix_vector3M4'; -mtlx_math_transformmatrix_vector3M4.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector3M4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3M4',mtlx_math_transformmatrix_vector3M4); - -// MaterialX node type: mtlx/math/transformmatrix_vector4 -// -function mtlx_math_transformmatrix_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transformmatrix_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'transformmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector4_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mat','matrix44'); - this.addProperty('mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'transformmatrix_vector4'; - this.desc = "MaterialX:mtlx/math/transformmatrix_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_math_transformmatrix_vector4.nodedef_name = 'ND_transformmatrix_vector4'; -mtlx_math_transformmatrix_vector4.nodedef_node = 'transformmatrix'; -mtlx_math_transformmatrix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector4',mtlx_math_transformmatrix_vector4); - -// MaterialX node type: mtlx/math/normalmap_float -// -function mtlx_math_normalmap_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalmap_float'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('space','string'); - this.addProperty('space', 'tangent', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalmap_vector3'; - this.desc = "MaterialX:mtlx/math/normalmap_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalmap_float.nodedef_name = 'ND_normalmap_float'; -mtlx_math_normalmap_float.nodedef_node = 'normalmap'; -mtlx_math_normalmap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; -LiteGraph.registerNodeType('mtlx/math/normalmap_float',mtlx_math_normalmap_float); - -// MaterialX node type: mtlx/math/normalmap_vector2 -// -function mtlx_math_normalmap_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_normalmap_vector2'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('space','string'); - this.addProperty('space', 'tangent', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'normalmap_vector3'; - this.desc = "MaterialX:mtlx/math/normalmap_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_normalmap_vector2.nodedef_name = 'ND_normalmap_vector2'; -mtlx_math_normalmap_vector2.nodedef_node = 'normalmap'; -mtlx_math_normalmap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; -LiteGraph.registerNodeType('mtlx/math/normalmap_vector2',mtlx_math_normalmap_vector2); - -// MaterialX node type: mtlx/math/transpose_matrix33 -// -function mtlx_math_transpose_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transpose_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'transpose'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'transpose_matrix33'; - this.desc = "MaterialX:mtlx/math/transpose_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_transpose_matrix33.nodedef_name = 'ND_transpose_matrix33'; -mtlx_math_transpose_matrix33.nodedef_node = 'transpose'; -mtlx_math_transpose_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; -LiteGraph.registerNodeType('mtlx/math/transpose_matrix33',mtlx_math_transpose_matrix33); - -// MaterialX node type: mtlx/math/transpose_matrix44 -// -function mtlx_math_transpose_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_transpose_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'transpose'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'transpose_matrix44'; - this.desc = "MaterialX:mtlx/math/transpose_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_transpose_matrix44.nodedef_name = 'ND_transpose_matrix44'; -mtlx_math_transpose_matrix44.nodedef_node = 'transpose'; -mtlx_math_transpose_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; -LiteGraph.registerNodeType('mtlx/math/transpose_matrix44',mtlx_math_transpose_matrix44); - -// MaterialX node type: mtlx/math/determinant_matrix33 -// -function mtlx_math_determinant_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_determinant_matrix33'; - this.nodedef_type = 'float'; - this.nodedef_node = 'determinant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'determinant_float'; - this.desc = "MaterialX:mtlx/math/determinant_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_determinant_matrix33.nodedef_name = 'ND_determinant_matrix33'; -mtlx_math_determinant_matrix33.nodedef_node = 'determinant'; -mtlx_math_determinant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; -LiteGraph.registerNodeType('mtlx/math/determinant_matrix33',mtlx_math_determinant_matrix33); - -// MaterialX node type: mtlx/math/determinant_matrix44 -// -function mtlx_math_determinant_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_determinant_matrix44'; - this.nodedef_type = 'float'; - this.nodedef_node = 'determinant'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'determinant_float'; - this.desc = "MaterialX:mtlx/math/determinant_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_determinant_matrix44.nodedef_name = 'ND_determinant_matrix44'; -mtlx_math_determinant_matrix44.nodedef_node = 'determinant'; -mtlx_math_determinant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; -LiteGraph.registerNodeType('mtlx/math/determinant_matrix44',mtlx_math_determinant_matrix44); - -// MaterialX node type: mtlx/math/invertmatrix_matrix33 -// -function mtlx_math_invertmatrix_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invertmatrix_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'invertmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'invertmatrix_matrix33'; - this.desc = "MaterialX:mtlx/math/invertmatrix_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_invertmatrix_matrix33.nodedef_name = 'ND_invertmatrix_matrix33'; -mtlx_math_invertmatrix_matrix33.nodedef_node = 'invertmatrix'; -mtlx_math_invertmatrix_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix33',mtlx_math_invertmatrix_matrix33); - -// MaterialX node type: mtlx/math/invertmatrix_matrix44 -// -function mtlx_math_invertmatrix_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_invertmatrix_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'invertmatrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'invertmatrix_matrix44'; - this.desc = "MaterialX:mtlx/math/invertmatrix_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_invertmatrix_matrix44.nodedef_name = 'ND_invertmatrix_matrix44'; -mtlx_math_invertmatrix_matrix44.nodedef_node = 'invertmatrix'; -mtlx_math_invertmatrix_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; -LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix44',mtlx_math_invertmatrix_matrix44); - -// MaterialX node type: mtlx/math/rotate2d_vector2 -// -function mtlx_math_rotate2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rotate2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'rotate2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate2d_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'rotate2d_vector2'; - this.desc = "MaterialX:mtlx/math/rotate2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_rotate2d_vector2.nodedef_name = 'ND_rotate2d_vector2'; -mtlx_math_rotate2d_vector2.nodedef_node = 'rotate2d'; -mtlx_math_rotate2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; -LiteGraph.registerNodeType('mtlx/math/rotate2d_vector2',mtlx_math_rotate2d_vector2); - -// MaterialX node type: mtlx/math/rotate3d_vector3 -// -function mtlx_math_rotate3d_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rotate3d_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'rotate3d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate3d_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('axis','vector3'); - this.addProperty('axis', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'rotate3d_vector3'; - this.desc = "MaterialX:mtlx/math/rotate3d_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_rotate3d_vector3.nodedef_name = 'ND_rotate3d_vector3'; -mtlx_math_rotate3d_vector3.nodedef_node = 'rotate3d'; -mtlx_math_rotate3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; -LiteGraph.registerNodeType('mtlx/math/rotate3d_vector3',mtlx_math_rotate3d_vector3); - -// MaterialX node type: mtlx/math/place2d_vector2 -// -function mtlx_math_place2d_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_place2d_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'place2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_place2d_vector2_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1.0,1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'place2d_vector2'; - this.desc = "MaterialX:mtlx/math/place2d_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_place2d_vector2.nodedef_name = 'ND_place2d_vector2'; -mtlx_math_place2d_vector2.nodedef_node = 'place2d'; -mtlx_math_place2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; -LiteGraph.registerNodeType('mtlx/math/place2d_vector2',mtlx_math_place2d_vector2); - -// MaterialX node type: mtlx/math/trianglewave_float -// -function mtlx_math_trianglewave_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_trianglewave_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'trianglewave'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_trianglewave_float_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'trianglewave_float'; - this.desc = "MaterialX:mtlx/math/trianglewave_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_math_trianglewave_float.nodedef_name = 'ND_trianglewave_float'; -mtlx_math_trianglewave_float.nodedef_node = 'trianglewave'; -mtlx_math_trianglewave_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; -LiteGraph.registerNodeType('mtlx/math/trianglewave_float',mtlx_math_trianglewave_float); - -// MaterialX node type: mtlx/math/reflect_vector3 -// -function mtlx_math_reflect_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_reflect_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'reflect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_reflect_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'reflect_vector3'; - this.desc = "MaterialX:mtlx/math/reflect_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_reflect_vector3.nodedef_name = 'ND_reflect_vector3'; -mtlx_math_reflect_vector3.nodedef_node = 'reflect'; -mtlx_math_reflect_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; -LiteGraph.registerNodeType('mtlx/math/reflect_vector3',mtlx_math_reflect_vector3); - -// MaterialX node type: mtlx/math/refract_vector3 -// -function mtlx_math_refract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_refract_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'refract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_refract_vector3_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector3'); - this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'refract_vector3'; - this.desc = "MaterialX:mtlx/math/refract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_math_refract_vector3.nodedef_name = 'ND_refract_vector3'; -mtlx_math_refract_vector3.nodedef_node = 'refract'; -mtlx_math_refract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; -LiteGraph.registerNodeType('mtlx/math/refract_vector3',mtlx_math_refract_vector3); - -// MaterialX node type: mtlx/adjustment/remap_float -// -function mtlx_adjustment_remap_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'remap_float'; - this.desc = "MaterialX:mtlx/adjustment/remap_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_remap_float.nodedef_name = 'ND_remap_float'; -mtlx_adjustment_remap_float.nodedef_node = 'remap'; -mtlx_adjustment_remap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_float',mtlx_adjustment_remap_float); - -// MaterialX node type: mtlx/adjustment/remap_color3 -// -function mtlx_adjustment_remap_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'remap_color3'; - this.desc = "MaterialX:mtlx/adjustment/remap_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_remap_color3.nodedef_name = 'ND_remap_color3'; -mtlx_adjustment_remap_color3.nodedef_node = 'remap'; -mtlx_adjustment_remap_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color3',mtlx_adjustment_remap_color3); - -// MaterialX node type: mtlx/adjustment/remap_color4 -// -function mtlx_adjustment_remap_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'remap_color4'; - this.desc = "MaterialX:mtlx/adjustment/remap_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_remap_color4.nodedef_name = 'ND_remap_color4'; -mtlx_adjustment_remap_color4.nodedef_node = 'remap'; -mtlx_adjustment_remap_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color4',mtlx_adjustment_remap_color4); - -// MaterialX node type: mtlx/adjustment/remap_vector2 -// -function mtlx_adjustment_remap_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector2'); - this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector2'); - this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector2'); - this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector2'); - this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'remap_vector2'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_remap_vector2.nodedef_name = 'ND_remap_vector2'; -mtlx_adjustment_remap_vector2.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2',mtlx_adjustment_remap_vector2); - -// MaterialX node type: mtlx/adjustment/remap_vector3 -// -function mtlx_adjustment_remap_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'remap_vector3'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_remap_vector3.nodedef_name = 'ND_remap_vector3'; -mtlx_adjustment_remap_vector3.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3',mtlx_adjustment_remap_vector3); - -// MaterialX node type: mtlx/adjustment/remap_vector4 -// -function mtlx_adjustment_remap_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'remap_vector4'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_remap_vector4.nodedef_name = 'ND_remap_vector4'; -mtlx_adjustment_remap_vector4.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4',mtlx_adjustment_remap_vector4); - -// MaterialX node type: mtlx/adjustment/remap_color3FA -// -function mtlx_adjustment_remap_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'remap_color3'; - this.desc = "MaterialX:mtlx/adjustment/remap_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_remap_color3FA.nodedef_name = 'ND_remap_color3FA'; -mtlx_adjustment_remap_color3FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color3FA',mtlx_adjustment_remap_color3FA); - -// MaterialX node type: mtlx/adjustment/remap_color4FA -// -function mtlx_adjustment_remap_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'remap_color4'; - this.desc = "MaterialX:mtlx/adjustment/remap_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_remap_color4FA.nodedef_name = 'ND_remap_color4FA'; -mtlx_adjustment_remap_color4FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_color4FA',mtlx_adjustment_remap_color4FA); - -// MaterialX node type: mtlx/adjustment/remap_vector2FA -// -function mtlx_adjustment_remap_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'remap_vector2'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_remap_vector2FA.nodedef_name = 'ND_remap_vector2FA'; -mtlx_adjustment_remap_vector2FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2FA',mtlx_adjustment_remap_vector2FA); - -// MaterialX node type: mtlx/adjustment/remap_vector3FA -// -function mtlx_adjustment_remap_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'remap_vector3'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_remap_vector3FA.nodedef_name = 'ND_remap_vector3FA'; -mtlx_adjustment_remap_vector3FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3FA',mtlx_adjustment_remap_vector3FA); - -// MaterialX node type: mtlx/adjustment/remap_vector4FA -// -function mtlx_adjustment_remap_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_remap_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'remap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'remap_vector4'; - this.desc = "MaterialX:mtlx/adjustment/remap_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_remap_vector4FA.nodedef_name = 'ND_remap_vector4FA'; -mtlx_adjustment_remap_vector4FA.nodedef_node = 'remap'; -mtlx_adjustment_remap_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; -LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4FA',mtlx_adjustment_remap_vector4FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_float -// -function mtlx_adjustment_smoothstep_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'smoothstep_float'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_smoothstep_float.nodedef_name = 'ND_smoothstep_float'; -mtlx_adjustment_smoothstep_float.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_float',mtlx_adjustment_smoothstep_float); - -// MaterialX node type: mtlx/adjustment/smoothstep_color3 -// -function mtlx_adjustment_smoothstep_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'smoothstep_color3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_smoothstep_color3.nodedef_name = 'ND_smoothstep_color3'; -mtlx_adjustment_smoothstep_color3.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3',mtlx_adjustment_smoothstep_color3); - -// MaterialX node type: mtlx/adjustment/smoothstep_color4 -// -function mtlx_adjustment_smoothstep_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','color4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','color4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'smoothstep_color4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_smoothstep_color4.nodedef_name = 'ND_smoothstep_color4'; -mtlx_adjustment_smoothstep_color4.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4',mtlx_adjustment_smoothstep_color4); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector2 -// -function mtlx_adjustment_smoothstep_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector2'); - this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector2'); - this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'smoothstep_vector2'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_smoothstep_vector2.nodedef_name = 'ND_smoothstep_vector2'; -mtlx_adjustment_smoothstep_vector2.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2',mtlx_adjustment_smoothstep_vector2); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector3 -// -function mtlx_adjustment_smoothstep_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector3'); - this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector3'); - this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'smoothstep_vector3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_smoothstep_vector3.nodedef_name = 'ND_smoothstep_vector3'; -mtlx_adjustment_smoothstep_vector3.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3',mtlx_adjustment_smoothstep_vector3); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector4 -// -function mtlx_adjustment_smoothstep_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','vector4'); - this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','vector4'); - this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'smoothstep_vector4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_smoothstep_vector4.nodedef_name = 'ND_smoothstep_vector4'; -mtlx_adjustment_smoothstep_vector4.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4',mtlx_adjustment_smoothstep_vector4); - -// MaterialX node type: mtlx/adjustment/smoothstep_color3FA -// -function mtlx_adjustment_smoothstep_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'smoothstep_color3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_smoothstep_color3FA.nodedef_name = 'ND_smoothstep_color3FA'; -mtlx_adjustment_smoothstep_color3FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3FA',mtlx_adjustment_smoothstep_color3FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_color4FA -// -function mtlx_adjustment_smoothstep_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'smoothstep_color4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_smoothstep_color4FA.nodedef_name = 'ND_smoothstep_color4FA'; -mtlx_adjustment_smoothstep_color4FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4FA',mtlx_adjustment_smoothstep_color4FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector2FA -// -function mtlx_adjustment_smoothstep_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'smoothstep_vector2'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_smoothstep_vector2FA.nodedef_name = 'ND_smoothstep_vector2FA'; -mtlx_adjustment_smoothstep_vector2FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2FA',mtlx_adjustment_smoothstep_vector2FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector3FA -// -function mtlx_adjustment_smoothstep_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'smoothstep_vector3'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_smoothstep_vector3FA.nodedef_name = 'ND_smoothstep_vector3FA'; -mtlx_adjustment_smoothstep_vector3FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3FA',mtlx_adjustment_smoothstep_vector3FA); - -// MaterialX node type: mtlx/adjustment/smoothstep_vector4FA -// -function mtlx_adjustment_smoothstep_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_smoothstep_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'smoothstep'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('low','float'); - this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('high','float'); - this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'smoothstep_vector4'; - this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_smoothstep_vector4FA.nodedef_name = 'ND_smoothstep_vector4FA'; -mtlx_adjustment_smoothstep_vector4FA.nodedef_node = 'smoothstep'; -mtlx_adjustment_smoothstep_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; -LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4FA',mtlx_adjustment_smoothstep_vector4FA); - -// MaterialX node type: mtlx/adjustment/curveadjust_float -// -function mtlx_adjustment_curveadjust_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'curveadjust_float'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_curveadjust_float.nodedef_name = 'ND_curveadjust_float'; -mtlx_adjustment_curveadjust_float.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_float',mtlx_adjustment_curveadjust_float); - -// MaterialX node type: mtlx/adjustment/curveadjust_color3 -// -function mtlx_adjustment_curveadjust_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'curveadjust_color3'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_curveadjust_color3.nodedef_name = 'ND_curveadjust_color3'; -mtlx_adjustment_curveadjust_color3.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color3',mtlx_adjustment_curveadjust_color3); - -// MaterialX node type: mtlx/adjustment/curveadjust_color4 -// -function mtlx_adjustment_curveadjust_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'curveadjust_color4'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_curveadjust_color4.nodedef_name = 'ND_curveadjust_color4'; -mtlx_adjustment_curveadjust_color4.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color4',mtlx_adjustment_curveadjust_color4); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector2 -// -function mtlx_adjustment_curveadjust_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'curveadjust_vector2'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_curveadjust_vector2.nodedef_name = 'ND_curveadjust_vector2'; -mtlx_adjustment_curveadjust_vector2.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector2',mtlx_adjustment_curveadjust_vector2); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector3 -// -function mtlx_adjustment_curveadjust_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'curveadjust_vector3'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_curveadjust_vector3.nodedef_name = 'ND_curveadjust_vector3'; -mtlx_adjustment_curveadjust_vector3.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector3',mtlx_adjustment_curveadjust_vector3); - -// MaterialX node type: mtlx/adjustment/curveadjust_vector4 -// -function mtlx_adjustment_curveadjust_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_curveadjust_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'curveadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('knots','vector2array'); - this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'curveadjust_vector4'; - this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_curveadjust_vector4.nodedef_name = 'ND_curveadjust_vector4'; -mtlx_adjustment_curveadjust_vector4.nodedef_node = 'curveadjust'; -mtlx_adjustment_curveadjust_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector4',mtlx_adjustment_curveadjust_vector4); - -// MaterialX node type: mtlx/adjustment/luminance_color3 -// -function mtlx_adjustment_luminance_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_luminance_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'luminance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'luminance_color3'; - this.desc = "MaterialX:mtlx/adjustment/luminance_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_luminance_color3.nodedef_name = 'ND_luminance_color3'; -mtlx_adjustment_luminance_color3.nodedef_node = 'luminance'; -mtlx_adjustment_luminance_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; -LiteGraph.registerNodeType('mtlx/adjustment/luminance_color3',mtlx_adjustment_luminance_color3); - -// MaterialX node type: mtlx/adjustment/luminance_color4 -// -function mtlx_adjustment_luminance_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_luminance_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'luminance'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'luminance_color4'; - this.desc = "MaterialX:mtlx/adjustment/luminance_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_luminance_color4.nodedef_name = 'ND_luminance_color4'; -mtlx_adjustment_luminance_color4.nodedef_node = 'luminance'; -mtlx_adjustment_luminance_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; -LiteGraph.registerNodeType('mtlx/adjustment/luminance_color4',mtlx_adjustment_luminance_color4); - -// MaterialX node type: mtlx/adjustment/rgbtohsv_color3 -// -function mtlx_adjustment_rgbtohsv_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rgbtohsv_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'rgbtohsv'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'rgbtohsv_color3'; - this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_rgbtohsv_color3.nodedef_name = 'ND_rgbtohsv_color3'; -mtlx_adjustment_rgbtohsv_color3.nodedef_node = 'rgbtohsv'; -mtlx_adjustment_rgbtohsv_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; -LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color3',mtlx_adjustment_rgbtohsv_color3); - -// MaterialX node type: mtlx/adjustment/rgbtohsv_color4 -// -function mtlx_adjustment_rgbtohsv_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_rgbtohsv_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'rgbtohsv'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'rgbtohsv_color4'; - this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_rgbtohsv_color4.nodedef_name = 'ND_rgbtohsv_color4'; -mtlx_adjustment_rgbtohsv_color4.nodedef_node = 'rgbtohsv'; -mtlx_adjustment_rgbtohsv_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; -LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color4',mtlx_adjustment_rgbtohsv_color4); - -// MaterialX node type: mtlx/adjustment/hsvtorgb_color3 -// -function mtlx_adjustment_hsvtorgb_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvtorgb_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'hsvtorgb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'hsvtorgb_color3'; - this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_hsvtorgb_color3.nodedef_name = 'ND_hsvtorgb_color3'; -mtlx_adjustment_hsvtorgb_color3.nodedef_node = 'hsvtorgb'; -mtlx_adjustment_hsvtorgb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color3',mtlx_adjustment_hsvtorgb_color3); - -// MaterialX node type: mtlx/adjustment/hsvtorgb_color4 -// -function mtlx_adjustment_hsvtorgb_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvtorgb_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'hsvtorgb'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'hsvtorgb_color4'; - this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_hsvtorgb_color4.nodedef_name = 'ND_hsvtorgb_color4'; -mtlx_adjustment_hsvtorgb_color4.nodedef_node = 'hsvtorgb'; -mtlx_adjustment_hsvtorgb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color4',mtlx_adjustment_hsvtorgb_color4); - -// MaterialX node type: mtlx/adjustment/contrast_float -// -function mtlx_adjustment_contrast_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'contrast_float'; - this.desc = "MaterialX:mtlx/adjustment/contrast_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_contrast_float.nodedef_name = 'ND_contrast_float'; -mtlx_adjustment_contrast_float.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_float',mtlx_adjustment_contrast_float); - -// MaterialX node type: mtlx/adjustment/contrast_color3 -// -function mtlx_adjustment_contrast_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','color3'); - this.addProperty('pivot', [0.5, 0.5, 0.5], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'contrast_color3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_contrast_color3.nodedef_name = 'ND_contrast_color3'; -mtlx_adjustment_contrast_color3.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3',mtlx_adjustment_contrast_color3); - -// MaterialX node type: mtlx/adjustment/contrast_color4 -// -function mtlx_adjustment_contrast_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','color4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','color4'); - this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'contrast_color4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_contrast_color4.nodedef_name = 'ND_contrast_color4'; -mtlx_adjustment_contrast_color4.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4',mtlx_adjustment_contrast_color4); - -// MaterialX node type: mtlx/adjustment/contrast_vector2 -// -function mtlx_adjustment_contrast_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector2'); - this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0.5, 0.5], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'contrast_vector2'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_contrast_vector2.nodedef_name = 'ND_contrast_vector2'; -mtlx_adjustment_contrast_vector2.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2',mtlx_adjustment_contrast_vector2); - -// MaterialX node type: mtlx/adjustment/contrast_vector3 -// -function mtlx_adjustment_contrast_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector3'); - this.addProperty('pivot', [0.5, 0.5, 0.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'contrast_vector3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_contrast_vector3.nodedef_name = 'ND_contrast_vector3'; -mtlx_adjustment_contrast_vector3.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3',mtlx_adjustment_contrast_vector3); - -// MaterialX node type: mtlx/adjustment/contrast_vector4 -// -function mtlx_adjustment_contrast_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector4'); - this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector4'); - this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'contrast_vector4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_contrast_vector4.nodedef_name = 'ND_contrast_vector4'; -mtlx_adjustment_contrast_vector4.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4',mtlx_adjustment_contrast_vector4); - -// MaterialX node type: mtlx/adjustment/contrast_color3FA -// -function mtlx_adjustment_contrast_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'contrast_color3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_contrast_color3FA.nodedef_name = 'ND_contrast_color3FA'; -mtlx_adjustment_contrast_color3FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3FA',mtlx_adjustment_contrast_color3FA); - -// MaterialX node type: mtlx/adjustment/contrast_color4FA -// -function mtlx_adjustment_contrast_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'contrast_color4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_contrast_color4FA.nodedef_name = 'ND_contrast_color4FA'; -mtlx_adjustment_contrast_color4FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4FA',mtlx_adjustment_contrast_color4FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector2FA -// -function mtlx_adjustment_contrast_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'contrast_vector2'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_contrast_vector2FA.nodedef_name = 'ND_contrast_vector2FA'; -mtlx_adjustment_contrast_vector2FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2FA',mtlx_adjustment_contrast_vector2FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector3FA -// -function mtlx_adjustment_contrast_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'contrast_vector3'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_contrast_vector3FA.nodedef_name = 'ND_contrast_vector3FA'; -mtlx_adjustment_contrast_vector3FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3FA',mtlx_adjustment_contrast_vector3FA); - -// MaterialX node type: mtlx/adjustment/contrast_vector4FA -// -function mtlx_adjustment_contrast_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_contrast_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'contrast'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','float'); - this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'contrast_vector4'; - this.desc = "MaterialX:mtlx/adjustment/contrast_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_contrast_vector4FA.nodedef_name = 'ND_contrast_vector4FA'; -mtlx_adjustment_contrast_vector4FA.nodedef_node = 'contrast'; -mtlx_adjustment_contrast_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; -LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4FA',mtlx_adjustment_contrast_vector4FA); - -// MaterialX node type: mtlx/adjustment/range_float -// -function mtlx_adjustment_range_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_float_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'range_float'; - this.desc = "MaterialX:mtlx/adjustment/range_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_adjustment_range_float.nodedef_name = 'ND_range_float'; -mtlx_adjustment_range_float.nodedef_node = 'range'; -mtlx_adjustment_range_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_float',mtlx_adjustment_range_float); - -// MaterialX node type: mtlx/adjustment/range_color3 -// -function mtlx_adjustment_range_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','color3'); - this.addProperty('gamma', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'range_color3'; - this.desc = "MaterialX:mtlx/adjustment/range_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_range_color3.nodedef_name = 'ND_range_color3'; -mtlx_adjustment_range_color3.nodedef_node = 'range'; -mtlx_adjustment_range_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color3',mtlx_adjustment_range_color3); - -// MaterialX node type: mtlx/adjustment/range_color4 -// -function mtlx_adjustment_range_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','color4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','color4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','color4'); - this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','color4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','color4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'range_color4'; - this.desc = "MaterialX:mtlx/adjustment/range_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_range_color4.nodedef_name = 'ND_range_color4'; -mtlx_adjustment_range_color4.nodedef_node = 'range'; -mtlx_adjustment_range_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color4',mtlx_adjustment_range_color4); - -// MaterialX node type: mtlx/adjustment/range_vector2 -// -function mtlx_adjustment_range_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector2'); - this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector2'); - this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector2'); - this.addProperty('gamma', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector2'); - this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector2'); - this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'range_vector2'; - this.desc = "MaterialX:mtlx/adjustment/range_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_range_vector2.nodedef_name = 'ND_range_vector2'; -mtlx_adjustment_range_vector2.nodedef_node = 'range'; -mtlx_adjustment_range_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector2',mtlx_adjustment_range_vector2); - -// MaterialX node type: mtlx/adjustment/range_vector3 -// -function mtlx_adjustment_range_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector3'); - this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector3'); - this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector3'); - this.addProperty('gamma', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector3'); - this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector3'); - this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'range_vector3'; - this.desc = "MaterialX:mtlx/adjustment/range_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_range_vector3.nodedef_name = 'ND_range_vector3'; -mtlx_adjustment_range_vector3.nodedef_node = 'range'; -mtlx_adjustment_range_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector3',mtlx_adjustment_range_vector3); - -// MaterialX node type: mtlx/adjustment/range_vector4 -// -function mtlx_adjustment_range_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','vector4'); - this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','vector4'); - this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','vector4'); - this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','vector4'); - this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','vector4'); - this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'range_vector4'; - this.desc = "MaterialX:mtlx/adjustment/range_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_range_vector4.nodedef_name = 'ND_range_vector4'; -mtlx_adjustment_range_vector4.nodedef_node = 'range'; -mtlx_adjustment_range_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector4',mtlx_adjustment_range_vector4); - -// MaterialX node type: mtlx/adjustment/range_color3FA -// -function mtlx_adjustment_range_color3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color3FA'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'range_color3'; - this.desc = "MaterialX:mtlx/adjustment/range_color3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_range_color3FA.nodedef_name = 'ND_range_color3FA'; -mtlx_adjustment_range_color3FA.nodedef_node = 'range'; -mtlx_adjustment_range_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color3FA',mtlx_adjustment_range_color3FA); - -// MaterialX node type: mtlx/adjustment/range_color4FA -// -function mtlx_adjustment_range_color4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_color4FA'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'range_color4'; - this.desc = "MaterialX:mtlx/adjustment/range_color4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_range_color4FA.nodedef_name = 'ND_range_color4FA'; -mtlx_adjustment_range_color4FA.nodedef_node = 'range'; -mtlx_adjustment_range_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_color4FA',mtlx_adjustment_range_color4FA); - -// MaterialX node type: mtlx/adjustment/range_vector2FA -// -function mtlx_adjustment_range_vector2FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector2FA'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'range_vector2'; - this.desc = "MaterialX:mtlx/adjustment/range_vector2FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_adjustment_range_vector2FA.nodedef_name = 'ND_range_vector2FA'; -mtlx_adjustment_range_vector2FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector2FA',mtlx_adjustment_range_vector2FA); - -// MaterialX node type: mtlx/adjustment/range_vector3FA -// -function mtlx_adjustment_range_vector3FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector3FA'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'range_vector3'; - this.desc = "MaterialX:mtlx/adjustment/range_vector3FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_adjustment_range_vector3FA.nodedef_name = 'ND_range_vector3FA'; -mtlx_adjustment_range_vector3FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector3FA',mtlx_adjustment_range_vector3FA); - -// MaterialX node type: mtlx/adjustment/range_vector4FA -// -function mtlx_adjustment_range_vector4FA() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_range_vector4FA'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'range'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4FA_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inlow','float'); - this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('inhigh','float'); - this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outlow','float'); - this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('outhigh','float'); - this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('doclamp','boolean'); - this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'range_vector4'; - this.desc = "MaterialX:mtlx/adjustment/range_vector4FA"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_adjustment_range_vector4FA.nodedef_name = 'ND_range_vector4FA'; -mtlx_adjustment_range_vector4FA.nodedef_node = 'range'; -mtlx_adjustment_range_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; -LiteGraph.registerNodeType('mtlx/adjustment/range_vector4FA',mtlx_adjustment_range_vector4FA); - -// MaterialX node type: mtlx/adjustment/hsvadjust_color3 -// -function mtlx_adjustment_hsvadjust_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvadjust_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'hsvadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'hsvadjust_color3'; - this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_hsvadjust_color3.nodedef_name = 'ND_hsvadjust_color3'; -mtlx_adjustment_hsvadjust_color3.nodedef_node = 'hsvadjust'; -mtlx_adjustment_hsvadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color3',mtlx_adjustment_hsvadjust_color3); - -// MaterialX node type: mtlx/adjustment/hsvadjust_color4 -// -function mtlx_adjustment_hsvadjust_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_hsvadjust_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'hsvadjust'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','vector3'); - this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'hsvadjust_color4'; - this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_hsvadjust_color4.nodedef_name = 'ND_hsvadjust_color4'; -mtlx_adjustment_hsvadjust_color4.nodedef_node = 'hsvadjust'; -mtlx_adjustment_hsvadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; -LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color4',mtlx_adjustment_hsvadjust_color4); - -// MaterialX node type: mtlx/adjustment/saturate_color3 -// -function mtlx_adjustment_saturate_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_saturate_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'saturate'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'saturate_color3'; - this.desc = "MaterialX:mtlx/adjustment/saturate_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_saturate_color3.nodedef_name = 'ND_saturate_color3'; -mtlx_adjustment_saturate_color3.nodedef_node = 'saturate'; -mtlx_adjustment_saturate_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; -LiteGraph.registerNodeType('mtlx/adjustment/saturate_color3',mtlx_adjustment_saturate_color3); - -// MaterialX node type: mtlx/adjustment/saturate_color4 -// -function mtlx_adjustment_saturate_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_saturate_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'saturate'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('amount','float'); - this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lumacoeffs','color3'); - this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'saturate_color4'; - this.desc = "MaterialX:mtlx/adjustment/saturate_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_saturate_color4.nodedef_name = 'ND_saturate_color4'; -mtlx_adjustment_saturate_color4.nodedef_node = 'saturate'; -mtlx_adjustment_saturate_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; -LiteGraph.registerNodeType('mtlx/adjustment/saturate_color4',mtlx_adjustment_saturate_color4); - -// MaterialX node type: mtlx/adjustment/colorcorrect_color3 -// -function mtlx_adjustment_colorcorrect_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_colorcorrect_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'colorcorrect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color3_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color3'); - this.addProperty('in', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('hue','float'); - this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturation','float'); - this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lift','float'); - this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gain','float'); - this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrast','float'); - this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrastpivot','float'); - this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'colorcorrect_color3'; - this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_adjustment_colorcorrect_color3.nodedef_name = 'ND_colorcorrect_color3'; -mtlx_adjustment_colorcorrect_color3.nodedef_node = 'colorcorrect'; -mtlx_adjustment_colorcorrect_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; -LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color3',mtlx_adjustment_colorcorrect_color3); - -// MaterialX node type: mtlx/adjustment/colorcorrect_color4 -// -function mtlx_adjustment_colorcorrect_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_colorcorrect_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'colorcorrect'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color4_out_genglsl.png'; - this.nodedef_group = 'adjustment'; - this.addInput('in','color4'); - this.addProperty('in', [1, 1, 1, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('hue','float'); - this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('saturation','float'); - this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gamma','float'); - this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('lift','float'); - this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('gain','float'); - this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrast','float'); - this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('contrastpivot','float'); - this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('exposure','float'); - this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'colorcorrect_color4'; - this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_adjustment_colorcorrect_color4.nodedef_name = 'ND_colorcorrect_color4'; -mtlx_adjustment_colorcorrect_color4.nodedef_node = 'colorcorrect'; -mtlx_adjustment_colorcorrect_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; -LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color4',mtlx_adjustment_colorcorrect_color4); - -// MaterialX node type: mtlx/compositing/premult_color4 -// -function mtlx_compositing_premult_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_premult_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'premult'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_premult_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'premult_color4'; - this.desc = "MaterialX:mtlx/compositing/premult_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_premult_color4.nodedef_name = 'ND_premult_color4'; -mtlx_compositing_premult_color4.nodedef_node = 'premult'; -mtlx_compositing_premult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; -LiteGraph.registerNodeType('mtlx/compositing/premult_color4',mtlx_compositing_premult_color4); - -// MaterialX node type: mtlx/compositing/unpremult_color4 -// -function mtlx_compositing_unpremult_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_unpremult_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'unpremult'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unpremult_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'unpremult_color4'; - this.desc = "MaterialX:mtlx/compositing/unpremult_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_unpremult_color4.nodedef_name = 'ND_unpremult_color4'; -mtlx_compositing_unpremult_color4.nodedef_node = 'unpremult'; -mtlx_compositing_unpremult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; -LiteGraph.registerNodeType('mtlx/compositing/unpremult_color4',mtlx_compositing_unpremult_color4); - -// MaterialX node type: mtlx/compositing/plus_float -// -function mtlx_compositing_plus_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'plus_float'; - this.desc = "MaterialX:mtlx/compositing/plus_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_plus_float.nodedef_name = 'ND_plus_float'; -mtlx_compositing_plus_float.nodedef_node = 'plus'; -mtlx_compositing_plus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_float',mtlx_compositing_plus_float); - -// MaterialX node type: mtlx/compositing/plus_color3 -// -function mtlx_compositing_plus_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'plus_color3'; - this.desc = "MaterialX:mtlx/compositing/plus_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_plus_color3.nodedef_name = 'ND_plus_color3'; -mtlx_compositing_plus_color3.nodedef_node = 'plus'; -mtlx_compositing_plus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_color3',mtlx_compositing_plus_color3); - -// MaterialX node type: mtlx/compositing/plus_color4 -// -function mtlx_compositing_plus_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_plus_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'plus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'plus_color4'; - this.desc = "MaterialX:mtlx/compositing/plus_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_plus_color4.nodedef_name = 'ND_plus_color4'; -mtlx_compositing_plus_color4.nodedef_node = 'plus'; -mtlx_compositing_plus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; -LiteGraph.registerNodeType('mtlx/compositing/plus_color4',mtlx_compositing_plus_color4); - -// MaterialX node type: mtlx/compositing/minus_float -// -function mtlx_compositing_minus_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'minus_float'; - this.desc = "MaterialX:mtlx/compositing/minus_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_minus_float.nodedef_name = 'ND_minus_float'; -mtlx_compositing_minus_float.nodedef_node = 'minus'; -mtlx_compositing_minus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_float',mtlx_compositing_minus_float); - -// MaterialX node type: mtlx/compositing/minus_color3 -// -function mtlx_compositing_minus_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'minus_color3'; - this.desc = "MaterialX:mtlx/compositing/minus_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_minus_color3.nodedef_name = 'ND_minus_color3'; -mtlx_compositing_minus_color3.nodedef_node = 'minus'; -mtlx_compositing_minus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_color3',mtlx_compositing_minus_color3); - -// MaterialX node type: mtlx/compositing/minus_color4 -// -function mtlx_compositing_minus_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_minus_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'minus'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'minus_color4'; - this.desc = "MaterialX:mtlx/compositing/minus_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_minus_color4.nodedef_name = 'ND_minus_color4'; -mtlx_compositing_minus_color4.nodedef_node = 'minus'; -mtlx_compositing_minus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; -LiteGraph.registerNodeType('mtlx/compositing/minus_color4',mtlx_compositing_minus_color4); - -// MaterialX node type: mtlx/compositing/difference_float -// -function mtlx_compositing_difference_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'difference_float'; - this.desc = "MaterialX:mtlx/compositing/difference_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_difference_float.nodedef_name = 'ND_difference_float'; -mtlx_compositing_difference_float.nodedef_node = 'difference'; -mtlx_compositing_difference_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_float',mtlx_compositing_difference_float); - -// MaterialX node type: mtlx/compositing/difference_color3 -// -function mtlx_compositing_difference_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'difference_color3'; - this.desc = "MaterialX:mtlx/compositing/difference_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_difference_color3.nodedef_name = 'ND_difference_color3'; -mtlx_compositing_difference_color3.nodedef_node = 'difference'; -mtlx_compositing_difference_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_color3',mtlx_compositing_difference_color3); - -// MaterialX node type: mtlx/compositing/difference_color4 -// -function mtlx_compositing_difference_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_difference_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'difference'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'difference_color4'; - this.desc = "MaterialX:mtlx/compositing/difference_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_difference_color4.nodedef_name = 'ND_difference_color4'; -mtlx_compositing_difference_color4.nodedef_node = 'difference'; -mtlx_compositing_difference_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; -LiteGraph.registerNodeType('mtlx/compositing/difference_color4',mtlx_compositing_difference_color4); - -// MaterialX node type: mtlx/compositing/burn_float -// -function mtlx_compositing_burn_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'burn_float'; - this.desc = "MaterialX:mtlx/compositing/burn_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_burn_float.nodedef_name = 'ND_burn_float'; -mtlx_compositing_burn_float.nodedef_node = 'burn'; -mtlx_compositing_burn_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_float',mtlx_compositing_burn_float); - -// MaterialX node type: mtlx/compositing/burn_color3 -// -function mtlx_compositing_burn_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'burn_color3'; - this.desc = "MaterialX:mtlx/compositing/burn_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_burn_color3.nodedef_name = 'ND_burn_color3'; -mtlx_compositing_burn_color3.nodedef_node = 'burn'; -mtlx_compositing_burn_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_color3',mtlx_compositing_burn_color3); - -// MaterialX node type: mtlx/compositing/burn_color4 -// -function mtlx_compositing_burn_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_burn_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'burn'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'burn_color4'; - this.desc = "MaterialX:mtlx/compositing/burn_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_burn_color4.nodedef_name = 'ND_burn_color4'; -mtlx_compositing_burn_color4.nodedef_node = 'burn'; -mtlx_compositing_burn_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; -LiteGraph.registerNodeType('mtlx/compositing/burn_color4',mtlx_compositing_burn_color4); - -// MaterialX node type: mtlx/compositing/dodge_float -// -function mtlx_compositing_dodge_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dodge_float'; - this.desc = "MaterialX:mtlx/compositing/dodge_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_dodge_float.nodedef_name = 'ND_dodge_float'; -mtlx_compositing_dodge_float.nodedef_node = 'dodge'; -mtlx_compositing_dodge_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_float',mtlx_compositing_dodge_float); - -// MaterialX node type: mtlx/compositing/dodge_color3 -// -function mtlx_compositing_dodge_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'dodge_color3'; - this.desc = "MaterialX:mtlx/compositing/dodge_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_dodge_color3.nodedef_name = 'ND_dodge_color3'; -mtlx_compositing_dodge_color3.nodedef_node = 'dodge'; -mtlx_compositing_dodge_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_color3',mtlx_compositing_dodge_color3); - -// MaterialX node type: mtlx/compositing/dodge_color4 -// -function mtlx_compositing_dodge_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dodge_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'dodge'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'dodge_color4'; - this.desc = "MaterialX:mtlx/compositing/dodge_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_dodge_color4.nodedef_name = 'ND_dodge_color4'; -mtlx_compositing_dodge_color4.nodedef_node = 'dodge'; -mtlx_compositing_dodge_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; -LiteGraph.registerNodeType('mtlx/compositing/dodge_color4',mtlx_compositing_dodge_color4); - -// MaterialX node type: mtlx/compositing/screen_float -// -function mtlx_compositing_screen_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'screen_float'; - this.desc = "MaterialX:mtlx/compositing/screen_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_screen_float.nodedef_name = 'ND_screen_float'; -mtlx_compositing_screen_float.nodedef_node = 'screen'; -mtlx_compositing_screen_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_float',mtlx_compositing_screen_float); - -// MaterialX node type: mtlx/compositing/screen_color3 -// -function mtlx_compositing_screen_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'screen_color3'; - this.desc = "MaterialX:mtlx/compositing/screen_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_screen_color3.nodedef_name = 'ND_screen_color3'; -mtlx_compositing_screen_color3.nodedef_node = 'screen'; -mtlx_compositing_screen_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_color3',mtlx_compositing_screen_color3); - -// MaterialX node type: mtlx/compositing/screen_color4 -// -function mtlx_compositing_screen_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_screen_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'screen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'screen_color4'; - this.desc = "MaterialX:mtlx/compositing/screen_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_screen_color4.nodedef_name = 'ND_screen_color4'; -mtlx_compositing_screen_color4.nodedef_node = 'screen'; -mtlx_compositing_screen_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; -LiteGraph.registerNodeType('mtlx/compositing/screen_color4',mtlx_compositing_screen_color4); - -// MaterialX node type: mtlx/compositing/overlay_float -// -function mtlx_compositing_overlay_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'overlay_float'; - this.desc = "MaterialX:mtlx/compositing/overlay_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_overlay_float.nodedef_name = 'ND_overlay_float'; -mtlx_compositing_overlay_float.nodedef_node = 'overlay'; -mtlx_compositing_overlay_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_float',mtlx_compositing_overlay_float); - -// MaterialX node type: mtlx/compositing/overlay_color3 -// -function mtlx_compositing_overlay_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'overlay_color3'; - this.desc = "MaterialX:mtlx/compositing/overlay_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_overlay_color3.nodedef_name = 'ND_overlay_color3'; -mtlx_compositing_overlay_color3.nodedef_node = 'overlay'; -mtlx_compositing_overlay_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_color3',mtlx_compositing_overlay_color3); - -// MaterialX node type: mtlx/compositing/overlay_color4 -// -function mtlx_compositing_overlay_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_overlay_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'overlay'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'overlay_color4'; - this.desc = "MaterialX:mtlx/compositing/overlay_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_overlay_color4.nodedef_name = 'ND_overlay_color4'; -mtlx_compositing_overlay_color4.nodedef_node = 'overlay'; -mtlx_compositing_overlay_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; -LiteGraph.registerNodeType('mtlx/compositing/overlay_color4',mtlx_compositing_overlay_color4); - -// MaterialX node type: mtlx/compositing/disjointover_color4 -// -function mtlx_compositing_disjointover_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disjointover_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'disjointover'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disjointover_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'disjointover_color4'; - this.desc = "MaterialX:mtlx/compositing/disjointover_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_disjointover_color4.nodedef_name = 'ND_disjointover_color4'; -mtlx_compositing_disjointover_color4.nodedef_node = 'disjointover'; -mtlx_compositing_disjointover_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; -LiteGraph.registerNodeType('mtlx/compositing/disjointover_color4',mtlx_compositing_disjointover_color4); - -// MaterialX node type: mtlx/compositing/in_color4 -// -function mtlx_compositing_in_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_in_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'in'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_in_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'in_color4'; - this.desc = "MaterialX:mtlx/compositing/in_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_in_color4.nodedef_name = 'ND_in_color4'; -mtlx_compositing_in_color4.nodedef_node = 'in'; -mtlx_compositing_in_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; -LiteGraph.registerNodeType('mtlx/compositing/in_color4',mtlx_compositing_in_color4); - -// MaterialX node type: mtlx/compositing/mask_color4 -// -function mtlx_compositing_mask_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mask_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mask'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mask_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mask_color4'; - this.desc = "MaterialX:mtlx/compositing/mask_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mask_color4.nodedef_name = 'ND_mask_color4'; -mtlx_compositing_mask_color4.nodedef_node = 'mask'; -mtlx_compositing_mask_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; -LiteGraph.registerNodeType('mtlx/compositing/mask_color4',mtlx_compositing_mask_color4); - -// MaterialX node type: mtlx/compositing/matte_color4 -// -function mtlx_compositing_matte_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_matte_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'matte'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_matte_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'matte_color4'; - this.desc = "MaterialX:mtlx/compositing/matte_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_matte_color4.nodedef_name = 'ND_matte_color4'; -mtlx_compositing_matte_color4.nodedef_node = 'matte'; -mtlx_compositing_matte_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; -LiteGraph.registerNodeType('mtlx/compositing/matte_color4',mtlx_compositing_matte_color4); - -// MaterialX node type: mtlx/compositing/out_color4 -// -function mtlx_compositing_out_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_out_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'out'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_out_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'out_color4'; - this.desc = "MaterialX:mtlx/compositing/out_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_out_color4.nodedef_name = 'ND_out_color4'; -mtlx_compositing_out_color4.nodedef_node = 'out'; -mtlx_compositing_out_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; -LiteGraph.registerNodeType('mtlx/compositing/out_color4',mtlx_compositing_out_color4); - -// MaterialX node type: mtlx/compositing/over_color4 -// -function mtlx_compositing_over_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_over_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'over'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_over_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'over_color4'; - this.desc = "MaterialX:mtlx/compositing/over_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_over_color4.nodedef_name = 'ND_over_color4'; -mtlx_compositing_over_color4.nodedef_node = 'over'; -mtlx_compositing_over_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; -LiteGraph.registerNodeType('mtlx/compositing/over_color4',mtlx_compositing_over_color4); - -// MaterialX node type: mtlx/compositing/inside_float -// -function mtlx_compositing_inside_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'inside_float'; - this.desc = "MaterialX:mtlx/compositing/inside_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_inside_float.nodedef_name = 'ND_inside_float'; -mtlx_compositing_inside_float.nodedef_node = 'inside'; -mtlx_compositing_inside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_float',mtlx_compositing_inside_float); - -// MaterialX node type: mtlx/compositing/inside_color3 -// -function mtlx_compositing_inside_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'inside_color3'; - this.desc = "MaterialX:mtlx/compositing/inside_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_inside_color3.nodedef_name = 'ND_inside_color3'; -mtlx_compositing_inside_color3.nodedef_node = 'inside'; -mtlx_compositing_inside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_color3',mtlx_compositing_inside_color3); - -// MaterialX node type: mtlx/compositing/inside_color4 -// -function mtlx_compositing_inside_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_inside_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'inside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'inside_color4'; - this.desc = "MaterialX:mtlx/compositing/inside_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_inside_color4.nodedef_name = 'ND_inside_color4'; -mtlx_compositing_inside_color4.nodedef_node = 'inside'; -mtlx_compositing_inside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; -LiteGraph.registerNodeType('mtlx/compositing/inside_color4',mtlx_compositing_inside_color4); - -// MaterialX node type: mtlx/compositing/outside_float -// -function mtlx_compositing_outside_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'outside_float'; - this.desc = "MaterialX:mtlx/compositing/outside_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_outside_float.nodedef_name = 'ND_outside_float'; -mtlx_compositing_outside_float.nodedef_node = 'outside'; -mtlx_compositing_outside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_float',mtlx_compositing_outside_float); - -// MaterialX node type: mtlx/compositing/outside_color3 -// -function mtlx_compositing_outside_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'outside_color3'; - this.desc = "MaterialX:mtlx/compositing/outside_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_outside_color3.nodedef_name = 'ND_outside_color3'; -mtlx_compositing_outside_color3.nodedef_node = 'outside'; -mtlx_compositing_outside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_color3',mtlx_compositing_outside_color3); - -// MaterialX node type: mtlx/compositing/outside_color4 -// -function mtlx_compositing_outside_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_outside_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'outside'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mask','float'); - this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'outside_color4'; - this.desc = "MaterialX:mtlx/compositing/outside_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_outside_color4.nodedef_name = 'ND_outside_color4'; -mtlx_compositing_outside_color4.nodedef_node = 'outside'; -mtlx_compositing_outside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; -LiteGraph.registerNodeType('mtlx/compositing/outside_color4',mtlx_compositing_outside_color4); - -// MaterialX node type: mtlx/compositing/mix_float -// -function mtlx_compositing_mix_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_float_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','float'); - this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','float'); - this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'mix_float'; - this.desc = "MaterialX:mtlx/compositing/mix_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_compositing_mix_float.nodedef_name = 'ND_mix_float'; -mtlx_compositing_mix_float.nodedef_node = 'mix'; -mtlx_compositing_mix_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_float',mtlx_compositing_mix_float); - -// MaterialX node type: mtlx/compositing/mix_color3 -// -function mtlx_compositing_mix_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'mix_color3'; - this.desc = "MaterialX:mtlx/compositing/mix_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_mix_color3.nodedef_name = 'ND_mix_color3'; -mtlx_compositing_mix_color3.nodedef_node = 'mix'; -mtlx_compositing_mix_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color3',mtlx_compositing_mix_color3); - -// MaterialX node type: mtlx/compositing/mix_color3_color3 -// -function mtlx_compositing_mix_color3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_color3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','color3'); - this.addProperty('mix', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'mix_color3'; - this.desc = "MaterialX:mtlx/compositing/mix_color3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_compositing_mix_color3_color3.nodedef_name = 'ND_mix_color3_color3'; -mtlx_compositing_mix_color3_color3.nodedef_node = 'mix'; -mtlx_compositing_mix_color3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color3_color3',mtlx_compositing_mix_color3_color3); - -// MaterialX node type: mtlx/compositing/mix_color4 -// -function mtlx_compositing_mix_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mix_color4'; - this.desc = "MaterialX:mtlx/compositing/mix_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mix_color4.nodedef_name = 'ND_mix_color4'; -mtlx_compositing_mix_color4.nodedef_node = 'mix'; -mtlx_compositing_mix_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color4',mtlx_compositing_mix_color4); - -// MaterialX node type: mtlx/compositing/mix_color4_color4 -// -function mtlx_compositing_mix_color4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_color4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_color4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','color4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','color4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','color4'); - this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'mix_color4'; - this.desc = "MaterialX:mtlx/compositing/mix_color4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_compositing_mix_color4_color4.nodedef_name = 'ND_mix_color4_color4'; -mtlx_compositing_mix_color4_color4.nodedef_node = 'mix'; -mtlx_compositing_mix_color4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_color4_color4',mtlx_compositing_mix_color4_color4); - -// MaterialX node type: mtlx/compositing/mix_vector2 -// -function mtlx_compositing_mix_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector2'); - this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector2'); - this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'mix_vector2'; - this.desc = "MaterialX:mtlx/compositing/mix_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_compositing_mix_vector2.nodedef_name = 'ND_mix_vector2'; -mtlx_compositing_mix_vector2.nodedef_node = 'mix'; -mtlx_compositing_mix_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector2',mtlx_compositing_mix_vector2); - -// MaterialX node type: mtlx/compositing/mix_vector2_vector2 -// -function mtlx_compositing_mix_vector2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_vector2_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector2'); - this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector2'); - this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector2'); - this.addProperty('mix', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'mix_vector2'; - this.desc = "MaterialX:mtlx/compositing/mix_vector2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_compositing_mix_vector2_vector2.nodedef_name = 'ND_mix_vector2_vector2'; -mtlx_compositing_mix_vector2_vector2.nodedef_node = 'mix'; -mtlx_compositing_mix_vector2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector2_vector2',mtlx_compositing_mix_vector2_vector2); - -// MaterialX node type: mtlx/compositing/mix_vector3 -// -function mtlx_compositing_mix_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'mix_vector3'; - this.desc = "MaterialX:mtlx/compositing/mix_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_compositing_mix_vector3.nodedef_name = 'ND_mix_vector3'; -mtlx_compositing_mix_vector3.nodedef_node = 'mix'; -mtlx_compositing_mix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector3',mtlx_compositing_mix_vector3); - -// MaterialX node type: mtlx/compositing/mix_vector3_vector3 -// -function mtlx_compositing_mix_vector3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_vector3_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector3'); - this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector3'); - this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector3'); - this.addProperty('mix', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'mix_vector3'; - this.desc = "MaterialX:mtlx/compositing/mix_vector3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_compositing_mix_vector3_vector3.nodedef_name = 'ND_mix_vector3_vector3'; -mtlx_compositing_mix_vector3_vector3.nodedef_node = 'mix'; -mtlx_compositing_mix_vector3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector3_vector3',mtlx_compositing_mix_vector3_vector3); - -// MaterialX node type: mtlx/compositing/mix_vector4 -// -function mtlx_compositing_mix_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'mix_vector4'; - this.desc = "MaterialX:mtlx/compositing/mix_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_compositing_mix_vector4.nodedef_name = 'ND_mix_vector4'; -mtlx_compositing_mix_vector4.nodedef_node = 'mix'; -mtlx_compositing_mix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector4',mtlx_compositing_mix_vector4); - -// MaterialX node type: mtlx/compositing/mix_vector4_vector4 -// -function mtlx_compositing_mix_vector4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_vector4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_vector4_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','vector4'); - this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','vector4'); - this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','vector4'); - this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'mix_vector4'; - this.desc = "MaterialX:mtlx/compositing/mix_vector4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_compositing_mix_vector4_vector4.nodedef_name = 'ND_mix_vector4_vector4'; -mtlx_compositing_mix_vector4_vector4.nodedef_node = 'mix'; -mtlx_compositing_mix_vector4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_vector4_vector4',mtlx_compositing_mix_vector4_vector4); - -// MaterialX node type: mtlx/compositing/mix_surfaceshader -// -function mtlx_compositing_mix_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','surfaceshader'); - this.addProperty('fg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','surfaceshader'); - this.addProperty('bg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'mix_surfaceshader'; - this.desc = "MaterialX:mtlx/compositing/mix_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_surfaceshader.nodedef_name = 'ND_mix_surfaceshader'; -mtlx_compositing_mix_surfaceshader.nodedef_node = 'mix'; -mtlx_compositing_mix_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_surfaceshader',mtlx_compositing_mix_surfaceshader); - -// MaterialX node type: mtlx/compositing/mix_displacementshader -// -function mtlx_compositing_mix_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_displacementshader'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_displacementshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','displacementshader'); - this.addProperty('fg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','displacementshader'); - this.addProperty('bg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'mix_displacementshader'; - this.desc = "MaterialX:mtlx/compositing/mix_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_displacementshader.nodedef_name = 'ND_mix_displacementshader'; -mtlx_compositing_mix_displacementshader.nodedef_node = 'mix'; -mtlx_compositing_mix_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_displacementshader',mtlx_compositing_mix_displacementshader); - -// MaterialX node type: mtlx/compositing/mix_volumeshader -// -function mtlx_compositing_mix_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_mix_volumeshader'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'mix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_volumeshader_out_genglsl.png'; - this.nodedef_group = 'compositing'; - this.addInput('fg','volumeshader'); - this.addProperty('fg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bg','volumeshader'); - this.addProperty('bg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'mix_volumeshader'; - this.desc = "MaterialX:mtlx/compositing/mix_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_compositing_mix_volumeshader.nodedef_name = 'ND_mix_volumeshader'; -mtlx_compositing_mix_volumeshader.nodedef_node = 'mix'; -mtlx_compositing_mix_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; -LiteGraph.registerNodeType('mtlx/compositing/mix_volumeshader',mtlx_compositing_mix_volumeshader); - -// MaterialX node type: mtlx/conditional/ifgreater_float -// -function mtlx_conditional_ifgreater_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreater_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreater_float.nodedef_name = 'ND_ifgreater_float'; -mtlx_conditional_ifgreater_float.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_float',mtlx_conditional_ifgreater_float); - -// MaterialX node type: mtlx/conditional/ifgreater_integer -// -function mtlx_conditional_ifgreater_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreater_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_integer.nodedef_name = 'ND_ifgreater_integer'; -mtlx_conditional_ifgreater_integer.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integer',mtlx_conditional_ifgreater_integer); - -// MaterialX node type: mtlx/conditional/ifgreater_color3 -// -function mtlx_conditional_ifgreater_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreater_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreater_color3.nodedef_name = 'ND_ifgreater_color3'; -mtlx_conditional_ifgreater_color3.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3',mtlx_conditional_ifgreater_color3); - -// MaterialX node type: mtlx/conditional/ifgreater_color4 -// -function mtlx_conditional_ifgreater_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreater_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreater_color4.nodedef_name = 'ND_ifgreater_color4'; -mtlx_conditional_ifgreater_color4.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4',mtlx_conditional_ifgreater_color4); - -// MaterialX node type: mtlx/conditional/ifgreater_vector2 -// -function mtlx_conditional_ifgreater_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreater_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_vector2.nodedef_name = 'ND_ifgreater_vector2'; -mtlx_conditional_ifgreater_vector2.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2',mtlx_conditional_ifgreater_vector2); - -// MaterialX node type: mtlx/conditional/ifgreater_vector3 -// -function mtlx_conditional_ifgreater_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreater_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreater_vector3.nodedef_name = 'ND_ifgreater_vector3'; -mtlx_conditional_ifgreater_vector3.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3',mtlx_conditional_ifgreater_vector3); - -// MaterialX node type: mtlx/conditional/ifgreater_vector4 -// -function mtlx_conditional_ifgreater_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreater_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreater_vector4.nodedef_name = 'ND_ifgreater_vector4'; -mtlx_conditional_ifgreater_vector4.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4',mtlx_conditional_ifgreater_vector4); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix33 -// -function mtlx_conditional_ifgreater_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreater_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreater_matrix33.nodedef_name = 'ND_ifgreater_matrix33'; -mtlx_conditional_ifgreater_matrix33.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33',mtlx_conditional_ifgreater_matrix33); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix44 -// -function mtlx_conditional_ifgreater_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreater_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreater_matrix44.nodedef_name = 'ND_ifgreater_matrix44'; -mtlx_conditional_ifgreater_matrix44.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44',mtlx_conditional_ifgreater_matrix44); - -// MaterialX node type: mtlx/conditional/ifgreater_floatI -// -function mtlx_conditional_ifgreater_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreater_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreater_floatI.nodedef_name = 'ND_ifgreater_floatI'; -mtlx_conditional_ifgreater_floatI.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_floatI',mtlx_conditional_ifgreater_floatI); - -// MaterialX node type: mtlx/conditional/ifgreater_integerI -// -function mtlx_conditional_ifgreater_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreater_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_integerI.nodedef_name = 'ND_ifgreater_integerI'; -mtlx_conditional_ifgreater_integerI.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integerI',mtlx_conditional_ifgreater_integerI); - -// MaterialX node type: mtlx/conditional/ifgreater_color3I -// -function mtlx_conditional_ifgreater_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreater_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreater_color3I.nodedef_name = 'ND_ifgreater_color3I'; -mtlx_conditional_ifgreater_color3I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3I',mtlx_conditional_ifgreater_color3I); - -// MaterialX node type: mtlx/conditional/ifgreater_color4I -// -function mtlx_conditional_ifgreater_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreater_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreater_color4I.nodedef_name = 'ND_ifgreater_color4I'; -mtlx_conditional_ifgreater_color4I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4I',mtlx_conditional_ifgreater_color4I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector2I -// -function mtlx_conditional_ifgreater_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreater_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreater_vector2I.nodedef_name = 'ND_ifgreater_vector2I'; -mtlx_conditional_ifgreater_vector2I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2I',mtlx_conditional_ifgreater_vector2I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector3I -// -function mtlx_conditional_ifgreater_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreater_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreater_vector3I.nodedef_name = 'ND_ifgreater_vector3I'; -mtlx_conditional_ifgreater_vector3I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3I',mtlx_conditional_ifgreater_vector3I); - -// MaterialX node type: mtlx/conditional/ifgreater_vector4I -// -function mtlx_conditional_ifgreater_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreater_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreater_vector4I.nodedef_name = 'ND_ifgreater_vector4I'; -mtlx_conditional_ifgreater_vector4I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4I',mtlx_conditional_ifgreater_vector4I); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix33I -// -function mtlx_conditional_ifgreater_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreater_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreater_matrix33I.nodedef_name = 'ND_ifgreater_matrix33I'; -mtlx_conditional_ifgreater_matrix33I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33I',mtlx_conditional_ifgreater_matrix33I); - -// MaterialX node type: mtlx/conditional/ifgreater_matrix44I -// -function mtlx_conditional_ifgreater_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreater_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreater'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreater_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreater_matrix44I.nodedef_name = 'ND_ifgreater_matrix44I'; -mtlx_conditional_ifgreater_matrix44I.nodedef_node = 'ifgreater'; -mtlx_conditional_ifgreater_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44I',mtlx_conditional_ifgreater_matrix44I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_float -// -function mtlx_conditional_ifgreatereq_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreatereq_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreatereq_float.nodedef_name = 'ND_ifgreatereq_float'; -mtlx_conditional_ifgreatereq_float.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_float',mtlx_conditional_ifgreatereq_float); - -// MaterialX node type: mtlx/conditional/ifgreatereq_integer -// -function mtlx_conditional_ifgreatereq_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreatereq_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_integer.nodedef_name = 'ND_ifgreatereq_integer'; -mtlx_conditional_ifgreatereq_integer.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integer',mtlx_conditional_ifgreatereq_integer); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color3 -// -function mtlx_conditional_ifgreatereq_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreatereq_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreatereq_color3.nodedef_name = 'ND_ifgreatereq_color3'; -mtlx_conditional_ifgreatereq_color3.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3',mtlx_conditional_ifgreatereq_color3); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color4 -// -function mtlx_conditional_ifgreatereq_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreatereq_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreatereq_color4.nodedef_name = 'ND_ifgreatereq_color4'; -mtlx_conditional_ifgreatereq_color4.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4',mtlx_conditional_ifgreatereq_color4); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector2 -// -function mtlx_conditional_ifgreatereq_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreatereq_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_vector2.nodedef_name = 'ND_ifgreatereq_vector2'; -mtlx_conditional_ifgreatereq_vector2.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2',mtlx_conditional_ifgreatereq_vector2); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector3 -// -function mtlx_conditional_ifgreatereq_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreatereq_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreatereq_vector3.nodedef_name = 'ND_ifgreatereq_vector3'; -mtlx_conditional_ifgreatereq_vector3.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3',mtlx_conditional_ifgreatereq_vector3); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector4 -// -function mtlx_conditional_ifgreatereq_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreatereq_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreatereq_vector4.nodedef_name = 'ND_ifgreatereq_vector4'; -mtlx_conditional_ifgreatereq_vector4.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4',mtlx_conditional_ifgreatereq_vector4); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33 -// -function mtlx_conditional_ifgreatereq_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreatereq_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreatereq_matrix33.nodedef_name = 'ND_ifgreatereq_matrix33'; -mtlx_conditional_ifgreatereq_matrix33.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33',mtlx_conditional_ifgreatereq_matrix33); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44 -// -function mtlx_conditional_ifgreatereq_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreatereq_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreatereq_matrix44.nodedef_name = 'ND_ifgreatereq_matrix44'; -mtlx_conditional_ifgreatereq_matrix44.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44',mtlx_conditional_ifgreatereq_matrix44); - -// MaterialX node type: mtlx/conditional/ifgreatereq_floatI -// -function mtlx_conditional_ifgreatereq_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifgreatereq_float'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifgreatereq_floatI.nodedef_name = 'ND_ifgreatereq_floatI'; -mtlx_conditional_ifgreatereq_floatI.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_floatI',mtlx_conditional_ifgreatereq_floatI); - -// MaterialX node type: mtlx/conditional/ifgreatereq_integerI -// -function mtlx_conditional_ifgreatereq_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifgreatereq_integer'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_integerI.nodedef_name = 'ND_ifgreatereq_integerI'; -mtlx_conditional_ifgreatereq_integerI.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integerI',mtlx_conditional_ifgreatereq_integerI); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color3I -// -function mtlx_conditional_ifgreatereq_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifgreatereq_color3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifgreatereq_color3I.nodedef_name = 'ND_ifgreatereq_color3I'; -mtlx_conditional_ifgreatereq_color3I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3I',mtlx_conditional_ifgreatereq_color3I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_color4I -// -function mtlx_conditional_ifgreatereq_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifgreatereq_color4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifgreatereq_color4I.nodedef_name = 'ND_ifgreatereq_color4I'; -mtlx_conditional_ifgreatereq_color4I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4I',mtlx_conditional_ifgreatereq_color4I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector2I -// -function mtlx_conditional_ifgreatereq_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifgreatereq_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifgreatereq_vector2I.nodedef_name = 'ND_ifgreatereq_vector2I'; -mtlx_conditional_ifgreatereq_vector2I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2I',mtlx_conditional_ifgreatereq_vector2I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector3I -// -function mtlx_conditional_ifgreatereq_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifgreatereq_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifgreatereq_vector3I.nodedef_name = 'ND_ifgreatereq_vector3I'; -mtlx_conditional_ifgreatereq_vector3I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3I',mtlx_conditional_ifgreatereq_vector3I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_vector4I -// -function mtlx_conditional_ifgreatereq_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifgreatereq_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifgreatereq_vector4I.nodedef_name = 'ND_ifgreatereq_vector4I'; -mtlx_conditional_ifgreatereq_vector4I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4I',mtlx_conditional_ifgreatereq_vector4I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33I -// -function mtlx_conditional_ifgreatereq_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifgreatereq_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifgreatereq_matrix33I.nodedef_name = 'ND_ifgreatereq_matrix33I'; -mtlx_conditional_ifgreatereq_matrix33I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33I',mtlx_conditional_ifgreatereq_matrix33I); - -// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44I -// -function mtlx_conditional_ifgreatereq_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifgreatereq_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifgreatereq'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifgreatereq_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifgreatereq_matrix44I.nodedef_name = 'ND_ifgreatereq_matrix44I'; -mtlx_conditional_ifgreatereq_matrix44I.nodedef_node = 'ifgreatereq'; -mtlx_conditional_ifgreatereq_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44I',mtlx_conditional_ifgreatereq_matrix44I); - -// MaterialX node type: mtlx/conditional/ifequal_float -// -function mtlx_conditional_ifequal_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_float.nodedef_name = 'ND_ifequal_float'; -mtlx_conditional_ifequal_float.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_float',mtlx_conditional_ifequal_float); - -// MaterialX node type: mtlx/conditional/ifequal_integer -// -function mtlx_conditional_ifequal_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integer_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integer.nodedef_name = 'ND_ifequal_integer'; -mtlx_conditional_ifequal_integer.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integer',mtlx_conditional_ifequal_integer); - -// MaterialX node type: mtlx/conditional/ifequal_color3 -// -function mtlx_conditional_ifequal_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3.nodedef_name = 'ND_ifequal_color3'; -mtlx_conditional_ifequal_color3.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3',mtlx_conditional_ifequal_color3); - -// MaterialX node type: mtlx/conditional/ifequal_color4 -// -function mtlx_conditional_ifequal_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4.nodedef_name = 'ND_ifequal_color4'; -mtlx_conditional_ifequal_color4.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4',mtlx_conditional_ifequal_color4); - -// MaterialX node type: mtlx/conditional/ifequal_vector2 -// -function mtlx_conditional_ifequal_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2.nodedef_name = 'ND_ifequal_vector2'; -mtlx_conditional_ifequal_vector2.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2',mtlx_conditional_ifequal_vector2); - -// MaterialX node type: mtlx/conditional/ifequal_vector3 -// -function mtlx_conditional_ifequal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3.nodedef_name = 'ND_ifequal_vector3'; -mtlx_conditional_ifequal_vector3.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3',mtlx_conditional_ifequal_vector3); - -// MaterialX node type: mtlx/conditional/ifequal_vector4 -// -function mtlx_conditional_ifequal_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4.nodedef_name = 'ND_ifequal_vector4'; -mtlx_conditional_ifequal_vector4.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4',mtlx_conditional_ifequal_vector4); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33 -// -function mtlx_conditional_ifequal_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33.nodedef_name = 'ND_ifequal_matrix33'; -mtlx_conditional_ifequal_matrix33.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33',mtlx_conditional_ifequal_matrix33); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44 -// -function mtlx_conditional_ifequal_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','float'); - this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','float'); - this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44.nodedef_name = 'ND_ifequal_matrix44'; -mtlx_conditional_ifequal_matrix44.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44',mtlx_conditional_ifequal_matrix44); - -// MaterialX node type: mtlx/conditional/ifequal_floatI -// -function mtlx_conditional_ifequal_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_floatI.nodedef_name = 'ND_ifequal_floatI'; -mtlx_conditional_ifequal_floatI.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatI',mtlx_conditional_ifequal_floatI); - -// MaterialX node type: mtlx/conditional/ifequal_integerI -// -function mtlx_conditional_ifequal_integerI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integerI'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integerI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integerI.nodedef_name = 'ND_ifequal_integerI'; -mtlx_conditional_ifequal_integerI.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerI',mtlx_conditional_ifequal_integerI); - -// MaterialX node type: mtlx/conditional/ifequal_color3I -// -function mtlx_conditional_ifequal_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3I.nodedef_name = 'ND_ifequal_color3I'; -mtlx_conditional_ifequal_color3I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3I',mtlx_conditional_ifequal_color3I); - -// MaterialX node type: mtlx/conditional/ifequal_color4I -// -function mtlx_conditional_ifequal_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4I.nodedef_name = 'ND_ifequal_color4I'; -mtlx_conditional_ifequal_color4I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4I',mtlx_conditional_ifequal_color4I); - -// MaterialX node type: mtlx/conditional/ifequal_vector2I -// -function mtlx_conditional_ifequal_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2I.nodedef_name = 'ND_ifequal_vector2I'; -mtlx_conditional_ifequal_vector2I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2I',mtlx_conditional_ifequal_vector2I); - -// MaterialX node type: mtlx/conditional/ifequal_vector3I -// -function mtlx_conditional_ifequal_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3I.nodedef_name = 'ND_ifequal_vector3I'; -mtlx_conditional_ifequal_vector3I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3I',mtlx_conditional_ifequal_vector3I); - -// MaterialX node type: mtlx/conditional/ifequal_vector4I -// -function mtlx_conditional_ifequal_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4I.nodedef_name = 'ND_ifequal_vector4I'; -mtlx_conditional_ifequal_vector4I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4I',mtlx_conditional_ifequal_vector4I); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33I -// -function mtlx_conditional_ifequal_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33I.nodedef_name = 'ND_ifequal_matrix33I'; -mtlx_conditional_ifequal_matrix33I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33I',mtlx_conditional_ifequal_matrix33I); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44I -// -function mtlx_conditional_ifequal_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','integer'); - this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','integer'); - this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44I.nodedef_name = 'ND_ifequal_matrix44I'; -mtlx_conditional_ifequal_matrix44I.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44I',mtlx_conditional_ifequal_matrix44I); - -// MaterialX node type: mtlx/conditional/ifequal_floatB -// -function mtlx_conditional_ifequal_floatB() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_floatB'; - this.nodedef_type = 'float'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatB_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'ifequal_float'; - this.desc = "MaterialX:mtlx/conditional/ifequal_floatB"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_ifequal_floatB.nodedef_name = 'ND_ifequal_floatB'; -mtlx_conditional_ifequal_floatB.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_floatB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatB',mtlx_conditional_ifequal_floatB); - -// MaterialX node type: mtlx/conditional/ifequal_integerB -// -function mtlx_conditional_ifequal_integerB() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_integerB'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerB_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','integer'); - this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','integer'); - this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'ifequal_integer'; - this.desc = "MaterialX:mtlx/conditional/ifequal_integerB"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_integerB.nodedef_name = 'ND_ifequal_integerB'; -mtlx_conditional_ifequal_integerB.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_integerB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerB',mtlx_conditional_ifequal_integerB); - -// MaterialX node type: mtlx/conditional/ifequal_color3B -// -function mtlx_conditional_ifequal_color3B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color3B'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'ifequal_color3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color3B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_ifequal_color3B.nodedef_name = 'ND_ifequal_color3B'; -mtlx_conditional_ifequal_color3B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3B',mtlx_conditional_ifequal_color3B); - -// MaterialX node type: mtlx/conditional/ifequal_color4B -// -function mtlx_conditional_ifequal_color4B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_color4B'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'ifequal_color4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_color4B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_ifequal_color4B.nodedef_name = 'ND_ifequal_color4B'; -mtlx_conditional_ifequal_color4B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_color4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4B',mtlx_conditional_ifequal_color4B); - -// MaterialX node type: mtlx/conditional/ifequal_vector2B -// -function mtlx_conditional_ifequal_vector2B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector2B'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'ifequal_vector2'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector2B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_ifequal_vector2B.nodedef_name = 'ND_ifequal_vector2B'; -mtlx_conditional_ifequal_vector2B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector2B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2B',mtlx_conditional_ifequal_vector2B); - -// MaterialX node type: mtlx/conditional/ifequal_vector3B -// -function mtlx_conditional_ifequal_vector3B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector3B'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'ifequal_vector3'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector3B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_ifequal_vector3B.nodedef_name = 'ND_ifequal_vector3B'; -mtlx_conditional_ifequal_vector3B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3B',mtlx_conditional_ifequal_vector3B); - -// MaterialX node type: mtlx/conditional/ifequal_vector4B -// -function mtlx_conditional_ifequal_vector4B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_vector4B'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'ifequal_vector4'; - this.desc = "MaterialX:mtlx/conditional/ifequal_vector4B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_ifequal_vector4B.nodedef_name = 'ND_ifequal_vector4B'; -mtlx_conditional_ifequal_vector4B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_vector4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4B',mtlx_conditional_ifequal_vector4B); - -// MaterialX node type: mtlx/conditional/ifequal_matrix33B -// -function mtlx_conditional_ifequal_matrix33B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix33B'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'ifequal_matrix33'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_ifequal_matrix33B.nodedef_name = 'ND_ifequal_matrix33B'; -mtlx_conditional_ifequal_matrix33B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix33B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33B',mtlx_conditional_ifequal_matrix33B); - -// MaterialX node type: mtlx/conditional/ifequal_matrix44B -// -function mtlx_conditional_ifequal_matrix44B() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_ifequal_matrix44B'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'ifequal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44B_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('value1','boolean'); - this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('value2','boolean'); - this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'ifequal_matrix44'; - this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44B"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_ifequal_matrix44B.nodedef_name = 'ND_ifequal_matrix44B'; -mtlx_conditional_ifequal_matrix44B.nodedef_node = 'ifequal'; -mtlx_conditional_ifequal_matrix44B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; -LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44B',mtlx_conditional_ifequal_matrix44B); - -// MaterialX node type: mtlx/conditional/switch_float -// -function mtlx_conditional_switch_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_float_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','float'); - this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','float'); - this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','float'); - this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','float'); - this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','float'); - this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','float'); - this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'switch_float'; - this.desc = "MaterialX:mtlx/conditional/switch_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_switch_float.nodedef_name = 'ND_switch_float'; -mtlx_conditional_switch_float.nodedef_node = 'switch'; -mtlx_conditional_switch_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_float',mtlx_conditional_switch_float); - -// MaterialX node type: mtlx/conditional/switch_color3 -// -function mtlx_conditional_switch_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'switch_color3'; - this.desc = "MaterialX:mtlx/conditional/switch_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_switch_color3.nodedef_name = 'ND_switch_color3'; -mtlx_conditional_switch_color3.nodedef_node = 'switch'; -mtlx_conditional_switch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color3',mtlx_conditional_switch_color3); - -// MaterialX node type: mtlx/conditional/switch_color4 -// -function mtlx_conditional_switch_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'switch_color4'; - this.desc = "MaterialX:mtlx/conditional/switch_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_switch_color4.nodedef_name = 'ND_switch_color4'; -mtlx_conditional_switch_color4.nodedef_node = 'switch'; -mtlx_conditional_switch_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color4',mtlx_conditional_switch_color4); - -// MaterialX node type: mtlx/conditional/switch_vector2 -// -function mtlx_conditional_switch_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector2'); - this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector2'); - this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector2'); - this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector2'); - this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector2'); - this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector2'); - this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector2'); - this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector2'); - this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'switch_vector2'; - this.desc = "MaterialX:mtlx/conditional/switch_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_switch_vector2.nodedef_name = 'ND_switch_vector2'; -mtlx_conditional_switch_vector2.nodedef_node = 'switch'; -mtlx_conditional_switch_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector2',mtlx_conditional_switch_vector2); - -// MaterialX node type: mtlx/conditional/switch_vector3 -// -function mtlx_conditional_switch_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'switch_vector3'; - this.desc = "MaterialX:mtlx/conditional/switch_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_switch_vector3.nodedef_name = 'ND_switch_vector3'; -mtlx_conditional_switch_vector3.nodedef_node = 'switch'; -mtlx_conditional_switch_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector3',mtlx_conditional_switch_vector3); - -// MaterialX node type: mtlx/conditional/switch_vector4 -// -function mtlx_conditional_switch_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'switch_vector4'; - this.desc = "MaterialX:mtlx/conditional/switch_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_switch_vector4.nodedef_name = 'ND_switch_vector4'; -mtlx_conditional_switch_vector4.nodedef_node = 'switch'; -mtlx_conditional_switch_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector4',mtlx_conditional_switch_vector4); - -// MaterialX node type: mtlx/conditional/switch_matrix33 -// -function mtlx_conditional_switch_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix33'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix33'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix33'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix33'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix33'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix33'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix33'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix33'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'switch_matrix33'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_switch_matrix33.nodedef_name = 'ND_switch_matrix33'; -mtlx_conditional_switch_matrix33.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33',mtlx_conditional_switch_matrix33); - -// MaterialX node type: mtlx/conditional/switch_matrix44 -// -function mtlx_conditional_switch_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix44'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix44'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix44'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix44'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix44'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix44'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix44'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix44'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','float'); - this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'switch_matrix44'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_switch_matrix44.nodedef_name = 'ND_switch_matrix44'; -mtlx_conditional_switch_matrix44.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44',mtlx_conditional_switch_matrix44); - -// MaterialX node type: mtlx/conditional/switch_floatI -// -function mtlx_conditional_switch_floatI() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_floatI'; - this.nodedef_type = 'float'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_floatI_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','float'); - this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','float'); - this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','float'); - this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','float'); - this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','float'); - this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','float'); - this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'switch_float'; - this.desc = "MaterialX:mtlx/conditional/switch_floatI"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#753'; -} -mtlx_conditional_switch_floatI.nodedef_name = 'ND_switch_floatI'; -mtlx_conditional_switch_floatI.nodedef_node = 'switch'; -mtlx_conditional_switch_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_floatI',mtlx_conditional_switch_floatI); - -// MaterialX node type: mtlx/conditional/switch_color3I -// -function mtlx_conditional_switch_color3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color3I'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'switch_color3'; - this.desc = "MaterialX:mtlx/conditional/switch_color3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#679'; -} -mtlx_conditional_switch_color3I.nodedef_name = 'ND_switch_color3I'; -mtlx_conditional_switch_color3I.nodedef_node = 'switch'; -mtlx_conditional_switch_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color3I',mtlx_conditional_switch_color3I); - -// MaterialX node type: mtlx/conditional/switch_color4I -// -function mtlx_conditional_switch_color4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_color4I'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','color4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','color4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','color4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','color4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','color4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','color4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','color4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','color4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','color4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','color4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'switch_color4'; - this.desc = "MaterialX:mtlx/conditional/switch_color4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#899'; -} -mtlx_conditional_switch_color4I.nodedef_name = 'ND_switch_color4I'; -mtlx_conditional_switch_color4I.nodedef_node = 'switch'; -mtlx_conditional_switch_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_color4I',mtlx_conditional_switch_color4I); - -// MaterialX node type: mtlx/conditional/switch_vector2I -// -function mtlx_conditional_switch_vector2I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector2I'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector2'); - this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector2'); - this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector2'); - this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector2'); - this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector2'); - this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector2'); - this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector2'); - this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector2'); - this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'switch_vector2'; - this.desc = "MaterialX:mtlx/conditional/switch_vector2I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_conditional_switch_vector2I.nodedef_name = 'ND_switch_vector2I'; -mtlx_conditional_switch_vector2I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector2I',mtlx_conditional_switch_vector2I); - -// MaterialX node type: mtlx/conditional/switch_vector3I -// -function mtlx_conditional_switch_vector3I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector3I'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector3'); - this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector3'); - this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector3'); - this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector3'); - this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector3'); - this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector3'); - this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'switch_vector3'; - this.desc = "MaterialX:mtlx/conditional/switch_vector3I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_conditional_switch_vector3I.nodedef_name = 'ND_switch_vector3I'; -mtlx_conditional_switch_vector3I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector3I',mtlx_conditional_switch_vector3I); - -// MaterialX node type: mtlx/conditional/switch_vector4I -// -function mtlx_conditional_switch_vector4I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_vector4I'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','vector4'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','vector4'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','vector4'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','vector4'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','vector4'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','vector4'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','vector4'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'switch_vector4'; - this.desc = "MaterialX:mtlx/conditional/switch_vector4I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_conditional_switch_vector4I.nodedef_name = 'ND_switch_vector4I'; -mtlx_conditional_switch_vector4I.nodedef_node = 'switch'; -mtlx_conditional_switch_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_vector4I',mtlx_conditional_switch_vector4I); - -// MaterialX node type: mtlx/conditional/switch_matrix33I -// -function mtlx_conditional_switch_matrix33I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix33I'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix33'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix33'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix33'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix33'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix33'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix33'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix33'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix33'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix33'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix33'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'switch_matrix33'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix33I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#333'; -} -mtlx_conditional_switch_matrix33I.nodedef_name = 'ND_switch_matrix33I'; -mtlx_conditional_switch_matrix33I.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33I',mtlx_conditional_switch_matrix33I); - -// MaterialX node type: mtlx/conditional/switch_matrix44I -// -function mtlx_conditional_switch_matrix44I() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_switch_matrix44I'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'switch'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44I_out_genglsl.png'; - this.nodedef_group = 'conditional'; - this.addInput('in1','matrix44'); - this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','matrix44'); - this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','matrix44'); - this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','matrix44'); - this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in5','matrix44'); - this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in6','matrix44'); - this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in7','matrix44'); - this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in8','matrix44'); - this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in9','matrix44'); - this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in10','matrix44'); - this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('which','integer'); - this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'switch_matrix44'; - this.desc = "MaterialX:mtlx/conditional/switch_matrix44I"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#532200'; - this.title_text_color = '#000'; - this.shape = LiteGraph.CARD_SHAPE; - this.boxcolor = '#444'; -} -mtlx_conditional_switch_matrix44I.nodedef_name = 'ND_switch_matrix44I'; -mtlx_conditional_switch_matrix44I.nodedef_node = 'switch'; -mtlx_conditional_switch_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; -LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44I',mtlx_conditional_switch_matrix44I); - -// MaterialX node type: mtlx/channel/convert_float_color3 -// -function mtlx_channel_convert_float_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_float_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_float_color3.nodedef_name = 'ND_convert_float_color3'; -mtlx_channel_convert_float_color3.nodedef_node = 'convert'; -mtlx_channel_convert_float_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_color3',mtlx_channel_convert_float_color3); - -// MaterialX node type: mtlx/channel/convert_float_color4 -// -function mtlx_channel_convert_float_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_float_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_float_color4.nodedef_name = 'ND_convert_float_color4'; -mtlx_channel_convert_float_color4.nodedef_node = 'convert'; -mtlx_channel_convert_float_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_color4',mtlx_channel_convert_float_color4); - -// MaterialX node type: mtlx/channel/convert_float_vector2 -// -function mtlx_channel_convert_float_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'convert_vector2'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_convert_float_vector2.nodedef_name = 'ND_convert_float_vector2'; -mtlx_channel_convert_float_vector2.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector2',mtlx_channel_convert_float_vector2); - -// MaterialX node type: mtlx/channel/convert_float_vector3 -// -function mtlx_channel_convert_float_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_float_vector3.nodedef_name = 'ND_convert_float_vector3'; -mtlx_channel_convert_float_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector3',mtlx_channel_convert_float_vector3); - -// MaterialX node type: mtlx/channel/convert_float_vector4 -// -function mtlx_channel_convert_float_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_float_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_float_vector4.nodedef_name = 'ND_convert_float_vector4'; -mtlx_channel_convert_float_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_float_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_float_vector4',mtlx_channel_convert_float_vector4); - -// MaterialX node type: mtlx/channel/convert_vector2_vector3 -// -function mtlx_channel_convert_vector2_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector2_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_vector2_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_vector2_vector3.nodedef_name = 'ND_convert_vector2_vector3'; -mtlx_channel_convert_vector2_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_vector2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector2_vector3',mtlx_channel_convert_vector2_vector3); - -// MaterialX node type: mtlx/channel/convert_vector3_color3 -// -function mtlx_channel_convert_vector3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_vector3_color3.nodedef_name = 'ND_convert_vector3_color3'; -mtlx_channel_convert_vector3_color3.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_color3',mtlx_channel_convert_vector3_color3); - -// MaterialX node type: mtlx/channel/convert_vector3_vector2 -// -function mtlx_channel_convert_vector3_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'convert_vector2'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_convert_vector3_vector2.nodedef_name = 'ND_convert_vector3_vector2'; -mtlx_channel_convert_vector3_vector2.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector2',mtlx_channel_convert_vector3_vector2); - -// MaterialX node type: mtlx/channel/convert_vector3_vector4 -// -function mtlx_channel_convert_vector3_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_vector3_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_vector3_vector4.nodedef_name = 'ND_convert_vector3_vector4'; -mtlx_channel_convert_vector3_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_vector3_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector4',mtlx_channel_convert_vector3_vector4); - -// MaterialX node type: mtlx/channel/convert_vector4_color4 -// -function mtlx_channel_convert_vector4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_vector4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_vector4_color4.nodedef_name = 'ND_convert_vector4_color4'; -mtlx_channel_convert_vector4_color4.nodedef_node = 'convert'; -mtlx_channel_convert_vector4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector4_color4',mtlx_channel_convert_vector4_color4); - -// MaterialX node type: mtlx/channel/convert_vector4_vector3 -// -function mtlx_channel_convert_vector4_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_vector4_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_vector4_vector3.nodedef_name = 'ND_convert_vector4_vector3'; -mtlx_channel_convert_vector4_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_vector4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_vector4_vector3',mtlx_channel_convert_vector4_vector3); - -// MaterialX node type: mtlx/channel/convert_color3_vector3 -// -function mtlx_channel_convert_color3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'convert_vector3'; - this.desc = "MaterialX:mtlx/channel/convert_color3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_convert_color3_vector3.nodedef_name = 'ND_convert_color3_vector3'; -mtlx_channel_convert_color3_vector3.nodedef_node = 'convert'; -mtlx_channel_convert_color3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color3_vector3',mtlx_channel_convert_color3_vector3); - -// MaterialX node type: mtlx/channel/convert_color4_vector4 -// -function mtlx_channel_convert_color4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'convert_vector4'; - this.desc = "MaterialX:mtlx/channel/convert_color4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_convert_color4_vector4.nodedef_name = 'ND_convert_color4_vector4'; -mtlx_channel_convert_color4_vector4.nodedef_node = 'convert'; -mtlx_channel_convert_color4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color4_vector4',mtlx_channel_convert_color4_vector4); - -// MaterialX node type: mtlx/channel/convert_color3_color4 -// -function mtlx_channel_convert_color3_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'convert_color4'; - this.desc = "MaterialX:mtlx/channel/convert_color3_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_convert_color3_color4.nodedef_name = 'ND_convert_color3_color4'; -mtlx_channel_convert_color3_color4.nodedef_node = 'convert'; -mtlx_channel_convert_color3_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color3_color4',mtlx_channel_convert_color3_color4); - -// MaterialX node type: mtlx/channel/convert_color4_color3 -// -function mtlx_channel_convert_color4_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'convert_color3'; - this.desc = "MaterialX:mtlx/channel/convert_color4_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_convert_color4_color3.nodedef_name = 'ND_convert_color4_color3'; -mtlx_channel_convert_color4_color3.nodedef_node = 'convert'; -mtlx_channel_convert_color4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_color4_color3',mtlx_channel_convert_color4_color3); - -// MaterialX node type: mtlx/channel/convert_boolean_float -// -function mtlx_channel_convert_boolean_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_boolean_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_float_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'convert_float'; - this.desc = "MaterialX:mtlx/channel/convert_boolean_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_convert_boolean_float.nodedef_name = 'ND_convert_boolean_float'; -mtlx_channel_convert_boolean_float.nodedef_node = 'convert'; -mtlx_channel_convert_boolean_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_boolean_float',mtlx_channel_convert_boolean_float); - -// MaterialX node type: mtlx/channel/convert_integer_float -// -function mtlx_channel_convert_integer_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_integer_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_float_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'convert_float'; - this.desc = "MaterialX:mtlx/channel/convert_integer_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_convert_integer_float.nodedef_name = 'ND_convert_integer_float'; -mtlx_channel_convert_integer_float.nodedef_node = 'convert'; -mtlx_channel_convert_integer_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/channel/convert_integer_float',mtlx_channel_convert_integer_float); - -// MaterialX node type: mtlx/shader/convert_color3_surfaceshader -// -function mtlx_shader_convert_color3_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color3_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','color3'); - this.addProperty('in', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_color3_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_color3_surfaceshader.nodedef_name = 'ND_convert_color3_surfaceshader'; -mtlx_shader_convert_color3_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_color3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_color3_surfaceshader',mtlx_shader_convert_color3_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_color4_surfaceshader -// -function mtlx_shader_convert_color4_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_color4_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','color4'); - this.addProperty('in', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_color4_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_color4_surfaceshader.nodedef_name = 'ND_convert_color4_surfaceshader'; -mtlx_shader_convert_color4_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_color4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_color4_surfaceshader',mtlx_shader_convert_color4_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_float_surfaceshader -// -function mtlx_shader_convert_float_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_float_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','float'); - this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_float_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_float_surfaceshader.nodedef_name = 'ND_convert_float_surfaceshader'; -mtlx_shader_convert_float_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_float_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_float_surfaceshader',mtlx_shader_convert_float_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector2_surfaceshader -// -function mtlx_shader_convert_vector2_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector2_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector2'); - this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector2_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector2_surfaceshader.nodedef_name = 'ND_convert_vector2_surfaceshader'; -mtlx_shader_convert_vector2_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector2_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector2_surfaceshader',mtlx_shader_convert_vector2_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector3_surfaceshader -// -function mtlx_shader_convert_vector3_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector3_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector3'); - this.addProperty('in', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector3_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector3_surfaceshader.nodedef_name = 'ND_convert_vector3_surfaceshader'; -mtlx_shader_convert_vector3_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector3_surfaceshader',mtlx_shader_convert_vector3_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_vector4_surfaceshader -// -function mtlx_shader_convert_vector4_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_vector4_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','vector4'); - this.addProperty('in', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_vector4_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_vector4_surfaceshader.nodedef_name = 'ND_convert_vector4_surfaceshader'; -mtlx_shader_convert_vector4_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_vector4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_vector4_surfaceshader',mtlx_shader_convert_vector4_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_integer_surfaceshader -// -function mtlx_shader_convert_integer_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_integer_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_integer_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_integer_surfaceshader.nodedef_name = 'ND_convert_integer_surfaceshader'; -mtlx_shader_convert_integer_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_integer_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_integer_surfaceshader',mtlx_shader_convert_integer_surfaceshader); - -// MaterialX node type: mtlx/shader/convert_boolean_surfaceshader -// -function mtlx_shader_convert_boolean_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_convert_boolean_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'convert'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'shader'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'convert_surfaceshader'; - this.desc = "MaterialX:mtlx/shader/convert_boolean_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_shader_convert_boolean_surfaceshader.nodedef_name = 'ND_convert_boolean_surfaceshader'; -mtlx_shader_convert_boolean_surfaceshader.nodedef_node = 'convert'; -mtlx_shader_convert_boolean_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; -LiteGraph.registerNodeType('mtlx/shader/convert_boolean_surfaceshader',mtlx_shader_convert_boolean_surfaceshader); - -// MaterialX node type: mtlx/channel/combine2_vector2 -// -function mtlx_channel_combine2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'combine2_vector2'; - this.desc = "MaterialX:mtlx/channel/combine2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_channel_combine2_vector2.nodedef_name = 'ND_combine2_vector2'; -mtlx_channel_combine2_vector2.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector2',mtlx_channel_combine2_vector2); - -// MaterialX node type: mtlx/channel/combine2_color4CF -// -function mtlx_channel_combine2_color4CF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_color4CF'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_color4CF_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','color3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'combine2_color4'; - this.desc = "MaterialX:mtlx/channel/combine2_color4CF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_combine2_color4CF.nodedef_name = 'ND_combine2_color4CF'; -mtlx_channel_combine2_color4CF.nodedef_node = 'combine2'; -mtlx_channel_combine2_color4CF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_color4CF',mtlx_channel_combine2_color4CF); - -// MaterialX node type: mtlx/channel/combine2_vector4VF -// -function mtlx_channel_combine2_vector4VF() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector4VF'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VF_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','vector3'); - this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine2_vector4'; - this.desc = "MaterialX:mtlx/channel/combine2_vector4VF"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine2_vector4VF.nodedef_name = 'ND_combine2_vector4VF'; -mtlx_channel_combine2_vector4VF.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector4VF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VF',mtlx_channel_combine2_vector4VF); - -// MaterialX node type: mtlx/channel/combine2_vector4VV -// -function mtlx_channel_combine2_vector4VV() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine2_vector4VV'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VV_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','vector2'); - this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector2'); - this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine2_vector4'; - this.desc = "MaterialX:mtlx/channel/combine2_vector4VV"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine2_vector4VV.nodedef_name = 'ND_combine2_vector4VV'; -mtlx_channel_combine2_vector4VV.nodedef_node = 'combine2'; -mtlx_channel_combine2_vector4VV.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; -LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VV',mtlx_channel_combine2_vector4VV); - -// MaterialX node type: mtlx/channel/combine3_color3 -// -function mtlx_channel_combine3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine3_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'combine3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'combine3_color3'; - this.desc = "MaterialX:mtlx/channel/combine3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_channel_combine3_color3.nodedef_name = 'ND_combine3_color3'; -mtlx_channel_combine3_color3.nodedef_node = 'combine3'; -mtlx_channel_combine3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; -LiteGraph.registerNodeType('mtlx/channel/combine3_color3',mtlx_channel_combine3_color3); - -// MaterialX node type: mtlx/channel/combine3_vector3 -// -function mtlx_channel_combine3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine3_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'combine3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'combine3_vector3'; - this.desc = "MaterialX:mtlx/channel/combine3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_channel_combine3_vector3.nodedef_name = 'ND_combine3_vector3'; -mtlx_channel_combine3_vector3.nodedef_node = 'combine3'; -mtlx_channel_combine3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; -LiteGraph.registerNodeType('mtlx/channel/combine3_vector3',mtlx_channel_combine3_vector3); - -// MaterialX node type: mtlx/channel/combine4_color4 -// -function mtlx_channel_combine4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine4_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'combine4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'combine4_color4'; - this.desc = "MaterialX:mtlx/channel/combine4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_channel_combine4_color4.nodedef_name = 'ND_combine4_color4'; -mtlx_channel_combine4_color4.nodedef_node = 'combine4'; -mtlx_channel_combine4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; -LiteGraph.registerNodeType('mtlx/channel/combine4_color4',mtlx_channel_combine4_color4); - -// MaterialX node type: mtlx/channel/combine4_vector4 -// -function mtlx_channel_combine4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_combine4_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'combine4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in1','float'); - this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','float'); - this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','float'); - this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','float'); - this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'combine4_vector4'; - this.desc = "MaterialX:mtlx/channel/combine4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_channel_combine4_vector4.nodedef_name = 'ND_combine4_vector4'; -mtlx_channel_combine4_vector4.nodedef_node = 'combine4'; -mtlx_channel_combine4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; -LiteGraph.registerNodeType('mtlx/channel/combine4_vector4',mtlx_channel_combine4_vector4); - -// MaterialX node type: mtlx/math/creatematrix_vector3_matrix33 -// -function mtlx_math_creatematrix_vector3_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector3_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix33_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'creatematrix_matrix33'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_math_creatematrix_vector3_matrix33.nodedef_name = 'ND_creatematrix_vector3_matrix33'; -mtlx_math_creatematrix_vector3_matrix33.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector3_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix33',mtlx_math_creatematrix_vector3_matrix33); - -// MaterialX node type: mtlx/math/creatematrix_vector3_matrix44 -// -function mtlx_math_creatematrix_vector3_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector3_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector3'); - this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector3'); - this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector3'); - this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector3'); - this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'creatematrix_matrix44'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_creatematrix_vector3_matrix44.nodedef_name = 'ND_creatematrix_vector3_matrix44'; -mtlx_math_creatematrix_vector3_matrix44.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector3_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix44',mtlx_math_creatematrix_vector3_matrix44); - -// MaterialX node type: mtlx/math/creatematrix_vector4_matrix44 -// -function mtlx_math_creatematrix_vector4_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_creatematrix_vector4_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'creatematrix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector4_matrix44_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in1','vector4'); - this.addProperty('in1', [1.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in2','vector4'); - this.addProperty('in2', [0.0, 1.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in3','vector4'); - this.addProperty('in3', [0.0, 0.0, 1.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('in4','vector4'); - this.addProperty('in4', [0.0, 0.0, 0.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'creatematrix_matrix44'; - this.desc = "MaterialX:mtlx/math/creatematrix_vector4_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_math_creatematrix_vector4_matrix44.nodedef_name = 'ND_creatematrix_vector4_matrix44'; -mtlx_math_creatematrix_vector4_matrix44.nodedef_node = 'creatematrix'; -mtlx_math_creatematrix_vector4_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; -LiteGraph.registerNodeType('mtlx/math/creatematrix_vector4_matrix44',mtlx_math_creatematrix_vector4_matrix44); - -// MaterialX node type: mtlx/channel/extract_color3 -// -function mtlx_channel_extract_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_color3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_color3.nodedef_name = 'ND_extract_color3'; -mtlx_channel_extract_color3.nodedef_node = 'extract'; -mtlx_channel_extract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_color3',mtlx_channel_extract_color3); - -// MaterialX node type: mtlx/channel/extract_color4 -// -function mtlx_channel_extract_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_color4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_color4.nodedef_name = 'ND_extract_color4'; -mtlx_channel_extract_color4.nodedef_node = 'extract'; -mtlx_channel_extract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_color4',mtlx_channel_extract_color4); - -// MaterialX node type: mtlx/channel/extract_vector2 -// -function mtlx_channel_extract_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector2'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector2_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector2.nodedef_name = 'ND_extract_vector2'; -mtlx_channel_extract_vector2.nodedef_node = 'extract'; -mtlx_channel_extract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector2',mtlx_channel_extract_vector2); - -// MaterialX node type: mtlx/channel/extract_vector3 -// -function mtlx_channel_extract_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector3'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector3_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector3.nodedef_name = 'ND_extract_vector3'; -mtlx_channel_extract_vector3.nodedef_node = 'extract'; -mtlx_channel_extract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector3',mtlx_channel_extract_vector3); - -// MaterialX node type: mtlx/channel/extract_vector4 -// -function mtlx_channel_extract_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_extract_vector4'; - this.nodedef_type = 'float'; - this.nodedef_node = 'extract'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector4_out_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('index','integer'); - this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":""}); - this.addOutput('out','float'); - this.title = 'extract_float'; - this.desc = "MaterialX:mtlx/channel/extract_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_channel_extract_vector4.nodedef_name = 'ND_extract_vector4'; -mtlx_channel_extract_vector4.nodedef_node = 'extract'; -mtlx_channel_extract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; -LiteGraph.registerNodeType('mtlx/channel/extract_vector4',mtlx_channel_extract_vector4); - -// MaterialX node type: mtlx/channel/separate2_vector2 -// -function mtlx_channel_separate2_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate2_vector2'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate2'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate2_vector2_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.title = 'separate2_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate2_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate2_vector2.nodedef_name = 'ND_separate2_vector2'; -mtlx_channel_separate2_vector2.nodedef_node = 'separate2'; -mtlx_channel_separate2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; -LiteGraph.registerNodeType('mtlx/channel/separate2_vector2',mtlx_channel_separate2_vector2); - -// MaterialX node type: mtlx/channel/separate3_color3 -// -function mtlx_channel_separate3_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate3_color3'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_color3_outr_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outr','float'); - this.addOutput('outg','float'); - this.addOutput('outb','float'); - this.title = 'separate3_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate3_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate3_color3.nodedef_name = 'ND_separate3_color3'; -mtlx_channel_separate3_color3.nodedef_node = 'separate3'; -mtlx_channel_separate3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; -LiteGraph.registerNodeType('mtlx/channel/separate3_color3',mtlx_channel_separate3_color3); - -// MaterialX node type: mtlx/channel/separate3_vector3 -// -function mtlx_channel_separate3_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate3_vector3'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate3'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_vector3_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.addOutput('outz','float'); - this.title = 'separate3_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate3_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate3_vector3.nodedef_name = 'ND_separate3_vector3'; -mtlx_channel_separate3_vector3.nodedef_node = 'separate3'; -mtlx_channel_separate3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; -LiteGraph.registerNodeType('mtlx/channel/separate3_vector3',mtlx_channel_separate3_vector3); - -// MaterialX node type: mtlx/channel/separate4_color4 -// -function mtlx_channel_separate4_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate4_color4'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_color4_outr_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outr','float'); - this.addOutput('outg','float'); - this.addOutput('outb','float'); - this.addOutput('outa','float'); - this.title = 'separate4_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate4_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate4_color4.nodedef_name = 'ND_separate4_color4'; -mtlx_channel_separate4_color4.nodedef_node = 'separate4'; -mtlx_channel_separate4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; -LiteGraph.registerNodeType('mtlx/channel/separate4_color4',mtlx_channel_separate4_color4); - -// MaterialX node type: mtlx/channel/separate4_vector4 -// -function mtlx_channel_separate4_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_separate4_vector4'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'separate4'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_vector4_outx_genglsl.png'; - this.nodedef_group = 'channel'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('outx','float'); - this.addOutput('outy','float'); - this.addOutput('outz','float'); - this.addOutput('outw','float'); - this.title = 'separate4_multioutput'; - this.desc = "MaterialX:mtlx/channel/separate4_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_channel_separate4_vector4.nodedef_name = 'ND_separate4_vector4'; -mtlx_channel_separate4_vector4.nodedef_node = 'separate4'; -mtlx_channel_separate4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; -LiteGraph.registerNodeType('mtlx/channel/separate4_vector4',mtlx_channel_separate4_vector4); - -// MaterialX node type: mtlx/convolution2d/blur_float -// -function mtlx_convolution2d_blur_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_float_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'blur_float'; - this.desc = "MaterialX:mtlx/convolution2d/blur_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_convolution2d_blur_float.nodedef_name = 'ND_blur_float'; -mtlx_convolution2d_blur_float.nodedef_node = 'blur'; -mtlx_convolution2d_blur_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_float',mtlx_convolution2d_blur_float); - -// MaterialX node type: mtlx/convolution2d/blur_color3 -// -function mtlx_convolution2d_blur_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'blur_color3'; - this.desc = "MaterialX:mtlx/convolution2d/blur_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_convolution2d_blur_color3.nodedef_name = 'ND_blur_color3'; -mtlx_convolution2d_blur_color3.nodedef_node = 'blur'; -mtlx_convolution2d_blur_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_color3',mtlx_convolution2d_blur_color3); - -// MaterialX node type: mtlx/convolution2d/blur_color4 -// -function mtlx_convolution2d_blur_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color4_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'blur_color4'; - this.desc = "MaterialX:mtlx/convolution2d/blur_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_convolution2d_blur_color4.nodedef_name = 'ND_blur_color4'; -mtlx_convolution2d_blur_color4.nodedef_node = 'blur'; -mtlx_convolution2d_blur_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_color4',mtlx_convolution2d_blur_color4); - -// MaterialX node type: mtlx/convolution2d/blur_vector2 -// -function mtlx_convolution2d_blur_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector2_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'blur_vector2'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_convolution2d_blur_vector2.nodedef_name = 'ND_blur_vector2'; -mtlx_convolution2d_blur_vector2.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector2',mtlx_convolution2d_blur_vector2); - -// MaterialX node type: mtlx/convolution2d/blur_vector3 -// -function mtlx_convolution2d_blur_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'blur_vector3'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_convolution2d_blur_vector3.nodedef_name = 'ND_blur_vector3'; -mtlx_convolution2d_blur_vector3.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector3',mtlx_convolution2d_blur_vector3); - -// MaterialX node type: mtlx/convolution2d/blur_vector4 -// -function mtlx_convolution2d_blur_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_blur_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'blur'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector4_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('size','float'); - this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'blur_vector4'; - this.desc = "MaterialX:mtlx/convolution2d/blur_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_convolution2d_blur_vector4.nodedef_name = 'ND_blur_vector4'; -mtlx_convolution2d_blur_vector4.nodedef_node = 'blur'; -mtlx_convolution2d_blur_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector4',mtlx_convolution2d_blur_vector4); - -// MaterialX node type: mtlx/convolution2d/heighttonormal_vector3 -// -function mtlx_convolution2d_heighttonormal_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_heighttonormal_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'heighttonormal'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_heighttonormal_vector3_out_genglsl.png'; - this.nodedef_group = 'convolution2d'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','float'); - this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'heighttonormal_vector3'; - this.desc = "MaterialX:mtlx/convolution2d/heighttonormal_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_convolution2d_heighttonormal_vector3.nodedef_name = 'ND_heighttonormal_vector3'; -mtlx_convolution2d_heighttonormal_vector3.nodedef_node = 'heighttonormal'; -mtlx_convolution2d_heighttonormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; -LiteGraph.registerNodeType('mtlx/convolution2d/heighttonormal_vector3',mtlx_convolution2d_heighttonormal_vector3); - -// MaterialX node type: mtlx/organization/dot_float -// -function mtlx_organization_dot_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_float_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','float'); - this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'dot_float'; - this.desc = "MaterialX:mtlx/organization/dot_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_organization_dot_float.nodedef_name = 'ND_dot_float'; -mtlx_organization_dot_float.nodedef_node = 'dot'; -mtlx_organization_dot_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_float',mtlx_organization_dot_float); - -// MaterialX node type: mtlx/organization/dot_color3 -// -function mtlx_organization_dot_color3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_color3'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color3_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','color3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'dot_color3'; - this.desc = "MaterialX:mtlx/organization/dot_color3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_organization_dot_color3.nodedef_name = 'ND_dot_color3'; -mtlx_organization_dot_color3.nodedef_node = 'dot'; -mtlx_organization_dot_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_color3',mtlx_organization_dot_color3); - -// MaterialX node type: mtlx/organization/dot_color4 -// -function mtlx_organization_dot_color4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_color4'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color4_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','color4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'dot_color4'; - this.desc = "MaterialX:mtlx/organization/dot_color4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_organization_dot_color4.nodedef_name = 'ND_dot_color4'; -mtlx_organization_dot_color4.nodedef_node = 'dot'; -mtlx_organization_dot_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_color4',mtlx_organization_dot_color4); - -// MaterialX node type: mtlx/organization/dot_vector2 -// -function mtlx_organization_dot_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector2_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector2'); - this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'dot_vector2'; - this.desc = "MaterialX:mtlx/organization/dot_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_organization_dot_vector2.nodedef_name = 'ND_dot_vector2'; -mtlx_organization_dot_vector2.nodedef_node = 'dot'; -mtlx_organization_dot_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector2',mtlx_organization_dot_vector2); - -// MaterialX node type: mtlx/organization/dot_vector3 -// -function mtlx_organization_dot_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector3_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector3'); - this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'dot_vector3'; - this.desc = "MaterialX:mtlx/organization/dot_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_organization_dot_vector3.nodedef_name = 'ND_dot_vector3'; -mtlx_organization_dot_vector3.nodedef_node = 'dot'; -mtlx_organization_dot_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector3',mtlx_organization_dot_vector3); - -// MaterialX node type: mtlx/organization/dot_vector4 -// -function mtlx_organization_dot_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector4_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','vector4'); - this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'dot_vector4'; - this.desc = "MaterialX:mtlx/organization/dot_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_organization_dot_vector4.nodedef_name = 'ND_dot_vector4'; -mtlx_organization_dot_vector4.nodedef_node = 'dot'; -mtlx_organization_dot_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_vector4',mtlx_organization_dot_vector4); - -// MaterialX node type: mtlx/organization/dot_boolean -// -function mtlx_organization_dot_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_boolean_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','boolean'); - this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'dot_boolean'; - this.desc = "MaterialX:mtlx/organization/dot_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_organization_dot_boolean.nodedef_name = 'ND_dot_boolean'; -mtlx_organization_dot_boolean.nodedef_node = 'dot'; -mtlx_organization_dot_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_boolean',mtlx_organization_dot_boolean); - -// MaterialX node type: mtlx/organization/dot_integer -// -function mtlx_organization_dot_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_integer_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','integer'); - this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'dot_integer'; - this.desc = "MaterialX:mtlx/organization/dot_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_organization_dot_integer.nodedef_name = 'ND_dot_integer'; -mtlx_organization_dot_integer.nodedef_node = 'dot'; -mtlx_organization_dot_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_integer',mtlx_organization_dot_integer); - -// MaterialX node type: mtlx/organization/dot_matrix33 -// -function mtlx_organization_dot_matrix33() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_matrix33'; - this.nodedef_type = 'matrix33'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix33_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','matrix33'); - this.addProperty('in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0], 'matrix33',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix33'); - this.title = 'dot_matrix33'; - this.desc = "MaterialX:mtlx/organization/dot_matrix33"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#333'; -} -mtlx_organization_dot_matrix33.nodedef_name = 'ND_dot_matrix33'; -mtlx_organization_dot_matrix33.nodedef_node = 'dot'; -mtlx_organization_dot_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_matrix33',mtlx_organization_dot_matrix33); - -// MaterialX node type: mtlx/organization/dot_matrix44 -// -function mtlx_organization_dot_matrix44() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_matrix44'; - this.nodedef_type = 'matrix44'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix44_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','matrix44'); - this.addProperty('in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0], 'matrix44',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','matrix44'); - this.title = 'dot_matrix44'; - this.desc = "MaterialX:mtlx/organization/dot_matrix44"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#444'; -} -mtlx_organization_dot_matrix44.nodedef_name = 'ND_dot_matrix44'; -mtlx_organization_dot_matrix44.nodedef_node = 'dot'; -mtlx_organization_dot_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_matrix44',mtlx_organization_dot_matrix44); - -// MaterialX node type: mtlx/organization/dot_string -// -function mtlx_organization_dot_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_string_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','string'); - this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'dot_string'; - this.desc = "MaterialX:mtlx/organization/dot_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_organization_dot_string.nodedef_name = 'ND_dot_string'; -mtlx_organization_dot_string.nodedef_node = 'dot'; -mtlx_organization_dot_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_string',mtlx_organization_dot_string); - -// MaterialX node type: mtlx/organization/dot_filename -// -function mtlx_organization_dot_filename() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_filename'; - this.nodedef_type = 'filename'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_filename_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','filename'); - this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','filename'); - this.title = 'dot_filename'; - this.desc = "MaterialX:mtlx/organization/dot_filename"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#58E'; -} -mtlx_organization_dot_filename.nodedef_name = 'ND_dot_filename'; -mtlx_organization_dot_filename.nodedef_node = 'dot'; -mtlx_organization_dot_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_filename',mtlx_organization_dot_filename); - -// MaterialX node type: mtlx/organization/dot_surfaceshader -// -function mtlx_organization_dot_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','surfaceshader'); - this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'dot_surfaceshader'; - this.desc = "MaterialX:mtlx/organization/dot_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_surfaceshader.nodedef_name = 'ND_dot_surfaceshader'; -mtlx_organization_dot_surfaceshader.nodedef_node = 'dot'; -mtlx_organization_dot_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_surfaceshader',mtlx_organization_dot_surfaceshader); - -// MaterialX node type: mtlx/organization/dot_displacementshader -// -function mtlx_organization_dot_displacementshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_displacementshader'; - this.nodedef_type = 'displacementshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_displacementshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','displacementshader'); - this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','displacementshader'); - this.title = 'dot_displacementshader'; - this.desc = "MaterialX:mtlx/organization/dot_displacementshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_displacementshader.nodedef_name = 'ND_dot_displacementshader'; -mtlx_organization_dot_displacementshader.nodedef_node = 'dot'; -mtlx_organization_dot_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_displacementshader',mtlx_organization_dot_displacementshader); - -// MaterialX node type: mtlx/organization/dot_volumeshader -// -function mtlx_organization_dot_volumeshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_volumeshader'; - this.nodedef_type = 'volumeshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_volumeshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','volumeshader'); - this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','volumeshader'); - this.title = 'dot_volumeshader'; - this.desc = "MaterialX:mtlx/organization/dot_volumeshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_volumeshader.nodedef_name = 'ND_dot_volumeshader'; -mtlx_organization_dot_volumeshader.nodedef_node = 'dot'; -mtlx_organization_dot_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_volumeshader',mtlx_organization_dot_volumeshader); - -// MaterialX node type: mtlx/organization/dot_lightshader -// -function mtlx_organization_dot_lightshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_dot_lightshader'; - this.nodedef_type = 'lightshader'; - this.nodedef_node = 'dot'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_lightshader_out_genglsl.png'; - this.nodedef_group = 'organization'; - this.addInput('in','lightshader'); - this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('note','string'); - this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','lightshader'); - this.title = 'dot_lightshader'; - this.desc = "MaterialX:mtlx/organization/dot_lightshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_organization_dot_lightshader.nodedef_name = 'ND_dot_lightshader'; -mtlx_organization_dot_lightshader.nodedef_node = 'dot'; -mtlx_organization_dot_lightshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; -LiteGraph.registerNodeType('mtlx/organization/dot_lightshader',mtlx_organization_dot_lightshader); - -// MaterialX node type: mtlx/pbr/gltf_pbr_surfaceshader -// -function mtlx_pbr_gltf_pbr_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_pbr_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'gltf_pbr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_pbr_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base_color','color3'); - this.addProperty('base_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Base"}); - this.addInput('metallic','float'); - this.addProperty('metallic', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metallic","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Base"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Base"}); - this.addInput('occlusion','float'); - this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Occlusion","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0","uimax":"1","uifolder":"Base"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0, 0, 0","uimax":null,"uifolder":"Base"}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"1","uimax":null,"uifolder":"Base"}); - this.addInput('alpha','float'); - this.addProperty('alpha', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha","uimin":"0","uimax":"1","uifolder":"Alpha"}); - this.addInput('alpha_mode','integer'); - this.addProperty('alpha_mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Mode","uimin":null,"uimax":null,"uifolder":"Alpha"}); - this.addInput('alpha_cutoff','float'); - this.addProperty('alpha_cutoff', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Cutoff","uimin":"0","uimax":"1","uifolder":"Alpha"}); - this.addInput('iridescence','float'); - this.addProperty('iridescence', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence","uimin":"0","uimax":"1","uifolder":"Iridescence"}); - this.addInput('iridescence_ior','float'); - this.addProperty('iridescence_ior', 1.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Index of Refraction","uimin":"1","uimax":null,"uifolder":"Iridescence"}); - this.addInput('iridescence_thickness','float'); - this.addProperty('iridescence_thickness', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Thickness","uimin":"0","uimax":null,"uifolder":"Iridescence"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0","uimax":"1","uifolder":"Sheen"}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat","uimin":"0","uimax":"1","uifolder":"Clearcoat"}); - this.addInput('clearcoat_roughness','float'); - this.addProperty('clearcoat_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Roughness","uimin":"0","uimax":"1","uifolder":"Clearcoat"}); - this.addInput('clearcoat_normal','vector3'); - this.addProperty('clearcoat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Normal","uimin":null,"uimax":null,"uifolder":"Clearcoat"}); - this.addInput('emissive','color3'); - this.addProperty('emissive', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Emission"}); - this.addInput('emissive_strength','float'); - this.addProperty('emissive_strength', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive Strength","uimin":"0","uimax":null,"uifolder":"Emission"}); - this.addInput('thickness','float'); - this.addProperty('thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thickness","uimin":"0","uimax":null,"uifolder":"Volume"}); - this.addInput('attenuation_distance','float'); - this.addProperty('attenuation_distance', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Distance","uimin":"0","uimax":null,"uifolder":"Volume"}); - this.addInput('attenuation_color','color3'); - this.addProperty('attenuation_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Volume"}); - this.addOutput('out','surfaceshader'); - this.title = 'gltf_pbr_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/gltf_pbr_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_name = 'ND_gltf_pbr_surfaceshader'; -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_node = 'gltf_pbr'; -mtlx_pbr_gltf_pbr_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; -LiteGraph.registerNodeType('mtlx/pbr/gltf_pbr_surfaceshader',mtlx_pbr_gltf_pbr_surfaceshader); - -// MaterialX node type: mtlx/texture2d/gltf_colorimage -// -function mtlx_texture2d_gltf_colorimage() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_colorimage'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'gltf_colorimage'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_colorimage_outcolor_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('default','color4'); - this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":"Image"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('color','color4'); - this.addProperty('color', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Color"}); - this.addInput('geomcolor','color4'); - this.addProperty('geomcolor', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Geometry Color","uimin":null,"uimax":null,"uifolder":"Color"}); - this.addOutput('outcolor','color3'); - this.addOutput('outa','float'); - this.title = 'gltf_colorimage_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/gltf_colorimage"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_gltf_colorimage.nodedef_name = 'ND_gltf_colorimage'; -mtlx_texture2d_gltf_colorimage.nodedef_node = 'gltf_colorimage'; -mtlx_texture2d_gltf_colorimage.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_colorimage',mtlx_texture2d_gltf_colorimage); - -// MaterialX node type: mtlx/texture2d/gltf_image_color3_color3_1_0 -// -function mtlx_texture2d_gltf_image_color3_color3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; - this.nodedef_type = 'color3'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color3_color3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','color3'); - this.addProperty('factor', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color3'); - this.addProperty('default', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color3'); - this.title = 'gltf_image_color3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_color3_color3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#679'; -} -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color3_color3_1_0',mtlx_texture2d_gltf_image_color3_color3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_color4_color4_1_0 -// -function mtlx_texture2d_gltf_image_color4_color4_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; - this.nodedef_type = 'color4'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color4_color4_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','color4'); - this.addProperty('factor', [1,1,1,1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','color4'); - this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','color4'); - this.title = 'gltf_image_color4'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_color4_color4_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#899'; -} -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color4_color4_1_0',mtlx_texture2d_gltf_image_color4_color4_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_float_float_1_0 -// -function mtlx_texture2d_gltf_image_float_float_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_float_float_1_0'; - this.nodedef_type = 'float'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_float_float_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('factor','float'); - this.addProperty('factor', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','float'); - this.addProperty('default', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'gltf_image_float'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_float_float_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_name = 'ND_gltf_image_float_float_1_0'; -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_float_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_float_float_1_0',mtlx_texture2d_gltf_image_float_float_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_image_vector3_vector3_1_0 -// -function mtlx_texture2d_gltf_image_vector3_vector3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'gltf_image'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_vector3_vector3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'gltf_image_vector3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_image_vector3_vector3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_node = 'gltf_image'; -mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_vector3_vector3_1_0',mtlx_texture2d_gltf_image_vector3_vector3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_normalmap_vector3_1_0 -// -function mtlx_texture2d_gltf_normalmap_vector3_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'gltf_normalmap'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_normalmap_vector3_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('default','vector3'); - this.addProperty('default', [0.5, 0.5, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"360","uifolder":""}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('operationorder','integer'); - this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'gltf_normalmap_vector3'; - this.desc = "MaterialX:mtlx/texture2d/gltf_normalmap_vector3_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_node = 'gltf_normalmap'; -mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_normalmap_vector3_1_0',mtlx_texture2d_gltf_normalmap_vector3_1_0); - -// MaterialX node type: mtlx/texture2d/gltf_iridescence_thickness_float_1_0 -// -function mtlx_texture2d_gltf_iridescence_thickness_float_1_0() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; - this.nodedef_type = 'float'; - this.nodedef_node = 'gltf_iridescence_thickness'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_iridescence_thickness_float_1_0_out_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('default','vector3'); - this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('texcoord','vector2'); - this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('pivot','vector2'); - this.addProperty('pivot', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('rotate','float'); - this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('offset','vector2'); - this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('uaddressmode','string'); - this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('vaddressmode','string'); - this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('filtertype','string'); - this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image"}); - this.addInput('thicknessMin','float'); - this.addProperty('thicknessMin', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness"}); - this.addInput('thicknessMax','float'); - this.addProperty('thicknessMax', 400, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness"}); - this.addOutput('out','float'); - this.title = 'gltf_iridescence_thickness_float'; - this.desc = "MaterialX:mtlx/texture2d/gltf_iridescence_thickness_float_1_0"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_node = 'gltf_iridescence_thickness'; -mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; -LiteGraph.registerNodeType('mtlx/texture2d/gltf_iridescence_thickness_float_1_0',mtlx_texture2d_gltf_iridescence_thickness_float_1_0); - -// MaterialX node type: mtlx/pbr/UsdPreviewSurface_surfaceshader -// -function mtlx_pbr_UsdPreviewSurface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'UsdPreviewSurface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPreviewSurface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('diffuseColor','color3'); - this.addProperty('diffuseColor', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":""}); - this.addInput('emissiveColor','color3'); - this.addProperty('emissiveColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":null,"uifolder":""}); - this.addInput('useSpecularWorkflow','integer'); - this.addProperty('useSpecularWorkflow', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":""}); - this.addInput('specularColor','color3'); - this.addProperty('specularColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('clearcoatRoughness','float'); - this.addProperty('clearcoatRoughness', 0.01, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('opacity','float'); - this.addProperty('opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('opacityThreshold','float'); - this.addProperty('opacityThreshold', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0, 0, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[-1,-1,-1],"uimax":[1,1,1],"uifolder":""}); - this.addInput('displacement','float'); - this.addProperty('displacement', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('occlusion','float'); - this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'UsdPreviewSurface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/UsdPreviewSurface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_node = 'UsdPreviewSurface'; -mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; -LiteGraph.registerNodeType('mtlx/pbr/UsdPreviewSurface_surfaceshader',mtlx_pbr_UsdPreviewSurface_surfaceshader); - -// MaterialX node type: mtlx/texture2d/UsdUVTexture -// -function mtlx_texture2d_UsdUVTexture() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdUVTexture'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'UsdUVTexture'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_r_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('st','vector2'); - this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapS','string'); - this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapT','string'); - this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','color4'); - this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','color4'); - this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bias','color4'); - this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('r','float'); - this.addOutput('g','float'); - this.addOutput('b','float'); - this.addOutput('a','float'); - this.addOutput('rgb','color3'); - this.addOutput('rgba','color4'); - this.title = 'UsdUVTexture_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_UsdUVTexture.nodedef_name = 'ND_UsdUVTexture'; -mtlx_texture2d_UsdUVTexture.nodedef_node = 'UsdUVTexture'; -mtlx_texture2d_UsdUVTexture.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; -LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture',mtlx_texture2d_UsdUVTexture); - -// MaterialX node type: mtlx/texture2d/UsdUVTexture_23 -// -function mtlx_texture2d_UsdUVTexture_23() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdUVTexture_23'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'UsdUVTexture'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_23_r_genglsl.png'; - this.nodedef_group = 'texture2d'; - this.addInput('file','filename'); - this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('st','vector2'); - this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapS','string'); - this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('wrapT','string'); - this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','color4'); - this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','color4'); - this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('bias','color4'); - this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('r','float'); - this.addOutput('g','float'); - this.addOutput('b','float'); - this.addOutput('a','float'); - this.addOutput('rgb','color3'); - this.title = 'UsdUVTexture_multioutput'; - this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture_23"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_texture2d_UsdUVTexture_23.nodedef_name = 'ND_UsdUVTexture_23'; -mtlx_texture2d_UsdUVTexture_23.nodedef_node = 'UsdUVTexture'; -mtlx_texture2d_UsdUVTexture_23.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; -LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture_23',mtlx_texture2d_UsdUVTexture_23); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_integer -// -function mtlx_geometric_UsdPrimvarReader_integer() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_integer'; - this.nodedef_type = 'integer'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_integer_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','integer'); - this.addProperty('fallback', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','integer'); - this.title = 'UsdPrimvarReader_integer'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_integer"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_UsdPrimvarReader_integer.nodedef_name = 'ND_UsdPrimvarReader_integer'; -mtlx_geometric_UsdPrimvarReader_integer.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_integer',mtlx_geometric_UsdPrimvarReader_integer); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_boolean -// -function mtlx_geometric_UsdPrimvarReader_boolean() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_boolean'; - this.nodedef_type = 'boolean'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_boolean_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','boolean'); - this.addProperty('fallback', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','boolean'); - this.title = 'UsdPrimvarReader_boolean'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_boolean"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#48A'; -} -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_name = 'ND_UsdPrimvarReader_boolean'; -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_boolean',mtlx_geometric_UsdPrimvarReader_boolean); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_string -// -function mtlx_geometric_UsdPrimvarReader_string() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_string'; - this.nodedef_type = 'string'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_string_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','string'); - this.addProperty('fallback', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','string'); - this.title = 'UsdPrimvarReader_string'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_string"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#888'; -} -mtlx_geometric_UsdPrimvarReader_string.nodedef_name = 'ND_UsdPrimvarReader_string'; -mtlx_geometric_UsdPrimvarReader_string.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_string',mtlx_geometric_UsdPrimvarReader_string); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_float -// -function mtlx_geometric_UsdPrimvarReader_float() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_float'; - this.nodedef_type = 'float'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_float_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','float'); - this.addProperty('fallback', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','float'); - this.title = 'UsdPrimvarReader_float'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_float"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#753'; -} -mtlx_geometric_UsdPrimvarReader_float.nodedef_name = 'ND_UsdPrimvarReader_float'; -mtlx_geometric_UsdPrimvarReader_float.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_float',mtlx_geometric_UsdPrimvarReader_float); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector2 -// -function mtlx_geometric_UsdPrimvarReader_vector2() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector2'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector2_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector2'); - this.addProperty('fallback', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'UsdPrimvarReader_vector2'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector2"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_name = 'ND_UsdPrimvarReader_vector2'; -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector2',mtlx_geometric_UsdPrimvarReader_vector2); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector3 -// -function mtlx_geometric_UsdPrimvarReader_vector3() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector3'; - this.nodedef_type = 'vector3'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector3_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector3'); - this.addProperty('fallback', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector3'); - this.title = 'UsdPrimvarReader_vector3'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector3"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A76'; -} -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_name = 'ND_UsdPrimvarReader_vector3'; -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector3',mtlx_geometric_UsdPrimvarReader_vector3); - -// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector4 -// -function mtlx_geometric_UsdPrimvarReader_vector4() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdPrimvarReader_vector4'; - this.nodedef_type = 'vector4'; - this.nodedef_node = 'UsdPrimvarReader'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector4_out_genglsl.png'; - this.nodedef_group = 'geometric'; - this.addInput('varname','string'); - this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('fallback','vector4'); - this.addProperty('fallback', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector4'); - this.title = 'UsdPrimvarReader_vector4'; - this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector4"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A98'; -} -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_name = 'ND_UsdPrimvarReader_vector4'; -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_node = 'UsdPrimvarReader'; -mtlx_geometric_UsdPrimvarReader_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; -LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector4',mtlx_geometric_UsdPrimvarReader_vector4); - -// MaterialX node type: mtlx/math/UsdTransform2d -// -function mtlx_math_UsdTransform2d() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_UsdTransform2d'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'UsdTransform2d'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdTransform2d_out_genglsl.png'; - this.nodedef_group = 'math'; - this.addInput('in','vector2'); - this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('rotation','float'); - this.addProperty('rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scale','vector2'); - this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('translation','vector2'); - this.addProperty('translation', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'UsdTransform2d_vector2'; - this.desc = "MaterialX:mtlx/math/UsdTransform2d"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_math_UsdTransform2d.nodedef_name = 'ND_UsdTransform2d'; -mtlx_math_UsdTransform2d.nodedef_node = 'UsdTransform2d'; -mtlx_math_UsdTransform2d.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; -LiteGraph.registerNodeType('mtlx/math/UsdTransform2d',mtlx_math_UsdTransform2d); - -// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader -// -function mtlx_pbr_standard_surface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'standard_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base','float'); - this.addProperty('base', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('diffuse_roughness','float'); - this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_anisotropy','float'); - this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_rotation','float'); - this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion','float'); - this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_extra_roughness','float'); - this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','color3'); - this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scale','float'); - this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_anisotropy','float'); - this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_anisotropy','float'); - this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_rotation','float'); - this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_IOR','float'); - this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_normal','vector3'); - this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat"}); - this.addInput('coat_affect_color','float'); - this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('coat_affect_roughness','float'); - this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_IOR','float'); - this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry"}); - this.addInput('thin_walled','boolean'); - this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'standard_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_standard_surface_surfaceshader.nodedef_name = 'ND_standard_surface_surfaceshader'; -mtlx_pbr_standard_surface_surfaceshader.nodedef_node = 'standard_surface'; -mtlx_pbr_standard_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader',mtlx_pbr_standard_surface_surfaceshader); - -// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader_100 -// -function mtlx_pbr_standard_surface_surfaceshader_100() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_surfaceshader_100'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'standard_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_100_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base','float'); - this.addProperty('base', 0.8, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('diffuse_roughness','float'); - this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_anisotropy','float'); - this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_rotation','float'); - this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion','float'); - this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_extra_roughness','float'); - this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','color3'); - this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scale','float'); - this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_anisotropy','float'); - this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen"}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen"}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_anisotropy','float'); - this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_rotation','float'); - this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_IOR','float'); - this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_normal','vector3'); - this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat"}); - this.addInput('coat_affect_color','float'); - this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('coat_affect_roughness','float'); - this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_IOR','float'); - this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry"}); - this.addInput('thin_walled','boolean'); - this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('tangent','vector3'); - this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'standard_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader_100"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_name = 'ND_standard_surface_surfaceshader_100'; -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_node = 'standard_surface'; -mtlx_pbr_standard_surface_surfaceshader_100.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader_100',mtlx_pbr_standard_surface_surfaceshader_100); - -// MaterialX node type: mtlx/pbr/disney_brdf_2012_surface -// -function mtlx_pbr_disney_brdf_2012_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disney_brdf_2012_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'disney_brdf_2012'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_brdf_2012_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('baseColor','color3'); - this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('subsurface','float'); - this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular','float'); - this.addProperty('specular', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specularTint','float'); - this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropic','float'); - this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheenTint','float'); - this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoatGloss','float'); - this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'disney_brdf_2012_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/disney_brdf_2012_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_disney_brdf_2012_surface.nodedef_name = 'ND_disney_brdf_2012_surface'; -mtlx_pbr_disney_brdf_2012_surface.nodedef_node = 'disney_brdf_2012'; -mtlx_pbr_disney_brdf_2012_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; -LiteGraph.registerNodeType('mtlx/pbr/disney_brdf_2012_surface',mtlx_pbr_disney_brdf_2012_surface); - -// MaterialX node type: mtlx/pbr/disney_bsdf_2015_surface -// -function mtlx_pbr_disney_bsdf_2015_surface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_disney_bsdf_2015_surface'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'disney_bsdf_2015'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_bsdf_2015_surface_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('baseColor','color3'); - this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metallic','float'); - this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropic','float'); - this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specularTint','float'); - this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheenTint','float'); - this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoat','float'); - this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('clearcoatGloss','float'); - this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specTrans','float'); - this.addProperty('specTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('ior','float'); - this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('scatterDistance','vector3'); - this.addProperty('scatterDistance', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('flatness','float'); - this.addProperty('flatness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('diffTrans','float'); - this.addProperty('diffTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('thin','boolean'); - this.addProperty('thin', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','surfaceshader'); - this.title = 'disney_bsdf_2015_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/disney_bsdf_2015_surface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_disney_bsdf_2015_surface.nodedef_name = 'ND_disney_bsdf_2015_surface'; -mtlx_pbr_disney_bsdf_2015_surface.nodedef_node = 'disney_bsdf_2015'; -mtlx_pbr_disney_bsdf_2015_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; -LiteGraph.registerNodeType('mtlx/pbr/disney_bsdf_2015_surface',mtlx_pbr_disney_bsdf_2015_surface); - -// MaterialX node type: mtlx/pbr/open_pbr_surface_surfaceshader -// -function mtlx_pbr_open_pbr_surface_surfaceshader() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; - this.nodedef_type = 'surfaceshader'; - this.nodedef_node = 'open_pbr_surface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_surface_surfaceshader_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('base_weight','float'); - this.addProperty('base_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Weight","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Base"}); - this.addInput('base_diffuse_roughness','float'); - this.addProperty('base_diffuse_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('base_metalness','float'); - this.addProperty('base_metalness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base"}); - this.addInput('specular_weight','float'); - this.addProperty('specular_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Weight","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular"}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('specular_ior','float'); - this.addProperty('specular_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Specular"}); - this.addInput('specular_roughness_anisotropy','float'); - this.addProperty('specular_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular"}); - this.addInput('transmission_weight','float'); - this.addProperty('transmission_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Weight","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('transmission_scatter','color3'); - this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission"}); - this.addInput('transmission_scatter_anisotropy','float'); - this.addProperty('transmission_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion_scale','float'); - this.addProperty('transmission_dispersion_scale', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Scale","uimin":"0.0","uimax":"1.0","uifolder":"Transmission"}); - this.addInput('transmission_dispersion_abbe_number','float'); - this.addProperty('transmission_dispersion_abbe_number', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Abbe Number","uimin":"0.0","uimax":null,"uifolder":"Transmission"}); - this.addInput('subsurface_weight','float'); - this.addProperty('subsurface_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Weight","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('subsurface_color','color3'); - this.addProperty('subsurface_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_radius','float'); - this.addProperty('subsurface_radius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0.0","uimax":null,"uifolder":"Subsurface"}); - this.addInput('subsurface_radius_scale','color3'); - this.addProperty('subsurface_radius_scale', [1.0, 0.5, 0.25], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius Scale","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface"}); - this.addInput('subsurface_scatter_anisotropy','float'); - this.addProperty('subsurface_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface"}); - this.addInput('fuzz_weight','float'); - this.addProperty('fuzz_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Weight","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz"}); - this.addInput('fuzz_color','color3'); - this.addProperty('fuzz_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Fuzz"}); - this.addInput('fuzz_roughness','float'); - this.addProperty('fuzz_roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz"}); - this.addInput('coat_weight','float'); - this.addProperty('coat_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Weight","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat"}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_roughness_anisotropy','float'); - this.addProperty('coat_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('coat_ior','float'); - this.addProperty('coat_ior', 1.6, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Coat"}); - this.addInput('coat_darkening','float'); - this.addProperty('coat_darkening', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Darkening","uimin":"0.0","uimax":"1.0","uifolder":"Coat"}); - this.addInput('thin_film_weight','float'); - this.addProperty('thin_film_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Weight","uimin":"0.0","uimax":"1.0","uifolder":"Thin Film"}); - this.addInput('thin_film_thickness','float'); - this.addProperty('thin_film_thickness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('thin_film_ior','float'); - this.addProperty('thin_film_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"0.0","uimax":null,"uifolder":"Thin Film"}); - this.addInput('emission_luminance','float'); - this.addProperty('emission_luminance', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Luminance","uimin":"0.0","uimax":null,"uifolder":"Emission"}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission"}); - this.addInput('geometry_opacity','float'); - this.addProperty('geometry_opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0","uimax":"1","uifolder":"Geometry"}); - this.addInput('geometry_thin_walled','boolean'); - this.addProperty('geometry_thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_normal','vector3'); - this.addProperty('geometry_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_coat_normal','vector3'); - this.addProperty('geometry_coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Normal","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_tangent','vector3'); - this.addProperty('geometry_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addInput('geometry_coat_tangent','vector3'); - this.addProperty('geometry_coat_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Tangent","uimin":null,"uimax":null,"uifolder":"Geometry"}); - this.addOutput('out','surfaceshader'); - this.title = 'open_pbr_surface_surfaceshader'; - this.desc = "MaterialX:mtlx/pbr/open_pbr_surface_surfaceshader"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#232'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_node = 'open_pbr_surface'; -mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; -LiteGraph.registerNodeType('mtlx/pbr/open_pbr_surface_surfaceshader',mtlx_pbr_open_pbr_surface_surfaceshader); - -// MaterialX node type: mtlx/pbr/open_pbr_anisotropy -// -function mtlx_pbr_open_pbr_anisotropy() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_open_pbr_anisotropy'; - this.nodedef_type = 'vector2'; - this.nodedef_node = 'open_pbr_anisotropy'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_anisotropy_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('out','vector2'); - this.title = 'open_pbr_anisotropy_vector2'; - this.desc = "MaterialX:mtlx/pbr/open_pbr_anisotropy"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; - this.boxcolor = '#A32'; -} -mtlx_pbr_open_pbr_anisotropy.nodedef_name = 'ND_open_pbr_anisotropy'; -mtlx_pbr_open_pbr_anisotropy.nodedef_node = 'open_pbr_anisotropy'; -mtlx_pbr_open_pbr_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; -LiteGraph.registerNodeType('mtlx/pbr/open_pbr_anisotropy',mtlx_pbr_open_pbr_anisotropy); - -// MaterialX node type: mtlx/pbr/lama_sheen -// -function mtlx_pbr_lama_sheen() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_sheen'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaSheen'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sheen_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addOutput('out','BSDF'); - this.title = 'LamaSheen_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_sheen"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_sheen.nodedef_name = 'ND_lama_sheen'; -mtlx_pbr_lama_sheen.nodedef_node = 'LamaSheen'; -mtlx_pbr_lama_sheen.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_sheen',mtlx_pbr_lama_sheen); - -// MaterialX node type: mtlx/pbr/lama_sss -// -function mtlx_pbr_lama_sss() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_sss'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaSSS'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sss_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('sssRadius','color3'); - this.addProperty('sssRadius', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Radius","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssScale','float'); - this.addProperty('sssScale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssMode','integer'); - this.addProperty('sssMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('sssIOR','float'); - this.addProperty('sssIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"2.0","uifolder":"SSS"}); - this.addInput('sssAnisotropy','float'); - this.addProperty('sssAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssBleed','float'); - this.addProperty('sssBleed', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bleed","uimin":"0.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssFollowTopology','float'); - this.addProperty('sssFollowTopology', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Follow Topology","uimin":"0.0","uimax":"1.0","uifolder":"SSS"}); - this.addInput('sssSubset','string'); - this.addProperty('sssSubset', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Subset","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssContinuationRays','integer'); - this.addProperty('sssContinuationRays', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Continuation Rays","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('sssUnitLength','float'); - this.addProperty('sssUnitLength', 0.00328, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Unit Length","uimin":null,"uimax":null,"uifolder":"SSS"}); - this.addInput('mode','integer'); - this.addProperty('mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('albedoInversionMethod','integer'); - this.addProperty('albedoInversionMethod', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Albedo Inversion Method","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('diffuseLobeName','string'); - this.addProperty('diffuseLobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssEntryLobeName','string'); - this.addProperty('sssEntryLobeName', 'irradiance', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Entry Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssExitLobeName','string'); - this.addProperty('sssExitLobeName', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Exit Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('sssId','integer'); - this.addProperty('sssId', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Id","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaSSS_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_sss"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_sss.nodedef_name = 'ND_lama_sss'; -mtlx_pbr_lama_sss.nodedef_node = 'LamaSSS'; -mtlx_pbr_lama_sss.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_sss',mtlx_pbr_lama_sss); - -// MaterialX node type: mtlx/pbr/lama_translucent -// -function mtlx_pbr_lama_translucent() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_translucent'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaTranslucent'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_translucent_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('energyCompensation','float'); - this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced"}); - this.addInput('lobeName','string'); - this.addProperty('lobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaTranslucent_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_translucent"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_translucent.nodedef_name = 'ND_lama_translucent'; -mtlx_pbr_lama_translucent.nodedef_node = 'LamaTranslucent'; -mtlx_pbr_lama_translucent.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_translucent',mtlx_pbr_lama_translucent); - -// MaterialX node type: mtlx/pbr/lama_conductor -// -function mtlx_pbr_lama_conductor() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_conductor'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaConductor'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_conductor_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('tint','color3'); - this.addProperty('tint', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('fresnelMode','integer'); - this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('IOR','vector3'); - this.addProperty('IOR', [0.180000007153,0.419999986887,1.37000000477], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('extinction','vector3'); - this.addProperty('extinction', [3.42000007629,2.34999990463,1.76999998093], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Extinction","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('reflectivity','color3'); - this.addProperty('reflectivity', [0.9450, 0.7772, 0.3737], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('edgeColor','color3'); - this.addProperty('edgeColor', [0.9979, 0.9813, 0.7523], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Edge Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy"}); - this.addInput('anisotropyDirection','vector3'); - this.addProperty('anisotropyDirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('anisotropyRotation','float'); - this.addProperty('anisotropyRotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('iridescenceThickness','float'); - this.addProperty('iridescenceThickness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thickness","uimin":"0.0","uimax":null,"uifolder":"Iridescence"}); - this.addInput('iridescenceIOR','float'); - this.addProperty('iridescenceIOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"3.0","uifolder":"Iridescence"}); - this.addInput('exteriorIOR','float'); - this.addProperty('exteriorIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exterior IOR","uimin":"1.0","uimax":"3.0","uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaConductor_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_conductor"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_conductor.nodedef_name = 'ND_lama_conductor'; -mtlx_pbr_lama_conductor.nodedef_node = 'LamaConductor'; -mtlx_pbr_lama_conductor.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_conductor',mtlx_pbr_lama_conductor); - -// MaterialX node type: mtlx/pbr/lama_dielectric -// -function mtlx_pbr_lama_dielectric() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_dielectric'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaDielectric'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_dielectric_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('reflectionTint','color3'); - this.addProperty('reflectionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflection Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('transmissionTint','color3'); - this.addProperty('transmissionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Tint","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('fresnelMode','integer'); - this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('IOR','float'); - this.addProperty('IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"3.0","uifolder":"Main"}); - this.addInput('reflectivity','float'); - this.addProperty('reflectivity', 0.04, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main"}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addInput('anisotropy','float'); - this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy"}); - this.addInput('direction','vector3'); - this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('rotation','float'); - this.addProperty('rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy"}); - this.addInput('exteriorIOR','float'); - this.addProperty('exteriorIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exterior IOR","uimin":"1.0","uimax":"3.0","uifolder":"Advanced"}); - this.addInput('absorptionColor','color3'); - this.addProperty('absorptionColor', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Color","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('absorptionRadius','float'); - this.addProperty('absorptionRadius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Radius","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('scatterColor','color3'); - this.addProperty('scatterColor', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Color","uimin":null,"uimax":null,"uifolder":"Interior"}); - this.addInput('scatterAnisotropy','float'); - this.addProperty('scatterAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Interior"}); - this.addOutput('out','BSDF'); - this.title = 'LamaDielectric_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_dielectric"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_dielectric.nodedef_name = 'ND_lama_dielectric'; -mtlx_pbr_lama_dielectric.nodedef_node = 'LamaDielectric'; -mtlx_pbr_lama_dielectric.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_dielectric',mtlx_pbr_lama_dielectric); - -// MaterialX node type: mtlx/pbr/lama_add_bsdf -// -function mtlx_pbr_lama_add_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_add_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaAdd'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','BSDF'); - this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','BSDF'); - this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('weight1','float'); - this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('weight2','float'); - this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaAdd_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_add_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_add_bsdf.nodedef_name = 'ND_lama_add_bsdf'; -mtlx_pbr_lama_add_bsdf.nodedef_node = 'LamaAdd'; -mtlx_pbr_lama_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_add_bsdf',mtlx_pbr_lama_add_bsdf); - -// MaterialX node type: mtlx/pbr/lama_add_edf -// -function mtlx_pbr_lama_add_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_add_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaAdd'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','EDF'); - this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','EDF'); - this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('weight1','float'); - this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('weight2','float'); - this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'LamaAdd_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_add_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_add_edf.nodedef_name = 'ND_lama_add_edf'; -mtlx_pbr_lama_add_edf.nodedef_node = 'LamaAdd'; -mtlx_pbr_lama_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_add_edf',mtlx_pbr_lama_add_edf); - -// MaterialX node type: mtlx/pbr/lama_diffuse -// -function mtlx_pbr_lama_diffuse() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_diffuse'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaDiffuse'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_diffuse_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('roughness','float'); - this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('energyCompensation','float'); - this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced"}); - this.addInput('lobeName','string'); - this.addProperty('lobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addInput('matte','string'); - this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced"}); - this.addOutput('out','BSDF'); - this.title = 'LamaDiffuse_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_diffuse"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_diffuse.nodedef_name = 'ND_lama_diffuse'; -mtlx_pbr_lama_diffuse.nodedef_node = 'LamaDiffuse'; -mtlx_pbr_lama_diffuse.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_diffuse',mtlx_pbr_lama_diffuse); - -// MaterialX node type: mtlx/pbr/lama_mix_bsdf -// -function mtlx_pbr_lama_mix_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_mix_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaMix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','BSDF'); - this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','BSDF'); - this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaMix_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_mix_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_mix_bsdf.nodedef_name = 'ND_lama_mix_bsdf'; -mtlx_pbr_lama_mix_bsdf.nodedef_node = 'LamaMix'; -mtlx_pbr_lama_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_mix_bsdf',mtlx_pbr_lama_mix_bsdf); - -// MaterialX node type: mtlx/pbr/lama_mix_edf -// -function mtlx_pbr_lama_mix_edf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_mix_edf'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaMix'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_edf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('material1','EDF'); - this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('material2','EDF'); - this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('mix','float'); - this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addOutput('out','EDF'); - this.title = 'LamaMix_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_mix_edf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_mix_edf.nodedef_name = 'ND_lama_mix_edf'; -mtlx_pbr_lama_mix_edf.nodedef_node = 'LamaMix'; -mtlx_pbr_lama_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_mix_edf',mtlx_pbr_lama_mix_edf); - -// MaterialX node type: mtlx/pbr/lama_emission -// -function mtlx_pbr_lama_emission() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_emission'; - this.nodedef_type = 'EDF'; - this.nodedef_node = 'LamaEmission'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_emission_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('color','color3'); - this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main"}); - this.addOutput('out','EDF'); - this.title = 'LamaEmission_EDF'; - this.desc = "MaterialX:mtlx/pbr/lama_emission"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_emission.nodedef_name = 'ND_lama_emission'; -mtlx_pbr_lama_emission.nodedef_node = 'LamaEmission'; -mtlx_pbr_lama_emission.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_emission',mtlx_pbr_lama_emission); - -// MaterialX node type: mtlx/pbr/lama_layer_bsdf -// -function mtlx_pbr_lama_layer_bsdf() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_lama_layer_bsdf'; - this.nodedef_type = 'BSDF'; - this.nodedef_node = 'LamaLayer'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_layer_bsdf_out_genglsl.png'; - this.nodedef_group = 'pbr'; - this.addInput('materialTop','BSDF'); - this.addProperty('materialTop', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Top","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('materialBase','BSDF'); - this.addProperty('materialBase', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Base","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('topMix','float'); - this.addProperty('topMix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Mix","uimin":"0.0","uimax":"1.0","uifolder":""}); - this.addInput('topThickness','float'); - this.addProperty('topThickness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Thickness","uimin":"0.0","uimax":null,"uifolder":""}); - this.addOutput('out','BSDF'); - this.title = 'LamaLayer_BSDF'; - this.desc = "MaterialX:mtlx/pbr/lama_layer_bsdf"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_pbr_lama_layer_bsdf.nodedef_name = 'ND_lama_layer_bsdf'; -mtlx_pbr_lama_layer_bsdf.nodedef_node = 'LamaLayer'; -mtlx_pbr_lama_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; -LiteGraph.registerNodeType('mtlx/pbr/lama_layer_bsdf',mtlx_pbr_lama_layer_bsdf); - -// MaterialX node type: mtlx/translation/standard_surface_to_gltf_pbr -// -function mtlx_translation_standard_surface_to_gltf_pbr() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'standard_surface_to_gltf_pbr'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_gltf_pbr_base_color_out_genglsl.png'; - this.nodedef_group = 'translation'; - this.addInput('base','float'); - this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission','float'); - this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_color','color3'); - this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('transmission_depth','float'); - this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen','float'); - this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen_color','color3'); - this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('sheen_roughness','float'); - this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('base_color_out','color3'); - this.addOutput('metallic_out','float'); - this.addOutput('roughness_out','float'); - this.addOutput('transmission_out','float'); - this.addOutput('thickness_out','float'); - this.addOutput('attenuation_color_out','color3'); - this.addOutput('sheen_color_out','color3'); - this.addOutput('sheen_roughness_out','float'); - this.addOutput('clearcoat_out','float'); - this.addOutput('clearcoat_roughness_out','float'); - this.addOutput('emissive_out','color3'); - this.title = 'standard_surface_to_gltf_pbr_multioutput'; - this.desc = "MaterialX:mtlx/translation/standard_surface_to_gltf_pbr"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_node = 'standard_surface_to_gltf_pbr'; -mtlx_translation_standard_surface_to_gltf_pbr.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; -LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_gltf_pbr',mtlx_translation_standard_surface_to_gltf_pbr); - -// MaterialX node type: mtlx/translation/standard_surface_to_UsdPreviewSurface -// -function mtlx_translation_standard_surface_to_UsdPreviewSurface() { - this.nodedef_icon = './Images/materialx_logo.webp'; - this.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; - this.nodedef_type = 'multioutput'; - this.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; - this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; - this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_UsdPreviewSurface_diffuseColor_out_genglsl.png'; - this.nodedef_group = 'translation'; - this.addInput('metalness','float'); - this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base','float'); - this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('base_color','color3'); - this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular','float'); - this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_color','color3'); - this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_IOR','float'); - this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('specular_roughness','float'); - this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat','float'); - this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_color','color3'); - this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('coat_roughness','float'); - this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission','float'); - this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('emission_color','color3'); - this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('opacity','color3'); - this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addInput('normal','vector3'); - this.addProperty('normal', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""}); - this.addOutput('diffuseColor_out','color3'); - this.addOutput('emissiveColor_out','color3'); - this.addOutput('metallic_out','float'); - this.addOutput('roughness_out','float'); - this.addOutput('clearcoat_out','float'); - this.addOutput('clearcoatRoughness_out','float'); - this.addOutput('opacity_out','float'); - this.addOutput('ior_out','float'); - this.addOutput('normal_out','vector3'); - this.title = 'standard_surface_to_UsdPreviewSurface_multioutput'; - this.desc = "MaterialX:mtlx/translation/standard_surface_to_UsdPreviewSurface"; - this.onNodeCreated = function() { - //console.log('Node created:', this); -} - this.onRemoved = function() { - //console.log('Node removed:', this); - } - this.bgcolor = '#111'; - this.color = '#222'; - this.shape = LiteGraph.ROUND_SHAPE; -} -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; -mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; -LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_UsdPreviewSurface',mtlx_translation_standard_surface_to_UsdPreviewSurface); diff --git a/javascript/mtlx_js_utilities_internal.html b/javascript/mtlx_js_utilities_internal.html deleted file mode 100644 index 6d6f501b..00000000 --- a/javascript/mtlx_js_utilities_internal.html +++ /dev/null @@ -1,897 +0,0 @@ - - - - - - - - Dropdown Menu Example - - - - - - - - - - - - - - - - - - - - - -
    -

    Graph Utilities

    - -

    The following is a set of graph related utilities to work with MaterialX using it's Javascript - packages. Specifically only the JsMaterialXCore package is used as it is much - more lightweight than the the full MaterialX package which includes shader generation. -

    - The utilities collected together into a - materialxgraph package which can be reused in other projects. Currently the package includes: - -

    - -

    Using this package, a MaterialX file can be loaded in and previewed as text or visualized as a "Mermaid" - graph. - The separate Mermaid Visualizer can also be used. - It uses the same JsMaterialXGraph package. - Additionally, the node and connectively information -

    -

    - A simple MaterialX graph is loaded in by default. -

    - - - -
    -
    - -
    -
    - -
    - - -
    - Graph Connectivity -

    -
    -
    - -
    -
    - - - -
    - - - -
    - -
    - - - -
    -
    -
    -
    -
    - Connectivity - -
    -
    -
    - Mermaid - -
    -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    -
    - - -
    -
    - -
    -
    - -
    - Graph Definitions -

    - -
    -
    - -
    -
    - -
    -
    -
    -
    - - -
    -
    - -
    -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    - - - - - - \ No newline at end of file diff --git a/javascript/node_editor.js b/javascript/node_editor.js index f4549ac5..d792aeb2 100644 --- a/javascript/node_editor.js +++ b/javascript/node_editor.js @@ -20,17 +20,39 @@ export function initializeNodeEditor(materialFilename, geometryFilename, theRend return fetch(uri) .then(response => { if (response.ok) { - return true; + return Promise.resolve(true); } else { - return false; + return Promise.resolve(false); } }) .catch(error => { console.log('Error checking URI:', error); - return false; + return Promise.resolve(false); }); - } + } + + function renderableItemUpdater(renderableItems) { + let renderableItemSelect = document.getElementById('renderableItem'); + if (renderableItemSelect) { + + while (renderableItemSelect.firstChild) { + renderableItemSelect.removeChild(renderableItemSelect.firstChild); + } + for (let i = 0; i < renderableItems.length; i++) { + let item = renderableItems[i]; + let option = document.createElement('option'); + option.value = item; + let uiitem = item; + // Truncate the name so it will fit into UI. + if (uiitem.length > 12) + uiitem = uiitem.substring(0, 12) + '...'; + option.text = uiitem; + renderableItemSelect.appendChild(option); + } + } + } + if (theRenderer) { var viewer = theRenderer.initializeViewer(materialFilename, geometryFilename); console.log('Setup viewer:', viewer); @@ -48,6 +70,7 @@ export function initializeNodeEditor(materialFilename, geometryFilename, theRend var ui = { console_area: document.getElementById('console_area'), nodeTypesList: document.getElementById('nodeTypesList'), + renderableItemUpdater: renderableItemUpdater, mtlxdoc: cmeditor, mtlxlib: cmeditor2, mtlxdoc_colorspace: null, // document.getElementById('mtlxdoc_colorspace'), @@ -203,41 +226,10 @@ export function initializeNodeEditor(materialFilename, geometryFilename, theRend editor.loadGraphFromString('mtlx', mtlxdoc, 'MaterialXGraph', auto_arrange_size); }); - /* function updateRenderableItemUI(renderableItems) { - let renderableItemSelect = document.getElementById('renderableItem'); - // Remove any previous children - while (renderableItemSelect.firstChild) { - renderableItemSelect.removeChild(renderableItemSelect.firstChild); - } - for (let i = 0; i < renderableItems.length; i++) { - let item = renderableItems[i]; - let option = document.createElement('option'); - option.value = i; - option.text = item; // item.getNamePath(); - renderableItemSelect.appendChild(option); - } - } */ - function updateRenderableItemUI() { let renderableItems = editor.findRenderableItems(); - - // Update selection for renderables - let renderableItemSelect = document.getElementById('renderableItem'); - while (renderableItemSelect.firstChild) { - renderableItemSelect.removeChild(renderableItemSelect.firstChild); - } - for (let i = 0; i < renderableItems.length; i++) { - let item = renderableItems[i]; - let option = document.createElement('option'); - option.value = item; - let uiitem = item; - // Truncate the name so it will fit into UI. - if (uiitem.length > 12) - uiitem = uiitem.substring(0, 12) + '...'; - option.text = uiitem; - renderableItemSelect.appendChild(option); - } + renderableItemUpdater(renderableItems); } function saveToStringUI() { @@ -322,7 +314,7 @@ export function initializeNodeEditor(materialFilename, geometryFilename, theRend var fileURL = URL.createObjectURL(file); if (theRenderer) theRenderer.setRenderGeometry(fileURL); - console.log('Change geometry to:', fileURL); + console.log('Change geometry to:', fileURL, 'from file:', file.name); } } fileInput.click(); diff --git a/javascript/materialxnode/dist/Definitions/maya_surfaces.mtlx b/javascript/node_editor/Definitions/maya_surfaces.mtlx similarity index 100% rename from javascript/materialxnode/dist/Definitions/maya_surfaces.mtlx rename to javascript/node_editor/Definitions/maya_surfaces.mtlx diff --git a/javascript/materialxnode/dist/Images/adsk.png b/javascript/node_editor/Images/adsk.png similarity index 100% rename from javascript/materialxnode/dist/Images/adsk.png rename to javascript/node_editor/Images/adsk.png diff --git a/javascript/materialxnode/dist/Images/arrow_down.svg b/javascript/node_editor/Images/arrow_down.svg similarity index 100% rename from javascript/materialxnode/dist/Images/arrow_down.svg rename to javascript/node_editor/Images/arrow_down.svg diff --git a/javascript/materialxnode/dist/Images/arrow_down_white.svg b/javascript/node_editor/Images/arrow_down_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/arrow_down_white.svg rename to javascript/node_editor/Images/arrow_down_white.svg diff --git a/javascript/materialxnode/dist/Images/arrow_up.svg b/javascript/node_editor/Images/arrow_up.svg similarity index 100% rename from javascript/materialxnode/dist/Images/arrow_up.svg rename to javascript/node_editor/Images/arrow_up.svg diff --git a/javascript/materialxnode/dist/Images/arrow_up_white.svg b/javascript/node_editor/Images/arrow_up_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/arrow_up_white.svg rename to javascript/node_editor/Images/arrow_up_white.svg diff --git a/javascript/materialxnode/dist/Images/clipboard.svg b/javascript/node_editor/Images/clipboard.svg similarity index 100% rename from javascript/materialxnode/dist/Images/clipboard.svg rename to javascript/node_editor/Images/clipboard.svg diff --git a/javascript/materialxnode/dist/Images/clipboard_white.svg b/javascript/node_editor/Images/clipboard_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/clipboard_white.svg rename to javascript/node_editor/Images/clipboard_white.svg diff --git a/javascript/materialxnode/dist/Images/copy-regular.svg b/javascript/node_editor/Images/copy-regular.svg similarity index 100% rename from javascript/materialxnode/dist/Images/copy-regular.svg rename to javascript/node_editor/Images/copy-regular.svg diff --git a/javascript/materialxnode/dist/Images/copy-regular_white.svg b/javascript/node_editor/Images/copy-regular_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/copy-regular_white.svg rename to javascript/node_editor/Images/copy-regular_white.svg diff --git a/javascript/materialxnode/dist/Images/gltf_logo.webp b/javascript/node_editor/Images/gltf_logo.webp similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_logo.webp rename to javascript/node_editor/Images/gltf_logo.webp diff --git a/javascript/materialxnode/dist/Images/houdini_icon.webp b/javascript/node_editor/Images/houdini_icon.webp similarity index 100% rename from javascript/materialxnode/dist/Images/houdini_icon.webp rename to javascript/node_editor/Images/houdini_icon.webp diff --git a/javascript/materialxnode/dist/Images/logo3d_2_small.png b/javascript/node_editor/Images/logo3d_2_small.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_2_small.png rename to javascript/node_editor/Images/logo3d_2_small.png diff --git a/javascript/materialxnode/dist/Images/logo_toon.png b/javascript/node_editor/Images/logo_toon.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo_toon.png rename to javascript/node_editor/Images/logo_toon.png diff --git a/javascript/materialxnode/dist/Images/logo_toon2.png b/javascript/node_editor/Images/logo_toon2.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo_toon2.png rename to javascript/node_editor/Images/logo_toon2.png diff --git a/javascript/materialxnode/dist/Images/logo_toon3.png b/javascript/node_editor/Images/logo_toon3.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo_toon3.png rename to javascript/node_editor/Images/logo_toon3.png diff --git a/javascript/materialxtoy/Images/logo_wave.png b/javascript/node_editor/Images/logo_wave.png similarity index 100% rename from javascript/materialxtoy/Images/logo_wave.png rename to javascript/node_editor/Images/logo_wave.png diff --git a/javascript/materialxtoy/Images/logo_wave2.png b/javascript/node_editor/Images/logo_wave2.png similarity index 100% rename from javascript/materialxtoy/Images/logo_wave2.png rename to javascript/node_editor/Images/logo_wave2.png diff --git a/javascript/node_editor/Images/logo_wave3.png b/javascript/node_editor/Images/logo_wave3.png new file mode 100644 index 00000000..0689fc34 Binary files /dev/null and b/javascript/node_editor/Images/logo_wave3.png differ diff --git a/javascript/materialxnode/dist/Images/materialtoy_ai_3.svg b/javascript/node_editor/Images/materialtoy_ai_3.svg similarity index 100% rename from javascript/materialxnode/dist/Images/materialtoy_ai_3.svg rename to javascript/node_editor/Images/materialtoy_ai_3.svg diff --git a/javascript/materialxnode/dist/Images/materialtoy_ai_variant3.png b/javascript/node_editor/Images/materialtoy_ai_variant3.png similarity index 100% rename from javascript/materialxnode/dist/Images/materialtoy_ai_variant3.png rename to javascript/node_editor/Images/materialtoy_ai_variant3.png diff --git a/javascript/materialxnode/dist/Images/materialx_logo.png b/javascript/node_editor/Images/materialx_logo.png similarity index 100% rename from javascript/materialxnode/dist/Images/materialx_logo.png rename to javascript/node_editor/Images/materialx_logo.png diff --git a/javascript/materialxnode/dist/Images/materialx_logo.webp b/javascript/node_editor/Images/materialx_logo.webp similarity index 100% rename from javascript/materialxnode/dist/Images/materialx_logo.webp rename to javascript/node_editor/Images/materialx_logo.webp diff --git a/javascript/materialxnode/dist/Images/materialxtoy_node_editor.svg b/javascript/node_editor/Images/materialxtoy_node_editor.svg similarity index 100% rename from javascript/materialxnode/dist/Images/materialxtoy_node_editor.svg rename to javascript/node_editor/Images/materialxtoy_node_editor.svg diff --git a/javascript/materialxnode/dist/Images/maya_surfaces.webp b/javascript/node_editor/Images/maya_surfaces.webp similarity index 100% rename from javascript/materialxnode/dist/Images/maya_surfaces.webp rename to javascript/node_editor/Images/maya_surfaces.webp diff --git a/javascript/materialxnode/dist/Images/no_image.png b/javascript/node_editor/Images/no_image.png similarity index 100% rename from javascript/materialxnode/dist/Images/no_image.png rename to javascript/node_editor/Images/no_image.png diff --git a/javascript/materialxnode/dist/Images/nodegraph.svg b/javascript/node_editor/Images/nodegraph.svg similarity index 100% rename from javascript/materialxnode/dist/Images/nodegraph.svg rename to javascript/node_editor/Images/nodegraph.svg diff --git a/javascript/materialxnode/dist/Images/nodegraph_white.svg b/javascript/node_editor/Images/nodegraph_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/nodegraph_white.svg rename to javascript/node_editor/Images/nodegraph_white.svg diff --git a/javascript/materialxnode/dist/Images/openpbr_logo.webp b/javascript/node_editor/Images/openpbr_logo.webp similarity index 100% rename from javascript/materialxnode/dist/Images/openpbr_logo.webp rename to javascript/node_editor/Images/openpbr_logo.webp diff --git a/javascript/materialxnode/dist/Images/openusd_logo.webp b/javascript/node_editor/Images/openusd_logo.webp similarity index 100% rename from javascript/materialxnode/dist/Images/openusd_logo.webp rename to javascript/node_editor/Images/openusd_logo.webp diff --git a/javascript/materialxnode/dist/JsMaterialXGenShader.data b/javascript/node_editor/JsMaterialXGenShader.data similarity index 100% rename from javascript/materialxnode/dist/JsMaterialXGenShader.data rename to javascript/node_editor/JsMaterialXGenShader.data diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/MayaLambert_embedded_def.mtlx b/javascript/node_editor/Materials/MayaLambert_embedded_def.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/MayaLambert_embedded_def.mtlx rename to javascript/node_editor/Materials/MayaLambert_embedded_def.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/channels.mtlx b/javascript/node_editor/Materials/channels.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/channels.mtlx rename to javascript/node_editor/Materials/channels.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/compound_graph_example.mtlx b/javascript/node_editor/Materials/compound_graph_example.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/compound_graph_example.mtlx rename to javascript/node_editor/Materials/compound_graph_example.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/extract_graph_example.mtlx b/javascript/node_editor/Materials/extract_graph_example.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/extract_graph_example.mtlx rename to javascript/node_editor/Materials/extract_graph_example.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/gltf_pattern.mtlx b/javascript/node_editor/Materials/gltf_pattern.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/gltf_pattern.mtlx rename to javascript/node_editor/Materials/gltf_pattern.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/gltf_pattern_modified.mtlx b/javascript/node_editor/Materials/gltf_pattern_modified.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/gltf_pattern_modified.mtlx rename to javascript/node_editor/Materials/gltf_pattern_modified.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/mapped_surfaceshader.mtlx b/javascript/node_editor/Materials/mapped_surfaceshader.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/mapped_surfaceshader.mtlx rename to javascript/node_editor/Materials/mapped_surfaceshader.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/pseudo_hatching.mtlx b/javascript/node_editor/Materials/pseudo_hatching.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/pseudo_hatching.mtlx rename to javascript/node_editor/Materials/pseudo_hatching.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/pseudo_hatching_publish.mtlx b/javascript/node_editor/Materials/pseudo_hatching_publish.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/pseudo_hatching_publish.mtlx rename to javascript/node_editor/Materials/pseudo_hatching_publish.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/Graph/sample_olives.mtlx b/javascript/node_editor/Materials/sample_olives.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/Graph/sample_olives.mtlx rename to javascript/node_editor/Materials/sample_olives.mtlx diff --git a/javascript/node_editor/Materials/simple_checkerboard_graph.mtlx b/javascript/node_editor/Materials/simple_checkerboard_graph.mtlx new file mode 100644 index 00000000..2e23822e --- /dev/null +++ b/javascript/node_editor/Materials/simple_checkerboard_graph.mtlx @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/javascript/node_editor/Materials/simple_checkerboard_graph2.mtlx b/javascript/node_editor/Materials/simple_checkerboard_graph2.mtlx new file mode 100644 index 00000000..e7a2b597 --- /dev/null +++ b/javascript/node_editor/Materials/simple_checkerboard_graph2.mtlx @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/javascript/node_editor/Materials/simple_file_texture.mtlx b/javascript/node_editor/Materials/simple_file_texture.mtlx new file mode 100644 index 00000000..aaaaaeaa --- /dev/null +++ b/javascript/node_editor/Materials/simple_file_texture.mtlx @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/javascript/node_editor/Materials/vertical_lines.mtlx b/javascript/node_editor/Materials/vertical_lines.mtlx new file mode 100644 index 00000000..22d81c42 --- /dev/null +++ b/javascript/node_editor/Materials/vertical_lines.mtlx @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/javascript/materialxtoy/index.html b/javascript/node_editor/index.html similarity index 98% rename from javascript/materialxtoy/index.html rename to javascript/node_editor/index.html index bdbe300a..a070c0f9 100644 --- a/javascript/materialxtoy/index.html +++ b/javascript/node_editor/index.html @@ -5,7 +5,8 @@ - + + MaterialX Graph Editor @@ -75,11 +76,12 @@ } - + + @@ -343,11 +345,16 @@

    + + \ No newline at end of file diff --git a/javascript/node_editor/index_out.html b/javascript/node_editor/index_out.html new file mode 100644 index 00000000..32244e52 --- /dev/null +++ b/javascript/node_editor/index_out.html @@ -0,0 +1,587 @@ + + + + + + + + + + + + + + + + + + + + + + + + MaterialX Graph Editor + + + + + + + + + + + + + + + + + + + + MaterialX Learn + + + + + + + + + + + + + + +
    +
    + + + + + + + + + + + +
    + +

    MaterialX Graph Editor

    +
    + + +
    +
    + +
    + +
    + +
    +
    + +
    +
    + + +
    +
    + + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    + + Properties Icon Properties + +
    +
    +
    +
    +
    + + +
    +
    +
    + + +
    +
    + +
    +
    + + + + + + + +
    +
    +
    + +
    + +
    + +
    + Definition Information +
    +
    + + + +
    +
    +
    +
    + Available Node Types +
    + + + + + + + + + +
    Graph IdNode Definition
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + +
    +
    + +

    + + Creative Commons License + © 2022-2024 NanMu Consulting. +

    +
    +
    + + + + \ No newline at end of file diff --git a/javascript/materialxnode/dist/litegraph/base.js b/javascript/node_editor/litegraph/base.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/base.js rename to javascript/node_editor/litegraph/base.js diff --git a/javascript/materialxnode/dist/litegraph/demos.js b/javascript/node_editor/litegraph/demos.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/demos.js rename to javascript/node_editor/litegraph/demos.js diff --git a/javascript/materialxnode/dist/litegraph/input.js b/javascript/node_editor/litegraph/input.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/input.js rename to javascript/node_editor/litegraph/input.js diff --git a/javascript/materialxnode/dist/litegraph/interface.js b/javascript/node_editor/litegraph/interface.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/interface.js rename to javascript/node_editor/litegraph/interface.js diff --git a/javascript/materialxnode/dist/litegraph/litegraph-editor.css b/javascript/node_editor/litegraph/litegraph-editor.css similarity index 100% rename from javascript/materialxnode/dist/litegraph/litegraph-editor.css rename to javascript/node_editor/litegraph/litegraph-editor.css diff --git a/javascript/materialxnode/dist/litegraph/litegraph-editor.js b/javascript/node_editor/litegraph/litegraph-editor.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/litegraph-editor.js rename to javascript/node_editor/litegraph/litegraph-editor.js diff --git a/javascript/materialxnode/dist/litegraph/litegraph.css b/javascript/node_editor/litegraph/litegraph.css similarity index 100% rename from javascript/materialxnode/dist/litegraph/litegraph.css rename to javascript/node_editor/litegraph/litegraph.css diff --git a/javascript/materialxnode/dist/litegraph/litegraph.js b/javascript/node_editor/litegraph/litegraph.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/litegraph.js rename to javascript/node_editor/litegraph/litegraph.js diff --git a/javascript/materialxnode/dist/litegraph/math.js b/javascript/node_editor/litegraph/math.js similarity index 100% rename from javascript/materialxnode/dist/litegraph/math.js rename to javascript/node_editor/litegraph/math.js diff --git a/javascript/materialxnode/dist/litegraph/style.css b/javascript/node_editor/litegraph/style.css similarity index 100% rename from javascript/materialxnode/dist/litegraph/style.css rename to javascript/node_editor/litegraph/style.css diff --git a/javascript/node_editor/mtlx_stdlib.js b/javascript/node_editor/mtlx_stdlib.js new file mode 100644 index 00000000..a39d471b --- /dev/null +++ b/javascript/node_editor/mtlx_stdlib.js @@ -0,0 +1,27895 @@ + +// MaterialX node type: mtlx/input/input_float +// +function mtlx_input_input_float() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_float'; + this.nodedef_node = 'input'; + this.nodedef_type = 'float'; + this.nodedef_group = 'input'; + this.addInput('in', 'float'); + this.addProperty('in', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'input_float'; + this.desc = "MaterialX:mtlx/input/input_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#161'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_float', mtlx_input_input_float); + +// MaterialX node type: mtlx/input/input_color3 +// +function mtlx_input_input_color3() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_color3'; + this.nodedef_node = 'input'; + this.nodedef_type = 'color3'; + this.nodedef_group = 'input'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'input_color3'; + this.desc = "MaterialX:mtlx/input/input_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#37A'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_color3', mtlx_input_input_color3); + +// MaterialX node type: mtlx/input/input_color4 +// +function mtlx_input_input_color4() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_color4'; + this.nodedef_node = 'input'; + this.nodedef_type = 'color4'; + this.nodedef_group = 'input'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'input_color4'; + this.desc = "MaterialX:mtlx/input/input_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#69A'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_color4', mtlx_input_input_color4); + +// MaterialX node type: mtlx/input/input_vector2 +// +function mtlx_input_input_vector2() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_vector2'; + this.nodedef_node = 'input'; + this.nodedef_type = 'vector2'; + this.nodedef_group = 'input'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'input_vector2'; + this.desc = "MaterialX:mtlx/input/input_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#265'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_vector2', mtlx_input_input_vector2); + +// MaterialX node type: mtlx/input/input_vector3 +// +function mtlx_input_input_vector3() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_vector3'; + this.nodedef_node = 'input'; + this.nodedef_type = 'vector3'; + this.nodedef_group = 'input'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'input_vector3'; + this.desc = "MaterialX:mtlx/input/input_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#465'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_vector3', mtlx_input_input_vector3); + +// MaterialX node type: mtlx/input/input_vector4 +// +function mtlx_input_input_vector4() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_vector4'; + this.nodedef_node = 'input'; + this.nodedef_type = 'vector4'; + this.nodedef_group = 'input'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'input_vector4'; + this.desc = "MaterialX:mtlx/input/input_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#275'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_vector4', mtlx_input_input_vector4); + +// MaterialX node type: mtlx/input/input_matrix33 +// +function mtlx_input_input_matrix33() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_matrix33'; + this.nodedef_node = 'input'; + this.nodedef_type = 'matrix33'; + this.nodedef_group = 'input'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'input_matrix33'; + this.desc = "MaterialX:mtlx/input/input_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#333'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_matrix33', mtlx_input_input_matrix33); + +// MaterialX node type: mtlx/input/input_matrix44 +// +function mtlx_input_input_matrix44() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_matrix44'; + this.nodedef_node = 'input'; + this.nodedef_type = 'matrix44'; + this.nodedef_group = 'input'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'input_matrix44'; + this.desc = "MaterialX:mtlx/input/input_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#444'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_matrix44', mtlx_input_input_matrix44); + +// MaterialX node type: mtlx/input/input_integer +// +function mtlx_input_input_integer() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_integer'; + this.nodedef_node = 'input'; + this.nodedef_type = 'integer'; + this.nodedef_group = 'input'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'input_integer'; + this.desc = "MaterialX:mtlx/input/input_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#A32'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_integer', mtlx_input_input_integer); + +// MaterialX node type: mtlx/input/input_string +// +function mtlx_input_input_string() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_string'; + this.nodedef_node = 'input'; + this.nodedef_type = 'string'; + this.nodedef_group = 'input'; + this.addInput('in', 'string'); + this.addProperty('in', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'string'); + this.title = 'input_string'; + this.desc = "MaterialX:mtlx/input/input_string"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#395'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_string', mtlx_input_input_string); + +// MaterialX node type: mtlx/input/input_boolean +// +function mtlx_input_input_boolean() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_boolean'; + this.nodedef_node = 'input'; + this.nodedef_type = 'boolean'; + this.nodedef_group = 'input'; + this.addInput('in', 'boolean'); + this.addProperty('in', false, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'boolean'); + this.title = 'input_boolean'; + this.desc = "MaterialX:mtlx/input/input_boolean"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#060'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_boolean', mtlx_input_input_boolean); + +// MaterialX node type: mtlx/input/input_filename +// +function mtlx_input_input_filename() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_filename'; + this.nodedef_node = 'input'; + this.nodedef_type = 'filename'; + this.nodedef_group = 'input'; + this.addInput('in', 'filename'); + this.addProperty('in', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'filename'); + this.title = 'input_filename'; + this.desc = "MaterialX:mtlx/input/input_filename"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#888'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_filename', mtlx_input_input_filename); + +// MaterialX node type: mtlx/input/input_BSDF +// +function mtlx_input_input_BSDF() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_BSDF'; + this.nodedef_node = 'input'; + this.nodedef_type = 'BSDF'; + this.nodedef_group = 'input'; + this.addInput('in', 'BSDF'); + this.addProperty('in', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'input_BSDF'; + this.desc = "MaterialX:mtlx/input/input_BSDF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_BSDF', mtlx_input_input_BSDF); + +// MaterialX node type: mtlx/input/input_EDF +// +function mtlx_input_input_EDF() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_EDF'; + this.nodedef_node = 'input'; + this.nodedef_type = 'EDF'; + this.nodedef_group = 'input'; + this.addInput('in', 'EDF'); + this.addProperty('in', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'input_EDF'; + this.desc = "MaterialX:mtlx/input/input_EDF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_EDF', mtlx_input_input_EDF); + +// MaterialX node type: mtlx/input/input_VDF +// +function mtlx_input_input_VDF() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_VDF'; + this.nodedef_node = 'input'; + this.nodedef_type = 'VDF'; + this.nodedef_group = 'input'; + this.addInput('in', 'VDF'); + this.addProperty('in', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'input_VDF'; + this.desc = "MaterialX:mtlx/input/input_VDF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_VDF', mtlx_input_input_VDF); + +// MaterialX node type: mtlx/input/input_surfaceshader +// +function mtlx_input_input_surfaceshader() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_surfaceshader'; + this.nodedef_node = 'input'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_group = 'input'; + this.addInput('in', 'surfaceshader'); + this.addProperty('in', '', 'surfaceshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'input_surfaceshader'; + this.desc = "MaterialX:mtlx/input/input_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_surfaceshader', mtlx_input_input_surfaceshader); + +// MaterialX node type: mtlx/input/input_volumeshader +// +function mtlx_input_input_volumeshader() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_volumeshader'; + this.nodedef_node = 'input'; + this.nodedef_type = 'volumeshader'; + this.nodedef_group = 'input'; + this.addInput('in', 'volumeshader'); + this.addProperty('in', '', 'volumeshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'volumeshader'); + this.title = 'input_volumeshader'; + this.desc = "MaterialX:mtlx/input/input_volumeshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_volumeshader', mtlx_input_input_volumeshader); + +// MaterialX node type: mtlx/input/input_displacementshader +// +function mtlx_input_input_displacementshader() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_displacementshader'; + this.nodedef_node = 'input'; + this.nodedef_type = 'displacementshader'; + this.nodedef_group = 'input'; + this.addInput('in', 'displacementshader'); + this.addProperty('in', '', 'displacementshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'displacementshader'); + this.title = 'input_displacementshader'; + this.desc = "MaterialX:mtlx/input/input_displacementshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_displacementshader', mtlx_input_input_displacementshader); + +// MaterialX node type: mtlx/input/input_lightshader +// +function mtlx_input_input_lightshader() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_lightshader'; + this.nodedef_node = 'input'; + this.nodedef_type = 'lightshader'; + this.nodedef_group = 'input'; + this.addInput('in', 'lightshader'); + this.addProperty('in', '', 'lightshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'input_lightshader'; + this.desc = "MaterialX:mtlx/input/input_lightshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_lightshader', mtlx_input_input_lightshader); + +// MaterialX node type: mtlx/input/input_material +// +function mtlx_input_input_material() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_material'; + this.nodedef_node = 'input'; + this.nodedef_type = 'material'; + this.nodedef_group = 'input'; + this.addInput('in', 'material'); + this.addProperty('in', '', 'material', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'material'); + this.title = 'input_material'; + this.desc = "MaterialX:mtlx/input/input_material"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_material', mtlx_input_input_material); + +// MaterialX node type: mtlx/input/input_vector2array +// +function mtlx_input_input_vector2array() { + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_input_vector2array'; + this.nodedef_node = 'input'; + this.nodedef_type = 'vector2array'; + this.nodedef_group = 'input'; + this.addInput('in', 'vector2array'); + this.addProperty('in', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2array'); + this.title = 'input_vector2array'; + this.desc = "MaterialX:mtlx/input/input_vector2array"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node: ', this); + } +} +LiteGraph.registerNodeType('mtlx/input/input_vector2array', mtlx_input_input_vector2array); + +// MaterialX node type: mtlx/output/output_float +// +function mtlx_output_output_float() { + this.title = 'output_float'; + this.desc = "MaterialX Node :mtlx/output/output_float"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'float'; + this.nodedef_group = 'output'; + this.addInput('in', 'float'); + this.addProperty('in', 0, 'float'); + this.addOutput('out', 'float'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#161'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_float', mtlx_output_output_float); + +// MaterialX node type: mtlx/output/output_color3 +// +function mtlx_output_output_color3() { + this.title = 'output_color3'; + this.desc = "MaterialX Node :mtlx/output/output_color3"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'color3'; + this.nodedef_group = 'output'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3'); + this.addOutput('out', 'color3'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#37A'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_color3', mtlx_output_output_color3); + +// MaterialX node type: mtlx/output/output_color4 +// +function mtlx_output_output_color4() { + this.title = 'output_color4'; + this.desc = "MaterialX Node :mtlx/output/output_color4"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'color4'; + this.nodedef_group = 'output'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4'); + this.addOutput('out', 'color4'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#69A'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_color4', mtlx_output_output_color4); + +// MaterialX node type: mtlx/output/output_vector2 +// +function mtlx_output_output_vector2() { + this.title = 'output_vector2'; + this.desc = "MaterialX Node :mtlx/output/output_vector2"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'vector2'; + this.nodedef_group = 'output'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2'); + this.addOutput('out', 'vector2'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#265'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_vector2', mtlx_output_output_vector2); + +// MaterialX node type: mtlx/output/output_vector3 +// +function mtlx_output_output_vector3() { + this.title = 'output_vector3'; + this.desc = "MaterialX Node :mtlx/output/output_vector3"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'vector3'; + this.nodedef_group = 'output'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3'); + this.addOutput('out', 'vector3'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#465'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_vector3', mtlx_output_output_vector3); + +// MaterialX node type: mtlx/output/output_vector4 +// +function mtlx_output_output_vector4() { + this.title = 'output_vector4'; + this.desc = "MaterialX Node :mtlx/output/output_vector4"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'vector4'; + this.nodedef_group = 'output'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4'); + this.addOutput('out', 'vector4'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#275'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_vector4', mtlx_output_output_vector4); + +// MaterialX node type: mtlx/output/output_matrix33 +// +function mtlx_output_output_matrix33() { + this.title = 'output_matrix33'; + this.desc = "MaterialX Node :mtlx/output/output_matrix33"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'matrix33'; + this.nodedef_group = 'output'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33'); + this.addOutput('out', 'matrix33'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#333'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_matrix33', mtlx_output_output_matrix33); + +// MaterialX node type: mtlx/output/output_matrix44 +// +function mtlx_output_output_matrix44() { + this.title = 'output_matrix44'; + this.desc = "MaterialX Node :mtlx/output/output_matrix44"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'matrix44'; + this.nodedef_group = 'output'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44'); + this.addOutput('out', 'matrix44'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#444'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_matrix44', mtlx_output_output_matrix44); + +// MaterialX node type: mtlx/output/output_integer +// +function mtlx_output_output_integer() { + this.title = 'output_integer'; + this.desc = "MaterialX Node :mtlx/output/output_integer"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'integer'; + this.nodedef_group = 'output'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer'); + this.addOutput('out', 'integer'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#A32'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_integer', mtlx_output_output_integer); + +// MaterialX node type: mtlx/output/output_string +// +function mtlx_output_output_string() { + this.title = 'output_string'; + this.desc = "MaterialX Node :mtlx/output/output_string"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'string'; + this.nodedef_group = 'output'; + this.addInput('in', 'string'); + this.addProperty('in', '', 'string'); + this.addOutput('out', 'string'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#395'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_string', mtlx_output_output_string); + +// MaterialX node type: mtlx/output/output_boolean +// +function mtlx_output_output_boolean() { + this.title = 'output_boolean'; + this.desc = "MaterialX Node :mtlx/output/output_boolean"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'boolean'; + this.nodedef_group = 'output'; + this.addInput('in', 'boolean'); + this.addProperty('in', false, 'boolean'); + this.addOutput('out', 'boolean'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#060'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_boolean', mtlx_output_output_boolean); + +// MaterialX node type: mtlx/output/output_filename +// +function mtlx_output_output_filename() { + this.title = 'output_filename'; + this.desc = "MaterialX Node :mtlx/output/output_filename"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'filename'; + this.nodedef_group = 'output'; + this.addInput('in', 'filename'); + this.addProperty('in', '', 'filename'); + this.addOutput('out', 'filename'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.boxcolor = '#888'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_filename', mtlx_output_output_filename); + +// MaterialX node type: mtlx/output/output_BSDF +// +function mtlx_output_output_BSDF() { + this.title = 'output_BSDF'; + this.desc = "MaterialX Node :mtlx/output/output_BSDF"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'BSDF'; + this.nodedef_group = 'output'; + this.addInput('in', 'BSDF'); + this.addProperty('in', '', 'BSDF'); + this.addOutput('out', 'BSDF'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_BSDF', mtlx_output_output_BSDF); + +// MaterialX node type: mtlx/output/output_EDF +// +function mtlx_output_output_EDF() { + this.title = 'output_EDF'; + this.desc = "MaterialX Node :mtlx/output/output_EDF"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'EDF'; + this.nodedef_group = 'output'; + this.addInput('in', 'EDF'); + this.addProperty('in', '', 'EDF'); + this.addOutput('out', 'EDF'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_EDF', mtlx_output_output_EDF); + +// MaterialX node type: mtlx/output/output_VDF +// +function mtlx_output_output_VDF() { + this.title = 'output_VDF'; + this.desc = "MaterialX Node :mtlx/output/output_VDF"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'VDF'; + this.nodedef_group = 'output'; + this.addInput('in', 'VDF'); + this.addProperty('in', '', 'VDF'); + this.addOutput('out', 'VDF'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_VDF', mtlx_output_output_VDF); + +// MaterialX node type: mtlx/output/output_surfaceshader +// +function mtlx_output_output_surfaceshader() { + this.title = 'output_surfaceshader'; + this.desc = "MaterialX Node :mtlx/output/output_surfaceshader"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_group = 'output'; + this.addInput('in', 'surfaceshader'); + this.addProperty('in', '', 'surfaceshader'); + this.addOutput('out', 'surfaceshader'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_surfaceshader', mtlx_output_output_surfaceshader); + +// MaterialX node type: mtlx/output/output_volumeshader +// +function mtlx_output_output_volumeshader() { + this.title = 'output_volumeshader'; + this.desc = "MaterialX Node :mtlx/output/output_volumeshader"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'volumeshader'; + this.nodedef_group = 'output'; + this.addInput('in', 'volumeshader'); + this.addProperty('in', '', 'volumeshader'); + this.addOutput('out', 'volumeshader'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_volumeshader', mtlx_output_output_volumeshader); + +// MaterialX node type: mtlx/output/output_displacementshader +// +function mtlx_output_output_displacementshader() { + this.title = 'output_displacementshader'; + this.desc = "MaterialX Node :mtlx/output/output_displacementshader"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'displacementshader'; + this.nodedef_group = 'output'; + this.addInput('in', 'displacementshader'); + this.addProperty('in', '', 'displacementshader'); + this.addOutput('out', 'displacementshader'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_displacementshader', mtlx_output_output_displacementshader); + +// MaterialX node type: mtlx/output/output_lightshader +// +function mtlx_output_output_lightshader() { + this.title = 'output_lightshader'; + this.desc = "MaterialX Node :mtlx/output/output_lightshader"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'lightshader'; + this.nodedef_group = 'output'; + this.addInput('in', 'lightshader'); + this.addProperty('in', '', 'lightshader'); + this.addOutput('out', 'lightshader'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_lightshader', mtlx_output_output_lightshader); + +// MaterialX node type: mtlx/output/output_material +// +function mtlx_output_output_material() { + this.title = 'output_material'; + this.desc = "MaterialX Node :mtlx/output/output_material"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'material'; + this.nodedef_group = 'output'; + this.addInput('in', 'material'); + this.addProperty('in', '', 'material'); + this.addOutput('out', 'material'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_material', mtlx_output_output_material); + +// MaterialX node type: mtlx/output/output_vector2array +// +function mtlx_output_output_vector2array() { + this.title = 'output_vector2array'; + this.desc = "MaterialX Node :mtlx/output/output_vector2array"; + this.nodedef_icon = './Images/materialx_logo.webp'; + this.nodedef_name = 'ND_output_NaN'; + this.nodedef_node = 'output'; + this.nodedef_type = 'vector2array'; + this.nodedef_group = 'output'; + this.addInput('in', 'vector2array'); + this.addProperty('in', '', 'vector2array'); + this.addOutput('out', 'vector2array'); + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.color = '#004C94'; + this.bgcolor = '#000'; + this.shape = LiteGraph.ROUND_SHAPE; + this.onExecute = function () { + console.log('Executing node:', this); + } +} +LiteGraph.registerNodeType('mtlx/output/output_vector2array', mtlx_output_output_vector2array); + +// MaterialX node type: mtlx/light/point_light +// +function mtlx_light_point_light() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_point_light'; + this.nodedef_type = 'lightshader'; + this.nodedef_node = 'point_light'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_point_light_out_genglsl.png'; + this.nodedef_group = 'light'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('intensity', 'float'); + this.addProperty('intensity', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('decay_rate', 'float'); + this.addProperty('decay_rate', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'point_light_lightshader'; + this.desc = "MaterialX:mtlx/light/point_light"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_light_point_light.nodedef_name = 'ND_point_light'; +mtlx_light_point_light.nodedef_node = 'point_light'; +mtlx_light_point_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/point_light.html'; +LiteGraph.registerNodeType('mtlx/light/point_light', mtlx_light_point_light); + +// MaterialX node type: mtlx/light/directional_light +// +function mtlx_light_directional_light() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_directional_light'; + this.nodedef_type = 'lightshader'; + this.nodedef_node = 'directional_light'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_directional_light_out_genglsl.png'; + this.nodedef_group = 'light'; + this.addInput('direction', 'vector3'); + this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('intensity', 'float'); + this.addProperty('intensity', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'directional_light_lightshader'; + this.desc = "MaterialX:mtlx/light/directional_light"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_light_directional_light.nodedef_name = 'ND_directional_light'; +mtlx_light_directional_light.nodedef_node = 'directional_light'; +mtlx_light_directional_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/directional_light.html'; +LiteGraph.registerNodeType('mtlx/light/directional_light', mtlx_light_directional_light); + +// MaterialX node type: mtlx/light/spot_light +// +function mtlx_light_spot_light() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_spot_light'; + this.nodedef_type = 'lightshader'; + this.nodedef_node = 'spot_light'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_spot_light_out_genglsl.png'; + this.nodedef_group = 'light'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('direction', 'vector3'); + this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('intensity', 'float'); + this.addProperty('intensity', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('decay_rate', 'float'); + this.addProperty('decay_rate', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inner_angle', 'float'); + this.addProperty('inner_angle', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outer_angle', 'float'); + this.addProperty('outer_angle', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'spot_light_lightshader'; + this.desc = "MaterialX:mtlx/light/spot_light"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_light_spot_light.nodedef_name = 'ND_spot_light'; +mtlx_light_spot_light.nodedef_node = 'spot_light'; +mtlx_light_spot_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/spot_light.html'; +LiteGraph.registerNodeType('mtlx/light/spot_light', mtlx_light_spot_light); + +// MaterialX node type: mtlx/npr/viewdirection_vector3 +// +function mtlx_npr_viewdirection_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_viewdirection_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'viewdirection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_viewdirection_vector3_out_genglsl.png'; + this.nodedef_group = 'npr'; + this.addInput('space', 'string'); + this.addProperty('space', 'world', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'viewdirection_vector3'; + this.desc = "MaterialX:mtlx/npr/viewdirection_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_npr_viewdirection_vector3.nodedef_name = 'ND_viewdirection_vector3'; +mtlx_npr_viewdirection_vector3.nodedef_node = 'viewdirection'; +mtlx_npr_viewdirection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/viewdirection.html'; +LiteGraph.registerNodeType('mtlx/npr/viewdirection_vector3', mtlx_npr_viewdirection_vector3); + +// MaterialX node type: mtlx/npr/facingratio_float +// +function mtlx_npr_facingratio_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_facingratio_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'facingratio'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_facingratio_float_out_genglsl.png'; + this.nodedef_group = 'npr'; + this.addInput('viewdirection', 'vector3'); + this.addProperty('viewdirection', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('faceforward', 'boolean'); + this.addProperty('faceforward', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('invert', 'boolean'); + this.addProperty('invert', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'facingratio_float'; + this.desc = "MaterialX:mtlx/npr/facingratio_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_npr_facingratio_float.nodedef_name = 'ND_facingratio_float'; +mtlx_npr_facingratio_float.nodedef_node = 'facingratio'; +mtlx_npr_facingratio_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/facingratio.html'; +LiteGraph.registerNodeType('mtlx/npr/facingratio_float', mtlx_npr_facingratio_float); + +// MaterialX node type: mtlx/npr/gooch_shade +// +function mtlx_npr_gooch_shade() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_gooch_shade'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'gooch_shade'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gooch_shade_out_genglsl.png'; + this.nodedef_group = 'npr'; + this.addInput('warm_color', 'color3'); + this.addProperty('warm_color', [0.8, 0.8, 0.7], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Warm Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('cool_color', 'color3'); + this.addProperty('cool_color', [0.3, 0.3, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Cool Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular_intensity', 'float'); + this.addProperty('specular_intensity', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Intensity", "uimin": "0", "uimax": "1", "uifolder": "" }); + this.addInput('shininess', 'float'); + this.addProperty('shininess', 64, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Shininess", "uimin": "1", "uimax": null, "uifolder": "" }); + this.addInput('light_direction', 'vector3'); + this.addProperty('light_direction', [1, -0.5, -0.5], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Light Direction", "uimin": [-1, -1, -1], "uimax": [1, 1, 1], "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'gooch_shade_color3'; + this.desc = "MaterialX:mtlx/npr/gooch_shade"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_npr_gooch_shade.nodedef_name = 'ND_gooch_shade'; +mtlx_npr_gooch_shade.nodedef_node = 'gooch_shade'; +mtlx_npr_gooch_shade.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gooch_shade.html'; +LiteGraph.registerNodeType('mtlx/npr/gooch_shade', mtlx_npr_gooch_shade); + +// MaterialX node type: mtlx/material/surfacematerial +// +function mtlx_material_surfacematerial() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_surfacematerial'; + this.nodedef_type = 'material'; + this.nodedef_node = 'surfacematerial'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surfacematerial_out_genglsl.png'; + this.nodedef_group = 'material'; + this.addInput('surfaceshader', 'surfaceshader'); + this.addProperty('surfaceshader', '', 'surfaceshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('displacementshader', 'displacementshader'); + this.addProperty('displacementshader', '', 'displacementshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'material'); + this.title = 'surfacematerial_material'; + this.desc = "MaterialX:mtlx/material/surfacematerial"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#151'; + this.shape = LiteGraph.BOX_SHAPE; +} +mtlx_material_surfacematerial.nodedef_name = 'ND_surfacematerial'; +mtlx_material_surfacematerial.nodedef_node = 'surfacematerial'; +mtlx_material_surfacematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surfacematerial.html'; +LiteGraph.registerNodeType('mtlx/material/surfacematerial', mtlx_material_surfacematerial); + +// MaterialX node type: mtlx/material/volumematerial +// +function mtlx_material_volumematerial() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_volumematerial'; + this.nodedef_type = 'material'; + this.nodedef_node = 'volumematerial'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volumematerial_out_genglsl.png'; + this.nodedef_group = 'material'; + this.addInput('volumeshader', 'volumeshader'); + this.addProperty('volumeshader', '', 'volumeshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'material'); + this.title = 'volumematerial_material'; + this.desc = "MaterialX:mtlx/material/volumematerial"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#151'; + this.shape = LiteGraph.BOX_SHAPE; +} +mtlx_material_volumematerial.nodedef_name = 'ND_volumematerial'; +mtlx_material_volumematerial.nodedef_node = 'volumematerial'; +mtlx_material_volumematerial.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volumematerial.html'; +LiteGraph.registerNodeType('mtlx/material/volumematerial', mtlx_material_volumematerial); + +// MaterialX node type: mtlx/shader/surface_unlit +// +function mtlx_shader_surface_unlit() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_surface_unlit'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'surface_unlit'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_unlit_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('emission', 'float'); + this.addProperty('emission', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('transmission', 'float'); + this.addProperty('transmission', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('transmission_color', 'color3'); + this.addProperty('transmission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('opacity', 'float'); + this.addProperty('opacity', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'surface_unlit_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/surface_unlit"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_surface_unlit.nodedef_name = 'ND_surface_unlit'; +mtlx_shader_surface_unlit.nodedef_node = 'surface_unlit'; +mtlx_shader_surface_unlit.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface_unlit.html'; +LiteGraph.registerNodeType('mtlx/shader/surface_unlit', mtlx_shader_surface_unlit); + +// MaterialX node type: mtlx/texture2d/image_float +// +function mtlx_texture2d_image_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_float_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'float'); + this.addProperty('default', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'image_float'; + this.desc = "MaterialX:mtlx/texture2d/image_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_texture2d_image_float.nodedef_name = 'ND_image_float'; +mtlx_texture2d_image_float.nodedef_node = 'image'; +mtlx_texture2d_image_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_float', mtlx_texture2d_image_float); + +// MaterialX node type: mtlx/texture2d/image_color3 +// +function mtlx_texture2d_image_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color3_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'image_color3'; + this.desc = "MaterialX:mtlx/texture2d/image_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_texture2d_image_color3.nodedef_name = 'ND_image_color3'; +mtlx_texture2d_image_color3.nodedef_node = 'image'; +mtlx_texture2d_image_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_color3', mtlx_texture2d_image_color3); + +// MaterialX node type: mtlx/texture2d/image_color4 +// +function mtlx_texture2d_image_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_color4_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'image_color4'; + this.desc = "MaterialX:mtlx/texture2d/image_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_texture2d_image_color4.nodedef_name = 'ND_image_color4'; +mtlx_texture2d_image_color4.nodedef_node = 'image'; +mtlx_texture2d_image_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_color4', mtlx_texture2d_image_color4); + +// MaterialX node type: mtlx/texture2d/image_vector2 +// +function mtlx_texture2d_image_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector2_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector2'); + this.addProperty('default', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'image_vector2'; + this.desc = "MaterialX:mtlx/texture2d/image_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_texture2d_image_vector2.nodedef_name = 'ND_image_vector2'; +mtlx_texture2d_image_vector2.nodedef_node = 'image'; +mtlx_texture2d_image_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_vector2', mtlx_texture2d_image_vector2); + +// MaterialX node type: mtlx/texture2d/image_vector3 +// +function mtlx_texture2d_image_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector3_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'image_vector3'; + this.desc = "MaterialX:mtlx/texture2d/image_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_texture2d_image_vector3.nodedef_name = 'ND_image_vector3'; +mtlx_texture2d_image_vector3.nodedef_node = 'image'; +mtlx_texture2d_image_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_vector3', mtlx_texture2d_image_vector3); + +// MaterialX node type: mtlx/texture2d/image_vector4 +// +function mtlx_texture2d_image_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_image_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_image_vector4_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filename", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layer', 'string'); + this.addProperty('layer', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Layer", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Default Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode U", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Address Mode V", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Filter Type", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Range", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frame End Action", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'image_vector4'; + this.desc = "MaterialX:mtlx/texture2d/image_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_texture2d_image_vector4.nodedef_name = 'ND_image_vector4'; +mtlx_texture2d_image_vector4.nodedef_node = 'image'; +mtlx_texture2d_image_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/image_vector4', mtlx_texture2d_image_vector4); + +// MaterialX node type: mtlx/texture2d/tiledimage_float +// +function mtlx_texture2d_tiledimage_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'float'); + this.addProperty('default', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'tiledimage_float'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_texture2d_tiledimage_float.nodedef_name = 'ND_tiledimage_float'; +mtlx_texture2d_tiledimage_float.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_float', mtlx_texture2d_tiledimage_float); + +// MaterialX node type: mtlx/texture2d/tiledimage_color3 +// +function mtlx_texture2d_tiledimage_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color3_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'tiledimage_color3'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_texture2d_tiledimage_color3.nodedef_name = 'ND_tiledimage_color3'; +mtlx_texture2d_tiledimage_color3.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color3', mtlx_texture2d_tiledimage_color3); + +// MaterialX node type: mtlx/texture2d/tiledimage_color4 +// +function mtlx_texture2d_tiledimage_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_color4_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'tiledimage_color4'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_texture2d_tiledimage_color4.nodedef_name = 'ND_tiledimage_color4'; +mtlx_texture2d_tiledimage_color4.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_color4', mtlx_texture2d_tiledimage_color4); + +// MaterialX node type: mtlx/texture2d/tiledimage_vector2 +// +function mtlx_texture2d_tiledimage_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector2_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector2'); + this.addProperty('default', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'tiledimage_vector2'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_texture2d_tiledimage_vector2.nodedef_name = 'ND_tiledimage_vector2'; +mtlx_texture2d_tiledimage_vector2.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector2', mtlx_texture2d_tiledimage_vector2); + +// MaterialX node type: mtlx/texture2d/tiledimage_vector3 +// +function mtlx_texture2d_tiledimage_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector3_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'tiledimage_vector3'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_texture2d_tiledimage_vector3.nodedef_name = 'ND_tiledimage_vector3'; +mtlx_texture2d_tiledimage_vector3.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector3', mtlx_texture2d_tiledimage_vector3); + +// MaterialX node type: mtlx/texture2d/tiledimage_vector4 +// +function mtlx_texture2d_tiledimage_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledimage_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'tiledimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledimage_vector4_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldimagesize', 'vector2'); + this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('realworldtilesize', 'vector2'); + this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'tiledimage_vector4'; + this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_texture2d_tiledimage_vector4.nodedef_name = 'ND_tiledimage_vector4'; +mtlx_texture2d_tiledimage_vector4.nodedef_node = 'tiledimage'; +mtlx_texture2d_tiledimage_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/tiledimage_vector4', mtlx_texture2d_tiledimage_vector4); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_float +// +function mtlx_texture3d_triplanarprojection_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_float_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'float'); + this.addProperty('default', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'triplanarprojection_float'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_texture3d_triplanarprojection_float.nodedef_name = 'ND_triplanarprojection_float'; +mtlx_texture3d_triplanarprojection_float.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_float', mtlx_texture3d_triplanarprojection_float); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_color3 +// +function mtlx_texture3d_triplanarprojection_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color3_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'triplanarprojection_color3'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_texture3d_triplanarprojection_color3.nodedef_name = 'ND_triplanarprojection_color3'; +mtlx_texture3d_triplanarprojection_color3.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color3', mtlx_texture3d_triplanarprojection_color3); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_color4 +// +function mtlx_texture3d_triplanarprojection_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_color4_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'triplanarprojection_color4'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_texture3d_triplanarprojection_color4.nodedef_name = 'ND_triplanarprojection_color4'; +mtlx_texture3d_triplanarprojection_color4.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_color4', mtlx_texture3d_triplanarprojection_color4); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_vector2 +// +function mtlx_texture3d_triplanarprojection_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector2_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector2'); + this.addProperty('default', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'triplanarprojection_vector2'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_texture3d_triplanarprojection_vector2.nodedef_name = 'ND_triplanarprojection_vector2'; +mtlx_texture3d_triplanarprojection_vector2.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector2', mtlx_texture3d_triplanarprojection_vector2); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_vector3 +// +function mtlx_texture3d_triplanarprojection_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector3_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'triplanarprojection_vector3'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_texture3d_triplanarprojection_vector3.nodedef_name = 'ND_triplanarprojection_vector3'; +mtlx_texture3d_triplanarprojection_vector3.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector3', mtlx_texture3d_triplanarprojection_vector3); + +// MaterialX node type: mtlx/texture3d/triplanarprojection_vector4 +// +function mtlx_texture3d_triplanarprojection_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_triplanarprojection_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'triplanarprojection'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_triplanarprojection_vector4_out_genglsl.png'; + this.nodedef_group = 'texture3d'; + this.addInput('filex', 'filename'); + this.addProperty('filex', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filey', 'filename'); + this.addProperty('filey', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filez', 'filename'); + this.addProperty('filez', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerx', 'string'); + this.addProperty('layerx', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layery', 'string'); + this.addProperty('layery', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('layerz', 'string'); + this.addProperty('layerz', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('upaxis', 'integer'); + this.addProperty('upaxis', 2, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('blend', 'float'); + this.addProperty('blend', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('framerange', 'string'); + this.addProperty('framerange', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameoffset', 'integer'); + this.addProperty('frameoffset', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('frameendaction', 'string'); + this.addProperty('frameendaction', 'constant', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'triplanarprojection_vector4'; + this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_texture3d_triplanarprojection_vector4.nodedef_name = 'ND_triplanarprojection_vector4'; +mtlx_texture3d_triplanarprojection_vector4.nodedef_node = 'triplanarprojection'; +mtlx_texture3d_triplanarprojection_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/triplanarprojection.html'; +LiteGraph.registerNodeType('mtlx/texture3d/triplanarprojection_vector4', mtlx_texture3d_triplanarprojection_vector4); + +// MaterialX node type: mtlx/procedural/constant_float +// +function mtlx_procedural_constant_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_float_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'float'); + this.addProperty('value', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'constant_float'; + this.desc = "MaterialX:mtlx/procedural/constant_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural_constant_float.nodedef_name = 'ND_constant_float'; +mtlx_procedural_constant_float.nodedef_node = 'constant'; +mtlx_procedural_constant_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_float', mtlx_procedural_constant_float); + +// MaterialX node type: mtlx/procedural/constant_color3 +// +function mtlx_procedural_constant_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color3_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'color3'); + this.addProperty('value', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'constant_color3'; + this.desc = "MaterialX:mtlx/procedural/constant_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural_constant_color3.nodedef_name = 'ND_constant_color3'; +mtlx_procedural_constant_color3.nodedef_node = 'constant'; +mtlx_procedural_constant_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_color3', mtlx_procedural_constant_color3); + +// MaterialX node type: mtlx/procedural/constant_color4 +// +function mtlx_procedural_constant_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_color4_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'color4'); + this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'constant_color4'; + this.desc = "MaterialX:mtlx/procedural/constant_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural_constant_color4.nodedef_name = 'ND_constant_color4'; +mtlx_procedural_constant_color4.nodedef_node = 'constant'; +mtlx_procedural_constant_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_color4', mtlx_procedural_constant_color4); + +// MaterialX node type: mtlx/procedural/constant_vector2 +// +function mtlx_procedural_constant_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'vector2'); + this.addProperty('value', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'constant_vector2'; + this.desc = "MaterialX:mtlx/procedural/constant_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural_constant_vector2.nodedef_name = 'ND_constant_vector2'; +mtlx_procedural_constant_vector2.nodedef_node = 'constant'; +mtlx_procedural_constant_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_vector2', mtlx_procedural_constant_vector2); + +// MaterialX node type: mtlx/procedural/constant_vector3 +// +function mtlx_procedural_constant_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'vector3'); + this.addProperty('value', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'constant_vector3'; + this.desc = "MaterialX:mtlx/procedural/constant_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural_constant_vector3.nodedef_name = 'ND_constant_vector3'; +mtlx_procedural_constant_vector3.nodedef_node = 'constant'; +mtlx_procedural_constant_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_vector3', mtlx_procedural_constant_vector3); + +// MaterialX node type: mtlx/procedural/constant_vector4 +// +function mtlx_procedural_constant_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'vector4'); + this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'constant_vector4'; + this.desc = "MaterialX:mtlx/procedural/constant_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural_constant_vector4.nodedef_name = 'ND_constant_vector4'; +mtlx_procedural_constant_vector4.nodedef_node = 'constant'; +mtlx_procedural_constant_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_vector4', mtlx_procedural_constant_vector4); + +// MaterialX node type: mtlx/procedural/constant_boolean +// +function mtlx_procedural_constant_boolean() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_boolean'; + this.nodedef_type = 'boolean'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_boolean_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'boolean'); + this.addProperty('value', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'boolean'); + this.title = 'constant_boolean'; + this.desc = "MaterialX:mtlx/procedural/constant_boolean"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#060'; +} +mtlx_procedural_constant_boolean.nodedef_name = 'ND_constant_boolean'; +mtlx_procedural_constant_boolean.nodedef_node = 'constant'; +mtlx_procedural_constant_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_boolean', mtlx_procedural_constant_boolean); + +// MaterialX node type: mtlx/procedural/constant_integer +// +function mtlx_procedural_constant_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_integer_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'integer'); + this.addProperty('value', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'constant_integer'; + this.desc = "MaterialX:mtlx/procedural/constant_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_procedural_constant_integer.nodedef_name = 'ND_constant_integer'; +mtlx_procedural_constant_integer.nodedef_node = 'constant'; +mtlx_procedural_constant_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_integer', mtlx_procedural_constant_integer); + +// MaterialX node type: mtlx/procedural/constant_matrix33 +// +function mtlx_procedural_constant_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix33_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'matrix33'); + this.addProperty('value', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'constant_matrix33'; + this.desc = "MaterialX:mtlx/procedural/constant_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_procedural_constant_matrix33.nodedef_name = 'ND_constant_matrix33'; +mtlx_procedural_constant_matrix33.nodedef_node = 'constant'; +mtlx_procedural_constant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_matrix33', mtlx_procedural_constant_matrix33); + +// MaterialX node type: mtlx/procedural/constant_matrix44 +// +function mtlx_procedural_constant_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_matrix44_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'matrix44'); + this.addProperty('value', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'constant_matrix44'; + this.desc = "MaterialX:mtlx/procedural/constant_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_procedural_constant_matrix44.nodedef_name = 'ND_constant_matrix44'; +mtlx_procedural_constant_matrix44.nodedef_node = 'constant'; +mtlx_procedural_constant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_matrix44', mtlx_procedural_constant_matrix44); + +// MaterialX node type: mtlx/procedural/constant_string +// +function mtlx_procedural_constant_string() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_string'; + this.nodedef_type = 'string'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_string_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'string'); + this.addProperty('value', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'string'); + this.title = 'constant_string'; + this.desc = "MaterialX:mtlx/procedural/constant_string"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#395'; +} +mtlx_procedural_constant_string.nodedef_name = 'ND_constant_string'; +mtlx_procedural_constant_string.nodedef_node = 'constant'; +mtlx_procedural_constant_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_string', mtlx_procedural_constant_string); + +// MaterialX node type: mtlx/procedural/constant_filename +// +function mtlx_procedural_constant_filename() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_constant_filename'; + this.nodedef_type = 'filename'; + this.nodedef_node = 'constant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_constant_filename_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('value', 'filename'); + this.addProperty('value', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'filename'); + this.title = 'constant_filename'; + this.desc = "MaterialX:mtlx/procedural/constant_filename"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#888'; +} +mtlx_procedural_constant_filename.nodedef_name = 'ND_constant_filename'; +mtlx_procedural_constant_filename.nodedef_node = 'constant'; +mtlx_procedural_constant_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/constant.html'; +LiteGraph.registerNodeType('mtlx/procedural/constant_filename', mtlx_procedural_constant_filename); + +// MaterialX node type: mtlx/procedural2d/ramplr_float +// +function mtlx_procedural2d_ramplr_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'float'); + this.addProperty('valuel', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'float'); + this.addProperty('valuer', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ramplr_float'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_ramplr_float.nodedef_name = 'ND_ramplr_float'; +mtlx_procedural2d_ramplr_float.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_float', mtlx_procedural2d_ramplr_float); + +// MaterialX node type: mtlx/procedural2d/ramplr_color3 +// +function mtlx_procedural2d_ramplr_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'color3'); + this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'color3'); + this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ramplr_color3'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_ramplr_color3.nodedef_name = 'ND_ramplr_color3'; +mtlx_procedural2d_ramplr_color3.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color3', mtlx_procedural2d_ramplr_color3); + +// MaterialX node type: mtlx/procedural2d/ramplr_color4 +// +function mtlx_procedural2d_ramplr_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'color4'); + this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'color4'); + this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ramplr_color4'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_ramplr_color4.nodedef_name = 'ND_ramplr_color4'; +mtlx_procedural2d_ramplr_color4.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_color4', mtlx_procedural2d_ramplr_color4); + +// MaterialX node type: mtlx/procedural2d/ramplr_vector2 +// +function mtlx_procedural2d_ramplr_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector2'); + this.addProperty('valuel', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector2'); + this.addProperty('valuer', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ramplr_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_ramplr_vector2.nodedef_name = 'ND_ramplr_vector2'; +mtlx_procedural2d_ramplr_vector2.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector2', mtlx_procedural2d_ramplr_vector2); + +// MaterialX node type: mtlx/procedural2d/ramplr_vector3 +// +function mtlx_procedural2d_ramplr_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector3'); + this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector3'); + this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ramplr_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_ramplr_vector3.nodedef_name = 'ND_ramplr_vector3'; +mtlx_procedural2d_ramplr_vector3.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector3', mtlx_procedural2d_ramplr_vector3); + +// MaterialX node type: mtlx/procedural2d/ramplr_vector4 +// +function mtlx_procedural2d_ramplr_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramplr_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ramplr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramplr_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector4'); + this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector4'); + this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ramplr_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_ramplr_vector4.nodedef_name = 'ND_ramplr_vector4'; +mtlx_procedural2d_ramplr_vector4.nodedef_node = 'ramplr'; +mtlx_procedural2d_ramplr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramplr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramplr_vector4', mtlx_procedural2d_ramplr_vector4); + +// MaterialX node type: mtlx/procedural2d/ramptb_float +// +function mtlx_procedural2d_ramptb_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'float'); + this.addProperty('valuet', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'float'); + this.addProperty('valueb', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ramptb_float'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_ramptb_float.nodedef_name = 'ND_ramptb_float'; +mtlx_procedural2d_ramptb_float.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_float', mtlx_procedural2d_ramptb_float); + +// MaterialX node type: mtlx/procedural2d/ramptb_color3 +// +function mtlx_procedural2d_ramptb_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'color3'); + this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'color3'); + this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ramptb_color3'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_ramptb_color3.nodedef_name = 'ND_ramptb_color3'; +mtlx_procedural2d_ramptb_color3.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color3', mtlx_procedural2d_ramptb_color3); + +// MaterialX node type: mtlx/procedural2d/ramptb_color4 +// +function mtlx_procedural2d_ramptb_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'color4'); + this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'color4'); + this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ramptb_color4'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_ramptb_color4.nodedef_name = 'ND_ramptb_color4'; +mtlx_procedural2d_ramptb_color4.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_color4', mtlx_procedural2d_ramptb_color4); + +// MaterialX node type: mtlx/procedural2d/ramptb_vector2 +// +function mtlx_procedural2d_ramptb_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector2'); + this.addProperty('valuet', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector2'); + this.addProperty('valueb', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ramptb_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_ramptb_vector2.nodedef_name = 'ND_ramptb_vector2'; +mtlx_procedural2d_ramptb_vector2.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector2', mtlx_procedural2d_ramptb_vector2); + +// MaterialX node type: mtlx/procedural2d/ramptb_vector3 +// +function mtlx_procedural2d_ramptb_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector3'); + this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector3'); + this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ramptb_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_ramptb_vector3.nodedef_name = 'ND_ramptb_vector3'; +mtlx_procedural2d_ramptb_vector3.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector3', mtlx_procedural2d_ramptb_vector3); + +// MaterialX node type: mtlx/procedural2d/ramptb_vector4 +// +function mtlx_procedural2d_ramptb_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramptb_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ramptb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramptb_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector4'); + this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector4'); + this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ramptb_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_ramptb_vector4.nodedef_name = 'ND_ramptb_vector4'; +mtlx_procedural2d_ramptb_vector4.nodedef_node = 'ramptb'; +mtlx_procedural2d_ramptb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramptb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramptb_vector4', mtlx_procedural2d_ramptb_vector4); + +// MaterialX node type: mtlx/procedural2d/ramp4_float +// +function mtlx_procedural2d_ramp4_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'float'); + this.addProperty('valuetl', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'float'); + this.addProperty('valuetr', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'float'); + this.addProperty('valuebl', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'float'); + this.addProperty('valuebr', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ramp4_float'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_ramp4_float.nodedef_name = 'ND_ramp4_float'; +mtlx_procedural2d_ramp4_float.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_float', mtlx_procedural2d_ramp4_float); + +// MaterialX node type: mtlx/procedural2d/ramp4_color3 +// +function mtlx_procedural2d_ramp4_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'color3'); + this.addProperty('valuetl', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'color3'); + this.addProperty('valuetr', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'color3'); + this.addProperty('valuebl', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'color3'); + this.addProperty('valuebr', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ramp4_color3'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_ramp4_color3.nodedef_name = 'ND_ramp4_color3'; +mtlx_procedural2d_ramp4_color3.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color3', mtlx_procedural2d_ramp4_color3); + +// MaterialX node type: mtlx/procedural2d/ramp4_color4 +// +function mtlx_procedural2d_ramp4_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'color4'); + this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'color4'); + this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'color4'); + this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'color4'); + this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ramp4_color4'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_ramp4_color4.nodedef_name = 'ND_ramp4_color4'; +mtlx_procedural2d_ramp4_color4.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_color4', mtlx_procedural2d_ramp4_color4); + +// MaterialX node type: mtlx/procedural2d/ramp4_vector2 +// +function mtlx_procedural2d_ramp4_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'vector2'); + this.addProperty('valuetl', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'vector2'); + this.addProperty('valuetr', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'vector2'); + this.addProperty('valuebl', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'vector2'); + this.addProperty('valuebr', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ramp4_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_ramp4_vector2.nodedef_name = 'ND_ramp4_vector2'; +mtlx_procedural2d_ramp4_vector2.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector2', mtlx_procedural2d_ramp4_vector2); + +// MaterialX node type: mtlx/procedural2d/ramp4_vector3 +// +function mtlx_procedural2d_ramp4_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'vector3'); + this.addProperty('valuetl', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'vector3'); + this.addProperty('valuetr', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'vector3'); + this.addProperty('valuebl', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'vector3'); + this.addProperty('valuebr', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ramp4_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_ramp4_vector3.nodedef_name = 'ND_ramp4_vector3'; +mtlx_procedural2d_ramp4_vector3.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector3', mtlx_procedural2d_ramp4_vector3); + +// MaterialX node type: mtlx/procedural2d/ramp4_vector4 +// +function mtlx_procedural2d_ramp4_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ramp4_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ramp4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ramp4_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuetl', 'vector4'); + this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuetr', 'vector4'); + this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebl', 'vector4'); + this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuebr', 'vector4'); + this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ramp4_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_ramp4_vector4.nodedef_name = 'ND_ramp4_vector4'; +mtlx_procedural2d_ramp4_vector4.nodedef_node = 'ramp4'; +mtlx_procedural2d_ramp4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ramp4.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/ramp4_vector4', mtlx_procedural2d_ramp4_vector4); + +// MaterialX node type: mtlx/procedural2d/splitlr_float +// +function mtlx_procedural2d_splitlr_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'float'); + this.addProperty('valuel', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'float'); + this.addProperty('valuer', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'splitlr_float'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_splitlr_float.nodedef_name = 'ND_splitlr_float'; +mtlx_procedural2d_splitlr_float.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_float', mtlx_procedural2d_splitlr_float); + +// MaterialX node type: mtlx/procedural2d/splitlr_color3 +// +function mtlx_procedural2d_splitlr_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'color3'); + this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'color3'); + this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'splitlr_color3'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_splitlr_color3.nodedef_name = 'ND_splitlr_color3'; +mtlx_procedural2d_splitlr_color3.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color3', mtlx_procedural2d_splitlr_color3); + +// MaterialX node type: mtlx/procedural2d/splitlr_color4 +// +function mtlx_procedural2d_splitlr_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'color4'); + this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'color4'); + this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'splitlr_color4'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_splitlr_color4.nodedef_name = 'ND_splitlr_color4'; +mtlx_procedural2d_splitlr_color4.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_color4', mtlx_procedural2d_splitlr_color4); + +// MaterialX node type: mtlx/procedural2d/splitlr_vector2 +// +function mtlx_procedural2d_splitlr_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector2'); + this.addProperty('valuel', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector2'); + this.addProperty('valuer', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'splitlr_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_splitlr_vector2.nodedef_name = 'ND_splitlr_vector2'; +mtlx_procedural2d_splitlr_vector2.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector2', mtlx_procedural2d_splitlr_vector2); + +// MaterialX node type: mtlx/procedural2d/splitlr_vector3 +// +function mtlx_procedural2d_splitlr_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector3'); + this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector3'); + this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'splitlr_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_splitlr_vector3.nodedef_name = 'ND_splitlr_vector3'; +mtlx_procedural2d_splitlr_vector3.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector3', mtlx_procedural2d_splitlr_vector3); + +// MaterialX node type: mtlx/procedural2d/splitlr_vector4 +// +function mtlx_procedural2d_splitlr_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splitlr_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'splitlr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splitlr_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuel', 'vector4'); + this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Left", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valuer', 'vector4'); + this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Right", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'splitlr_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_splitlr_vector4.nodedef_name = 'ND_splitlr_vector4'; +mtlx_procedural2d_splitlr_vector4.nodedef_node = 'splitlr'; +mtlx_procedural2d_splitlr_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splitlr.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splitlr_vector4', mtlx_procedural2d_splitlr_vector4); + +// MaterialX node type: mtlx/procedural2d/splittb_float +// +function mtlx_procedural2d_splittb_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'float'); + this.addProperty('valuet', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'float'); + this.addProperty('valueb', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'splittb_float'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_splittb_float.nodedef_name = 'ND_splittb_float'; +mtlx_procedural2d_splittb_float.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_float', mtlx_procedural2d_splittb_float); + +// MaterialX node type: mtlx/procedural2d/splittb_color3 +// +function mtlx_procedural2d_splittb_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'color3'); + this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'color3'); + this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'splittb_color3'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_splittb_color3.nodedef_name = 'ND_splittb_color3'; +mtlx_procedural2d_splittb_color3.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color3', mtlx_procedural2d_splittb_color3); + +// MaterialX node type: mtlx/procedural2d/splittb_color4 +// +function mtlx_procedural2d_splittb_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'color4'); + this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'color4'); + this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'splittb_color4'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_splittb_color4.nodedef_name = 'ND_splittb_color4'; +mtlx_procedural2d_splittb_color4.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_color4', mtlx_procedural2d_splittb_color4); + +// MaterialX node type: mtlx/procedural2d/splittb_vector2 +// +function mtlx_procedural2d_splittb_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector2'); + this.addProperty('valuet', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector2'); + this.addProperty('valueb', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'splittb_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_splittb_vector2.nodedef_name = 'ND_splittb_vector2'; +mtlx_procedural2d_splittb_vector2.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector2', mtlx_procedural2d_splittb_vector2); + +// MaterialX node type: mtlx/procedural2d/splittb_vector3 +// +function mtlx_procedural2d_splittb_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector3'); + this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector3'); + this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'splittb_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_splittb_vector3.nodedef_name = 'ND_splittb_vector3'; +mtlx_procedural2d_splittb_vector3.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector3', mtlx_procedural2d_splittb_vector3); + +// MaterialX node type: mtlx/procedural2d/splittb_vector4 +// +function mtlx_procedural2d_splittb_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_splittb_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'splittb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_splittb_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('valuet', 'vector4'); + this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('valueb', 'vector4'); + this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bottom", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'float'); + this.addProperty('center', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Center", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'splittb_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/splittb_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_splittb_vector4.nodedef_name = 'ND_splittb_vector4'; +mtlx_procedural2d_splittb_vector4.nodedef_node = 'splittb'; +mtlx_procedural2d_splittb_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/splittb.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/splittb_vector4', mtlx_procedural2d_splittb_vector4); + +// MaterialX node type: mtlx/procedural2d/noise2d_float +// +function mtlx_procedural2d_noise2d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'noise2d_float'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_noise2d_float.nodedef_name = 'ND_noise2d_float'; +mtlx_procedural2d_noise2d_float.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_float', mtlx_procedural2d_noise2d_float); + +// MaterialX node type: mtlx/procedural2d/noise2d_color3 +// +function mtlx_procedural2d_noise2d_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'noise2d_color3'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_noise2d_color3.nodedef_name = 'ND_noise2d_color3'; +mtlx_procedural2d_noise2d_color3.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3', mtlx_procedural2d_noise2d_color3); + +// MaterialX node type: mtlx/procedural2d/noise2d_color4 +// +function mtlx_procedural2d_noise2d_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'noise2d_color4'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_noise2d_color4.nodedef_name = 'ND_noise2d_color4'; +mtlx_procedural2d_noise2d_color4.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4', mtlx_procedural2d_noise2d_color4); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector2 +// +function mtlx_procedural2d_noise2d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'vector2'); + this.addProperty('amplitude', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'noise2d_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_noise2d_vector2.nodedef_name = 'ND_noise2d_vector2'; +mtlx_procedural2d_noise2d_vector2.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2', mtlx_procedural2d_noise2d_vector2); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector3 +// +function mtlx_procedural2d_noise2d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'noise2d_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_noise2d_vector3.nodedef_name = 'ND_noise2d_vector3'; +mtlx_procedural2d_noise2d_vector3.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3', mtlx_procedural2d_noise2d_vector3); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector4 +// +function mtlx_procedural2d_noise2d_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'noise2d_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_noise2d_vector4.nodedef_name = 'ND_noise2d_vector4'; +mtlx_procedural2d_noise2d_vector4.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4', mtlx_procedural2d_noise2d_vector4); + +// MaterialX node type: mtlx/procedural2d/noise2d_color3FA +// +function mtlx_procedural2d_noise2d_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color3FA_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'noise2d_color3'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_noise2d_color3FA.nodedef_name = 'ND_noise2d_color3FA'; +mtlx_procedural2d_noise2d_color3FA.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color3FA', mtlx_procedural2d_noise2d_color3FA); + +// MaterialX node type: mtlx/procedural2d/noise2d_color4FA +// +function mtlx_procedural2d_noise2d_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_color4FA_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'noise2d_color4'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural2d_noise2d_color4FA.nodedef_name = 'ND_noise2d_color4FA'; +mtlx_procedural2d_noise2d_color4FA.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_color4FA', mtlx_procedural2d_noise2d_color4FA); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector2FA +// +function mtlx_procedural2d_noise2d_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector2FA_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'noise2d_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_noise2d_vector2FA.nodedef_name = 'ND_noise2d_vector2FA'; +mtlx_procedural2d_noise2d_vector2FA.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector2FA', mtlx_procedural2d_noise2d_vector2FA); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector3FA +// +function mtlx_procedural2d_noise2d_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector3FA_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'noise2d_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_noise2d_vector3FA.nodedef_name = 'ND_noise2d_vector3FA'; +mtlx_procedural2d_noise2d_vector3FA.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector3FA', mtlx_procedural2d_noise2d_vector3FA); + +// MaterialX node type: mtlx/procedural2d/noise2d_vector4FA +// +function mtlx_procedural2d_noise2d_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise2d_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'noise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise2d_vector4FA_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'noise2d_vector4'; + this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural2d_noise2d_vector4FA.nodedef_name = 'ND_noise2d_vector4FA'; +mtlx_procedural2d_noise2d_vector4FA.nodedef_node = 'noise2d'; +mtlx_procedural2d_noise2d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/noise2d_vector4FA', mtlx_procedural2d_noise2d_vector4FA); + +// MaterialX node type: mtlx/procedural3d/noise3d_float +// +function mtlx_procedural3d_noise3d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'noise3d_float'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural3d_noise3d_float.nodedef_name = 'ND_noise3d_float'; +mtlx_procedural3d_noise3d_float.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_float', mtlx_procedural3d_noise3d_float); + +// MaterialX node type: mtlx/procedural3d/noise3d_color3 +// +function mtlx_procedural3d_noise3d_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'noise3d_color3'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_noise3d_color3.nodedef_name = 'ND_noise3d_color3'; +mtlx_procedural3d_noise3d_color3.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3', mtlx_procedural3d_noise3d_color3); + +// MaterialX node type: mtlx/procedural3d/noise3d_color4 +// +function mtlx_procedural3d_noise3d_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'noise3d_color4'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural3d_noise3d_color4.nodedef_name = 'ND_noise3d_color4'; +mtlx_procedural3d_noise3d_color4.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4', mtlx_procedural3d_noise3d_color4); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector2 +// +function mtlx_procedural3d_noise3d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector2'); + this.addProperty('amplitude', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'noise3d_vector2'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural3d_noise3d_vector2.nodedef_name = 'ND_noise3d_vector2'; +mtlx_procedural3d_noise3d_vector2.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2', mtlx_procedural3d_noise3d_vector2); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector3 +// +function mtlx_procedural3d_noise3d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'noise3d_vector3'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural3d_noise3d_vector3.nodedef_name = 'ND_noise3d_vector3'; +mtlx_procedural3d_noise3d_vector3.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3', mtlx_procedural3d_noise3d_vector3); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector4 +// +function mtlx_procedural3d_noise3d_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'noise3d_vector4'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural3d_noise3d_vector4.nodedef_name = 'ND_noise3d_vector4'; +mtlx_procedural3d_noise3d_vector4.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4', mtlx_procedural3d_noise3d_vector4); + +// MaterialX node type: mtlx/procedural3d/noise3d_color3FA +// +function mtlx_procedural3d_noise3d_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color3FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'noise3d_color3'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_noise3d_color3FA.nodedef_name = 'ND_noise3d_color3FA'; +mtlx_procedural3d_noise3d_color3FA.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color3FA', mtlx_procedural3d_noise3d_color3FA); + +// MaterialX node type: mtlx/procedural3d/noise3d_color4FA +// +function mtlx_procedural3d_noise3d_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_color4FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'noise3d_color4'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural3d_noise3d_color4FA.nodedef_name = 'ND_noise3d_color4FA'; +mtlx_procedural3d_noise3d_color4FA.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_color4FA', mtlx_procedural3d_noise3d_color4FA); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector2FA +// +function mtlx_procedural3d_noise3d_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector2FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'noise3d_vector2'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural3d_noise3d_vector2FA.nodedef_name = 'ND_noise3d_vector2FA'; +mtlx_procedural3d_noise3d_vector2FA.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector2FA', mtlx_procedural3d_noise3d_vector2FA); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector3FA +// +function mtlx_procedural3d_noise3d_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector3FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'noise3d_vector3'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural3d_noise3d_vector3FA.nodedef_name = 'ND_noise3d_vector3FA'; +mtlx_procedural3d_noise3d_vector3FA.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector3FA', mtlx_procedural3d_noise3d_vector3FA); + +// MaterialX node type: mtlx/procedural3d/noise3d_vector4FA +// +function mtlx_procedural3d_noise3d_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_noise3d_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'noise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_noise3d_vector4FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'noise3d_vector4'; + this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural3d_noise3d_vector4FA.nodedef_name = 'ND_noise3d_vector4FA'; +mtlx_procedural3d_noise3d_vector4FA.nodedef_node = 'noise3d'; +mtlx_procedural3d_noise3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/noise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/noise3d_vector4FA', mtlx_procedural3d_noise3d_vector4FA); + +// MaterialX node type: mtlx/procedural3d/fractal3d_float +// +function mtlx_procedural3d_fractal3d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'fractal3d_float'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural3d_fractal3d_float.nodedef_name = 'ND_fractal3d_float'; +mtlx_procedural3d_fractal3d_float.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_float', mtlx_procedural3d_fractal3d_float); + +// MaterialX node type: mtlx/procedural3d/fractal3d_color3 +// +function mtlx_procedural3d_fractal3d_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'fractal3d_color3'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_fractal3d_color3.nodedef_name = 'ND_fractal3d_color3'; +mtlx_procedural3d_fractal3d_color3.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3', mtlx_procedural3d_fractal3d_color3); + +// MaterialX node type: mtlx/procedural3d/fractal3d_color4 +// +function mtlx_procedural3d_fractal3d_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'fractal3d_color4'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural3d_fractal3d_color4.nodedef_name = 'ND_fractal3d_color4'; +mtlx_procedural3d_fractal3d_color4.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4', mtlx_procedural3d_fractal3d_color4); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector2 +// +function mtlx_procedural3d_fractal3d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector2'); + this.addProperty('amplitude', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'fractal3d_vector2'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural3d_fractal3d_vector2.nodedef_name = 'ND_fractal3d_vector2'; +mtlx_procedural3d_fractal3d_vector2.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2', mtlx_procedural3d_fractal3d_vector2); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector3 +// +function mtlx_procedural3d_fractal3d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector3'); + this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'fractal3d_vector3'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural3d_fractal3d_vector3.nodedef_name = 'ND_fractal3d_vector3'; +mtlx_procedural3d_fractal3d_vector3.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3', mtlx_procedural3d_fractal3d_vector3); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector4 +// +function mtlx_procedural3d_fractal3d_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'vector4'); + this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'fractal3d_vector4'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural3d_fractal3d_vector4.nodedef_name = 'ND_fractal3d_vector4'; +mtlx_procedural3d_fractal3d_vector4.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4', mtlx_procedural3d_fractal3d_vector4); + +// MaterialX node type: mtlx/procedural3d/fractal3d_color3FA +// +function mtlx_procedural3d_fractal3d_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color3FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'fractal3d_color3'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_fractal3d_color3FA.nodedef_name = 'ND_fractal3d_color3FA'; +mtlx_procedural3d_fractal3d_color3FA.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color3FA', mtlx_procedural3d_fractal3d_color3FA); + +// MaterialX node type: mtlx/procedural3d/fractal3d_color4FA +// +function mtlx_procedural3d_fractal3d_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_color4FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'fractal3d_color4'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_procedural3d_fractal3d_color4FA.nodedef_name = 'ND_fractal3d_color4FA'; +mtlx_procedural3d_fractal3d_color4FA.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_color4FA', mtlx_procedural3d_fractal3d_color4FA); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector2FA +// +function mtlx_procedural3d_fractal3d_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector2FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'fractal3d_vector2'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural3d_fractal3d_vector2FA.nodedef_name = 'ND_fractal3d_vector2FA'; +mtlx_procedural3d_fractal3d_vector2FA.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector2FA', mtlx_procedural3d_fractal3d_vector2FA); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector3FA +// +function mtlx_procedural3d_fractal3d_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector3FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'fractal3d_vector3'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural3d_fractal3d_vector3FA.nodedef_name = 'ND_fractal3d_vector3FA'; +mtlx_procedural3d_fractal3d_vector3FA.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector3FA', mtlx_procedural3d_fractal3d_vector3FA); + +// MaterialX node type: mtlx/procedural3d/fractal3d_vector4FA +// +function mtlx_procedural3d_fractal3d_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_fractal3d_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'fractal3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_fractal3d_vector4FA_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('amplitude', 'float'); + this.addProperty('amplitude', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'fractal3d_vector4'; + this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_procedural3d_fractal3d_vector4FA.nodedef_name = 'ND_fractal3d_vector4FA'; +mtlx_procedural3d_fractal3d_vector4FA.nodedef_node = 'fractal3d'; +mtlx_procedural3d_fractal3d_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/fractal3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/fractal3d_vector4FA', mtlx_procedural3d_fractal3d_vector4FA); + +// MaterialX node type: mtlx/procedural2d/cellnoise2d_float +// +function mtlx_procedural2d_cellnoise2d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cellnoise2d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'cellnoise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise2d_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'cellnoise2d_float'; + this.desc = "MaterialX:mtlx/procedural2d/cellnoise2d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_cellnoise2d_float.nodedef_name = 'ND_cellnoise2d_float'; +mtlx_procedural2d_cellnoise2d_float.nodedef_node = 'cellnoise2d'; +mtlx_procedural2d_cellnoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/cellnoise2d_float', mtlx_procedural2d_cellnoise2d_float); + +// MaterialX node type: mtlx/procedural3d/cellnoise3d_float +// +function mtlx_procedural3d_cellnoise3d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cellnoise3d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'cellnoise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cellnoise3d_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'cellnoise3d_float'; + this.desc = "MaterialX:mtlx/procedural3d/cellnoise3d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural3d_cellnoise3d_float.nodedef_name = 'ND_cellnoise3d_float'; +mtlx_procedural3d_cellnoise3d_float.nodedef_node = 'cellnoise3d'; +mtlx_procedural3d_cellnoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cellnoise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/cellnoise3d_float', mtlx_procedural3d_cellnoise3d_float); + +// MaterialX node type: mtlx/procedural2d/worleynoise2d_float +// +function mtlx_procedural2d_worleynoise2d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise2d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'worleynoise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'worleynoise2d_float'; + this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_worleynoise2d_float.nodedef_name = 'ND_worleynoise2d_float'; +mtlx_procedural2d_worleynoise2d_float.nodedef_node = 'worleynoise2d'; +mtlx_procedural2d_worleynoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_float', mtlx_procedural2d_worleynoise2d_float); + +// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector2 +// +function mtlx_procedural2d_worleynoise2d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise2d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'worleynoise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'worleynoise2d_vector2'; + this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural2d_worleynoise2d_vector2.nodedef_name = 'ND_worleynoise2d_vector2'; +mtlx_procedural2d_worleynoise2d_vector2.nodedef_node = 'worleynoise2d'; +mtlx_procedural2d_worleynoise2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector2', mtlx_procedural2d_worleynoise2d_vector2); + +// MaterialX node type: mtlx/procedural2d/worleynoise2d_vector3 +// +function mtlx_procedural2d_worleynoise2d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise2d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'worleynoise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise2d_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'worleynoise2d_vector3'; + this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural2d_worleynoise2d_vector3.nodedef_name = 'ND_worleynoise2d_vector3'; +mtlx_procedural2d_worleynoise2d_vector3.nodedef_node = 'worleynoise2d'; +mtlx_procedural2d_worleynoise2d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/worleynoise2d_vector3', mtlx_procedural2d_worleynoise2d_vector3); + +// MaterialX node type: mtlx/procedural3d/worleynoise3d_float +// +function mtlx_procedural3d_worleynoise3d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise3d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'worleynoise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'worleynoise3d_float'; + this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural3d_worleynoise3d_float.nodedef_name = 'ND_worleynoise3d_float'; +mtlx_procedural3d_worleynoise3d_float.nodedef_node = 'worleynoise3d'; +mtlx_procedural3d_worleynoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_float', mtlx_procedural3d_worleynoise3d_float); + +// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector2 +// +function mtlx_procedural3d_worleynoise3d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise3d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'worleynoise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector2_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'worleynoise3d_vector2'; + this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_procedural3d_worleynoise3d_vector2.nodedef_name = 'ND_worleynoise3d_vector2'; +mtlx_procedural3d_worleynoise3d_vector2.nodedef_node = 'worleynoise3d'; +mtlx_procedural3d_worleynoise3d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector2', mtlx_procedural3d_worleynoise3d_vector2); + +// MaterialX node type: mtlx/procedural3d/worleynoise3d_vector3 +// +function mtlx_procedural3d_worleynoise3d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_worleynoise3d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'worleynoise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_worleynoise3d_vector3_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'worleynoise3d_vector3'; + this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_procedural3d_worleynoise3d_vector3.nodedef_name = 'ND_worleynoise3d_vector3'; +mtlx_procedural3d_worleynoise3d_vector3.nodedef_node = 'worleynoise3d'; +mtlx_procedural3d_worleynoise3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/worleynoise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/worleynoise3d_vector3', mtlx_procedural3d_worleynoise3d_vector3); + +// MaterialX node type: mtlx/procedural2d/unifiednoise2d_float +// +function mtlx_procedural2d_unifiednoise2d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_unifiednoise2d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'unifiednoise2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise2d_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('freq', 'vector2'); + this.addProperty('freq', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frequency", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Offset", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Jitter", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('outmin', 'float'); + this.addProperty('outmin', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Output Min", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('outmax', 'float'); + this.addProperty('outmax', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Output Max", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('clampoutput', 'boolean'); + this.addProperty('clampoutput', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Clamp Output", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Octaves", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lacunarity", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Diminish", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('type', 'integer'); + this.addProperty('type', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Noise Type", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addOutput('out', 'float'); + this.title = 'unifiednoise2d_float'; + this.desc = "MaterialX:mtlx/procedural2d/unifiednoise2d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_unifiednoise2d_float.nodedef_name = 'ND_unifiednoise2d_float'; +mtlx_procedural2d_unifiednoise2d_float.nodedef_node = 'unifiednoise2d'; +mtlx_procedural2d_unifiednoise2d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise2d.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/unifiednoise2d_float', mtlx_procedural2d_unifiednoise2d_float); + +// MaterialX node type: mtlx/procedural3d/unifiednoise3d_float +// +function mtlx_procedural3d_unifiednoise3d_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_unifiednoise3d_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'unifiednoise3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unifiednoise3d_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('position', 'vector3'); + this.addProperty('position', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('freq', 'vector3'); + this.addProperty('freq', [1, 1, 1], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Frequency", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('offset', 'vector3'); + this.addProperty('offset', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Offset", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('jitter', 'float'); + this.addProperty('jitter', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Jitter", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addInput('outmin', 'float'); + this.addProperty('outmin', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Output Min", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('outmax', 'float'); + this.addProperty('outmax', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Output Max", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('clampoutput', 'boolean'); + this.addProperty('clampoutput', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Clamp Output", "uimin": null, "uimax": null, "uifolder": "Post Process" }); + this.addInput('octaves', 'integer'); + this.addProperty('octaves', 3, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Octaves", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('lacunarity', 'float'); + this.addProperty('lacunarity', 2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lacunarity", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('diminish', 'float'); + this.addProperty('diminish', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Diminish", "uimin": null, "uimax": null, "uifolder": "Fractal" }); + this.addInput('type', 'integer'); + this.addProperty('type', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Noise Type", "uimin": null, "uimax": null, "uifolder": "Common" }); + this.addOutput('out', 'float'); + this.title = 'unifiednoise3d_float'; + this.desc = "MaterialX:mtlx/procedural3d/unifiednoise3d_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural3d_unifiednoise3d_float.nodedef_name = 'ND_unifiednoise3d_float'; +mtlx_procedural3d_unifiednoise3d_float.nodedef_node = 'unifiednoise3d'; +mtlx_procedural3d_unifiednoise3d_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unifiednoise3d.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/unifiednoise3d_float', mtlx_procedural3d_unifiednoise3d_float); + +// MaterialX node type: mtlx/procedural/randomfloat_float +// +function mtlx_procedural_randomfloat_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_randomfloat_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'randomfloat'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_float_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('min', 'float'); + this.addProperty('min', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Minimum", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('max', 'float'); + this.addProperty('max', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Maximum", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('seed', 'integer'); + this.addProperty('seed', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Seed", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'randomfloat_float'; + this.desc = "MaterialX:mtlx/procedural/randomfloat_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural_randomfloat_float.nodedef_name = 'ND_randomfloat_float'; +mtlx_procedural_randomfloat_float.nodedef_node = 'randomfloat'; +mtlx_procedural_randomfloat_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; +LiteGraph.registerNodeType('mtlx/procedural/randomfloat_float', mtlx_procedural_randomfloat_float); + +// MaterialX node type: mtlx/procedural/randomfloat_integer +// +function mtlx_procedural_randomfloat_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_randomfloat_integer'; + this.nodedef_type = 'float'; + this.nodedef_node = 'randomfloat'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomfloat_integer_out_genglsl.png'; + this.nodedef_group = 'procedural'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('min', 'float'); + this.addProperty('min', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Minimum", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('max', 'float'); + this.addProperty('max', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Maximum", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('seed', 'integer'); + this.addProperty('seed', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Seed", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'randomfloat_float'; + this.desc = "MaterialX:mtlx/procedural/randomfloat_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural_randomfloat_integer.nodedef_name = 'ND_randomfloat_integer'; +mtlx_procedural_randomfloat_integer.nodedef_node = 'randomfloat'; +mtlx_procedural_randomfloat_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomfloat.html'; +LiteGraph.registerNodeType('mtlx/procedural/randomfloat_integer', mtlx_procedural_randomfloat_integer); + +// MaterialX node type: mtlx/procedural3d/randomcolor_float +// +function mtlx_procedural3d_randomcolor_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_randomcolor_float'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'randomcolor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_float_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('huelow', 'float'); + this.addProperty('huelow', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('huehigh', 'float'); + this.addProperty('huehigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturationlow', 'float'); + this.addProperty('saturationlow', 0.825, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturationhigh', 'float'); + this.addProperty('saturationhigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('brightnesslow', 'float'); + this.addProperty('brightnesslow', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Brightness Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('brightnesshigh', 'float'); + this.addProperty('brightnesshigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Brightness High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('seed', 'integer'); + this.addProperty('seed', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Seed", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'randomcolor_color3'; + this.desc = "MaterialX:mtlx/procedural3d/randomcolor_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_randomcolor_float.nodedef_name = 'ND_randomcolor_float'; +mtlx_procedural3d_randomcolor_float.nodedef_node = 'randomcolor'; +mtlx_procedural3d_randomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_float', mtlx_procedural3d_randomcolor_float); + +// MaterialX node type: mtlx/procedural3d/randomcolor_integer +// +function mtlx_procedural3d_randomcolor_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_randomcolor_integer'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'randomcolor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_randomcolor_integer_out_genglsl.png'; + this.nodedef_group = 'procedural3d'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('huelow', 'float'); + this.addProperty('huelow', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('huehigh', 'float'); + this.addProperty('huehigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturationlow', 'float'); + this.addProperty('saturationlow', 0.825, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturationhigh', 'float'); + this.addProperty('saturationhigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('brightnesslow', 'float'); + this.addProperty('brightnesslow', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Brightness Low", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('brightnesshigh', 'float'); + this.addProperty('brightnesshigh', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Brightness High", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('seed', 'integer'); + this.addProperty('seed', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Seed", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'randomcolor_color3'; + this.desc = "MaterialX:mtlx/procedural3d/randomcolor_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural3d_randomcolor_integer.nodedef_name = 'ND_randomcolor_integer'; +mtlx_procedural3d_randomcolor_integer.nodedef_node = 'randomcolor'; +mtlx_procedural3d_randomcolor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/randomcolor.html'; +LiteGraph.registerNodeType('mtlx/procedural3d/randomcolor_integer', mtlx_procedural3d_randomcolor_integer); + +// MaterialX node type: mtlx/procedural2d/checkerboard_color3 +// +function mtlx_procedural2d_checkerboard_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_checkerboard_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'checkerboard'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_checkerboard_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('color1', 'color3'); + this.addProperty('color1', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color 1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color2', 'color3'); + this.addProperty('color2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color 2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [8, 8], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "UV Tiling", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "UV Offset", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Texture Coordinates", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'checkerboard_color3'; + this.desc = "MaterialX:mtlx/procedural2d/checkerboard_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_checkerboard_color3.nodedef_name = 'ND_checkerboard_color3'; +mtlx_procedural2d_checkerboard_color3.nodedef_node = 'checkerboard'; +mtlx_procedural2d_checkerboard_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/checkerboard.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/checkerboard_color3', mtlx_procedural2d_checkerboard_color3); + +// MaterialX node type: mtlx/procedural2d/line_float +// +function mtlx_procedural2d_line_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_line_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'line'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_line_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'vector2'); + this.addProperty('center', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('radius', 'float'); + this.addProperty('radius', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('point1', 'vector2'); + this.addProperty('point1', [0.25, 0.25], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('point2', 'vector2'); + this.addProperty('point2', [0.75, 0.75], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'line_float'; + this.desc = "MaterialX:mtlx/procedural2d/line_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_line_float.nodedef_name = 'ND_line_float'; +mtlx_procedural2d_line_float.nodedef_node = 'line'; +mtlx_procedural2d_line_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/line.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/line_float', mtlx_procedural2d_line_float); + +// MaterialX node type: mtlx/procedural2d/circle_float +// +function mtlx_procedural2d_circle_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_circle_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'circle'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_circle_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'vector2'); + this.addProperty('center', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('radius', 'float'); + this.addProperty('radius', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'circle_float'; + this.desc = "MaterialX:mtlx/procedural2d/circle_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_circle_float.nodedef_name = 'ND_circle_float'; +mtlx_procedural2d_circle_float.nodedef_node = 'circle'; +mtlx_procedural2d_circle_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/circle.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/circle_float', mtlx_procedural2d_circle_float); + +// MaterialX node type: mtlx/procedural2d/cloverleaf_float +// +function mtlx_procedural2d_cloverleaf_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cloverleaf_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'cloverleaf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cloverleaf_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'vector2'); + this.addProperty('center', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('radius', 'float'); + this.addProperty('radius', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'cloverleaf_float'; + this.desc = "MaterialX:mtlx/procedural2d/cloverleaf_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_cloverleaf_float.nodedef_name = 'ND_cloverleaf_float'; +mtlx_procedural2d_cloverleaf_float.nodedef_node = 'cloverleaf'; +mtlx_procedural2d_cloverleaf_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cloverleaf.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/cloverleaf_float', mtlx_procedural2d_cloverleaf_float); + +// MaterialX node type: mtlx/procedural2d/hexagon_float +// +function mtlx_procedural2d_hexagon_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_hexagon_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'hexagon'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hexagon_float_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('center', 'vector2'); + this.addProperty('center', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('radius', 'float'); + this.addProperty('radius', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'hexagon_float'; + this.desc = "MaterialX:mtlx/procedural2d/hexagon_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_procedural2d_hexagon_float.nodedef_name = 'ND_hexagon_float'; +mtlx_procedural2d_hexagon_float.nodedef_node = 'hexagon'; +mtlx_procedural2d_hexagon_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hexagon.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/hexagon_float', mtlx_procedural2d_hexagon_float); + +// MaterialX node type: mtlx/procedural2d/grid_color3 +// +function mtlx_procedural2d_grid_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_grid_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'grid'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_grid_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thickness', 'float'); + this.addProperty('thickness', 0.05, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('staggered', 'boolean'); + this.addProperty('staggered', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'grid_color3'; + this.desc = "MaterialX:mtlx/procedural2d/grid_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_grid_color3.nodedef_name = 'ND_grid_color3'; +mtlx_procedural2d_grid_color3.nodedef_node = 'grid'; +mtlx_procedural2d_grid_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/grid.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/grid_color3', mtlx_procedural2d_grid_color3); + +// MaterialX node type: mtlx/procedural2d/crosshatch_color3 +// +function mtlx_procedural2d_crosshatch_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_crosshatch_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'crosshatch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crosshatch_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thickness', 'float'); + this.addProperty('thickness', 0.05, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('staggered', 'boolean'); + this.addProperty('staggered', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'crosshatch_color3'; + this.desc = "MaterialX:mtlx/procedural2d/crosshatch_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_crosshatch_color3.nodedef_name = 'ND_crosshatch_color3'; +mtlx_procedural2d_crosshatch_color3.nodedef_node = 'crosshatch'; +mtlx_procedural2d_crosshatch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crosshatch.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/crosshatch_color3', mtlx_procedural2d_crosshatch_color3); + +// MaterialX node type: mtlx/procedural2d/tiledcircles_color3 +// +function mtlx_procedural2d_tiledcircles_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledcircles_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'tiledcircles'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcircles_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('staggered', 'boolean'); + this.addProperty('staggered', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'tiledcircles_color3'; + this.desc = "MaterialX:mtlx/procedural2d/tiledcircles_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_tiledcircles_color3.nodedef_name = 'ND_tiledcircles_color3'; +mtlx_procedural2d_tiledcircles_color3.nodedef_node = 'tiledcircles'; +mtlx_procedural2d_tiledcircles_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcircles.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/tiledcircles_color3', mtlx_procedural2d_tiledcircles_color3); + +// MaterialX node type: mtlx/procedural2d/tiledcloverleafs_color3 +// +function mtlx_procedural2d_tiledcloverleafs_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledcloverleafs_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'tiledcloverleafs'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledcloverleafs_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('staggered', 'boolean'); + this.addProperty('staggered', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'tiledcloverleafs_color3'; + this.desc = "MaterialX:mtlx/procedural2d/tiledcloverleafs_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_tiledcloverleafs_color3.nodedef_name = 'ND_tiledcloverleafs_color3'; +mtlx_procedural2d_tiledcloverleafs_color3.nodedef_node = 'tiledcloverleafs'; +mtlx_procedural2d_tiledcloverleafs_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledcloverleafs.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/tiledcloverleafs_color3', mtlx_procedural2d_tiledcloverleafs_color3); + +// MaterialX node type: mtlx/procedural2d/tiledhexagons_color3 +// +function mtlx_procedural2d_tiledhexagons_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tiledhexagons_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'tiledhexagons'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tiledhexagons_color3_out_genglsl.png'; + this.nodedef_group = 'procedural2d'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvtiling', 'vector2'); + this.addProperty('uvtiling', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uvoffset', 'vector2'); + this.addProperty('uvoffset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('staggered', 'boolean'); + this.addProperty('staggered', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'tiledhexagons_color3'; + this.desc = "MaterialX:mtlx/procedural2d/tiledhexagons_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_procedural2d_tiledhexagons_color3.nodedef_name = 'ND_tiledhexagons_color3'; +mtlx_procedural2d_tiledhexagons_color3.nodedef_node = 'tiledhexagons'; +mtlx_procedural2d_tiledhexagons_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tiledhexagons.html'; +LiteGraph.registerNodeType('mtlx/procedural2d/tiledhexagons_color3', mtlx_procedural2d_tiledhexagons_color3); + +// MaterialX node type: mtlx/geometric/position_vector3 +// +function mtlx_geometric_position_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_position_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'position'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_position_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('space', 'string'); + this.addProperty('space', 'object', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'position_vector3'; + this.desc = "MaterialX:mtlx/geometric/position_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_position_vector3.nodedef_name = 'ND_position_vector3'; +mtlx_geometric_position_vector3.nodedef_node = 'position'; +mtlx_geometric_position_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/position.html'; +LiteGraph.registerNodeType('mtlx/geometric/position_vector3', mtlx_geometric_position_vector3); + +// MaterialX node type: mtlx/geometric/normal_vector3 +// +function mtlx_geometric_normal_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normal_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'normal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normal_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('space', 'string'); + this.addProperty('space', 'object', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'normal_vector3'; + this.desc = "MaterialX:mtlx/geometric/normal_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_normal_vector3.nodedef_name = 'ND_normal_vector3'; +mtlx_geometric_normal_vector3.nodedef_node = 'normal'; +mtlx_geometric_normal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normal.html'; +LiteGraph.registerNodeType('mtlx/geometric/normal_vector3', mtlx_geometric_normal_vector3); + +// MaterialX node type: mtlx/geometric/tangent_vector3 +// +function mtlx_geometric_tangent_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tangent_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'tangent'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tangent_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('space', 'string'); + this.addProperty('space', 'object', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'tangent_vector3'; + this.desc = "MaterialX:mtlx/geometric/tangent_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_tangent_vector3.nodedef_name = 'ND_tangent_vector3'; +mtlx_geometric_tangent_vector3.nodedef_node = 'tangent'; +mtlx_geometric_tangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tangent.html'; +LiteGraph.registerNodeType('mtlx/geometric/tangent_vector3', mtlx_geometric_tangent_vector3); + +// MaterialX node type: mtlx/geometric/bitangent_vector3 +// +function mtlx_geometric_bitangent_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_bitangent_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'bitangent'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bitangent_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('space', 'string'); + this.addProperty('space', 'object', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'bitangent_vector3'; + this.desc = "MaterialX:mtlx/geometric/bitangent_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_bitangent_vector3.nodedef_name = 'ND_bitangent_vector3'; +mtlx_geometric_bitangent_vector3.nodedef_node = 'bitangent'; +mtlx_geometric_bitangent_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bitangent.html'; +LiteGraph.registerNodeType('mtlx/geometric/bitangent_vector3', mtlx_geometric_bitangent_vector3); + +// MaterialX node type: mtlx/geometric/texcoord_vector2 +// +function mtlx_geometric_texcoord_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_texcoord_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'texcoord'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector2_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'texcoord_vector2'; + this.desc = "MaterialX:mtlx/geometric/texcoord_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_geometric_texcoord_vector2.nodedef_name = 'ND_texcoord_vector2'; +mtlx_geometric_texcoord_vector2.nodedef_node = 'texcoord'; +mtlx_geometric_texcoord_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; +LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector2', mtlx_geometric_texcoord_vector2); + +// MaterialX node type: mtlx/geometric/texcoord_vector3 +// +function mtlx_geometric_texcoord_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_texcoord_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'texcoord'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_texcoord_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'texcoord_vector3'; + this.desc = "MaterialX:mtlx/geometric/texcoord_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_texcoord_vector3.nodedef_name = 'ND_texcoord_vector3'; +mtlx_geometric_texcoord_vector3.nodedef_node = 'texcoord'; +mtlx_geometric_texcoord_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/texcoord.html'; +LiteGraph.registerNodeType('mtlx/geometric/texcoord_vector3', mtlx_geometric_texcoord_vector3); + +// MaterialX node type: mtlx/geometric/geomcolor_float +// +function mtlx_geometric_geomcolor_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geomcolor_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'geomcolor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_float_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'geomcolor_float'; + this.desc = "MaterialX:mtlx/geometric/geomcolor_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_geometric_geomcolor_float.nodedef_name = 'ND_geomcolor_float'; +mtlx_geometric_geomcolor_float.nodedef_node = 'geomcolor'; +mtlx_geometric_geomcolor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; +LiteGraph.registerNodeType('mtlx/geometric/geomcolor_float', mtlx_geometric_geomcolor_float); + +// MaterialX node type: mtlx/geometric/geomcolor_color3 +// +function mtlx_geometric_geomcolor_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geomcolor_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'geomcolor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'geomcolor_color3'; + this.desc = "MaterialX:mtlx/geometric/geomcolor_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_geometric_geomcolor_color3.nodedef_name = 'ND_geomcolor_color3'; +mtlx_geometric_geomcolor_color3.nodedef_node = 'geomcolor'; +mtlx_geometric_geomcolor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; +LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color3', mtlx_geometric_geomcolor_color3); + +// MaterialX node type: mtlx/geometric/geomcolor_color4 +// +function mtlx_geometric_geomcolor_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geomcolor_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'geomcolor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geomcolor_color4_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'geomcolor_color4'; + this.desc = "MaterialX:mtlx/geometric/geomcolor_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_geometric_geomcolor_color4.nodedef_name = 'ND_geomcolor_color4'; +mtlx_geometric_geomcolor_color4.nodedef_node = 'geomcolor'; +mtlx_geometric_geomcolor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geomcolor.html'; +LiteGraph.registerNodeType('mtlx/geometric/geomcolor_color4', mtlx_geometric_geomcolor_color4); + +// MaterialX node type: mtlx/geometric/geompropvalue_integer +// +function mtlx_geometric_geompropvalue_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_integer_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'integer'); + this.addProperty('default', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'geompropvalue_integer'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_geometric_geompropvalue_integer.nodedef_name = 'ND_geompropvalue_integer'; +mtlx_geometric_geompropvalue_integer.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_integer', mtlx_geometric_geompropvalue_integer); + +// MaterialX node type: mtlx/geometric/geompropvalue_boolean +// +function mtlx_geometric_geompropvalue_boolean() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_boolean'; + this.nodedef_type = 'boolean'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_boolean_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'boolean'); + this.addProperty('default', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'boolean'); + this.title = 'geompropvalue_boolean'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_boolean"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#060'; +} +mtlx_geometric_geompropvalue_boolean.nodedef_name = 'ND_geompropvalue_boolean'; +mtlx_geometric_geompropvalue_boolean.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_boolean', mtlx_geometric_geompropvalue_boolean); + +// MaterialX node type: mtlx/geometric/geompropvalue_string +// +function mtlx_geometric_geompropvalue_string() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_string'; + this.nodedef_type = 'string'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_string_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'string'); + this.addProperty('default', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'string'); + this.title = 'geompropvalue_string'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_string"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#395'; +} +mtlx_geometric_geompropvalue_string.nodedef_name = 'ND_geompropvalue_string'; +mtlx_geometric_geompropvalue_string.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_string', mtlx_geometric_geompropvalue_string); + +// MaterialX node type: mtlx/geometric/geompropvalue_float +// +function mtlx_geometric_geompropvalue_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_float_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'float'); + this.addProperty('default', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'geompropvalue_float'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_geometric_geompropvalue_float.nodedef_name = 'ND_geompropvalue_float'; +mtlx_geometric_geompropvalue_float.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_float', mtlx_geometric_geompropvalue_float); + +// MaterialX node type: mtlx/geometric/geompropvalue_color3 +// +function mtlx_geometric_geompropvalue_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'geompropvalue_color3'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_geometric_geompropvalue_color3.nodedef_name = 'ND_geompropvalue_color3'; +mtlx_geometric_geompropvalue_color3.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color3', mtlx_geometric_geompropvalue_color3); + +// MaterialX node type: mtlx/geometric/geompropvalue_color4 +// +function mtlx_geometric_geompropvalue_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_color4_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'geompropvalue_color4'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_geometric_geompropvalue_color4.nodedef_name = 'ND_geompropvalue_color4'; +mtlx_geometric_geompropvalue_color4.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_color4', mtlx_geometric_geompropvalue_color4); + +// MaterialX node type: mtlx/geometric/geompropvalue_vector2 +// +function mtlx_geometric_geompropvalue_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector2_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector2'); + this.addProperty('default', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'geompropvalue_vector2'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_geometric_geompropvalue_vector2.nodedef_name = 'ND_geompropvalue_vector2'; +mtlx_geometric_geompropvalue_vector2.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector2', mtlx_geometric_geompropvalue_vector2); + +// MaterialX node type: mtlx/geometric/geompropvalue_vector3 +// +function mtlx_geometric_geompropvalue_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'geompropvalue_vector3'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_geompropvalue_vector3.nodedef_name = 'ND_geompropvalue_vector3'; +mtlx_geometric_geompropvalue_vector3.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector3', mtlx_geometric_geompropvalue_vector3); + +// MaterialX node type: mtlx/geometric/geompropvalue_vector4 +// +function mtlx_geometric_geompropvalue_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_geompropvalue_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'geompropvalue'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_geompropvalue_vector4_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('geomprop', 'string'); + this.addProperty('geomprop', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector4'); + this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'geompropvalue_vector4'; + this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_geometric_geompropvalue_vector4.nodedef_name = 'ND_geompropvalue_vector4'; +mtlx_geometric_geompropvalue_vector4.nodedef_node = 'geompropvalue'; +mtlx_geometric_geompropvalue_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/geompropvalue.html'; +LiteGraph.registerNodeType('mtlx/geometric/geompropvalue_vector4', mtlx_geometric_geompropvalue_vector4); + +// MaterialX node type: mtlx/geometric/bump_vector3 +// +function mtlx_geometric_bump_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_bump_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'bump'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_bump_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('height', 'float'); + this.addProperty('height', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Height", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'float'); + this.addProperty('scale', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Scale", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tangent", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'bump_vector3'; + this.desc = "MaterialX:mtlx/geometric/bump_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_bump_vector3.nodedef_name = 'ND_bump_vector3'; +mtlx_geometric_bump_vector3.nodedef_node = 'bump'; +mtlx_geometric_bump_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/bump.html'; +LiteGraph.registerNodeType('mtlx/geometric/bump_vector3', mtlx_geometric_bump_vector3); + +// MaterialX node type: mtlx/global/ambientocclusion_float +// +function mtlx_global_ambientocclusion_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ambientocclusion_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ambientocclusion'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ambientocclusion_float_out_genglsl.png'; + this.nodedef_group = 'global'; + this.addInput('coneangle', 'float'); + this.addProperty('coneangle', 90.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('maxdistance', 'float'); + this.addProperty('maxdistance', 1e38, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ambientocclusion_float'; + this.desc = "MaterialX:mtlx/global/ambientocclusion_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_global_ambientocclusion_float.nodedef_name = 'ND_ambientocclusion_float'; +mtlx_global_ambientocclusion_float.nodedef_node = 'ambientocclusion'; +mtlx_global_ambientocclusion_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ambientocclusion.html'; +LiteGraph.registerNodeType('mtlx/global/ambientocclusion_float', mtlx_global_ambientocclusion_float); + +// MaterialX node type: mtlx/application/frame_float +// +function mtlx_application_frame_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_frame_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'frame'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_frame_float_out_genglsl.png'; + this.nodedef_group = 'application'; + this.addOutput('out', 'float'); + this.title = 'frame_float'; + this.desc = "MaterialX:mtlx/application/frame_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_application_frame_float.nodedef_name = 'ND_frame_float'; +mtlx_application_frame_float.nodedef_node = 'frame'; +mtlx_application_frame_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/frame.html'; +LiteGraph.registerNodeType('mtlx/application/frame_float', mtlx_application_frame_float); + +// MaterialX node type: mtlx/application/time_float +// +function mtlx_application_time_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_time_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'time'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_time_float_out_genglsl.png'; + this.nodedef_group = 'application'; + this.addInput('fps', 'float'); + this.addProperty('fps', 24.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'time_float'; + this.desc = "MaterialX:mtlx/application/time_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_application_time_float.nodedef_name = 'ND_time_float'; +mtlx_application_time_float.nodedef_node = 'time'; +mtlx_application_time_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/time.html'; +LiteGraph.registerNodeType('mtlx/application/time_float', mtlx_application_time_float); + +// MaterialX node type: mtlx/math/add_float +// +function mtlx_math_add_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'add_float'; + this.desc = "MaterialX:mtlx/math/add_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_add_float.nodedef_name = 'ND_add_float'; +mtlx_math_add_float.nodedef_node = 'add'; +mtlx_math_add_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_float', mtlx_math_add_float); + +// MaterialX node type: mtlx/math/add_integer +// +function mtlx_math_add_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_integer_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'add_integer'; + this.desc = "MaterialX:mtlx/math/add_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_math_add_integer.nodedef_name = 'ND_add_integer'; +mtlx_math_add_integer.nodedef_node = 'add'; +mtlx_math_add_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_integer', mtlx_math_add_integer); + +// MaterialX node type: mtlx/math/add_color3 +// +function mtlx_math_add_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'add_color3'; + this.desc = "MaterialX:mtlx/math/add_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_add_color3.nodedef_name = 'ND_add_color3'; +mtlx_math_add_color3.nodedef_node = 'add'; +mtlx_math_add_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_color3', mtlx_math_add_color3); + +// MaterialX node type: mtlx/math/add_color4 +// +function mtlx_math_add_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'add_color4'; + this.desc = "MaterialX:mtlx/math/add_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_add_color4.nodedef_name = 'ND_add_color4'; +mtlx_math_add_color4.nodedef_node = 'add'; +mtlx_math_add_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_color4', mtlx_math_add_color4); + +// MaterialX node type: mtlx/math/add_vector2 +// +function mtlx_math_add_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'add_vector2'; + this.desc = "MaterialX:mtlx/math/add_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_add_vector2.nodedef_name = 'ND_add_vector2'; +mtlx_math_add_vector2.nodedef_node = 'add'; +mtlx_math_add_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector2', mtlx_math_add_vector2); + +// MaterialX node type: mtlx/math/add_vector3 +// +function mtlx_math_add_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'add_vector3'; + this.desc = "MaterialX:mtlx/math/add_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_add_vector3.nodedef_name = 'ND_add_vector3'; +mtlx_math_add_vector3.nodedef_node = 'add'; +mtlx_math_add_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector3', mtlx_math_add_vector3); + +// MaterialX node type: mtlx/math/add_vector4 +// +function mtlx_math_add_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'add_vector4'; + this.desc = "MaterialX:mtlx/math/add_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_add_vector4.nodedef_name = 'ND_add_vector4'; +mtlx_math_add_vector4.nodedef_node = 'add'; +mtlx_math_add_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector4', mtlx_math_add_vector4); + +// MaterialX node type: mtlx/math/add_matrix33 +// +function mtlx_math_add_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'add_matrix33'; + this.desc = "MaterialX:mtlx/math/add_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_add_matrix33.nodedef_name = 'ND_add_matrix33'; +mtlx_math_add_matrix33.nodedef_node = 'add'; +mtlx_math_add_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_matrix33', mtlx_math_add_matrix33); + +// MaterialX node type: mtlx/math/add_matrix44 +// +function mtlx_math_add_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'add_matrix44'; + this.desc = "MaterialX:mtlx/math/add_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_add_matrix44.nodedef_name = 'ND_add_matrix44'; +mtlx_math_add_matrix44.nodedef_node = 'add'; +mtlx_math_add_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_matrix44', mtlx_math_add_matrix44); + +// MaterialX node type: mtlx/math/add_color3FA +// +function mtlx_math_add_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'add_color3'; + this.desc = "MaterialX:mtlx/math/add_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_add_color3FA.nodedef_name = 'ND_add_color3FA'; +mtlx_math_add_color3FA.nodedef_node = 'add'; +mtlx_math_add_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_color3FA', mtlx_math_add_color3FA); + +// MaterialX node type: mtlx/math/add_color4FA +// +function mtlx_math_add_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'add_color4'; + this.desc = "MaterialX:mtlx/math/add_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_add_color4FA.nodedef_name = 'ND_add_color4FA'; +mtlx_math_add_color4FA.nodedef_node = 'add'; +mtlx_math_add_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_color4FA', mtlx_math_add_color4FA); + +// MaterialX node type: mtlx/math/add_vector2FA +// +function mtlx_math_add_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'add_vector2'; + this.desc = "MaterialX:mtlx/math/add_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_add_vector2FA.nodedef_name = 'ND_add_vector2FA'; +mtlx_math_add_vector2FA.nodedef_node = 'add'; +mtlx_math_add_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector2FA', mtlx_math_add_vector2FA); + +// MaterialX node type: mtlx/math/add_vector3FA +// +function mtlx_math_add_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'add_vector3'; + this.desc = "MaterialX:mtlx/math/add_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_add_vector3FA.nodedef_name = 'ND_add_vector3FA'; +mtlx_math_add_vector3FA.nodedef_node = 'add'; +mtlx_math_add_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector3FA', mtlx_math_add_vector3FA); + +// MaterialX node type: mtlx/math/add_vector4FA +// +function mtlx_math_add_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'add_vector4'; + this.desc = "MaterialX:mtlx/math/add_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_add_vector4FA.nodedef_name = 'ND_add_vector4FA'; +mtlx_math_add_vector4FA.nodedef_node = 'add'; +mtlx_math_add_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_vector4FA', mtlx_math_add_vector4FA); + +// MaterialX node type: mtlx/math/add_matrix33FA +// +function mtlx_math_add_matrix33FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_matrix33FA'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix33FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'add_matrix33'; + this.desc = "MaterialX:mtlx/math/add_matrix33FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_add_matrix33FA.nodedef_name = 'ND_add_matrix33FA'; +mtlx_math_add_matrix33FA.nodedef_node = 'add'; +mtlx_math_add_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_matrix33FA', mtlx_math_add_matrix33FA); + +// MaterialX node type: mtlx/math/add_matrix44FA +// +function mtlx_math_add_matrix44FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_matrix44FA'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_matrix44FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'add_matrix44'; + this.desc = "MaterialX:mtlx/math/add_matrix44FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_add_matrix44FA.nodedef_name = 'ND_add_matrix44FA'; +mtlx_math_add_matrix44FA.nodedef_node = 'add'; +mtlx_math_add_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/math/add_matrix44FA', mtlx_math_add_matrix44FA); + +// MaterialX node type: mtlx/math/subtract_float +// +function mtlx_math_subtract_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'subtract_float'; + this.desc = "MaterialX:mtlx/math/subtract_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_subtract_float.nodedef_name = 'ND_subtract_float'; +mtlx_math_subtract_float.nodedef_node = 'subtract'; +mtlx_math_subtract_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_float', mtlx_math_subtract_float); + +// MaterialX node type: mtlx/math/subtract_integer +// +function mtlx_math_subtract_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_integer_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'subtract_integer'; + this.desc = "MaterialX:mtlx/math/subtract_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_math_subtract_integer.nodedef_name = 'ND_subtract_integer'; +mtlx_math_subtract_integer.nodedef_node = 'subtract'; +mtlx_math_subtract_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_integer', mtlx_math_subtract_integer); + +// MaterialX node type: mtlx/math/subtract_color3 +// +function mtlx_math_subtract_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'subtract_color3'; + this.desc = "MaterialX:mtlx/math/subtract_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_subtract_color3.nodedef_name = 'ND_subtract_color3'; +mtlx_math_subtract_color3.nodedef_node = 'subtract'; +mtlx_math_subtract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_color3', mtlx_math_subtract_color3); + +// MaterialX node type: mtlx/math/subtract_color4 +// +function mtlx_math_subtract_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'subtract_color4'; + this.desc = "MaterialX:mtlx/math/subtract_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_subtract_color4.nodedef_name = 'ND_subtract_color4'; +mtlx_math_subtract_color4.nodedef_node = 'subtract'; +mtlx_math_subtract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_color4', mtlx_math_subtract_color4); + +// MaterialX node type: mtlx/math/subtract_vector2 +// +function mtlx_math_subtract_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'subtract_vector2'; + this.desc = "MaterialX:mtlx/math/subtract_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_subtract_vector2.nodedef_name = 'ND_subtract_vector2'; +mtlx_math_subtract_vector2.nodedef_node = 'subtract'; +mtlx_math_subtract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector2', mtlx_math_subtract_vector2); + +// MaterialX node type: mtlx/math/subtract_vector3 +// +function mtlx_math_subtract_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'subtract_vector3'; + this.desc = "MaterialX:mtlx/math/subtract_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_subtract_vector3.nodedef_name = 'ND_subtract_vector3'; +mtlx_math_subtract_vector3.nodedef_node = 'subtract'; +mtlx_math_subtract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector3', mtlx_math_subtract_vector3); + +// MaterialX node type: mtlx/math/subtract_vector4 +// +function mtlx_math_subtract_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'subtract_vector4'; + this.desc = "MaterialX:mtlx/math/subtract_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_subtract_vector4.nodedef_name = 'ND_subtract_vector4'; +mtlx_math_subtract_vector4.nodedef_node = 'subtract'; +mtlx_math_subtract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector4', mtlx_math_subtract_vector4); + +// MaterialX node type: mtlx/math/subtract_matrix33 +// +function mtlx_math_subtract_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'subtract_matrix33'; + this.desc = "MaterialX:mtlx/math/subtract_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_subtract_matrix33.nodedef_name = 'ND_subtract_matrix33'; +mtlx_math_subtract_matrix33.nodedef_node = 'subtract'; +mtlx_math_subtract_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_matrix33', mtlx_math_subtract_matrix33); + +// MaterialX node type: mtlx/math/subtract_matrix44 +// +function mtlx_math_subtract_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'subtract_matrix44'; + this.desc = "MaterialX:mtlx/math/subtract_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_subtract_matrix44.nodedef_name = 'ND_subtract_matrix44'; +mtlx_math_subtract_matrix44.nodedef_node = 'subtract'; +mtlx_math_subtract_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_matrix44', mtlx_math_subtract_matrix44); + +// MaterialX node type: mtlx/math/subtract_color3FA +// +function mtlx_math_subtract_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'subtract_color3'; + this.desc = "MaterialX:mtlx/math/subtract_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_subtract_color3FA.nodedef_name = 'ND_subtract_color3FA'; +mtlx_math_subtract_color3FA.nodedef_node = 'subtract'; +mtlx_math_subtract_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_color3FA', mtlx_math_subtract_color3FA); + +// MaterialX node type: mtlx/math/subtract_color4FA +// +function mtlx_math_subtract_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'subtract_color4'; + this.desc = "MaterialX:mtlx/math/subtract_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_subtract_color4FA.nodedef_name = 'ND_subtract_color4FA'; +mtlx_math_subtract_color4FA.nodedef_node = 'subtract'; +mtlx_math_subtract_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_color4FA', mtlx_math_subtract_color4FA); + +// MaterialX node type: mtlx/math/subtract_vector2FA +// +function mtlx_math_subtract_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'subtract_vector2'; + this.desc = "MaterialX:mtlx/math/subtract_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_subtract_vector2FA.nodedef_name = 'ND_subtract_vector2FA'; +mtlx_math_subtract_vector2FA.nodedef_node = 'subtract'; +mtlx_math_subtract_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector2FA', mtlx_math_subtract_vector2FA); + +// MaterialX node type: mtlx/math/subtract_vector3FA +// +function mtlx_math_subtract_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'subtract_vector3'; + this.desc = "MaterialX:mtlx/math/subtract_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_subtract_vector3FA.nodedef_name = 'ND_subtract_vector3FA'; +mtlx_math_subtract_vector3FA.nodedef_node = 'subtract'; +mtlx_math_subtract_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector3FA', mtlx_math_subtract_vector3FA); + +// MaterialX node type: mtlx/math/subtract_vector4FA +// +function mtlx_math_subtract_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'subtract_vector4'; + this.desc = "MaterialX:mtlx/math/subtract_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_subtract_vector4FA.nodedef_name = 'ND_subtract_vector4FA'; +mtlx_math_subtract_vector4FA.nodedef_node = 'subtract'; +mtlx_math_subtract_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_vector4FA', mtlx_math_subtract_vector4FA); + +// MaterialX node type: mtlx/math/subtract_matrix33FA +// +function mtlx_math_subtract_matrix33FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_matrix33FA'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix33FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'subtract_matrix33'; + this.desc = "MaterialX:mtlx/math/subtract_matrix33FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_subtract_matrix33FA.nodedef_name = 'ND_subtract_matrix33FA'; +mtlx_math_subtract_matrix33FA.nodedef_node = 'subtract'; +mtlx_math_subtract_matrix33FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_matrix33FA', mtlx_math_subtract_matrix33FA); + +// MaterialX node type: mtlx/math/subtract_matrix44FA +// +function mtlx_math_subtract_matrix44FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subtract_matrix44FA'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'subtract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subtract_matrix44FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'subtract_matrix44'; + this.desc = "MaterialX:mtlx/math/subtract_matrix44FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_subtract_matrix44FA.nodedef_name = 'ND_subtract_matrix44FA'; +mtlx_math_subtract_matrix44FA.nodedef_node = 'subtract'; +mtlx_math_subtract_matrix44FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subtract.html'; +LiteGraph.registerNodeType('mtlx/math/subtract_matrix44FA', mtlx_math_subtract_matrix44FA); + +// MaterialX node type: mtlx/math/multiply_float +// +function mtlx_math_multiply_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'multiply_float'; + this.desc = "MaterialX:mtlx/math/multiply_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_multiply_float.nodedef_name = 'ND_multiply_float'; +mtlx_math_multiply_float.nodedef_node = 'multiply'; +mtlx_math_multiply_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_float', mtlx_math_multiply_float); + +// MaterialX node type: mtlx/math/multiply_color3 +// +function mtlx_math_multiply_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'multiply_color3'; + this.desc = "MaterialX:mtlx/math/multiply_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_multiply_color3.nodedef_name = 'ND_multiply_color3'; +mtlx_math_multiply_color3.nodedef_node = 'multiply'; +mtlx_math_multiply_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_color3', mtlx_math_multiply_color3); + +// MaterialX node type: mtlx/math/multiply_color4 +// +function mtlx_math_multiply_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'multiply_color4'; + this.desc = "MaterialX:mtlx/math/multiply_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_multiply_color4.nodedef_name = 'ND_multiply_color4'; +mtlx_math_multiply_color4.nodedef_node = 'multiply'; +mtlx_math_multiply_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_color4', mtlx_math_multiply_color4); + +// MaterialX node type: mtlx/math/multiply_vector2 +// +function mtlx_math_multiply_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'multiply_vector2'; + this.desc = "MaterialX:mtlx/math/multiply_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_multiply_vector2.nodedef_name = 'ND_multiply_vector2'; +mtlx_math_multiply_vector2.nodedef_node = 'multiply'; +mtlx_math_multiply_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector2', mtlx_math_multiply_vector2); + +// MaterialX node type: mtlx/math/multiply_vector3 +// +function mtlx_math_multiply_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'multiply_vector3'; + this.desc = "MaterialX:mtlx/math/multiply_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_multiply_vector3.nodedef_name = 'ND_multiply_vector3'; +mtlx_math_multiply_vector3.nodedef_node = 'multiply'; +mtlx_math_multiply_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector3', mtlx_math_multiply_vector3); + +// MaterialX node type: mtlx/math/multiply_vector4 +// +function mtlx_math_multiply_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'multiply_vector4'; + this.desc = "MaterialX:mtlx/math/multiply_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_multiply_vector4.nodedef_name = 'ND_multiply_vector4'; +mtlx_math_multiply_vector4.nodedef_node = 'multiply'; +mtlx_math_multiply_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector4', mtlx_math_multiply_vector4); + +// MaterialX node type: mtlx/math/multiply_matrix33 +// +function mtlx_math_multiply_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'multiply_matrix33'; + this.desc = "MaterialX:mtlx/math/multiply_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_multiply_matrix33.nodedef_name = 'ND_multiply_matrix33'; +mtlx_math_multiply_matrix33.nodedef_node = 'multiply'; +mtlx_math_multiply_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_matrix33', mtlx_math_multiply_matrix33); + +// MaterialX node type: mtlx/math/multiply_matrix44 +// +function mtlx_math_multiply_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'multiply_matrix44'; + this.desc = "MaterialX:mtlx/math/multiply_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_multiply_matrix44.nodedef_name = 'ND_multiply_matrix44'; +mtlx_math_multiply_matrix44.nodedef_node = 'multiply'; +mtlx_math_multiply_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_matrix44', mtlx_math_multiply_matrix44); + +// MaterialX node type: mtlx/math/multiply_color3FA +// +function mtlx_math_multiply_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'multiply_color3'; + this.desc = "MaterialX:mtlx/math/multiply_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_multiply_color3FA.nodedef_name = 'ND_multiply_color3FA'; +mtlx_math_multiply_color3FA.nodedef_node = 'multiply'; +mtlx_math_multiply_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_color3FA', mtlx_math_multiply_color3FA); + +// MaterialX node type: mtlx/math/multiply_color4FA +// +function mtlx_math_multiply_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'multiply_color4'; + this.desc = "MaterialX:mtlx/math/multiply_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_multiply_color4FA.nodedef_name = 'ND_multiply_color4FA'; +mtlx_math_multiply_color4FA.nodedef_node = 'multiply'; +mtlx_math_multiply_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_color4FA', mtlx_math_multiply_color4FA); + +// MaterialX node type: mtlx/math/multiply_vector2FA +// +function mtlx_math_multiply_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'multiply_vector2'; + this.desc = "MaterialX:mtlx/math/multiply_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_multiply_vector2FA.nodedef_name = 'ND_multiply_vector2FA'; +mtlx_math_multiply_vector2FA.nodedef_node = 'multiply'; +mtlx_math_multiply_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector2FA', mtlx_math_multiply_vector2FA); + +// MaterialX node type: mtlx/math/multiply_vector3FA +// +function mtlx_math_multiply_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'multiply_vector3'; + this.desc = "MaterialX:mtlx/math/multiply_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_multiply_vector3FA.nodedef_name = 'ND_multiply_vector3FA'; +mtlx_math_multiply_vector3FA.nodedef_node = 'multiply'; +mtlx_math_multiply_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector3FA', mtlx_math_multiply_vector3FA); + +// MaterialX node type: mtlx/math/multiply_vector4FA +// +function mtlx_math_multiply_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'multiply_vector4'; + this.desc = "MaterialX:mtlx/math/multiply_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_multiply_vector4FA.nodedef_name = 'ND_multiply_vector4FA'; +mtlx_math_multiply_vector4FA.nodedef_node = 'multiply'; +mtlx_math_multiply_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/math/multiply_vector4FA', mtlx_math_multiply_vector4FA); + +// MaterialX node type: mtlx/math/divide_float +// +function mtlx_math_divide_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'divide_float'; + this.desc = "MaterialX:mtlx/math/divide_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_divide_float.nodedef_name = 'ND_divide_float'; +mtlx_math_divide_float.nodedef_node = 'divide'; +mtlx_math_divide_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_float', mtlx_math_divide_float); + +// MaterialX node type: mtlx/math/divide_color3 +// +function mtlx_math_divide_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'divide_color3'; + this.desc = "MaterialX:mtlx/math/divide_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_divide_color3.nodedef_name = 'ND_divide_color3'; +mtlx_math_divide_color3.nodedef_node = 'divide'; +mtlx_math_divide_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_color3', mtlx_math_divide_color3); + +// MaterialX node type: mtlx/math/divide_color4 +// +function mtlx_math_divide_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'divide_color4'; + this.desc = "MaterialX:mtlx/math/divide_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_divide_color4.nodedef_name = 'ND_divide_color4'; +mtlx_math_divide_color4.nodedef_node = 'divide'; +mtlx_math_divide_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_color4', mtlx_math_divide_color4); + +// MaterialX node type: mtlx/math/divide_vector2 +// +function mtlx_math_divide_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'divide_vector2'; + this.desc = "MaterialX:mtlx/math/divide_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_divide_vector2.nodedef_name = 'ND_divide_vector2'; +mtlx_math_divide_vector2.nodedef_node = 'divide'; +mtlx_math_divide_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector2', mtlx_math_divide_vector2); + +// MaterialX node type: mtlx/math/divide_vector3 +// +function mtlx_math_divide_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'divide_vector3'; + this.desc = "MaterialX:mtlx/math/divide_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_divide_vector3.nodedef_name = 'ND_divide_vector3'; +mtlx_math_divide_vector3.nodedef_node = 'divide'; +mtlx_math_divide_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector3', mtlx_math_divide_vector3); + +// MaterialX node type: mtlx/math/divide_vector4 +// +function mtlx_math_divide_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'divide_vector4'; + this.desc = "MaterialX:mtlx/math/divide_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_divide_vector4.nodedef_name = 'ND_divide_vector4'; +mtlx_math_divide_vector4.nodedef_node = 'divide'; +mtlx_math_divide_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector4', mtlx_math_divide_vector4); + +// MaterialX node type: mtlx/math/divide_matrix33 +// +function mtlx_math_divide_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'divide_matrix33'; + this.desc = "MaterialX:mtlx/math/divide_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_divide_matrix33.nodedef_name = 'ND_divide_matrix33'; +mtlx_math_divide_matrix33.nodedef_node = 'divide'; +mtlx_math_divide_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_matrix33', mtlx_math_divide_matrix33); + +// MaterialX node type: mtlx/math/divide_matrix44 +// +function mtlx_math_divide_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'divide_matrix44'; + this.desc = "MaterialX:mtlx/math/divide_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_divide_matrix44.nodedef_name = 'ND_divide_matrix44'; +mtlx_math_divide_matrix44.nodedef_node = 'divide'; +mtlx_math_divide_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_matrix44', mtlx_math_divide_matrix44); + +// MaterialX node type: mtlx/math/divide_color3FA +// +function mtlx_math_divide_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'divide_color3'; + this.desc = "MaterialX:mtlx/math/divide_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_divide_color3FA.nodedef_name = 'ND_divide_color3FA'; +mtlx_math_divide_color3FA.nodedef_node = 'divide'; +mtlx_math_divide_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_color3FA', mtlx_math_divide_color3FA); + +// MaterialX node type: mtlx/math/divide_color4FA +// +function mtlx_math_divide_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'divide_color4'; + this.desc = "MaterialX:mtlx/math/divide_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_divide_color4FA.nodedef_name = 'ND_divide_color4FA'; +mtlx_math_divide_color4FA.nodedef_node = 'divide'; +mtlx_math_divide_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_color4FA', mtlx_math_divide_color4FA); + +// MaterialX node type: mtlx/math/divide_vector2FA +// +function mtlx_math_divide_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'divide_vector2'; + this.desc = "MaterialX:mtlx/math/divide_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_divide_vector2FA.nodedef_name = 'ND_divide_vector2FA'; +mtlx_math_divide_vector2FA.nodedef_node = 'divide'; +mtlx_math_divide_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector2FA', mtlx_math_divide_vector2FA); + +// MaterialX node type: mtlx/math/divide_vector3FA +// +function mtlx_math_divide_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'divide_vector3'; + this.desc = "MaterialX:mtlx/math/divide_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_divide_vector3FA.nodedef_name = 'ND_divide_vector3FA'; +mtlx_math_divide_vector3FA.nodedef_node = 'divide'; +mtlx_math_divide_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector3FA', mtlx_math_divide_vector3FA); + +// MaterialX node type: mtlx/math/divide_vector4FA +// +function mtlx_math_divide_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_divide_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'divide'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_divide_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'divide_vector4'; + this.desc = "MaterialX:mtlx/math/divide_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_divide_vector4FA.nodedef_name = 'ND_divide_vector4FA'; +mtlx_math_divide_vector4FA.nodedef_node = 'divide'; +mtlx_math_divide_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/divide.html'; +LiteGraph.registerNodeType('mtlx/math/divide_vector4FA', mtlx_math_divide_vector4FA); + +// MaterialX node type: mtlx/math/modulo_float +// +function mtlx_math_modulo_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'modulo_float'; + this.desc = "MaterialX:mtlx/math/modulo_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_modulo_float.nodedef_name = 'ND_modulo_float'; +mtlx_math_modulo_float.nodedef_node = 'modulo'; +mtlx_math_modulo_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_float', mtlx_math_modulo_float); + +// MaterialX node type: mtlx/math/modulo_color3 +// +function mtlx_math_modulo_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'modulo_color3'; + this.desc = "MaterialX:mtlx/math/modulo_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_modulo_color3.nodedef_name = 'ND_modulo_color3'; +mtlx_math_modulo_color3.nodedef_node = 'modulo'; +mtlx_math_modulo_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_color3', mtlx_math_modulo_color3); + +// MaterialX node type: mtlx/math/modulo_color4 +// +function mtlx_math_modulo_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'modulo_color4'; + this.desc = "MaterialX:mtlx/math/modulo_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_modulo_color4.nodedef_name = 'ND_modulo_color4'; +mtlx_math_modulo_color4.nodedef_node = 'modulo'; +mtlx_math_modulo_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_color4', mtlx_math_modulo_color4); + +// MaterialX node type: mtlx/math/modulo_vector2 +// +function mtlx_math_modulo_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'modulo_vector2'; + this.desc = "MaterialX:mtlx/math/modulo_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_modulo_vector2.nodedef_name = 'ND_modulo_vector2'; +mtlx_math_modulo_vector2.nodedef_node = 'modulo'; +mtlx_math_modulo_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector2', mtlx_math_modulo_vector2); + +// MaterialX node type: mtlx/math/modulo_vector3 +// +function mtlx_math_modulo_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'modulo_vector3'; + this.desc = "MaterialX:mtlx/math/modulo_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_modulo_vector3.nodedef_name = 'ND_modulo_vector3'; +mtlx_math_modulo_vector3.nodedef_node = 'modulo'; +mtlx_math_modulo_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector3', mtlx_math_modulo_vector3); + +// MaterialX node type: mtlx/math/modulo_vector4 +// +function mtlx_math_modulo_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'modulo_vector4'; + this.desc = "MaterialX:mtlx/math/modulo_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_modulo_vector4.nodedef_name = 'ND_modulo_vector4'; +mtlx_math_modulo_vector4.nodedef_node = 'modulo'; +mtlx_math_modulo_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector4', mtlx_math_modulo_vector4); + +// MaterialX node type: mtlx/math/modulo_color3FA +// +function mtlx_math_modulo_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'modulo_color3'; + this.desc = "MaterialX:mtlx/math/modulo_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_modulo_color3FA.nodedef_name = 'ND_modulo_color3FA'; +mtlx_math_modulo_color3FA.nodedef_node = 'modulo'; +mtlx_math_modulo_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_color3FA', mtlx_math_modulo_color3FA); + +// MaterialX node type: mtlx/math/modulo_color4FA +// +function mtlx_math_modulo_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'modulo_color4'; + this.desc = "MaterialX:mtlx/math/modulo_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_modulo_color4FA.nodedef_name = 'ND_modulo_color4FA'; +mtlx_math_modulo_color4FA.nodedef_node = 'modulo'; +mtlx_math_modulo_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_color4FA', mtlx_math_modulo_color4FA); + +// MaterialX node type: mtlx/math/modulo_vector2FA +// +function mtlx_math_modulo_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'modulo_vector2'; + this.desc = "MaterialX:mtlx/math/modulo_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_modulo_vector2FA.nodedef_name = 'ND_modulo_vector2FA'; +mtlx_math_modulo_vector2FA.nodedef_node = 'modulo'; +mtlx_math_modulo_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector2FA', mtlx_math_modulo_vector2FA); + +// MaterialX node type: mtlx/math/modulo_vector3FA +// +function mtlx_math_modulo_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'modulo_vector3'; + this.desc = "MaterialX:mtlx/math/modulo_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_modulo_vector3FA.nodedef_name = 'ND_modulo_vector3FA'; +mtlx_math_modulo_vector3FA.nodedef_node = 'modulo'; +mtlx_math_modulo_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector3FA', mtlx_math_modulo_vector3FA); + +// MaterialX node type: mtlx/math/modulo_vector4FA +// +function mtlx_math_modulo_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_modulo_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'modulo'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_modulo_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'modulo_vector4'; + this.desc = "MaterialX:mtlx/math/modulo_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_modulo_vector4FA.nodedef_name = 'ND_modulo_vector4FA'; +mtlx_math_modulo_vector4FA.nodedef_node = 'modulo'; +mtlx_math_modulo_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/modulo.html'; +LiteGraph.registerNodeType('mtlx/math/modulo_vector4FA', mtlx_math_modulo_vector4FA); + +// MaterialX node type: mtlx/math/invert_float +// +function mtlx_math_invert_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'invert_float'; + this.desc = "MaterialX:mtlx/math/invert_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_invert_float.nodedef_name = 'ND_invert_float'; +mtlx_math_invert_float.nodedef_node = 'invert'; +mtlx_math_invert_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_float', mtlx_math_invert_float); + +// MaterialX node type: mtlx/math/invert_color3 +// +function mtlx_math_invert_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'color3'); + this.addProperty('amount', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'invert_color3'; + this.desc = "MaterialX:mtlx/math/invert_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_invert_color3.nodedef_name = 'ND_invert_color3'; +mtlx_math_invert_color3.nodedef_node = 'invert'; +mtlx_math_invert_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_color3', mtlx_math_invert_color3); + +// MaterialX node type: mtlx/math/invert_color4 +// +function mtlx_math_invert_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'color4'); + this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'invert_color4'; + this.desc = "MaterialX:mtlx/math/invert_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_invert_color4.nodedef_name = 'ND_invert_color4'; +mtlx_math_invert_color4.nodedef_node = 'invert'; +mtlx_math_invert_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_color4', mtlx_math_invert_color4); + +// MaterialX node type: mtlx/math/invert_vector2 +// +function mtlx_math_invert_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector2'); + this.addProperty('amount', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'invert_vector2'; + this.desc = "MaterialX:mtlx/math/invert_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_invert_vector2.nodedef_name = 'ND_invert_vector2'; +mtlx_math_invert_vector2.nodedef_node = 'invert'; +mtlx_math_invert_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector2', mtlx_math_invert_vector2); + +// MaterialX node type: mtlx/math/invert_vector3 +// +function mtlx_math_invert_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector3'); + this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'invert_vector3'; + this.desc = "MaterialX:mtlx/math/invert_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_invert_vector3.nodedef_name = 'ND_invert_vector3'; +mtlx_math_invert_vector3.nodedef_node = 'invert'; +mtlx_math_invert_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector3', mtlx_math_invert_vector3); + +// MaterialX node type: mtlx/math/invert_vector4 +// +function mtlx_math_invert_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector4'); + this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'invert_vector4'; + this.desc = "MaterialX:mtlx/math/invert_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_invert_vector4.nodedef_name = 'ND_invert_vector4'; +mtlx_math_invert_vector4.nodedef_node = 'invert'; +mtlx_math_invert_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector4', mtlx_math_invert_vector4); + +// MaterialX node type: mtlx/math/invert_color3FA +// +function mtlx_math_invert_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'invert_color3'; + this.desc = "MaterialX:mtlx/math/invert_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_invert_color3FA.nodedef_name = 'ND_invert_color3FA'; +mtlx_math_invert_color3FA.nodedef_node = 'invert'; +mtlx_math_invert_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_color3FA', mtlx_math_invert_color3FA); + +// MaterialX node type: mtlx/math/invert_color4FA +// +function mtlx_math_invert_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'invert_color4'; + this.desc = "MaterialX:mtlx/math/invert_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_invert_color4FA.nodedef_name = 'ND_invert_color4FA'; +mtlx_math_invert_color4FA.nodedef_node = 'invert'; +mtlx_math_invert_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_color4FA', mtlx_math_invert_color4FA); + +// MaterialX node type: mtlx/math/invert_vector2FA +// +function mtlx_math_invert_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'invert_vector2'; + this.desc = "MaterialX:mtlx/math/invert_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_invert_vector2FA.nodedef_name = 'ND_invert_vector2FA'; +mtlx_math_invert_vector2FA.nodedef_node = 'invert'; +mtlx_math_invert_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector2FA', mtlx_math_invert_vector2FA); + +// MaterialX node type: mtlx/math/invert_vector3FA +// +function mtlx_math_invert_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'invert_vector3'; + this.desc = "MaterialX:mtlx/math/invert_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_invert_vector3FA.nodedef_name = 'ND_invert_vector3FA'; +mtlx_math_invert_vector3FA.nodedef_node = 'invert'; +mtlx_math_invert_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector3FA', mtlx_math_invert_vector3FA); + +// MaterialX node type: mtlx/math/invert_vector4FA +// +function mtlx_math_invert_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invert_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'invert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invert_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'invert_vector4'; + this.desc = "MaterialX:mtlx/math/invert_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_invert_vector4FA.nodedef_name = 'ND_invert_vector4FA'; +mtlx_math_invert_vector4FA.nodedef_node = 'invert'; +mtlx_math_invert_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invert.html'; +LiteGraph.registerNodeType('mtlx/math/invert_vector4FA', mtlx_math_invert_vector4FA); + +// MaterialX node type: mtlx/math/absval_float +// +function mtlx_math_absval_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'absval_float'; + this.desc = "MaterialX:mtlx/math/absval_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_absval_float.nodedef_name = 'ND_absval_float'; +mtlx_math_absval_float.nodedef_node = 'absval'; +mtlx_math_absval_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_float', mtlx_math_absval_float); + +// MaterialX node type: mtlx/math/absval_color3 +// +function mtlx_math_absval_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'absval_color3'; + this.desc = "MaterialX:mtlx/math/absval_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_absval_color3.nodedef_name = 'ND_absval_color3'; +mtlx_math_absval_color3.nodedef_node = 'absval'; +mtlx_math_absval_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_color3', mtlx_math_absval_color3); + +// MaterialX node type: mtlx/math/absval_color4 +// +function mtlx_math_absval_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'absval_color4'; + this.desc = "MaterialX:mtlx/math/absval_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_absval_color4.nodedef_name = 'ND_absval_color4'; +mtlx_math_absval_color4.nodedef_node = 'absval'; +mtlx_math_absval_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_color4', mtlx_math_absval_color4); + +// MaterialX node type: mtlx/math/absval_vector2 +// +function mtlx_math_absval_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'absval_vector2'; + this.desc = "MaterialX:mtlx/math/absval_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_absval_vector2.nodedef_name = 'ND_absval_vector2'; +mtlx_math_absval_vector2.nodedef_node = 'absval'; +mtlx_math_absval_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_vector2', mtlx_math_absval_vector2); + +// MaterialX node type: mtlx/math/absval_vector3 +// +function mtlx_math_absval_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'absval_vector3'; + this.desc = "MaterialX:mtlx/math/absval_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_absval_vector3.nodedef_name = 'ND_absval_vector3'; +mtlx_math_absval_vector3.nodedef_node = 'absval'; +mtlx_math_absval_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_vector3', mtlx_math_absval_vector3); + +// MaterialX node type: mtlx/math/absval_vector4 +// +function mtlx_math_absval_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absval_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'absval'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absval_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'absval_vector4'; + this.desc = "MaterialX:mtlx/math/absval_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_absval_vector4.nodedef_name = 'ND_absval_vector4'; +mtlx_math_absval_vector4.nodedef_node = 'absval'; +mtlx_math_absval_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absval.html'; +LiteGraph.registerNodeType('mtlx/math/absval_vector4', mtlx_math_absval_vector4); + +// MaterialX node type: mtlx/math/floor_float +// +function mtlx_math_floor_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'floor_float'; + this.desc = "MaterialX:mtlx/math/floor_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_floor_float.nodedef_name = 'ND_floor_float'; +mtlx_math_floor_float.nodedef_node = 'floor'; +mtlx_math_floor_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_float', mtlx_math_floor_float); + +// MaterialX node type: mtlx/math/floor_color3 +// +function mtlx_math_floor_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'floor_color3'; + this.desc = "MaterialX:mtlx/math/floor_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_floor_color3.nodedef_name = 'ND_floor_color3'; +mtlx_math_floor_color3.nodedef_node = 'floor'; +mtlx_math_floor_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_color3', mtlx_math_floor_color3); + +// MaterialX node type: mtlx/math/floor_color4 +// +function mtlx_math_floor_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'floor_color4'; + this.desc = "MaterialX:mtlx/math/floor_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_floor_color4.nodedef_name = 'ND_floor_color4'; +mtlx_math_floor_color4.nodedef_node = 'floor'; +mtlx_math_floor_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_color4', mtlx_math_floor_color4); + +// MaterialX node type: mtlx/math/floor_vector2 +// +function mtlx_math_floor_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'floor_vector2'; + this.desc = "MaterialX:mtlx/math/floor_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_floor_vector2.nodedef_name = 'ND_floor_vector2'; +mtlx_math_floor_vector2.nodedef_node = 'floor'; +mtlx_math_floor_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_vector2', mtlx_math_floor_vector2); + +// MaterialX node type: mtlx/math/floor_vector3 +// +function mtlx_math_floor_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'floor_vector3'; + this.desc = "MaterialX:mtlx/math/floor_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_floor_vector3.nodedef_name = 'ND_floor_vector3'; +mtlx_math_floor_vector3.nodedef_node = 'floor'; +mtlx_math_floor_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_vector3', mtlx_math_floor_vector3); + +// MaterialX node type: mtlx/math/floor_vector4 +// +function mtlx_math_floor_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'floor_vector4'; + this.desc = "MaterialX:mtlx/math/floor_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_floor_vector4.nodedef_name = 'ND_floor_vector4'; +mtlx_math_floor_vector4.nodedef_node = 'floor'; +mtlx_math_floor_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_vector4', mtlx_math_floor_vector4); + +// MaterialX node type: mtlx/math/floor_integer +// +function mtlx_math_floor_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_floor_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'floor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_floor_integer_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'floor_integer'; + this.desc = "MaterialX:mtlx/math/floor_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_math_floor_integer.nodedef_name = 'ND_floor_integer'; +mtlx_math_floor_integer.nodedef_node = 'floor'; +mtlx_math_floor_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/floor.html'; +LiteGraph.registerNodeType('mtlx/math/floor_integer', mtlx_math_floor_integer); + +// MaterialX node type: mtlx/math/ceil_float +// +function mtlx_math_ceil_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ceil_float'; + this.desc = "MaterialX:mtlx/math/ceil_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_ceil_float.nodedef_name = 'ND_ceil_float'; +mtlx_math_ceil_float.nodedef_node = 'ceil'; +mtlx_math_ceil_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_float', mtlx_math_ceil_float); + +// MaterialX node type: mtlx/math/ceil_color3 +// +function mtlx_math_ceil_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ceil_color3'; + this.desc = "MaterialX:mtlx/math/ceil_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_ceil_color3.nodedef_name = 'ND_ceil_color3'; +mtlx_math_ceil_color3.nodedef_node = 'ceil'; +mtlx_math_ceil_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_color3', mtlx_math_ceil_color3); + +// MaterialX node type: mtlx/math/ceil_color4 +// +function mtlx_math_ceil_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ceil_color4'; + this.desc = "MaterialX:mtlx/math/ceil_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_ceil_color4.nodedef_name = 'ND_ceil_color4'; +mtlx_math_ceil_color4.nodedef_node = 'ceil'; +mtlx_math_ceil_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_color4', mtlx_math_ceil_color4); + +// MaterialX node type: mtlx/math/ceil_vector2 +// +function mtlx_math_ceil_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ceil_vector2'; + this.desc = "MaterialX:mtlx/math/ceil_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_ceil_vector2.nodedef_name = 'ND_ceil_vector2'; +mtlx_math_ceil_vector2.nodedef_node = 'ceil'; +mtlx_math_ceil_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_vector2', mtlx_math_ceil_vector2); + +// MaterialX node type: mtlx/math/ceil_vector3 +// +function mtlx_math_ceil_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ceil_vector3'; + this.desc = "MaterialX:mtlx/math/ceil_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_ceil_vector3.nodedef_name = 'ND_ceil_vector3'; +mtlx_math_ceil_vector3.nodedef_node = 'ceil'; +mtlx_math_ceil_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_vector3', mtlx_math_ceil_vector3); + +// MaterialX node type: mtlx/math/ceil_vector4 +// +function mtlx_math_ceil_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ceil_vector4'; + this.desc = "MaterialX:mtlx/math/ceil_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_ceil_vector4.nodedef_name = 'ND_ceil_vector4'; +mtlx_math_ceil_vector4.nodedef_node = 'ceil'; +mtlx_math_ceil_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_vector4', mtlx_math_ceil_vector4); + +// MaterialX node type: mtlx/math/ceil_integer +// +function mtlx_math_ceil_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ceil_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ceil'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ceil_integer_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ceil_integer'; + this.desc = "MaterialX:mtlx/math/ceil_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_math_ceil_integer.nodedef_name = 'ND_ceil_integer'; +mtlx_math_ceil_integer.nodedef_node = 'ceil'; +mtlx_math_ceil_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ceil.html'; +LiteGraph.registerNodeType('mtlx/math/ceil_integer', mtlx_math_ceil_integer); + +// MaterialX node type: mtlx/math/round_float +// +function mtlx_math_round_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'round_float'; + this.desc = "MaterialX:mtlx/math/round_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_round_float.nodedef_name = 'ND_round_float'; +mtlx_math_round_float.nodedef_node = 'round'; +mtlx_math_round_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_float', mtlx_math_round_float); + +// MaterialX node type: mtlx/math/round_color3 +// +function mtlx_math_round_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'round_color3'; + this.desc = "MaterialX:mtlx/math/round_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_round_color3.nodedef_name = 'ND_round_color3'; +mtlx_math_round_color3.nodedef_node = 'round'; +mtlx_math_round_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_color3', mtlx_math_round_color3); + +// MaterialX node type: mtlx/math/round_color4 +// +function mtlx_math_round_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'round_color4'; + this.desc = "MaterialX:mtlx/math/round_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_round_color4.nodedef_name = 'ND_round_color4'; +mtlx_math_round_color4.nodedef_node = 'round'; +mtlx_math_round_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_color4', mtlx_math_round_color4); + +// MaterialX node type: mtlx/math/round_vector2 +// +function mtlx_math_round_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'round_vector2'; + this.desc = "MaterialX:mtlx/math/round_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_round_vector2.nodedef_name = 'ND_round_vector2'; +mtlx_math_round_vector2.nodedef_node = 'round'; +mtlx_math_round_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_vector2', mtlx_math_round_vector2); + +// MaterialX node type: mtlx/math/round_vector3 +// +function mtlx_math_round_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'round_vector3'; + this.desc = "MaterialX:mtlx/math/round_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_round_vector3.nodedef_name = 'ND_round_vector3'; +mtlx_math_round_vector3.nodedef_node = 'round'; +mtlx_math_round_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_vector3', mtlx_math_round_vector3); + +// MaterialX node type: mtlx/math/round_vector4 +// +function mtlx_math_round_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'round_vector4'; + this.desc = "MaterialX:mtlx/math/round_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_round_vector4.nodedef_name = 'ND_round_vector4'; +mtlx_math_round_vector4.nodedef_node = 'round'; +mtlx_math_round_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_vector4', mtlx_math_round_vector4); + +// MaterialX node type: mtlx/math/round_integer +// +function mtlx_math_round_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_round_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'round'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_round_integer_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'round_integer'; + this.desc = "MaterialX:mtlx/math/round_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_math_round_integer.nodedef_name = 'ND_round_integer'; +mtlx_math_round_integer.nodedef_node = 'round'; +mtlx_math_round_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/round.html'; +LiteGraph.registerNodeType('mtlx/math/round_integer', mtlx_math_round_integer); + +// MaterialX node type: mtlx/math/power_float +// +function mtlx_math_power_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'power_float'; + this.desc = "MaterialX:mtlx/math/power_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_power_float.nodedef_name = 'ND_power_float'; +mtlx_math_power_float.nodedef_node = 'power'; +mtlx_math_power_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_float', mtlx_math_power_float); + +// MaterialX node type: mtlx/math/power_color3 +// +function mtlx_math_power_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'power_color3'; + this.desc = "MaterialX:mtlx/math/power_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_power_color3.nodedef_name = 'ND_power_color3'; +mtlx_math_power_color3.nodedef_node = 'power'; +mtlx_math_power_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_color3', mtlx_math_power_color3); + +// MaterialX node type: mtlx/math/power_color4 +// +function mtlx_math_power_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'power_color4'; + this.desc = "MaterialX:mtlx/math/power_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_power_color4.nodedef_name = 'ND_power_color4'; +mtlx_math_power_color4.nodedef_node = 'power'; +mtlx_math_power_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_color4', mtlx_math_power_color4); + +// MaterialX node type: mtlx/math/power_vector2 +// +function mtlx_math_power_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'power_vector2'; + this.desc = "MaterialX:mtlx/math/power_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_power_vector2.nodedef_name = 'ND_power_vector2'; +mtlx_math_power_vector2.nodedef_node = 'power'; +mtlx_math_power_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector2', mtlx_math_power_vector2); + +// MaterialX node type: mtlx/math/power_vector3 +// +function mtlx_math_power_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'power_vector3'; + this.desc = "MaterialX:mtlx/math/power_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_power_vector3.nodedef_name = 'ND_power_vector3'; +mtlx_math_power_vector3.nodedef_node = 'power'; +mtlx_math_power_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector3', mtlx_math_power_vector3); + +// MaterialX node type: mtlx/math/power_vector4 +// +function mtlx_math_power_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'power_vector4'; + this.desc = "MaterialX:mtlx/math/power_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_power_vector4.nodedef_name = 'ND_power_vector4'; +mtlx_math_power_vector4.nodedef_node = 'power'; +mtlx_math_power_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector4', mtlx_math_power_vector4); + +// MaterialX node type: mtlx/math/power_color3FA +// +function mtlx_math_power_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'power_color3'; + this.desc = "MaterialX:mtlx/math/power_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_power_color3FA.nodedef_name = 'ND_power_color3FA'; +mtlx_math_power_color3FA.nodedef_node = 'power'; +mtlx_math_power_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_color3FA', mtlx_math_power_color3FA); + +// MaterialX node type: mtlx/math/power_color4FA +// +function mtlx_math_power_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'power_color4'; + this.desc = "MaterialX:mtlx/math/power_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_power_color4FA.nodedef_name = 'ND_power_color4FA'; +mtlx_math_power_color4FA.nodedef_node = 'power'; +mtlx_math_power_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_color4FA', mtlx_math_power_color4FA); + +// MaterialX node type: mtlx/math/power_vector2FA +// +function mtlx_math_power_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'power_vector2'; + this.desc = "MaterialX:mtlx/math/power_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_power_vector2FA.nodedef_name = 'ND_power_vector2FA'; +mtlx_math_power_vector2FA.nodedef_node = 'power'; +mtlx_math_power_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector2FA', mtlx_math_power_vector2FA); + +// MaterialX node type: mtlx/math/power_vector3FA +// +function mtlx_math_power_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'power_vector3'; + this.desc = "MaterialX:mtlx/math/power_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_power_vector3FA.nodedef_name = 'ND_power_vector3FA'; +mtlx_math_power_vector3FA.nodedef_node = 'power'; +mtlx_math_power_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector3FA', mtlx_math_power_vector3FA); + +// MaterialX node type: mtlx/math/power_vector4FA +// +function mtlx_math_power_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_power_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'power'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_power_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'power_vector4'; + this.desc = "MaterialX:mtlx/math/power_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_power_vector4FA.nodedef_name = 'ND_power_vector4FA'; +mtlx_math_power_vector4FA.nodedef_node = 'power'; +mtlx_math_power_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/power.html'; +LiteGraph.registerNodeType('mtlx/math/power_vector4FA', mtlx_math_power_vector4FA); + +// MaterialX node type: mtlx/math/safepower_float +// +function mtlx_math_safepower_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'safepower_float'; + this.desc = "MaterialX:mtlx/math/safepower_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_safepower_float.nodedef_name = 'ND_safepower_float'; +mtlx_math_safepower_float.nodedef_node = 'safepower'; +mtlx_math_safepower_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_float', mtlx_math_safepower_float); + +// MaterialX node type: mtlx/math/safepower_color3 +// +function mtlx_math_safepower_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'safepower_color3'; + this.desc = "MaterialX:mtlx/math/safepower_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_safepower_color3.nodedef_name = 'ND_safepower_color3'; +mtlx_math_safepower_color3.nodedef_node = 'safepower'; +mtlx_math_safepower_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_color3', mtlx_math_safepower_color3); + +// MaterialX node type: mtlx/math/safepower_color4 +// +function mtlx_math_safepower_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'safepower_color4'; + this.desc = "MaterialX:mtlx/math/safepower_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_safepower_color4.nodedef_name = 'ND_safepower_color4'; +mtlx_math_safepower_color4.nodedef_node = 'safepower'; +mtlx_math_safepower_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_color4', mtlx_math_safepower_color4); + +// MaterialX node type: mtlx/math/safepower_vector2 +// +function mtlx_math_safepower_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'safepower_vector2'; + this.desc = "MaterialX:mtlx/math/safepower_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_safepower_vector2.nodedef_name = 'ND_safepower_vector2'; +mtlx_math_safepower_vector2.nodedef_node = 'safepower'; +mtlx_math_safepower_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector2', mtlx_math_safepower_vector2); + +// MaterialX node type: mtlx/math/safepower_vector3 +// +function mtlx_math_safepower_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'safepower_vector3'; + this.desc = "MaterialX:mtlx/math/safepower_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_safepower_vector3.nodedef_name = 'ND_safepower_vector3'; +mtlx_math_safepower_vector3.nodedef_node = 'safepower'; +mtlx_math_safepower_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector3', mtlx_math_safepower_vector3); + +// MaterialX node type: mtlx/math/safepower_vector4 +// +function mtlx_math_safepower_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'safepower_vector4'; + this.desc = "MaterialX:mtlx/math/safepower_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_safepower_vector4.nodedef_name = 'ND_safepower_vector4'; +mtlx_math_safepower_vector4.nodedef_node = 'safepower'; +mtlx_math_safepower_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector4', mtlx_math_safepower_vector4); + +// MaterialX node type: mtlx/math/safepower_color3FA +// +function mtlx_math_safepower_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'safepower_color3'; + this.desc = "MaterialX:mtlx/math/safepower_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_safepower_color3FA.nodedef_name = 'ND_safepower_color3FA'; +mtlx_math_safepower_color3FA.nodedef_node = 'safepower'; +mtlx_math_safepower_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_color3FA', mtlx_math_safepower_color3FA); + +// MaterialX node type: mtlx/math/safepower_color4FA +// +function mtlx_math_safepower_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'safepower_color4'; + this.desc = "MaterialX:mtlx/math/safepower_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_safepower_color4FA.nodedef_name = 'ND_safepower_color4FA'; +mtlx_math_safepower_color4FA.nodedef_node = 'safepower'; +mtlx_math_safepower_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_color4FA', mtlx_math_safepower_color4FA); + +// MaterialX node type: mtlx/math/safepower_vector2FA +// +function mtlx_math_safepower_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'safepower_vector2'; + this.desc = "MaterialX:mtlx/math/safepower_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_safepower_vector2FA.nodedef_name = 'ND_safepower_vector2FA'; +mtlx_math_safepower_vector2FA.nodedef_node = 'safepower'; +mtlx_math_safepower_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector2FA', mtlx_math_safepower_vector2FA); + +// MaterialX node type: mtlx/math/safepower_vector3FA +// +function mtlx_math_safepower_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'safepower_vector3'; + this.desc = "MaterialX:mtlx/math/safepower_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_safepower_vector3FA.nodedef_name = 'ND_safepower_vector3FA'; +mtlx_math_safepower_vector3FA.nodedef_node = 'safepower'; +mtlx_math_safepower_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector3FA', mtlx_math_safepower_vector3FA); + +// MaterialX node type: mtlx/math/safepower_vector4FA +// +function mtlx_math_safepower_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_safepower_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'safepower'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_safepower_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'safepower_vector4'; + this.desc = "MaterialX:mtlx/math/safepower_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_safepower_vector4FA.nodedef_name = 'ND_safepower_vector4FA'; +mtlx_math_safepower_vector4FA.nodedef_node = 'safepower'; +mtlx_math_safepower_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/safepower.html'; +LiteGraph.registerNodeType('mtlx/math/safepower_vector4FA', mtlx_math_safepower_vector4FA); + +// MaterialX node type: mtlx/math/sin_float +// +function mtlx_math_sin_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sin_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'sin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'sin_float'; + this.desc = "MaterialX:mtlx/math/sin_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_sin_float.nodedef_name = 'ND_sin_float'; +mtlx_math_sin_float.nodedef_node = 'sin'; +mtlx_math_sin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; +LiteGraph.registerNodeType('mtlx/math/sin_float', mtlx_math_sin_float); + +// MaterialX node type: mtlx/math/cos_float +// +function mtlx_math_cos_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cos_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'cos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'cos_float'; + this.desc = "MaterialX:mtlx/math/cos_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_cos_float.nodedef_name = 'ND_cos_float'; +mtlx_math_cos_float.nodedef_node = 'cos'; +mtlx_math_cos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; +LiteGraph.registerNodeType('mtlx/math/cos_float', mtlx_math_cos_float); + +// MaterialX node type: mtlx/math/tan_float +// +function mtlx_math_tan_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tan_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'tan'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'tan_float'; + this.desc = "MaterialX:mtlx/math/tan_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_tan_float.nodedef_name = 'ND_tan_float'; +mtlx_math_tan_float.nodedef_node = 'tan'; +mtlx_math_tan_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; +LiteGraph.registerNodeType('mtlx/math/tan_float', mtlx_math_tan_float); + +// MaterialX node type: mtlx/math/asin_float +// +function mtlx_math_asin_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_asin_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'asin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'asin_float'; + this.desc = "MaterialX:mtlx/math/asin_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_asin_float.nodedef_name = 'ND_asin_float'; +mtlx_math_asin_float.nodedef_node = 'asin'; +mtlx_math_asin_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; +LiteGraph.registerNodeType('mtlx/math/asin_float', mtlx_math_asin_float); + +// MaterialX node type: mtlx/math/acos_float +// +function mtlx_math_acos_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acos_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'acos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'acos_float'; + this.desc = "MaterialX:mtlx/math/acos_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_acos_float.nodedef_name = 'ND_acos_float'; +mtlx_math_acos_float.nodedef_node = 'acos'; +mtlx_math_acos_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; +LiteGraph.registerNodeType('mtlx/math/acos_float', mtlx_math_acos_float); + +// MaterialX node type: mtlx/math/atan2_float +// +function mtlx_math_atan2_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_atan2_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'atan2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('iny', 'float'); + this.addProperty('iny', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inx', 'float'); + this.addProperty('inx', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'atan2_float'; + this.desc = "MaterialX:mtlx/math/atan2_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_atan2_float.nodedef_name = 'ND_atan2_float'; +mtlx_math_atan2_float.nodedef_node = 'atan2'; +mtlx_math_atan2_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; +LiteGraph.registerNodeType('mtlx/math/atan2_float', mtlx_math_atan2_float); + +// MaterialX node type: mtlx/math/sin_vector2 +// +function mtlx_math_sin_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sin_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'sin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'sin_vector2'; + this.desc = "MaterialX:mtlx/math/sin_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_sin_vector2.nodedef_name = 'ND_sin_vector2'; +mtlx_math_sin_vector2.nodedef_node = 'sin'; +mtlx_math_sin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; +LiteGraph.registerNodeType('mtlx/math/sin_vector2', mtlx_math_sin_vector2); + +// MaterialX node type: mtlx/math/cos_vector2 +// +function mtlx_math_cos_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cos_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'cos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'cos_vector2'; + this.desc = "MaterialX:mtlx/math/cos_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_cos_vector2.nodedef_name = 'ND_cos_vector2'; +mtlx_math_cos_vector2.nodedef_node = 'cos'; +mtlx_math_cos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; +LiteGraph.registerNodeType('mtlx/math/cos_vector2', mtlx_math_cos_vector2); + +// MaterialX node type: mtlx/math/tan_vector2 +// +function mtlx_math_tan_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tan_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'tan'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'tan_vector2'; + this.desc = "MaterialX:mtlx/math/tan_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_tan_vector2.nodedef_name = 'ND_tan_vector2'; +mtlx_math_tan_vector2.nodedef_node = 'tan'; +mtlx_math_tan_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; +LiteGraph.registerNodeType('mtlx/math/tan_vector2', mtlx_math_tan_vector2); + +// MaterialX node type: mtlx/math/asin_vector2 +// +function mtlx_math_asin_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_asin_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'asin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'asin_vector2'; + this.desc = "MaterialX:mtlx/math/asin_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_asin_vector2.nodedef_name = 'ND_asin_vector2'; +mtlx_math_asin_vector2.nodedef_node = 'asin'; +mtlx_math_asin_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; +LiteGraph.registerNodeType('mtlx/math/asin_vector2', mtlx_math_asin_vector2); + +// MaterialX node type: mtlx/math/acos_vector2 +// +function mtlx_math_acos_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acos_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'acos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'acos_vector2'; + this.desc = "MaterialX:mtlx/math/acos_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_acos_vector2.nodedef_name = 'ND_acos_vector2'; +mtlx_math_acos_vector2.nodedef_node = 'acos'; +mtlx_math_acos_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; +LiteGraph.registerNodeType('mtlx/math/acos_vector2', mtlx_math_acos_vector2); + +// MaterialX node type: mtlx/math/atan2_vector2 +// +function mtlx_math_atan2_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_atan2_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'atan2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('iny', 'vector2'); + this.addProperty('iny', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inx', 'vector2'); + this.addProperty('inx', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'atan2_vector2'; + this.desc = "MaterialX:mtlx/math/atan2_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_atan2_vector2.nodedef_name = 'ND_atan2_vector2'; +mtlx_math_atan2_vector2.nodedef_node = 'atan2'; +mtlx_math_atan2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; +LiteGraph.registerNodeType('mtlx/math/atan2_vector2', mtlx_math_atan2_vector2); + +// MaterialX node type: mtlx/math/sin_vector3 +// +function mtlx_math_sin_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sin_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'sin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'sin_vector3'; + this.desc = "MaterialX:mtlx/math/sin_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_sin_vector3.nodedef_name = 'ND_sin_vector3'; +mtlx_math_sin_vector3.nodedef_node = 'sin'; +mtlx_math_sin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; +LiteGraph.registerNodeType('mtlx/math/sin_vector3', mtlx_math_sin_vector3); + +// MaterialX node type: mtlx/math/cos_vector3 +// +function mtlx_math_cos_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cos_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'cos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'cos_vector3'; + this.desc = "MaterialX:mtlx/math/cos_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_cos_vector3.nodedef_name = 'ND_cos_vector3'; +mtlx_math_cos_vector3.nodedef_node = 'cos'; +mtlx_math_cos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; +LiteGraph.registerNodeType('mtlx/math/cos_vector3', mtlx_math_cos_vector3); + +// MaterialX node type: mtlx/math/tan_vector3 +// +function mtlx_math_tan_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tan_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'tan'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'tan_vector3'; + this.desc = "MaterialX:mtlx/math/tan_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_tan_vector3.nodedef_name = 'ND_tan_vector3'; +mtlx_math_tan_vector3.nodedef_node = 'tan'; +mtlx_math_tan_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; +LiteGraph.registerNodeType('mtlx/math/tan_vector3', mtlx_math_tan_vector3); + +// MaterialX node type: mtlx/math/asin_vector3 +// +function mtlx_math_asin_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_asin_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'asin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'asin_vector3'; + this.desc = "MaterialX:mtlx/math/asin_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_asin_vector3.nodedef_name = 'ND_asin_vector3'; +mtlx_math_asin_vector3.nodedef_node = 'asin'; +mtlx_math_asin_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; +LiteGraph.registerNodeType('mtlx/math/asin_vector3', mtlx_math_asin_vector3); + +// MaterialX node type: mtlx/math/acos_vector3 +// +function mtlx_math_acos_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acos_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'acos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'acos_vector3'; + this.desc = "MaterialX:mtlx/math/acos_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_acos_vector3.nodedef_name = 'ND_acos_vector3'; +mtlx_math_acos_vector3.nodedef_node = 'acos'; +mtlx_math_acos_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; +LiteGraph.registerNodeType('mtlx/math/acos_vector3', mtlx_math_acos_vector3); + +// MaterialX node type: mtlx/math/atan2_vector3 +// +function mtlx_math_atan2_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_atan2_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'atan2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('iny', 'vector3'); + this.addProperty('iny', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inx', 'vector3'); + this.addProperty('inx', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'atan2_vector3'; + this.desc = "MaterialX:mtlx/math/atan2_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_atan2_vector3.nodedef_name = 'ND_atan2_vector3'; +mtlx_math_atan2_vector3.nodedef_node = 'atan2'; +mtlx_math_atan2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; +LiteGraph.registerNodeType('mtlx/math/atan2_vector3', mtlx_math_atan2_vector3); + +// MaterialX node type: mtlx/math/sin_vector4 +// +function mtlx_math_sin_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sin_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'sin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sin_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'sin_vector4'; + this.desc = "MaterialX:mtlx/math/sin_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_sin_vector4.nodedef_name = 'ND_sin_vector4'; +mtlx_math_sin_vector4.nodedef_node = 'sin'; +mtlx_math_sin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sin.html'; +LiteGraph.registerNodeType('mtlx/math/sin_vector4', mtlx_math_sin_vector4); + +// MaterialX node type: mtlx/math/cos_vector4 +// +function mtlx_math_cos_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_cos_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'cos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_cos_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'cos_vector4'; + this.desc = "MaterialX:mtlx/math/cos_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_cos_vector4.nodedef_name = 'ND_cos_vector4'; +mtlx_math_cos_vector4.nodedef_node = 'cos'; +mtlx_math_cos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/cos.html'; +LiteGraph.registerNodeType('mtlx/math/cos_vector4', mtlx_math_cos_vector4); + +// MaterialX node type: mtlx/math/tan_vector4 +// +function mtlx_math_tan_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_tan_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'tan'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_tan_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'tan_vector4'; + this.desc = "MaterialX:mtlx/math/tan_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_tan_vector4.nodedef_name = 'ND_tan_vector4'; +mtlx_math_tan_vector4.nodedef_node = 'tan'; +mtlx_math_tan_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/tan.html'; +LiteGraph.registerNodeType('mtlx/math/tan_vector4', mtlx_math_tan_vector4); + +// MaterialX node type: mtlx/math/asin_vector4 +// +function mtlx_math_asin_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_asin_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'asin'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_asin_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'asin_vector4'; + this.desc = "MaterialX:mtlx/math/asin_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_asin_vector4.nodedef_name = 'ND_asin_vector4'; +mtlx_math_asin_vector4.nodedef_node = 'asin'; +mtlx_math_asin_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/asin.html'; +LiteGraph.registerNodeType('mtlx/math/asin_vector4', mtlx_math_asin_vector4); + +// MaterialX node type: mtlx/math/acos_vector4 +// +function mtlx_math_acos_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acos_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'acos'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acos_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'acos_vector4'; + this.desc = "MaterialX:mtlx/math/acos_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_acos_vector4.nodedef_name = 'ND_acos_vector4'; +mtlx_math_acos_vector4.nodedef_node = 'acos'; +mtlx_math_acos_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acos.html'; +LiteGraph.registerNodeType('mtlx/math/acos_vector4', mtlx_math_acos_vector4); + +// MaterialX node type: mtlx/math/atan2_vector4 +// +function mtlx_math_atan2_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_atan2_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'atan2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_atan2_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('iny', 'vector4'); + this.addProperty('iny', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inx', 'vector4'); + this.addProperty('inx', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'atan2_vector4'; + this.desc = "MaterialX:mtlx/math/atan2_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_atan2_vector4.nodedef_name = 'ND_atan2_vector4'; +mtlx_math_atan2_vector4.nodedef_node = 'atan2'; +mtlx_math_atan2_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/atan2.html'; +LiteGraph.registerNodeType('mtlx/math/atan2_vector4', mtlx_math_atan2_vector4); + +// MaterialX node type: mtlx/math/sqrt_float +// +function mtlx_math_sqrt_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sqrt_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'sqrt'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'sqrt_float'; + this.desc = "MaterialX:mtlx/math/sqrt_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_sqrt_float.nodedef_name = 'ND_sqrt_float'; +mtlx_math_sqrt_float.nodedef_node = 'sqrt'; +mtlx_math_sqrt_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; +LiteGraph.registerNodeType('mtlx/math/sqrt_float', mtlx_math_sqrt_float); + +// MaterialX node type: mtlx/math/ln_float +// +function mtlx_math_ln_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ln_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ln'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ln_float'; + this.desc = "MaterialX:mtlx/math/ln_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_ln_float.nodedef_name = 'ND_ln_float'; +mtlx_math_ln_float.nodedef_node = 'ln'; +mtlx_math_ln_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; +LiteGraph.registerNodeType('mtlx/math/ln_float', mtlx_math_ln_float); + +// MaterialX node type: mtlx/math/exp_float +// +function mtlx_math_exp_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_exp_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'exp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'exp_float'; + this.desc = "MaterialX:mtlx/math/exp_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_exp_float.nodedef_name = 'ND_exp_float'; +mtlx_math_exp_float.nodedef_node = 'exp'; +mtlx_math_exp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; +LiteGraph.registerNodeType('mtlx/math/exp_float', mtlx_math_exp_float); + +// MaterialX node type: mtlx/math/sqrt_vector2 +// +function mtlx_math_sqrt_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sqrt_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'sqrt'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'sqrt_vector2'; + this.desc = "MaterialX:mtlx/math/sqrt_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_sqrt_vector2.nodedef_name = 'ND_sqrt_vector2'; +mtlx_math_sqrt_vector2.nodedef_node = 'sqrt'; +mtlx_math_sqrt_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; +LiteGraph.registerNodeType('mtlx/math/sqrt_vector2', mtlx_math_sqrt_vector2); + +// MaterialX node type: mtlx/math/ln_vector2 +// +function mtlx_math_ln_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ln_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ln'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ln_vector2'; + this.desc = "MaterialX:mtlx/math/ln_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_ln_vector2.nodedef_name = 'ND_ln_vector2'; +mtlx_math_ln_vector2.nodedef_node = 'ln'; +mtlx_math_ln_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; +LiteGraph.registerNodeType('mtlx/math/ln_vector2', mtlx_math_ln_vector2); + +// MaterialX node type: mtlx/math/exp_vector2 +// +function mtlx_math_exp_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_exp_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'exp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'exp_vector2'; + this.desc = "MaterialX:mtlx/math/exp_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_exp_vector2.nodedef_name = 'ND_exp_vector2'; +mtlx_math_exp_vector2.nodedef_node = 'exp'; +mtlx_math_exp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; +LiteGraph.registerNodeType('mtlx/math/exp_vector2', mtlx_math_exp_vector2); + +// MaterialX node type: mtlx/math/sqrt_vector3 +// +function mtlx_math_sqrt_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sqrt_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'sqrt'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'sqrt_vector3'; + this.desc = "MaterialX:mtlx/math/sqrt_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_sqrt_vector3.nodedef_name = 'ND_sqrt_vector3'; +mtlx_math_sqrt_vector3.nodedef_node = 'sqrt'; +mtlx_math_sqrt_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; +LiteGraph.registerNodeType('mtlx/math/sqrt_vector3', mtlx_math_sqrt_vector3); + +// MaterialX node type: mtlx/math/ln_vector3 +// +function mtlx_math_ln_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ln_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ln'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ln_vector3'; + this.desc = "MaterialX:mtlx/math/ln_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_ln_vector3.nodedef_name = 'ND_ln_vector3'; +mtlx_math_ln_vector3.nodedef_node = 'ln'; +mtlx_math_ln_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; +LiteGraph.registerNodeType('mtlx/math/ln_vector3', mtlx_math_ln_vector3); + +// MaterialX node type: mtlx/math/exp_vector3 +// +function mtlx_math_exp_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_exp_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'exp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'exp_vector3'; + this.desc = "MaterialX:mtlx/math/exp_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_exp_vector3.nodedef_name = 'ND_exp_vector3'; +mtlx_math_exp_vector3.nodedef_node = 'exp'; +mtlx_math_exp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; +LiteGraph.registerNodeType('mtlx/math/exp_vector3', mtlx_math_exp_vector3); + +// MaterialX node type: mtlx/math/sqrt_vector4 +// +function mtlx_math_sqrt_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sqrt_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'sqrt'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sqrt_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'sqrt_vector4'; + this.desc = "MaterialX:mtlx/math/sqrt_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_sqrt_vector4.nodedef_name = 'ND_sqrt_vector4'; +mtlx_math_sqrt_vector4.nodedef_node = 'sqrt'; +mtlx_math_sqrt_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sqrt.html'; +LiteGraph.registerNodeType('mtlx/math/sqrt_vector4', mtlx_math_sqrt_vector4); + +// MaterialX node type: mtlx/math/ln_vector4 +// +function mtlx_math_ln_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ln_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ln'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ln_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ln_vector4'; + this.desc = "MaterialX:mtlx/math/ln_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_ln_vector4.nodedef_name = 'ND_ln_vector4'; +mtlx_math_ln_vector4.nodedef_node = 'ln'; +mtlx_math_ln_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ln.html'; +LiteGraph.registerNodeType('mtlx/math/ln_vector4', mtlx_math_ln_vector4); + +// MaterialX node type: mtlx/math/exp_vector4 +// +function mtlx_math_exp_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_exp_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'exp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_exp_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'exp_vector4'; + this.desc = "MaterialX:mtlx/math/exp_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_exp_vector4.nodedef_name = 'ND_exp_vector4'; +mtlx_math_exp_vector4.nodedef_node = 'exp'; +mtlx_math_exp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/exp.html'; +LiteGraph.registerNodeType('mtlx/math/exp_vector4', mtlx_math_exp_vector4); + +// MaterialX node type: mtlx/math/sign_float +// +function mtlx_math_sign_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'sign_float'; + this.desc = "MaterialX:mtlx/math/sign_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_sign_float.nodedef_name = 'ND_sign_float'; +mtlx_math_sign_float.nodedef_node = 'sign'; +mtlx_math_sign_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_float', mtlx_math_sign_float); + +// MaterialX node type: mtlx/math/sign_color3 +// +function mtlx_math_sign_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'sign_color3'; + this.desc = "MaterialX:mtlx/math/sign_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_sign_color3.nodedef_name = 'ND_sign_color3'; +mtlx_math_sign_color3.nodedef_node = 'sign'; +mtlx_math_sign_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_color3', mtlx_math_sign_color3); + +// MaterialX node type: mtlx/math/sign_color4 +// +function mtlx_math_sign_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'sign_color4'; + this.desc = "MaterialX:mtlx/math/sign_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_sign_color4.nodedef_name = 'ND_sign_color4'; +mtlx_math_sign_color4.nodedef_node = 'sign'; +mtlx_math_sign_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_color4', mtlx_math_sign_color4); + +// MaterialX node type: mtlx/math/sign_vector2 +// +function mtlx_math_sign_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'sign_vector2'; + this.desc = "MaterialX:mtlx/math/sign_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_sign_vector2.nodedef_name = 'ND_sign_vector2'; +mtlx_math_sign_vector2.nodedef_node = 'sign'; +mtlx_math_sign_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_vector2', mtlx_math_sign_vector2); + +// MaterialX node type: mtlx/math/sign_vector3 +// +function mtlx_math_sign_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'sign_vector3'; + this.desc = "MaterialX:mtlx/math/sign_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_sign_vector3.nodedef_name = 'ND_sign_vector3'; +mtlx_math_sign_vector3.nodedef_node = 'sign'; +mtlx_math_sign_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_vector3', mtlx_math_sign_vector3); + +// MaterialX node type: mtlx/math/sign_vector4 +// +function mtlx_math_sign_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sign_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'sign'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sign_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'sign_vector4'; + this.desc = "MaterialX:mtlx/math/sign_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_sign_vector4.nodedef_name = 'ND_sign_vector4'; +mtlx_math_sign_vector4.nodedef_node = 'sign'; +mtlx_math_sign_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sign.html'; +LiteGraph.registerNodeType('mtlx/math/sign_vector4', mtlx_math_sign_vector4); + +// MaterialX node type: mtlx/math/clamp_float +// +function mtlx_math_clamp_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'clamp_float'; + this.desc = "MaterialX:mtlx/math/clamp_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_clamp_float.nodedef_name = 'ND_clamp_float'; +mtlx_math_clamp_float.nodedef_node = 'clamp'; +mtlx_math_clamp_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_float', mtlx_math_clamp_float); + +// MaterialX node type: mtlx/math/clamp_color3 +// +function mtlx_math_clamp_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'color3'); + this.addProperty('low', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'color3'); + this.addProperty('high', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'clamp_color3'; + this.desc = "MaterialX:mtlx/math/clamp_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_clamp_color3.nodedef_name = 'ND_clamp_color3'; +mtlx_math_clamp_color3.nodedef_node = 'clamp'; +mtlx_math_clamp_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_color3', mtlx_math_clamp_color3); + +// MaterialX node type: mtlx/math/clamp_color4 +// +function mtlx_math_clamp_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'color4'); + this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'color4'); + this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'clamp_color4'; + this.desc = "MaterialX:mtlx/math/clamp_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_clamp_color4.nodedef_name = 'ND_clamp_color4'; +mtlx_math_clamp_color4.nodedef_node = 'clamp'; +mtlx_math_clamp_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_color4', mtlx_math_clamp_color4); + +// MaterialX node type: mtlx/math/clamp_vector2 +// +function mtlx_math_clamp_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector2'); + this.addProperty('low', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector2'); + this.addProperty('high', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'clamp_vector2'; + this.desc = "MaterialX:mtlx/math/clamp_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_clamp_vector2.nodedef_name = 'ND_clamp_vector2'; +mtlx_math_clamp_vector2.nodedef_node = 'clamp'; +mtlx_math_clamp_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector2', mtlx_math_clamp_vector2); + +// MaterialX node type: mtlx/math/clamp_vector3 +// +function mtlx_math_clamp_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector3'); + this.addProperty('low', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector3'); + this.addProperty('high', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'clamp_vector3'; + this.desc = "MaterialX:mtlx/math/clamp_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_clamp_vector3.nodedef_name = 'ND_clamp_vector3'; +mtlx_math_clamp_vector3.nodedef_node = 'clamp'; +mtlx_math_clamp_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector3', mtlx_math_clamp_vector3); + +// MaterialX node type: mtlx/math/clamp_vector4 +// +function mtlx_math_clamp_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector4'); + this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector4'); + this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'clamp_vector4'; + this.desc = "MaterialX:mtlx/math/clamp_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_clamp_vector4.nodedef_name = 'ND_clamp_vector4'; +mtlx_math_clamp_vector4.nodedef_node = 'clamp'; +mtlx_math_clamp_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector4', mtlx_math_clamp_vector4); + +// MaterialX node type: mtlx/math/clamp_color3FA +// +function mtlx_math_clamp_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'clamp_color3'; + this.desc = "MaterialX:mtlx/math/clamp_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_clamp_color3FA.nodedef_name = 'ND_clamp_color3FA'; +mtlx_math_clamp_color3FA.nodedef_node = 'clamp'; +mtlx_math_clamp_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_color3FA', mtlx_math_clamp_color3FA); + +// MaterialX node type: mtlx/math/clamp_color4FA +// +function mtlx_math_clamp_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'clamp_color4'; + this.desc = "MaterialX:mtlx/math/clamp_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_clamp_color4FA.nodedef_name = 'ND_clamp_color4FA'; +mtlx_math_clamp_color4FA.nodedef_node = 'clamp'; +mtlx_math_clamp_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_color4FA', mtlx_math_clamp_color4FA); + +// MaterialX node type: mtlx/math/clamp_vector2FA +// +function mtlx_math_clamp_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'clamp_vector2'; + this.desc = "MaterialX:mtlx/math/clamp_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_clamp_vector2FA.nodedef_name = 'ND_clamp_vector2FA'; +mtlx_math_clamp_vector2FA.nodedef_node = 'clamp'; +mtlx_math_clamp_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector2FA', mtlx_math_clamp_vector2FA); + +// MaterialX node type: mtlx/math/clamp_vector3FA +// +function mtlx_math_clamp_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'clamp_vector3'; + this.desc = "MaterialX:mtlx/math/clamp_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_clamp_vector3FA.nodedef_name = 'ND_clamp_vector3FA'; +mtlx_math_clamp_vector3FA.nodedef_node = 'clamp'; +mtlx_math_clamp_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector3FA', mtlx_math_clamp_vector3FA); + +// MaterialX node type: mtlx/math/clamp_vector4FA +// +function mtlx_math_clamp_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_clamp_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'clamp'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_clamp_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'clamp_vector4'; + this.desc = "MaterialX:mtlx/math/clamp_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_clamp_vector4FA.nodedef_name = 'ND_clamp_vector4FA'; +mtlx_math_clamp_vector4FA.nodedef_node = 'clamp'; +mtlx_math_clamp_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/clamp.html'; +LiteGraph.registerNodeType('mtlx/math/clamp_vector4FA', mtlx_math_clamp_vector4FA); + +// MaterialX node type: mtlx/math/min_float +// +function mtlx_math_min_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'min_float'; + this.desc = "MaterialX:mtlx/math/min_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_min_float.nodedef_name = 'ND_min_float'; +mtlx_math_min_float.nodedef_node = 'min'; +mtlx_math_min_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_float', mtlx_math_min_float); + +// MaterialX node type: mtlx/math/min_color3 +// +function mtlx_math_min_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'min_color3'; + this.desc = "MaterialX:mtlx/math/min_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_min_color3.nodedef_name = 'ND_min_color3'; +mtlx_math_min_color3.nodedef_node = 'min'; +mtlx_math_min_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_color3', mtlx_math_min_color3); + +// MaterialX node type: mtlx/math/min_color4 +// +function mtlx_math_min_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'min_color4'; + this.desc = "MaterialX:mtlx/math/min_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_min_color4.nodedef_name = 'ND_min_color4'; +mtlx_math_min_color4.nodedef_node = 'min'; +mtlx_math_min_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_color4', mtlx_math_min_color4); + +// MaterialX node type: mtlx/math/min_vector2 +// +function mtlx_math_min_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'min_vector2'; + this.desc = "MaterialX:mtlx/math/min_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_min_vector2.nodedef_name = 'ND_min_vector2'; +mtlx_math_min_vector2.nodedef_node = 'min'; +mtlx_math_min_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector2', mtlx_math_min_vector2); + +// MaterialX node type: mtlx/math/min_vector3 +// +function mtlx_math_min_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'min_vector3'; + this.desc = "MaterialX:mtlx/math/min_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_min_vector3.nodedef_name = 'ND_min_vector3'; +mtlx_math_min_vector3.nodedef_node = 'min'; +mtlx_math_min_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector3', mtlx_math_min_vector3); + +// MaterialX node type: mtlx/math/min_vector4 +// +function mtlx_math_min_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'min_vector4'; + this.desc = "MaterialX:mtlx/math/min_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_min_vector4.nodedef_name = 'ND_min_vector4'; +mtlx_math_min_vector4.nodedef_node = 'min'; +mtlx_math_min_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector4', mtlx_math_min_vector4); + +// MaterialX node type: mtlx/math/min_color3FA +// +function mtlx_math_min_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'min_color3'; + this.desc = "MaterialX:mtlx/math/min_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_min_color3FA.nodedef_name = 'ND_min_color3FA'; +mtlx_math_min_color3FA.nodedef_node = 'min'; +mtlx_math_min_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_color3FA', mtlx_math_min_color3FA); + +// MaterialX node type: mtlx/math/min_color4FA +// +function mtlx_math_min_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'min_color4'; + this.desc = "MaterialX:mtlx/math/min_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_min_color4FA.nodedef_name = 'ND_min_color4FA'; +mtlx_math_min_color4FA.nodedef_node = 'min'; +mtlx_math_min_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_color4FA', mtlx_math_min_color4FA); + +// MaterialX node type: mtlx/math/min_vector2FA +// +function mtlx_math_min_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'min_vector2'; + this.desc = "MaterialX:mtlx/math/min_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_min_vector2FA.nodedef_name = 'ND_min_vector2FA'; +mtlx_math_min_vector2FA.nodedef_node = 'min'; +mtlx_math_min_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector2FA', mtlx_math_min_vector2FA); + +// MaterialX node type: mtlx/math/min_vector3FA +// +function mtlx_math_min_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'min_vector3'; + this.desc = "MaterialX:mtlx/math/min_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_min_vector3FA.nodedef_name = 'ND_min_vector3FA'; +mtlx_math_min_vector3FA.nodedef_node = 'min'; +mtlx_math_min_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector3FA', mtlx_math_min_vector3FA); + +// MaterialX node type: mtlx/math/min_vector4FA +// +function mtlx_math_min_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_min_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'min'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_min_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'min_vector4'; + this.desc = "MaterialX:mtlx/math/min_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_min_vector4FA.nodedef_name = 'ND_min_vector4FA'; +mtlx_math_min_vector4FA.nodedef_node = 'min'; +mtlx_math_min_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/min.html'; +LiteGraph.registerNodeType('mtlx/math/min_vector4FA', mtlx_math_min_vector4FA); + +// MaterialX node type: mtlx/math/max_float +// +function mtlx_math_max_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'max_float'; + this.desc = "MaterialX:mtlx/math/max_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_max_float.nodedef_name = 'ND_max_float'; +mtlx_math_max_float.nodedef_node = 'max'; +mtlx_math_max_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_float', mtlx_math_max_float); + +// MaterialX node type: mtlx/math/max_color3 +// +function mtlx_math_max_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'max_color3'; + this.desc = "MaterialX:mtlx/math/max_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_max_color3.nodedef_name = 'ND_max_color3'; +mtlx_math_max_color3.nodedef_node = 'max'; +mtlx_math_max_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_color3', mtlx_math_max_color3); + +// MaterialX node type: mtlx/math/max_color4 +// +function mtlx_math_max_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'max_color4'; + this.desc = "MaterialX:mtlx/math/max_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_max_color4.nodedef_name = 'ND_max_color4'; +mtlx_math_max_color4.nodedef_node = 'max'; +mtlx_math_max_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_color4', mtlx_math_max_color4); + +// MaterialX node type: mtlx/math/max_vector2 +// +function mtlx_math_max_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'max_vector2'; + this.desc = "MaterialX:mtlx/math/max_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_max_vector2.nodedef_name = 'ND_max_vector2'; +mtlx_math_max_vector2.nodedef_node = 'max'; +mtlx_math_max_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector2', mtlx_math_max_vector2); + +// MaterialX node type: mtlx/math/max_vector3 +// +function mtlx_math_max_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'max_vector3'; + this.desc = "MaterialX:mtlx/math/max_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_max_vector3.nodedef_name = 'ND_max_vector3'; +mtlx_math_max_vector3.nodedef_node = 'max'; +mtlx_math_max_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector3', mtlx_math_max_vector3); + +// MaterialX node type: mtlx/math/max_vector4 +// +function mtlx_math_max_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'max_vector4'; + this.desc = "MaterialX:mtlx/math/max_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_max_vector4.nodedef_name = 'ND_max_vector4'; +mtlx_math_max_vector4.nodedef_node = 'max'; +mtlx_math_max_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector4', mtlx_math_max_vector4); + +// MaterialX node type: mtlx/math/max_color3FA +// +function mtlx_math_max_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'max_color3'; + this.desc = "MaterialX:mtlx/math/max_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_math_max_color3FA.nodedef_name = 'ND_max_color3FA'; +mtlx_math_max_color3FA.nodedef_node = 'max'; +mtlx_math_max_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_color3FA', mtlx_math_max_color3FA); + +// MaterialX node type: mtlx/math/max_color4FA +// +function mtlx_math_max_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_color4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'max_color4'; + this.desc = "MaterialX:mtlx/math/max_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_math_max_color4FA.nodedef_name = 'ND_max_color4FA'; +mtlx_math_max_color4FA.nodedef_node = 'max'; +mtlx_math_max_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_color4FA', mtlx_math_max_color4FA); + +// MaterialX node type: mtlx/math/max_vector2FA +// +function mtlx_math_max_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector2FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'max_vector2'; + this.desc = "MaterialX:mtlx/math/max_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_max_vector2FA.nodedef_name = 'ND_max_vector2FA'; +mtlx_math_max_vector2FA.nodedef_node = 'max'; +mtlx_math_max_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector2FA', mtlx_math_max_vector2FA); + +// MaterialX node type: mtlx/math/max_vector3FA +// +function mtlx_math_max_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector3FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'max_vector3'; + this.desc = "MaterialX:mtlx/math/max_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_max_vector3FA.nodedef_name = 'ND_max_vector3FA'; +mtlx_math_max_vector3FA.nodedef_node = 'max'; +mtlx_math_max_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector3FA', mtlx_math_max_vector3FA); + +// MaterialX node type: mtlx/math/max_vector4FA +// +function mtlx_math_max_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_max_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'max'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_max_vector4FA_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'max_vector4'; + this.desc = "MaterialX:mtlx/math/max_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_max_vector4FA.nodedef_name = 'ND_max_vector4FA'; +mtlx_math_max_vector4FA.nodedef_node = 'max'; +mtlx_math_max_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/max.html'; +LiteGraph.registerNodeType('mtlx/math/max_vector4FA', mtlx_math_max_vector4FA); + +// MaterialX node type: mtlx/math/normalize_vector2 +// +function mtlx_math_normalize_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normalize_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'normalize'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'normalize_vector2'; + this.desc = "MaterialX:mtlx/math/normalize_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_normalize_vector2.nodedef_name = 'ND_normalize_vector2'; +mtlx_math_normalize_vector2.nodedef_node = 'normalize'; +mtlx_math_normalize_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; +LiteGraph.registerNodeType('mtlx/math/normalize_vector2', mtlx_math_normalize_vector2); + +// MaterialX node type: mtlx/math/normalize_vector3 +// +function mtlx_math_normalize_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normalize_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'normalize'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'normalize_vector3'; + this.desc = "MaterialX:mtlx/math/normalize_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_normalize_vector3.nodedef_name = 'ND_normalize_vector3'; +mtlx_math_normalize_vector3.nodedef_node = 'normalize'; +mtlx_math_normalize_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; +LiteGraph.registerNodeType('mtlx/math/normalize_vector3', mtlx_math_normalize_vector3); + +// MaterialX node type: mtlx/math/normalize_vector4 +// +function mtlx_math_normalize_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normalize_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'normalize'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalize_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'normalize_vector4'; + this.desc = "MaterialX:mtlx/math/normalize_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_normalize_vector4.nodedef_name = 'ND_normalize_vector4'; +mtlx_math_normalize_vector4.nodedef_node = 'normalize'; +mtlx_math_normalize_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalize.html'; +LiteGraph.registerNodeType('mtlx/math/normalize_vector4', mtlx_math_normalize_vector4); + +// MaterialX node type: mtlx/math/magnitude_vector2 +// +function mtlx_math_magnitude_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_magnitude_vector2'; + this.nodedef_type = 'float'; + this.nodedef_node = 'magnitude'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'magnitude_float'; + this.desc = "MaterialX:mtlx/math/magnitude_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_magnitude_vector2.nodedef_name = 'ND_magnitude_vector2'; +mtlx_math_magnitude_vector2.nodedef_node = 'magnitude'; +mtlx_math_magnitude_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; +LiteGraph.registerNodeType('mtlx/math/magnitude_vector2', mtlx_math_magnitude_vector2); + +// MaterialX node type: mtlx/math/magnitude_vector3 +// +function mtlx_math_magnitude_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_magnitude_vector3'; + this.nodedef_type = 'float'; + this.nodedef_node = 'magnitude'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'magnitude_float'; + this.desc = "MaterialX:mtlx/math/magnitude_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_magnitude_vector3.nodedef_name = 'ND_magnitude_vector3'; +mtlx_math_magnitude_vector3.nodedef_node = 'magnitude'; +mtlx_math_magnitude_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; +LiteGraph.registerNodeType('mtlx/math/magnitude_vector3', mtlx_math_magnitude_vector3); + +// MaterialX node type: mtlx/math/magnitude_vector4 +// +function mtlx_math_magnitude_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_magnitude_vector4'; + this.nodedef_type = 'float'; + this.nodedef_node = 'magnitude'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_magnitude_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'magnitude_float'; + this.desc = "MaterialX:mtlx/math/magnitude_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_magnitude_vector4.nodedef_name = 'ND_magnitude_vector4'; +mtlx_math_magnitude_vector4.nodedef_node = 'magnitude'; +mtlx_math_magnitude_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/magnitude.html'; +LiteGraph.registerNodeType('mtlx/math/magnitude_vector4', mtlx_math_magnitude_vector4); + +// MaterialX node type: mtlx/math/distance_vector2 +// +function mtlx_math_distance_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_distance_vector2'; + this.nodedef_type = 'float'; + this.nodedef_node = 'distance'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'distance_float'; + this.desc = "MaterialX:mtlx/math/distance_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_distance_vector2.nodedef_name = 'ND_distance_vector2'; +mtlx_math_distance_vector2.nodedef_node = 'distance'; +mtlx_math_distance_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; +LiteGraph.registerNodeType('mtlx/math/distance_vector2', mtlx_math_distance_vector2); + +// MaterialX node type: mtlx/math/distance_vector3 +// +function mtlx_math_distance_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_distance_vector3'; + this.nodedef_type = 'float'; + this.nodedef_node = 'distance'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'distance_float'; + this.desc = "MaterialX:mtlx/math/distance_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_distance_vector3.nodedef_name = 'ND_distance_vector3'; +mtlx_math_distance_vector3.nodedef_node = 'distance'; +mtlx_math_distance_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; +LiteGraph.registerNodeType('mtlx/math/distance_vector3', mtlx_math_distance_vector3); + +// MaterialX node type: mtlx/math/distance_vector4 +// +function mtlx_math_distance_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_distance_vector4'; + this.nodedef_type = 'float'; + this.nodedef_node = 'distance'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_distance_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "in2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'distance_float'; + this.desc = "MaterialX:mtlx/math/distance_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_distance_vector4.nodedef_name = 'ND_distance_vector4'; +mtlx_math_distance_vector4.nodedef_node = 'distance'; +mtlx_math_distance_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/distance.html'; +LiteGraph.registerNodeType('mtlx/math/distance_vector4', mtlx_math_distance_vector4); + +// MaterialX node type: mtlx/math/dotproduct_vector2 +// +function mtlx_math_dotproduct_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dotproduct_vector2'; + this.nodedef_type = 'float'; + this.nodedef_node = 'dotproduct'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'dotproduct_float'; + this.desc = "MaterialX:mtlx/math/dotproduct_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_dotproduct_vector2.nodedef_name = 'ND_dotproduct_vector2'; +mtlx_math_dotproduct_vector2.nodedef_node = 'dotproduct'; +mtlx_math_dotproduct_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; +LiteGraph.registerNodeType('mtlx/math/dotproduct_vector2', mtlx_math_dotproduct_vector2); + +// MaterialX node type: mtlx/math/dotproduct_vector3 +// +function mtlx_math_dotproduct_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dotproduct_vector3'; + this.nodedef_type = 'float'; + this.nodedef_node = 'dotproduct'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'dotproduct_float'; + this.desc = "MaterialX:mtlx/math/dotproduct_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_dotproduct_vector3.nodedef_name = 'ND_dotproduct_vector3'; +mtlx_math_dotproduct_vector3.nodedef_node = 'dotproduct'; +mtlx_math_dotproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; +LiteGraph.registerNodeType('mtlx/math/dotproduct_vector3', mtlx_math_dotproduct_vector3); + +// MaterialX node type: mtlx/math/dotproduct_vector4 +// +function mtlx_math_dotproduct_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dotproduct_vector4'; + this.nodedef_type = 'float'; + this.nodedef_node = 'dotproduct'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dotproduct_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'dotproduct_float'; + this.desc = "MaterialX:mtlx/math/dotproduct_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_dotproduct_vector4.nodedef_name = 'ND_dotproduct_vector4'; +mtlx_math_dotproduct_vector4.nodedef_node = 'dotproduct'; +mtlx_math_dotproduct_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dotproduct.html'; +LiteGraph.registerNodeType('mtlx/math/dotproduct_vector4', mtlx_math_dotproduct_vector4); + +// MaterialX node type: mtlx/math/crossproduct_vector3 +// +function mtlx_math_crossproduct_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_crossproduct_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'crossproduct'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_crossproduct_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'crossproduct_vector3'; + this.desc = "MaterialX:mtlx/math/crossproduct_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_crossproduct_vector3.nodedef_name = 'ND_crossproduct_vector3'; +mtlx_math_crossproduct_vector3.nodedef_node = 'crossproduct'; +mtlx_math_crossproduct_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/crossproduct.html'; +LiteGraph.registerNodeType('mtlx/math/crossproduct_vector3', mtlx_math_crossproduct_vector3); + +// MaterialX node type: mtlx/math/transformpoint_vector3 +// +function mtlx_math_transformpoint_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformpoint_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'transformpoint'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformpoint_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fromspace', 'string'); + this.addProperty('fromspace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tospace', 'string'); + this.addProperty('tospace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'transformpoint_vector3'; + this.desc = "MaterialX:mtlx/math/transformpoint_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_transformpoint_vector3.nodedef_name = 'ND_transformpoint_vector3'; +mtlx_math_transformpoint_vector3.nodedef_node = 'transformpoint'; +mtlx_math_transformpoint_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformpoint.html'; +LiteGraph.registerNodeType('mtlx/math/transformpoint_vector3', mtlx_math_transformpoint_vector3); + +// MaterialX node type: mtlx/math/transformvector_vector3 +// +function mtlx_math_transformvector_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformvector_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'transformvector'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformvector_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fromspace', 'string'); + this.addProperty('fromspace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tospace', 'string'); + this.addProperty('tospace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'transformvector_vector3'; + this.desc = "MaterialX:mtlx/math/transformvector_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_transformvector_vector3.nodedef_name = 'ND_transformvector_vector3'; +mtlx_math_transformvector_vector3.nodedef_node = 'transformvector'; +mtlx_math_transformvector_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformvector.html'; +LiteGraph.registerNodeType('mtlx/math/transformvector_vector3', mtlx_math_transformvector_vector3); + +// MaterialX node type: mtlx/math/transformnormal_vector3 +// +function mtlx_math_transformnormal_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformnormal_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'transformnormal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformnormal_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fromspace', 'string'); + this.addProperty('fromspace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tospace', 'string'); + this.addProperty('tospace', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'transformnormal_vector3'; + this.desc = "MaterialX:mtlx/math/transformnormal_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_transformnormal_vector3.nodedef_name = 'ND_transformnormal_vector3'; +mtlx_math_transformnormal_vector3.nodedef_node = 'transformnormal'; +mtlx_math_transformnormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformnormal.html'; +LiteGraph.registerNodeType('mtlx/math/transformnormal_vector3', mtlx_math_transformnormal_vector3); + +// MaterialX node type: mtlx/math/transformmatrix_vector2M3 +// +function mtlx_math_transformmatrix_vector2M3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformmatrix_vector2M3'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'transformmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector2M3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mat', 'matrix33'); + this.addProperty('mat', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'transformmatrix_vector2'; + this.desc = "MaterialX:mtlx/math/transformmatrix_vector2M3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_transformmatrix_vector2M3.nodedef_name = 'ND_transformmatrix_vector2M3'; +mtlx_math_transformmatrix_vector2M3.nodedef_node = 'transformmatrix'; +mtlx_math_transformmatrix_vector2M3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector2M3', mtlx_math_transformmatrix_vector2M3); + +// MaterialX node type: mtlx/math/transformmatrix_vector3 +// +function mtlx_math_transformmatrix_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformmatrix_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'transformmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mat', 'matrix33'); + this.addProperty('mat', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'transformmatrix_vector3'; + this.desc = "MaterialX:mtlx/math/transformmatrix_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_transformmatrix_vector3.nodedef_name = 'ND_transformmatrix_vector3'; +mtlx_math_transformmatrix_vector3.nodedef_node = 'transformmatrix'; +mtlx_math_transformmatrix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3', mtlx_math_transformmatrix_vector3); + +// MaterialX node type: mtlx/math/transformmatrix_vector3M4 +// +function mtlx_math_transformmatrix_vector3M4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformmatrix_vector3M4'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'transformmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector3M4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mat', 'matrix44'); + this.addProperty('mat', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'transformmatrix_vector3'; + this.desc = "MaterialX:mtlx/math/transformmatrix_vector3M4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_transformmatrix_vector3M4.nodedef_name = 'ND_transformmatrix_vector3M4'; +mtlx_math_transformmatrix_vector3M4.nodedef_node = 'transformmatrix'; +mtlx_math_transformmatrix_vector3M4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector3M4', mtlx_math_transformmatrix_vector3M4); + +// MaterialX node type: mtlx/math/transformmatrix_vector4 +// +function mtlx_math_transformmatrix_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transformmatrix_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'transformmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transformmatrix_vector4_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mat', 'matrix44'); + this.addProperty('mat', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'transformmatrix_vector4'; + this.desc = "MaterialX:mtlx/math/transformmatrix_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_math_transformmatrix_vector4.nodedef_name = 'ND_transformmatrix_vector4'; +mtlx_math_transformmatrix_vector4.nodedef_node = 'transformmatrix'; +mtlx_math_transformmatrix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transformmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/transformmatrix_vector4', mtlx_math_transformmatrix_vector4); + +// MaterialX node type: mtlx/math/normalmap_float +// +function mtlx_math_normalmap_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normalmap_float'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'normalmap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.5, 0.5, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('space', 'string'); + this.addProperty('space', 'tangent', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'float'); + this.addProperty('scale', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'normalmap_vector3'; + this.desc = "MaterialX:mtlx/math/normalmap_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_normalmap_float.nodedef_name = 'ND_normalmap_float'; +mtlx_math_normalmap_float.nodedef_node = 'normalmap'; +mtlx_math_normalmap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; +LiteGraph.registerNodeType('mtlx/math/normalmap_float', mtlx_math_normalmap_float); + +// MaterialX node type: mtlx/math/normalmap_vector2 +// +function mtlx_math_normalmap_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_normalmap_vector2'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'normalmap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_normalmap_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.5, 0.5, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('space', 'string'); + this.addProperty('space', 'tangent', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'normalmap_vector3'; + this.desc = "MaterialX:mtlx/math/normalmap_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_normalmap_vector2.nodedef_name = 'ND_normalmap_vector2'; +mtlx_math_normalmap_vector2.nodedef_node = 'normalmap'; +mtlx_math_normalmap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/normalmap.html'; +LiteGraph.registerNodeType('mtlx/math/normalmap_vector2', mtlx_math_normalmap_vector2); + +// MaterialX node type: mtlx/math/transpose_matrix33 +// +function mtlx_math_transpose_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transpose_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'transpose'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'transpose_matrix33'; + this.desc = "MaterialX:mtlx/math/transpose_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_transpose_matrix33.nodedef_name = 'ND_transpose_matrix33'; +mtlx_math_transpose_matrix33.nodedef_node = 'transpose'; +mtlx_math_transpose_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; +LiteGraph.registerNodeType('mtlx/math/transpose_matrix33', mtlx_math_transpose_matrix33); + +// MaterialX node type: mtlx/math/transpose_matrix44 +// +function mtlx_math_transpose_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_transpose_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'transpose'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_transpose_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'transpose_matrix44'; + this.desc = "MaterialX:mtlx/math/transpose_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_transpose_matrix44.nodedef_name = 'ND_transpose_matrix44'; +mtlx_math_transpose_matrix44.nodedef_node = 'transpose'; +mtlx_math_transpose_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/transpose.html'; +LiteGraph.registerNodeType('mtlx/math/transpose_matrix44', mtlx_math_transpose_matrix44); + +// MaterialX node type: mtlx/math/determinant_matrix33 +// +function mtlx_math_determinant_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_determinant_matrix33'; + this.nodedef_type = 'float'; + this.nodedef_node = 'determinant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'determinant_float'; + this.desc = "MaterialX:mtlx/math/determinant_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_determinant_matrix33.nodedef_name = 'ND_determinant_matrix33'; +mtlx_math_determinant_matrix33.nodedef_node = 'determinant'; +mtlx_math_determinant_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; +LiteGraph.registerNodeType('mtlx/math/determinant_matrix33', mtlx_math_determinant_matrix33); + +// MaterialX node type: mtlx/math/determinant_matrix44 +// +function mtlx_math_determinant_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_determinant_matrix44'; + this.nodedef_type = 'float'; + this.nodedef_node = 'determinant'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_determinant_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'determinant_float'; + this.desc = "MaterialX:mtlx/math/determinant_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_determinant_matrix44.nodedef_name = 'ND_determinant_matrix44'; +mtlx_math_determinant_matrix44.nodedef_node = 'determinant'; +mtlx_math_determinant_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/determinant.html'; +LiteGraph.registerNodeType('mtlx/math/determinant_matrix44', mtlx_math_determinant_matrix44); + +// MaterialX node type: mtlx/math/invertmatrix_matrix33 +// +function mtlx_math_invertmatrix_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invertmatrix_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'invertmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'invertmatrix_matrix33'; + this.desc = "MaterialX:mtlx/math/invertmatrix_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_invertmatrix_matrix33.nodedef_name = 'ND_invertmatrix_matrix33'; +mtlx_math_invertmatrix_matrix33.nodedef_node = 'invertmatrix'; +mtlx_math_invertmatrix_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix33', mtlx_math_invertmatrix_matrix33); + +// MaterialX node type: mtlx/math/invertmatrix_matrix44 +// +function mtlx_math_invertmatrix_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_invertmatrix_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'invertmatrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_invertmatrix_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'invertmatrix_matrix44'; + this.desc = "MaterialX:mtlx/math/invertmatrix_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_invertmatrix_matrix44.nodedef_name = 'ND_invertmatrix_matrix44'; +mtlx_math_invertmatrix_matrix44.nodedef_node = 'invertmatrix'; +mtlx_math_invertmatrix_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/invertmatrix.html'; +LiteGraph.registerNodeType('mtlx/math/invertmatrix_matrix44', mtlx_math_invertmatrix_matrix44); + +// MaterialX node type: mtlx/math/rotate2d_vector2 +// +function mtlx_math_rotate2d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rotate2d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'rotate2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate2d_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'rotate2d_vector2'; + this.desc = "MaterialX:mtlx/math/rotate2d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_rotate2d_vector2.nodedef_name = 'ND_rotate2d_vector2'; +mtlx_math_rotate2d_vector2.nodedef_node = 'rotate2d'; +mtlx_math_rotate2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate2d.html'; +LiteGraph.registerNodeType('mtlx/math/rotate2d_vector2', mtlx_math_rotate2d_vector2); + +// MaterialX node type: mtlx/math/rotate3d_vector3 +// +function mtlx_math_rotate3d_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rotate3d_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'rotate3d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rotate3d_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('axis', 'vector3'); + this.addProperty('axis', [0.0, 1.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'rotate3d_vector3'; + this.desc = "MaterialX:mtlx/math/rotate3d_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_rotate3d_vector3.nodedef_name = 'ND_rotate3d_vector3'; +mtlx_math_rotate3d_vector3.nodedef_node = 'rotate3d'; +mtlx_math_rotate3d_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rotate3d.html'; +LiteGraph.registerNodeType('mtlx/math/rotate3d_vector3', mtlx_math_rotate3d_vector3); + +// MaterialX node type: mtlx/math/place2d_vector2 +// +function mtlx_math_place2d_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_place2d_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'place2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_place2d_vector2_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'place2d_vector2'; + this.desc = "MaterialX:mtlx/math/place2d_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_place2d_vector2.nodedef_name = 'ND_place2d_vector2'; +mtlx_math_place2d_vector2.nodedef_node = 'place2d'; +mtlx_math_place2d_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/place2d.html'; +LiteGraph.registerNodeType('mtlx/math/place2d_vector2', mtlx_math_place2d_vector2); + +// MaterialX node type: mtlx/math/trianglewave_float +// +function mtlx_math_trianglewave_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_trianglewave_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'trianglewave'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_trianglewave_float_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'float'); + this.addProperty('in', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'trianglewave_float'; + this.desc = "MaterialX:mtlx/math/trianglewave_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_math_trianglewave_float.nodedef_name = 'ND_trianglewave_float'; +mtlx_math_trianglewave_float.nodedef_node = 'trianglewave'; +mtlx_math_trianglewave_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/trianglewave.html'; +LiteGraph.registerNodeType('mtlx/math/trianglewave_float', mtlx_math_trianglewave_float); + +// MaterialX node type: mtlx/math/reflect_vector3 +// +function mtlx_math_reflect_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_reflect_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'reflect'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_reflect_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [1.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'reflect_vector3'; + this.desc = "MaterialX:mtlx/math/reflect_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_reflect_vector3.nodedef_name = 'ND_reflect_vector3'; +mtlx_math_reflect_vector3.nodedef_node = 'reflect'; +mtlx_math_reflect_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/reflect.html'; +LiteGraph.registerNodeType('mtlx/math/reflect_vector3', mtlx_math_reflect_vector3); + +// MaterialX node type: mtlx/math/refract_vector3 +// +function mtlx_math_refract_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_refract_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'refract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_refract_vector3_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector3'); + this.addProperty('in', [1.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('ior', 'float'); + this.addProperty('ior', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'refract_vector3'; + this.desc = "MaterialX:mtlx/math/refract_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_math_refract_vector3.nodedef_name = 'ND_refract_vector3'; +mtlx_math_refract_vector3.nodedef_node = 'refract'; +mtlx_math_refract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/refract.html'; +LiteGraph.registerNodeType('mtlx/math/refract_vector3', mtlx_math_refract_vector3); + +// MaterialX node type: mtlx/adjustment/remap_float +// +function mtlx_adjustment_remap_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_float_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'remap_float'; + this.desc = "MaterialX:mtlx/adjustment/remap_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_adjustment_remap_float.nodedef_name = 'ND_remap_float'; +mtlx_adjustment_remap_float.nodedef_node = 'remap'; +mtlx_adjustment_remap_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_float', mtlx_adjustment_remap_float); + +// MaterialX node type: mtlx/adjustment/remap_color3 +// +function mtlx_adjustment_remap_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'color3'); + this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'color3'); + this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'color3'); + this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'color3'); + this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'remap_color3'; + this.desc = "MaterialX:mtlx/adjustment/remap_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_remap_color3.nodedef_name = 'ND_remap_color3'; +mtlx_adjustment_remap_color3.nodedef_node = 'remap'; +mtlx_adjustment_remap_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_color3', mtlx_adjustment_remap_color3); + +// MaterialX node type: mtlx/adjustment/remap_color4 +// +function mtlx_adjustment_remap_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'color4'); + this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'color4'); + this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'color4'); + this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'color4'); + this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'remap_color4'; + this.desc = "MaterialX:mtlx/adjustment/remap_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_remap_color4.nodedef_name = 'ND_remap_color4'; +mtlx_adjustment_remap_color4.nodedef_node = 'remap'; +mtlx_adjustment_remap_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_color4', mtlx_adjustment_remap_color4); + +// MaterialX node type: mtlx/adjustment/remap_vector2 +// +function mtlx_adjustment_remap_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector2'); + this.addProperty('inlow', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector2'); + this.addProperty('inhigh', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector2'); + this.addProperty('outlow', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector2'); + this.addProperty('outhigh', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'remap_vector2'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_remap_vector2.nodedef_name = 'ND_remap_vector2'; +mtlx_adjustment_remap_vector2.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2', mtlx_adjustment_remap_vector2); + +// MaterialX node type: mtlx/adjustment/remap_vector3 +// +function mtlx_adjustment_remap_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector3'); + this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector3'); + this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector3'); + this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector3'); + this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'remap_vector3'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_remap_vector3.nodedef_name = 'ND_remap_vector3'; +mtlx_adjustment_remap_vector3.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3', mtlx_adjustment_remap_vector3); + +// MaterialX node type: mtlx/adjustment/remap_vector4 +// +function mtlx_adjustment_remap_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector4'); + this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector4'); + this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector4'); + this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector4'); + this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'remap_vector4'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_remap_vector4.nodedef_name = 'ND_remap_vector4'; +mtlx_adjustment_remap_vector4.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4', mtlx_adjustment_remap_vector4); + +// MaterialX node type: mtlx/adjustment/remap_color3FA +// +function mtlx_adjustment_remap_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'remap_color3'; + this.desc = "MaterialX:mtlx/adjustment/remap_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_remap_color3FA.nodedef_name = 'ND_remap_color3FA'; +mtlx_adjustment_remap_color3FA.nodedef_node = 'remap'; +mtlx_adjustment_remap_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_color3FA', mtlx_adjustment_remap_color3FA); + +// MaterialX node type: mtlx/adjustment/remap_color4FA +// +function mtlx_adjustment_remap_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_color4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'remap_color4'; + this.desc = "MaterialX:mtlx/adjustment/remap_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_remap_color4FA.nodedef_name = 'ND_remap_color4FA'; +mtlx_adjustment_remap_color4FA.nodedef_node = 'remap'; +mtlx_adjustment_remap_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_color4FA', mtlx_adjustment_remap_color4FA); + +// MaterialX node type: mtlx/adjustment/remap_vector2FA +// +function mtlx_adjustment_remap_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector2FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'remap_vector2'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_remap_vector2FA.nodedef_name = 'ND_remap_vector2FA'; +mtlx_adjustment_remap_vector2FA.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector2FA', mtlx_adjustment_remap_vector2FA); + +// MaterialX node type: mtlx/adjustment/remap_vector3FA +// +function mtlx_adjustment_remap_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'remap_vector3'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_remap_vector3FA.nodedef_name = 'ND_remap_vector3FA'; +mtlx_adjustment_remap_vector3FA.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector3FA', mtlx_adjustment_remap_vector3FA); + +// MaterialX node type: mtlx/adjustment/remap_vector4FA +// +function mtlx_adjustment_remap_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_remap_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'remap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_remap_vector4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'remap_vector4'; + this.desc = "MaterialX:mtlx/adjustment/remap_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_remap_vector4FA.nodedef_name = 'ND_remap_vector4FA'; +mtlx_adjustment_remap_vector4FA.nodedef_node = 'remap'; +mtlx_adjustment_remap_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/remap.html'; +LiteGraph.registerNodeType('mtlx/adjustment/remap_vector4FA', mtlx_adjustment_remap_vector4FA); + +// MaterialX node type: mtlx/adjustment/smoothstep_float +// +function mtlx_adjustment_smoothstep_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_float_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'smoothstep_float'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_adjustment_smoothstep_float.nodedef_name = 'ND_smoothstep_float'; +mtlx_adjustment_smoothstep_float.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_float', mtlx_adjustment_smoothstep_float); + +// MaterialX node type: mtlx/adjustment/smoothstep_color3 +// +function mtlx_adjustment_smoothstep_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'color3'); + this.addProperty('low', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'color3'); + this.addProperty('high', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'smoothstep_color3'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_smoothstep_color3.nodedef_name = 'ND_smoothstep_color3'; +mtlx_adjustment_smoothstep_color3.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3', mtlx_adjustment_smoothstep_color3); + +// MaterialX node type: mtlx/adjustment/smoothstep_color4 +// +function mtlx_adjustment_smoothstep_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'color4'); + this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'color4'); + this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'smoothstep_color4'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_smoothstep_color4.nodedef_name = 'ND_smoothstep_color4'; +mtlx_adjustment_smoothstep_color4.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4', mtlx_adjustment_smoothstep_color4); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector2 +// +function mtlx_adjustment_smoothstep_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector2'); + this.addProperty('low', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector2'); + this.addProperty('high', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'smoothstep_vector2'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_smoothstep_vector2.nodedef_name = 'ND_smoothstep_vector2'; +mtlx_adjustment_smoothstep_vector2.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2', mtlx_adjustment_smoothstep_vector2); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector3 +// +function mtlx_adjustment_smoothstep_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector3'); + this.addProperty('low', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector3'); + this.addProperty('high', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'smoothstep_vector3'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_smoothstep_vector3.nodedef_name = 'ND_smoothstep_vector3'; +mtlx_adjustment_smoothstep_vector3.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3', mtlx_adjustment_smoothstep_vector3); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector4 +// +function mtlx_adjustment_smoothstep_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'vector4'); + this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'vector4'); + this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'smoothstep_vector4'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_smoothstep_vector4.nodedef_name = 'ND_smoothstep_vector4'; +mtlx_adjustment_smoothstep_vector4.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4', mtlx_adjustment_smoothstep_vector4); + +// MaterialX node type: mtlx/adjustment/smoothstep_color3FA +// +function mtlx_adjustment_smoothstep_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'smoothstep_color3'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_smoothstep_color3FA.nodedef_name = 'ND_smoothstep_color3FA'; +mtlx_adjustment_smoothstep_color3FA.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color3FA', mtlx_adjustment_smoothstep_color3FA); + +// MaterialX node type: mtlx/adjustment/smoothstep_color4FA +// +function mtlx_adjustment_smoothstep_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_color4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'smoothstep_color4'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_smoothstep_color4FA.nodedef_name = 'ND_smoothstep_color4FA'; +mtlx_adjustment_smoothstep_color4FA.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_color4FA', mtlx_adjustment_smoothstep_color4FA); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector2FA +// +function mtlx_adjustment_smoothstep_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector2FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'smoothstep_vector2'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_smoothstep_vector2FA.nodedef_name = 'ND_smoothstep_vector2FA'; +mtlx_adjustment_smoothstep_vector2FA.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector2FA', mtlx_adjustment_smoothstep_vector2FA); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector3FA +// +function mtlx_adjustment_smoothstep_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'smoothstep_vector3'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_smoothstep_vector3FA.nodedef_name = 'ND_smoothstep_vector3FA'; +mtlx_adjustment_smoothstep_vector3FA.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector3FA', mtlx_adjustment_smoothstep_vector3FA); + +// MaterialX node type: mtlx/adjustment/smoothstep_vector4FA +// +function mtlx_adjustment_smoothstep_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_smoothstep_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'smoothstep'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_smoothstep_vector4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('low', 'float'); + this.addProperty('low', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('high', 'float'); + this.addProperty('high', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'smoothstep_vector4'; + this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_smoothstep_vector4FA.nodedef_name = 'ND_smoothstep_vector4FA'; +mtlx_adjustment_smoothstep_vector4FA.nodedef_node = 'smoothstep'; +mtlx_adjustment_smoothstep_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/smoothstep.html'; +LiteGraph.registerNodeType('mtlx/adjustment/smoothstep_vector4FA', mtlx_adjustment_smoothstep_vector4FA); + +// MaterialX node type: mtlx/adjustment/curveadjust_float +// +function mtlx_adjustment_curveadjust_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_float_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'curveadjust_float'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_adjustment_curveadjust_float.nodedef_name = 'ND_curveadjust_float'; +mtlx_adjustment_curveadjust_float.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_float', mtlx_adjustment_curveadjust_float); + +// MaterialX node type: mtlx/adjustment/curveadjust_color3 +// +function mtlx_adjustment_curveadjust_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'curveadjust_color3'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_curveadjust_color3.nodedef_name = 'ND_curveadjust_color3'; +mtlx_adjustment_curveadjust_color3.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color3', mtlx_adjustment_curveadjust_color3); + +// MaterialX node type: mtlx/adjustment/curveadjust_color4 +// +function mtlx_adjustment_curveadjust_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'curveadjust_color4'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_curveadjust_color4.nodedef_name = 'ND_curveadjust_color4'; +mtlx_adjustment_curveadjust_color4.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_color4', mtlx_adjustment_curveadjust_color4); + +// MaterialX node type: mtlx/adjustment/curveadjust_vector2 +// +function mtlx_adjustment_curveadjust_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector2_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'curveadjust_vector2'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_curveadjust_vector2.nodedef_name = 'ND_curveadjust_vector2'; +mtlx_adjustment_curveadjust_vector2.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector2', mtlx_adjustment_curveadjust_vector2); + +// MaterialX node type: mtlx/adjustment/curveadjust_vector3 +// +function mtlx_adjustment_curveadjust_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'curveadjust_vector3'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_curveadjust_vector3.nodedef_name = 'ND_curveadjust_vector3'; +mtlx_adjustment_curveadjust_vector3.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector3', mtlx_adjustment_curveadjust_vector3); + +// MaterialX node type: mtlx/adjustment/curveadjust_vector4 +// +function mtlx_adjustment_curveadjust_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_curveadjust_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'curveadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_curveadjust_vector4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('knots', 'vector2array'); + this.addProperty('knots', '', 'vector2array', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'curveadjust_vector4'; + this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_curveadjust_vector4.nodedef_name = 'ND_curveadjust_vector4'; +mtlx_adjustment_curveadjust_vector4.nodedef_node = 'curveadjust'; +mtlx_adjustment_curveadjust_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/curveadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/curveadjust_vector4', mtlx_adjustment_curveadjust_vector4); + +// MaterialX node type: mtlx/adjustment/luminance_color3 +// +function mtlx_adjustment_luminance_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_luminance_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'luminance'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lumacoeffs', 'color3'); + this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'luminance_color3'; + this.desc = "MaterialX:mtlx/adjustment/luminance_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_luminance_color3.nodedef_name = 'ND_luminance_color3'; +mtlx_adjustment_luminance_color3.nodedef_node = 'luminance'; +mtlx_adjustment_luminance_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; +LiteGraph.registerNodeType('mtlx/adjustment/luminance_color3', mtlx_adjustment_luminance_color3); + +// MaterialX node type: mtlx/adjustment/luminance_color4 +// +function mtlx_adjustment_luminance_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_luminance_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'luminance'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_luminance_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lumacoeffs', 'color3'); + this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'luminance_color4'; + this.desc = "MaterialX:mtlx/adjustment/luminance_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_luminance_color4.nodedef_name = 'ND_luminance_color4'; +mtlx_adjustment_luminance_color4.nodedef_node = 'luminance'; +mtlx_adjustment_luminance_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/luminance.html'; +LiteGraph.registerNodeType('mtlx/adjustment/luminance_color4', mtlx_adjustment_luminance_color4); + +// MaterialX node type: mtlx/adjustment/rgbtohsv_color3 +// +function mtlx_adjustment_rgbtohsv_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rgbtohsv_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'rgbtohsv'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'rgbtohsv_color3'; + this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_rgbtohsv_color3.nodedef_name = 'ND_rgbtohsv_color3'; +mtlx_adjustment_rgbtohsv_color3.nodedef_node = 'rgbtohsv'; +mtlx_adjustment_rgbtohsv_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; +LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color3', mtlx_adjustment_rgbtohsv_color3); + +// MaterialX node type: mtlx/adjustment/rgbtohsv_color4 +// +function mtlx_adjustment_rgbtohsv_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rgbtohsv_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'rgbtohsv'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rgbtohsv_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'rgbtohsv_color4'; + this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_rgbtohsv_color4.nodedef_name = 'ND_rgbtohsv_color4'; +mtlx_adjustment_rgbtohsv_color4.nodedef_node = 'rgbtohsv'; +mtlx_adjustment_rgbtohsv_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rgbtohsv.html'; +LiteGraph.registerNodeType('mtlx/adjustment/rgbtohsv_color4', mtlx_adjustment_rgbtohsv_color4); + +// MaterialX node type: mtlx/adjustment/hsvtorgb_color3 +// +function mtlx_adjustment_hsvtorgb_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_hsvtorgb_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'hsvtorgb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'hsvtorgb_color3'; + this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_hsvtorgb_color3.nodedef_name = 'ND_hsvtorgb_color3'; +mtlx_adjustment_hsvtorgb_color3.nodedef_node = 'hsvtorgb'; +mtlx_adjustment_hsvtorgb_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; +LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color3', mtlx_adjustment_hsvtorgb_color3); + +// MaterialX node type: mtlx/adjustment/hsvtorgb_color4 +// +function mtlx_adjustment_hsvtorgb_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_hsvtorgb_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'hsvtorgb'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvtorgb_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'hsvtorgb_color4'; + this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_hsvtorgb_color4.nodedef_name = 'ND_hsvtorgb_color4'; +mtlx_adjustment_hsvtorgb_color4.nodedef_node = 'hsvtorgb'; +mtlx_adjustment_hsvtorgb_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvtorgb.html'; +LiteGraph.registerNodeType('mtlx/adjustment/hsvtorgb_color4', mtlx_adjustment_hsvtorgb_color4); + +// MaterialX node type: mtlx/adjustment/contrast_float +// +function mtlx_adjustment_contrast_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_float_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'contrast_float'; + this.desc = "MaterialX:mtlx/adjustment/contrast_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_adjustment_contrast_float.nodedef_name = 'ND_contrast_float'; +mtlx_adjustment_contrast_float.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_float', mtlx_adjustment_contrast_float); + +// MaterialX node type: mtlx/adjustment/contrast_color3 +// +function mtlx_adjustment_contrast_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'color3'); + this.addProperty('amount', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'color3'); + this.addProperty('pivot', [0.5, 0.5, 0.5], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'contrast_color3'; + this.desc = "MaterialX:mtlx/adjustment/contrast_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_contrast_color3.nodedef_name = 'ND_contrast_color3'; +mtlx_adjustment_contrast_color3.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3', mtlx_adjustment_contrast_color3); + +// MaterialX node type: mtlx/adjustment/contrast_color4 +// +function mtlx_adjustment_contrast_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'color4'); + this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'color4'); + this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'contrast_color4'; + this.desc = "MaterialX:mtlx/adjustment/contrast_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_contrast_color4.nodedef_name = 'ND_contrast_color4'; +mtlx_adjustment_contrast_color4.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4', mtlx_adjustment_contrast_color4); + +// MaterialX node type: mtlx/adjustment/contrast_vector2 +// +function mtlx_adjustment_contrast_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector2'); + this.addProperty('amount', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0.5, 0.5], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'contrast_vector2'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_contrast_vector2.nodedef_name = 'ND_contrast_vector2'; +mtlx_adjustment_contrast_vector2.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2', mtlx_adjustment_contrast_vector2); + +// MaterialX node type: mtlx/adjustment/contrast_vector3 +// +function mtlx_adjustment_contrast_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector3'); + this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector3'); + this.addProperty('pivot', [0.5, 0.5, 0.5], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'contrast_vector3'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_contrast_vector3.nodedef_name = 'ND_contrast_vector3'; +mtlx_adjustment_contrast_vector3.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3', mtlx_adjustment_contrast_vector3); + +// MaterialX node type: mtlx/adjustment/contrast_vector4 +// +function mtlx_adjustment_contrast_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector4'); + this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector4'); + this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'contrast_vector4'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_contrast_vector4.nodedef_name = 'ND_contrast_vector4'; +mtlx_adjustment_contrast_vector4.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4', mtlx_adjustment_contrast_vector4); + +// MaterialX node type: mtlx/adjustment/contrast_color3FA +// +function mtlx_adjustment_contrast_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'contrast_color3'; + this.desc = "MaterialX:mtlx/adjustment/contrast_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_contrast_color3FA.nodedef_name = 'ND_contrast_color3FA'; +mtlx_adjustment_contrast_color3FA.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_color3FA', mtlx_adjustment_contrast_color3FA); + +// MaterialX node type: mtlx/adjustment/contrast_color4FA +// +function mtlx_adjustment_contrast_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_color4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'contrast_color4'; + this.desc = "MaterialX:mtlx/adjustment/contrast_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_contrast_color4FA.nodedef_name = 'ND_contrast_color4FA'; +mtlx_adjustment_contrast_color4FA.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_color4FA', mtlx_adjustment_contrast_color4FA); + +// MaterialX node type: mtlx/adjustment/contrast_vector2FA +// +function mtlx_adjustment_contrast_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector2FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'contrast_vector2'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_contrast_vector2FA.nodedef_name = 'ND_contrast_vector2FA'; +mtlx_adjustment_contrast_vector2FA.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector2FA', mtlx_adjustment_contrast_vector2FA); + +// MaterialX node type: mtlx/adjustment/contrast_vector3FA +// +function mtlx_adjustment_contrast_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'contrast_vector3'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_contrast_vector3FA.nodedef_name = 'ND_contrast_vector3FA'; +mtlx_adjustment_contrast_vector3FA.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector3FA', mtlx_adjustment_contrast_vector3FA); + +// MaterialX node type: mtlx/adjustment/contrast_vector4FA +// +function mtlx_adjustment_contrast_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_contrast_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'contrast'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_contrast_vector4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'float'); + this.addProperty('pivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'contrast_vector4'; + this.desc = "MaterialX:mtlx/adjustment/contrast_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_contrast_vector4FA.nodedef_name = 'ND_contrast_vector4FA'; +mtlx_adjustment_contrast_vector4FA.nodedef_node = 'contrast'; +mtlx_adjustment_contrast_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/contrast.html'; +LiteGraph.registerNodeType('mtlx/adjustment/contrast_vector4FA', mtlx_adjustment_contrast_vector4FA); + +// MaterialX node type: mtlx/adjustment/range_float +// +function mtlx_adjustment_range_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_float_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'range_float'; + this.desc = "MaterialX:mtlx/adjustment/range_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_adjustment_range_float.nodedef_name = 'ND_range_float'; +mtlx_adjustment_range_float.nodedef_node = 'range'; +mtlx_adjustment_range_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_float', mtlx_adjustment_range_float); + +// MaterialX node type: mtlx/adjustment/range_color3 +// +function mtlx_adjustment_range_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'color3'); + this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'color3'); + this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'color3'); + this.addProperty('gamma', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'color3'); + this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'color3'); + this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'range_color3'; + this.desc = "MaterialX:mtlx/adjustment/range_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_range_color3.nodedef_name = 'ND_range_color3'; +mtlx_adjustment_range_color3.nodedef_node = 'range'; +mtlx_adjustment_range_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_color3', mtlx_adjustment_range_color3); + +// MaterialX node type: mtlx/adjustment/range_color4 +// +function mtlx_adjustment_range_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'color4'); + this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'color4'); + this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'color4'); + this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'color4'); + this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'color4'); + this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'range_color4'; + this.desc = "MaterialX:mtlx/adjustment/range_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_range_color4.nodedef_name = 'ND_range_color4'; +mtlx_adjustment_range_color4.nodedef_node = 'range'; +mtlx_adjustment_range_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_color4', mtlx_adjustment_range_color4); + +// MaterialX node type: mtlx/adjustment/range_vector2 +// +function mtlx_adjustment_range_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector2'); + this.addProperty('inlow', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector2'); + this.addProperty('inhigh', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'vector2'); + this.addProperty('gamma', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector2'); + this.addProperty('outlow', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector2'); + this.addProperty('outhigh', [1.0, 1.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'range_vector2'; + this.desc = "MaterialX:mtlx/adjustment/range_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_range_vector2.nodedef_name = 'ND_range_vector2'; +mtlx_adjustment_range_vector2.nodedef_node = 'range'; +mtlx_adjustment_range_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector2', mtlx_adjustment_range_vector2); + +// MaterialX node type: mtlx/adjustment/range_vector3 +// +function mtlx_adjustment_range_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector3'); + this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector3'); + this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'vector3'); + this.addProperty('gamma', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector3'); + this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector3'); + this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'range_vector3'; + this.desc = "MaterialX:mtlx/adjustment/range_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_range_vector3.nodedef_name = 'ND_range_vector3'; +mtlx_adjustment_range_vector3.nodedef_node = 'range'; +mtlx_adjustment_range_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector3', mtlx_adjustment_range_vector3); + +// MaterialX node type: mtlx/adjustment/range_vector4 +// +function mtlx_adjustment_range_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'vector4'); + this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'vector4'); + this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'vector4'); + this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'vector4'); + this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'vector4'); + this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'range_vector4'; + this.desc = "MaterialX:mtlx/adjustment/range_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_range_vector4.nodedef_name = 'ND_range_vector4'; +mtlx_adjustment_range_vector4.nodedef_node = 'range'; +mtlx_adjustment_range_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector4', mtlx_adjustment_range_vector4); + +// MaterialX node type: mtlx/adjustment/range_color3FA +// +function mtlx_adjustment_range_color3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_color3FA'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'range_color3'; + this.desc = "MaterialX:mtlx/adjustment/range_color3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_range_color3FA.nodedef_name = 'ND_range_color3FA'; +mtlx_adjustment_range_color3FA.nodedef_node = 'range'; +mtlx_adjustment_range_color3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_color3FA', mtlx_adjustment_range_color3FA); + +// MaterialX node type: mtlx/adjustment/range_color4FA +// +function mtlx_adjustment_range_color4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_color4FA'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_color4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'range_color4'; + this.desc = "MaterialX:mtlx/adjustment/range_color4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_range_color4FA.nodedef_name = 'ND_range_color4FA'; +mtlx_adjustment_range_color4FA.nodedef_node = 'range'; +mtlx_adjustment_range_color4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_color4FA', mtlx_adjustment_range_color4FA); + +// MaterialX node type: mtlx/adjustment/range_vector2FA +// +function mtlx_adjustment_range_vector2FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector2FA'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector2FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'range_vector2'; + this.desc = "MaterialX:mtlx/adjustment/range_vector2FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_adjustment_range_vector2FA.nodedef_name = 'ND_range_vector2FA'; +mtlx_adjustment_range_vector2FA.nodedef_node = 'range'; +mtlx_adjustment_range_vector2FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector2FA', mtlx_adjustment_range_vector2FA); + +// MaterialX node type: mtlx/adjustment/range_vector3FA +// +function mtlx_adjustment_range_vector3FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector3FA'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector3FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'range_vector3'; + this.desc = "MaterialX:mtlx/adjustment/range_vector3FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_adjustment_range_vector3FA.nodedef_name = 'ND_range_vector3FA'; +mtlx_adjustment_range_vector3FA.nodedef_node = 'range'; +mtlx_adjustment_range_vector3FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector3FA', mtlx_adjustment_range_vector3FA); + +// MaterialX node type: mtlx/adjustment/range_vector4FA +// +function mtlx_adjustment_range_vector4FA() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_range_vector4FA'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'range'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_range_vector4FA_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inlow', 'float'); + this.addProperty('inlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inhigh', 'float'); + this.addProperty('inhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outlow', 'float'); + this.addProperty('outlow', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outhigh', 'float'); + this.addProperty('outhigh', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('doclamp', 'boolean'); + this.addProperty('doclamp', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'range_vector4'; + this.desc = "MaterialX:mtlx/adjustment/range_vector4FA"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_adjustment_range_vector4FA.nodedef_name = 'ND_range_vector4FA'; +mtlx_adjustment_range_vector4FA.nodedef_node = 'range'; +mtlx_adjustment_range_vector4FA.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/range.html'; +LiteGraph.registerNodeType('mtlx/adjustment/range_vector4FA', mtlx_adjustment_range_vector4FA); + +// MaterialX node type: mtlx/adjustment/hsvadjust_color3 +// +function mtlx_adjustment_hsvadjust_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_hsvadjust_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'hsvadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector3'); + this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'hsvadjust_color3'; + this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_hsvadjust_color3.nodedef_name = 'ND_hsvadjust_color3'; +mtlx_adjustment_hsvadjust_color3.nodedef_node = 'hsvadjust'; +mtlx_adjustment_hsvadjust_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color3', mtlx_adjustment_hsvadjust_color3); + +// MaterialX node type: mtlx/adjustment/hsvadjust_color4 +// +function mtlx_adjustment_hsvadjust_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_hsvadjust_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'hsvadjust'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_hsvadjust_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'vector3'); + this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'hsvadjust_color4'; + this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_hsvadjust_color4.nodedef_name = 'ND_hsvadjust_color4'; +mtlx_adjustment_hsvadjust_color4.nodedef_node = 'hsvadjust'; +mtlx_adjustment_hsvadjust_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/hsvadjust.html'; +LiteGraph.registerNodeType('mtlx/adjustment/hsvadjust_color4', mtlx_adjustment_hsvadjust_color4); + +// MaterialX node type: mtlx/adjustment/saturate_color3 +// +function mtlx_adjustment_saturate_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_saturate_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'saturate'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lumacoeffs', 'color3'); + this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'saturate_color3'; + this.desc = "MaterialX:mtlx/adjustment/saturate_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_saturate_color3.nodedef_name = 'ND_saturate_color3'; +mtlx_adjustment_saturate_color3.nodedef_node = 'saturate'; +mtlx_adjustment_saturate_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; +LiteGraph.registerNodeType('mtlx/adjustment/saturate_color3', mtlx_adjustment_saturate_color3); + +// MaterialX node type: mtlx/adjustment/saturate_color4 +// +function mtlx_adjustment_saturate_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_saturate_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'saturate'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_saturate_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('amount', 'float'); + this.addProperty('amount', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lumacoeffs', 'color3'); + this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'saturate_color4'; + this.desc = "MaterialX:mtlx/adjustment/saturate_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_saturate_color4.nodedef_name = 'ND_saturate_color4'; +mtlx_adjustment_saturate_color4.nodedef_node = 'saturate'; +mtlx_adjustment_saturate_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/saturate.html'; +LiteGraph.registerNodeType('mtlx/adjustment/saturate_color4', mtlx_adjustment_saturate_color4); + +// MaterialX node type: mtlx/adjustment/colorcorrect_color3 +// +function mtlx_adjustment_colorcorrect_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_colorcorrect_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'colorcorrect'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color3_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color3'); + this.addProperty('in', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('hue', 'float'); + this.addProperty('hue', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturation', 'float'); + this.addProperty('saturation', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Gamma", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lift', 'float'); + this.addProperty('lift', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lift", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gain', 'float'); + this.addProperty('gain', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Gain", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('contrast', 'float'); + this.addProperty('contrast', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Contrast", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('contrastpivot', 'float'); + this.addProperty('contrastpivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Contrast Pivot", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('exposure', 'float'); + this.addProperty('exposure', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Exposure", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'colorcorrect_color3'; + this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_adjustment_colorcorrect_color3.nodedef_name = 'ND_colorcorrect_color3'; +mtlx_adjustment_colorcorrect_color3.nodedef_node = 'colorcorrect'; +mtlx_adjustment_colorcorrect_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; +LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color3', mtlx_adjustment_colorcorrect_color3); + +// MaterialX node type: mtlx/adjustment/colorcorrect_color4 +// +function mtlx_adjustment_colorcorrect_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_colorcorrect_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'colorcorrect'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_colorcorrect_color4_out_genglsl.png'; + this.nodedef_group = 'adjustment'; + this.addInput('in', 'color4'); + this.addProperty('in', [1, 1, 1, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Input Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('hue', 'float'); + this.addProperty('hue', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Hue", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('saturation', 'float'); + this.addProperty('saturation', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Saturation", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gamma', 'float'); + this.addProperty('gamma', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Gamma", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('lift', 'float'); + this.addProperty('lift', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lift", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('gain', 'float'); + this.addProperty('gain', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Gain", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('contrast', 'float'); + this.addProperty('contrast', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Contrast", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('contrastpivot', 'float'); + this.addProperty('contrastpivot', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Contrast Pivot", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('exposure', 'float'); + this.addProperty('exposure', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Exposure", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'colorcorrect_color4'; + this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_adjustment_colorcorrect_color4.nodedef_name = 'ND_colorcorrect_color4'; +mtlx_adjustment_colorcorrect_color4.nodedef_node = 'colorcorrect'; +mtlx_adjustment_colorcorrect_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/colorcorrect.html'; +LiteGraph.registerNodeType('mtlx/adjustment/colorcorrect_color4', mtlx_adjustment_colorcorrect_color4); + +// MaterialX node type: mtlx/compositing/premult_color4 +// +function mtlx_compositing_premult_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_premult_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'premult'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_premult_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'premult_color4'; + this.desc = "MaterialX:mtlx/compositing/premult_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_premult_color4.nodedef_name = 'ND_premult_color4'; +mtlx_compositing_premult_color4.nodedef_node = 'premult'; +mtlx_compositing_premult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/premult.html'; +LiteGraph.registerNodeType('mtlx/compositing/premult_color4', mtlx_compositing_premult_color4); + +// MaterialX node type: mtlx/compositing/unpremult_color4 +// +function mtlx_compositing_unpremult_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_unpremult_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'unpremult'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_unpremult_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'unpremult_color4'; + this.desc = "MaterialX:mtlx/compositing/unpremult_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_unpremult_color4.nodedef_name = 'ND_unpremult_color4'; +mtlx_compositing_unpremult_color4.nodedef_node = 'unpremult'; +mtlx_compositing_unpremult_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/unpremult.html'; +LiteGraph.registerNodeType('mtlx/compositing/unpremult_color4', mtlx_compositing_unpremult_color4); + +// MaterialX node type: mtlx/compositing/plus_float +// +function mtlx_compositing_plus_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_plus_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'plus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'plus_float'; + this.desc = "MaterialX:mtlx/compositing/plus_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_plus_float.nodedef_name = 'ND_plus_float'; +mtlx_compositing_plus_float.nodedef_node = 'plus'; +mtlx_compositing_plus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; +LiteGraph.registerNodeType('mtlx/compositing/plus_float', mtlx_compositing_plus_float); + +// MaterialX node type: mtlx/compositing/plus_color3 +// +function mtlx_compositing_plus_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_plus_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'plus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'plus_color3'; + this.desc = "MaterialX:mtlx/compositing/plus_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_plus_color3.nodedef_name = 'ND_plus_color3'; +mtlx_compositing_plus_color3.nodedef_node = 'plus'; +mtlx_compositing_plus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; +LiteGraph.registerNodeType('mtlx/compositing/plus_color3', mtlx_compositing_plus_color3); + +// MaterialX node type: mtlx/compositing/plus_color4 +// +function mtlx_compositing_plus_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_plus_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'plus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_plus_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'plus_color4'; + this.desc = "MaterialX:mtlx/compositing/plus_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_plus_color4.nodedef_name = 'ND_plus_color4'; +mtlx_compositing_plus_color4.nodedef_node = 'plus'; +mtlx_compositing_plus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/plus.html'; +LiteGraph.registerNodeType('mtlx/compositing/plus_color4', mtlx_compositing_plus_color4); + +// MaterialX node type: mtlx/compositing/minus_float +// +function mtlx_compositing_minus_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_minus_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'minus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'minus_float'; + this.desc = "MaterialX:mtlx/compositing/minus_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_minus_float.nodedef_name = 'ND_minus_float'; +mtlx_compositing_minus_float.nodedef_node = 'minus'; +mtlx_compositing_minus_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; +LiteGraph.registerNodeType('mtlx/compositing/minus_float', mtlx_compositing_minus_float); + +// MaterialX node type: mtlx/compositing/minus_color3 +// +function mtlx_compositing_minus_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_minus_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'minus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'minus_color3'; + this.desc = "MaterialX:mtlx/compositing/minus_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_minus_color3.nodedef_name = 'ND_minus_color3'; +mtlx_compositing_minus_color3.nodedef_node = 'minus'; +mtlx_compositing_minus_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; +LiteGraph.registerNodeType('mtlx/compositing/minus_color3', mtlx_compositing_minus_color3); + +// MaterialX node type: mtlx/compositing/minus_color4 +// +function mtlx_compositing_minus_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_minus_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'minus'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_minus_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'minus_color4'; + this.desc = "MaterialX:mtlx/compositing/minus_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_minus_color4.nodedef_name = 'ND_minus_color4'; +mtlx_compositing_minus_color4.nodedef_node = 'minus'; +mtlx_compositing_minus_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/minus.html'; +LiteGraph.registerNodeType('mtlx/compositing/minus_color4', mtlx_compositing_minus_color4); + +// MaterialX node type: mtlx/compositing/difference_float +// +function mtlx_compositing_difference_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_difference_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'difference'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'difference_float'; + this.desc = "MaterialX:mtlx/compositing/difference_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_difference_float.nodedef_name = 'ND_difference_float'; +mtlx_compositing_difference_float.nodedef_node = 'difference'; +mtlx_compositing_difference_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; +LiteGraph.registerNodeType('mtlx/compositing/difference_float', mtlx_compositing_difference_float); + +// MaterialX node type: mtlx/compositing/difference_color3 +// +function mtlx_compositing_difference_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_difference_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'difference'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'difference_color3'; + this.desc = "MaterialX:mtlx/compositing/difference_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_difference_color3.nodedef_name = 'ND_difference_color3'; +mtlx_compositing_difference_color3.nodedef_node = 'difference'; +mtlx_compositing_difference_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; +LiteGraph.registerNodeType('mtlx/compositing/difference_color3', mtlx_compositing_difference_color3); + +// MaterialX node type: mtlx/compositing/difference_color4 +// +function mtlx_compositing_difference_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_difference_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'difference'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_difference_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'difference_color4'; + this.desc = "MaterialX:mtlx/compositing/difference_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_difference_color4.nodedef_name = 'ND_difference_color4'; +mtlx_compositing_difference_color4.nodedef_node = 'difference'; +mtlx_compositing_difference_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/difference.html'; +LiteGraph.registerNodeType('mtlx/compositing/difference_color4', mtlx_compositing_difference_color4); + +// MaterialX node type: mtlx/compositing/burn_float +// +function mtlx_compositing_burn_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_burn_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'burn'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'burn_float'; + this.desc = "MaterialX:mtlx/compositing/burn_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_burn_float.nodedef_name = 'ND_burn_float'; +mtlx_compositing_burn_float.nodedef_node = 'burn'; +mtlx_compositing_burn_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; +LiteGraph.registerNodeType('mtlx/compositing/burn_float', mtlx_compositing_burn_float); + +// MaterialX node type: mtlx/compositing/burn_color3 +// +function mtlx_compositing_burn_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_burn_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'burn'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'burn_color3'; + this.desc = "MaterialX:mtlx/compositing/burn_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_burn_color3.nodedef_name = 'ND_burn_color3'; +mtlx_compositing_burn_color3.nodedef_node = 'burn'; +mtlx_compositing_burn_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; +LiteGraph.registerNodeType('mtlx/compositing/burn_color3', mtlx_compositing_burn_color3); + +// MaterialX node type: mtlx/compositing/burn_color4 +// +function mtlx_compositing_burn_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_burn_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'burn'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burn_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'burn_color4'; + this.desc = "MaterialX:mtlx/compositing/burn_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_burn_color4.nodedef_name = 'ND_burn_color4'; +mtlx_compositing_burn_color4.nodedef_node = 'burn'; +mtlx_compositing_burn_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burn.html'; +LiteGraph.registerNodeType('mtlx/compositing/burn_color4', mtlx_compositing_burn_color4); + +// MaterialX node type: mtlx/compositing/dodge_float +// +function mtlx_compositing_dodge_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dodge_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'dodge'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'dodge_float'; + this.desc = "MaterialX:mtlx/compositing/dodge_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_dodge_float.nodedef_name = 'ND_dodge_float'; +mtlx_compositing_dodge_float.nodedef_node = 'dodge'; +mtlx_compositing_dodge_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; +LiteGraph.registerNodeType('mtlx/compositing/dodge_float', mtlx_compositing_dodge_float); + +// MaterialX node type: mtlx/compositing/dodge_color3 +// +function mtlx_compositing_dodge_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dodge_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'dodge'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'dodge_color3'; + this.desc = "MaterialX:mtlx/compositing/dodge_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_dodge_color3.nodedef_name = 'ND_dodge_color3'; +mtlx_compositing_dodge_color3.nodedef_node = 'dodge'; +mtlx_compositing_dodge_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; +LiteGraph.registerNodeType('mtlx/compositing/dodge_color3', mtlx_compositing_dodge_color3); + +// MaterialX node type: mtlx/compositing/dodge_color4 +// +function mtlx_compositing_dodge_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dodge_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'dodge'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dodge_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'dodge_color4'; + this.desc = "MaterialX:mtlx/compositing/dodge_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_dodge_color4.nodedef_name = 'ND_dodge_color4'; +mtlx_compositing_dodge_color4.nodedef_node = 'dodge'; +mtlx_compositing_dodge_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dodge.html'; +LiteGraph.registerNodeType('mtlx/compositing/dodge_color4', mtlx_compositing_dodge_color4); + +// MaterialX node type: mtlx/compositing/screen_float +// +function mtlx_compositing_screen_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_screen_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'screen'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'screen_float'; + this.desc = "MaterialX:mtlx/compositing/screen_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_screen_float.nodedef_name = 'ND_screen_float'; +mtlx_compositing_screen_float.nodedef_node = 'screen'; +mtlx_compositing_screen_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; +LiteGraph.registerNodeType('mtlx/compositing/screen_float', mtlx_compositing_screen_float); + +// MaterialX node type: mtlx/compositing/screen_color3 +// +function mtlx_compositing_screen_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_screen_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'screen'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'screen_color3'; + this.desc = "MaterialX:mtlx/compositing/screen_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_screen_color3.nodedef_name = 'ND_screen_color3'; +mtlx_compositing_screen_color3.nodedef_node = 'screen'; +mtlx_compositing_screen_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; +LiteGraph.registerNodeType('mtlx/compositing/screen_color3', mtlx_compositing_screen_color3); + +// MaterialX node type: mtlx/compositing/screen_color4 +// +function mtlx_compositing_screen_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_screen_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'screen'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_screen_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'screen_color4'; + this.desc = "MaterialX:mtlx/compositing/screen_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_screen_color4.nodedef_name = 'ND_screen_color4'; +mtlx_compositing_screen_color4.nodedef_node = 'screen'; +mtlx_compositing_screen_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/screen.html'; +LiteGraph.registerNodeType('mtlx/compositing/screen_color4', mtlx_compositing_screen_color4); + +// MaterialX node type: mtlx/compositing/overlay_float +// +function mtlx_compositing_overlay_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_overlay_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'overlay'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'overlay_float'; + this.desc = "MaterialX:mtlx/compositing/overlay_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_overlay_float.nodedef_name = 'ND_overlay_float'; +mtlx_compositing_overlay_float.nodedef_node = 'overlay'; +mtlx_compositing_overlay_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; +LiteGraph.registerNodeType('mtlx/compositing/overlay_float', mtlx_compositing_overlay_float); + +// MaterialX node type: mtlx/compositing/overlay_color3 +// +function mtlx_compositing_overlay_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_overlay_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'overlay'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'overlay_color3'; + this.desc = "MaterialX:mtlx/compositing/overlay_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_overlay_color3.nodedef_name = 'ND_overlay_color3'; +mtlx_compositing_overlay_color3.nodedef_node = 'overlay'; +mtlx_compositing_overlay_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; +LiteGraph.registerNodeType('mtlx/compositing/overlay_color3', mtlx_compositing_overlay_color3); + +// MaterialX node type: mtlx/compositing/overlay_color4 +// +function mtlx_compositing_overlay_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_overlay_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'overlay'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_overlay_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'overlay_color4'; + this.desc = "MaterialX:mtlx/compositing/overlay_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_overlay_color4.nodedef_name = 'ND_overlay_color4'; +mtlx_compositing_overlay_color4.nodedef_node = 'overlay'; +mtlx_compositing_overlay_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/overlay.html'; +LiteGraph.registerNodeType('mtlx/compositing/overlay_color4', mtlx_compositing_overlay_color4); + +// MaterialX node type: mtlx/compositing/disjointover_color4 +// +function mtlx_compositing_disjointover_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_disjointover_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'disjointover'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disjointover_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'disjointover_color4'; + this.desc = "MaterialX:mtlx/compositing/disjointover_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_disjointover_color4.nodedef_name = 'ND_disjointover_color4'; +mtlx_compositing_disjointover_color4.nodedef_node = 'disjointover'; +mtlx_compositing_disjointover_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disjointover.html'; +LiteGraph.registerNodeType('mtlx/compositing/disjointover_color4', mtlx_compositing_disjointover_color4); + +// MaterialX node type: mtlx/compositing/in_color4 +// +function mtlx_compositing_in_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_in_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'in'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_in_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'in_color4'; + this.desc = "MaterialX:mtlx/compositing/in_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_in_color4.nodedef_name = 'ND_in_color4'; +mtlx_compositing_in_color4.nodedef_node = 'in'; +mtlx_compositing_in_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/in.html'; +LiteGraph.registerNodeType('mtlx/compositing/in_color4', mtlx_compositing_in_color4); + +// MaterialX node type: mtlx/compositing/mask_color4 +// +function mtlx_compositing_mask_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mask_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'mask'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mask_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'mask_color4'; + this.desc = "MaterialX:mtlx/compositing/mask_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_mask_color4.nodedef_name = 'ND_mask_color4'; +mtlx_compositing_mask_color4.nodedef_node = 'mask'; +mtlx_compositing_mask_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mask.html'; +LiteGraph.registerNodeType('mtlx/compositing/mask_color4', mtlx_compositing_mask_color4); + +// MaterialX node type: mtlx/compositing/matte_color4 +// +function mtlx_compositing_matte_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_matte_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'matte'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_matte_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'matte_color4'; + this.desc = "MaterialX:mtlx/compositing/matte_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_matte_color4.nodedef_name = 'ND_matte_color4'; +mtlx_compositing_matte_color4.nodedef_node = 'matte'; +mtlx_compositing_matte_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/matte.html'; +LiteGraph.registerNodeType('mtlx/compositing/matte_color4', mtlx_compositing_matte_color4); + +// MaterialX node type: mtlx/compositing/out_color4 +// +function mtlx_compositing_out_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_out_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'out'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_out_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'out_color4'; + this.desc = "MaterialX:mtlx/compositing/out_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_out_color4.nodedef_name = 'ND_out_color4'; +mtlx_compositing_out_color4.nodedef_node = 'out'; +mtlx_compositing_out_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/out.html'; +LiteGraph.registerNodeType('mtlx/compositing/out_color4', mtlx_compositing_out_color4); + +// MaterialX node type: mtlx/compositing/over_color4 +// +function mtlx_compositing_over_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_over_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'over'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_over_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'over_color4'; + this.desc = "MaterialX:mtlx/compositing/over_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_over_color4.nodedef_name = 'ND_over_color4'; +mtlx_compositing_over_color4.nodedef_node = 'over'; +mtlx_compositing_over_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/over.html'; +LiteGraph.registerNodeType('mtlx/compositing/over_color4', mtlx_compositing_over_color4); + +// MaterialX node type: mtlx/compositing/inside_float +// +function mtlx_compositing_inside_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_inside_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'inside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'inside_float'; + this.desc = "MaterialX:mtlx/compositing/inside_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_inside_float.nodedef_name = 'ND_inside_float'; +mtlx_compositing_inside_float.nodedef_node = 'inside'; +mtlx_compositing_inside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; +LiteGraph.registerNodeType('mtlx/compositing/inside_float', mtlx_compositing_inside_float); + +// MaterialX node type: mtlx/compositing/inside_color3 +// +function mtlx_compositing_inside_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_inside_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'inside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'inside_color3'; + this.desc = "MaterialX:mtlx/compositing/inside_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_inside_color3.nodedef_name = 'ND_inside_color3'; +mtlx_compositing_inside_color3.nodedef_node = 'inside'; +mtlx_compositing_inside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; +LiteGraph.registerNodeType('mtlx/compositing/inside_color3', mtlx_compositing_inside_color3); + +// MaterialX node type: mtlx/compositing/inside_color4 +// +function mtlx_compositing_inside_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_inside_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'inside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_inside_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'inside_color4'; + this.desc = "MaterialX:mtlx/compositing/inside_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_inside_color4.nodedef_name = 'ND_inside_color4'; +mtlx_compositing_inside_color4.nodedef_node = 'inside'; +mtlx_compositing_inside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/inside.html'; +LiteGraph.registerNodeType('mtlx/compositing/inside_color4', mtlx_compositing_inside_color4); + +// MaterialX node type: mtlx/compositing/outside_float +// +function mtlx_compositing_outside_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_outside_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'outside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'outside_float'; + this.desc = "MaterialX:mtlx/compositing/outside_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_outside_float.nodedef_name = 'ND_outside_float'; +mtlx_compositing_outside_float.nodedef_node = 'outside'; +mtlx_compositing_outside_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; +LiteGraph.registerNodeType('mtlx/compositing/outside_float', mtlx_compositing_outside_float); + +// MaterialX node type: mtlx/compositing/outside_color3 +// +function mtlx_compositing_outside_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_outside_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'outside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'outside_color3'; + this.desc = "MaterialX:mtlx/compositing/outside_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_outside_color3.nodedef_name = 'ND_outside_color3'; +mtlx_compositing_outside_color3.nodedef_node = 'outside'; +mtlx_compositing_outside_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; +LiteGraph.registerNodeType('mtlx/compositing/outside_color3', mtlx_compositing_outside_color3); + +// MaterialX node type: mtlx/compositing/outside_color4 +// +function mtlx_compositing_outside_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_outside_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'outside'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_outside_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mask', 'float'); + this.addProperty('mask', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'outside_color4'; + this.desc = "MaterialX:mtlx/compositing/outside_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_outside_color4.nodedef_name = 'ND_outside_color4'; +mtlx_compositing_outside_color4.nodedef_node = 'outside'; +mtlx_compositing_outside_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/outside.html'; +LiteGraph.registerNodeType('mtlx/compositing/outside_color4', mtlx_compositing_outside_color4); + +// MaterialX node type: mtlx/compositing/mix_float +// +function mtlx_compositing_mix_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_float_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'float'); + this.addProperty('fg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'float'); + this.addProperty('bg', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'mix_float'; + this.desc = "MaterialX:mtlx/compositing/mix_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_compositing_mix_float.nodedef_name = 'ND_mix_float'; +mtlx_compositing_mix_float.nodedef_node = 'mix'; +mtlx_compositing_mix_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_float', mtlx_compositing_mix_float); + +// MaterialX node type: mtlx/compositing/mix_color3 +// +function mtlx_compositing_mix_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'mix_color3'; + this.desc = "MaterialX:mtlx/compositing/mix_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_mix_color3.nodedef_name = 'ND_mix_color3'; +mtlx_compositing_mix_color3.nodedef_node = 'mix'; +mtlx_compositing_mix_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_color3', mtlx_compositing_mix_color3); + +// MaterialX node type: mtlx/compositing/mix_color3_color3 +// +function mtlx_compositing_mix_color3_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_color3_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color3_color3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'color3'); + this.addProperty('mix', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'mix_color3'; + this.desc = "MaterialX:mtlx/compositing/mix_color3_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_compositing_mix_color3_color3.nodedef_name = 'ND_mix_color3_color3'; +mtlx_compositing_mix_color3_color3.nodedef_node = 'mix'; +mtlx_compositing_mix_color3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_color3_color3', mtlx_compositing_mix_color3_color3); + +// MaterialX node type: mtlx/compositing/mix_color4 +// +function mtlx_compositing_mix_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'mix_color4'; + this.desc = "MaterialX:mtlx/compositing/mix_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_mix_color4.nodedef_name = 'ND_mix_color4'; +mtlx_compositing_mix_color4.nodedef_node = 'mix'; +mtlx_compositing_mix_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_color4', mtlx_compositing_mix_color4); + +// MaterialX node type: mtlx/compositing/mix_color4_color4 +// +function mtlx_compositing_mix_color4_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_color4_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_color4_color4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'color4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'color4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'color4'); + this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'mix_color4'; + this.desc = "MaterialX:mtlx/compositing/mix_color4_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_compositing_mix_color4_color4.nodedef_name = 'ND_mix_color4_color4'; +mtlx_compositing_mix_color4_color4.nodedef_node = 'mix'; +mtlx_compositing_mix_color4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_color4_color4', mtlx_compositing_mix_color4_color4); + +// MaterialX node type: mtlx/compositing/mix_vector2 +// +function mtlx_compositing_mix_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector2'); + this.addProperty('fg', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector2'); + this.addProperty('bg', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'mix_vector2'; + this.desc = "MaterialX:mtlx/compositing/mix_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_compositing_mix_vector2.nodedef_name = 'ND_mix_vector2'; +mtlx_compositing_mix_vector2.nodedef_node = 'mix'; +mtlx_compositing_mix_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector2', mtlx_compositing_mix_vector2); + +// MaterialX node type: mtlx/compositing/mix_vector2_vector2 +// +function mtlx_compositing_mix_vector2_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector2_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector2_vector2_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector2'); + this.addProperty('fg', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector2'); + this.addProperty('bg', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'vector2'); + this.addProperty('mix', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'mix_vector2'; + this.desc = "MaterialX:mtlx/compositing/mix_vector2_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_compositing_mix_vector2_vector2.nodedef_name = 'ND_mix_vector2_vector2'; +mtlx_compositing_mix_vector2_vector2.nodedef_node = 'mix'; +mtlx_compositing_mix_vector2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector2_vector2', mtlx_compositing_mix_vector2_vector2); + +// MaterialX node type: mtlx/compositing/mix_vector3 +// +function mtlx_compositing_mix_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'mix_vector3'; + this.desc = "MaterialX:mtlx/compositing/mix_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_compositing_mix_vector3.nodedef_name = 'ND_mix_vector3'; +mtlx_compositing_mix_vector3.nodedef_node = 'mix'; +mtlx_compositing_mix_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector3', mtlx_compositing_mix_vector3); + +// MaterialX node type: mtlx/compositing/mix_vector3_vector3 +// +function mtlx_compositing_mix_vector3_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector3_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector3_vector3_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector3'); + this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector3'); + this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'vector3'); + this.addProperty('mix', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'mix_vector3'; + this.desc = "MaterialX:mtlx/compositing/mix_vector3_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_compositing_mix_vector3_vector3.nodedef_name = 'ND_mix_vector3_vector3'; +mtlx_compositing_mix_vector3_vector3.nodedef_node = 'mix'; +mtlx_compositing_mix_vector3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector3_vector3', mtlx_compositing_mix_vector3_vector3); + +// MaterialX node type: mtlx/compositing/mix_vector4 +// +function mtlx_compositing_mix_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'mix_vector4'; + this.desc = "MaterialX:mtlx/compositing/mix_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_compositing_mix_vector4.nodedef_name = 'ND_mix_vector4'; +mtlx_compositing_mix_vector4.nodedef_node = 'mix'; +mtlx_compositing_mix_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector4', mtlx_compositing_mix_vector4); + +// MaterialX node type: mtlx/compositing/mix_vector4_vector4 +// +function mtlx_compositing_mix_vector4_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vector4_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vector4_vector4_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'vector4'); + this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'vector4'); + this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'vector4'); + this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'mix_vector4'; + this.desc = "MaterialX:mtlx/compositing/mix_vector4_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_compositing_mix_vector4_vector4.nodedef_name = 'ND_mix_vector4_vector4'; +mtlx_compositing_mix_vector4_vector4.nodedef_node = 'mix'; +mtlx_compositing_mix_vector4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_vector4_vector4', mtlx_compositing_mix_vector4_vector4); + +// MaterialX node type: mtlx/compositing/mix_surfaceshader +// +function mtlx_compositing_mix_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'surfaceshader'); + this.addProperty('fg', '', 'surfaceshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'surfaceshader'); + this.addProperty('bg', '', 'surfaceshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'mix_surfaceshader'; + this.desc = "MaterialX:mtlx/compositing/mix_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_compositing_mix_surfaceshader.nodedef_name = 'ND_mix_surfaceshader'; +mtlx_compositing_mix_surfaceshader.nodedef_node = 'mix'; +mtlx_compositing_mix_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_surfaceshader', mtlx_compositing_mix_surfaceshader); + +// MaterialX node type: mtlx/compositing/mix_displacementshader +// +function mtlx_compositing_mix_displacementshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_displacementshader'; + this.nodedef_type = 'displacementshader'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_displacementshader_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'displacementshader'); + this.addProperty('fg', '', 'displacementshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'displacementshader'); + this.addProperty('bg', '', 'displacementshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'displacementshader'); + this.title = 'mix_displacementshader'; + this.desc = "MaterialX:mtlx/compositing/mix_displacementshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_compositing_mix_displacementshader.nodedef_name = 'ND_mix_displacementshader'; +mtlx_compositing_mix_displacementshader.nodedef_node = 'mix'; +mtlx_compositing_mix_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_displacementshader', mtlx_compositing_mix_displacementshader); + +// MaterialX node type: mtlx/compositing/mix_volumeshader +// +function mtlx_compositing_mix_volumeshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_volumeshader'; + this.nodedef_type = 'volumeshader'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_volumeshader_out_genglsl.png'; + this.nodedef_group = 'compositing'; + this.addInput('fg', 'volumeshader'); + this.addProperty('fg', '', 'volumeshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'volumeshader'); + this.addProperty('bg', '', 'volumeshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'volumeshader'); + this.title = 'mix_volumeshader'; + this.desc = "MaterialX:mtlx/compositing/mix_volumeshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_compositing_mix_volumeshader.nodedef_name = 'ND_mix_volumeshader'; +mtlx_compositing_mix_volumeshader.nodedef_node = 'mix'; +mtlx_compositing_mix_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/compositing/mix_volumeshader', mtlx_compositing_mix_volumeshader); + +// MaterialX node type: mtlx/conditional/ifgreater_float +// +function mtlx_conditional_ifgreater_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_float_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifgreater_float'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifgreater_float.nodedef_name = 'ND_ifgreater_float'; +mtlx_conditional_ifgreater_float.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_float', mtlx_conditional_ifgreater_float); + +// MaterialX node type: mtlx/conditional/ifgreater_integer +// +function mtlx_conditional_ifgreater_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integer_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifgreater_integer'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifgreater_integer.nodedef_name = 'ND_ifgreater_integer'; +mtlx_conditional_ifgreater_integer.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integer', mtlx_conditional_ifgreater_integer); + +// MaterialX node type: mtlx/conditional/ifgreater_color3 +// +function mtlx_conditional_ifgreater_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifgreater_color3'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifgreater_color3.nodedef_name = 'ND_ifgreater_color3'; +mtlx_conditional_ifgreater_color3.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3', mtlx_conditional_ifgreater_color3); + +// MaterialX node type: mtlx/conditional/ifgreater_color4 +// +function mtlx_conditional_ifgreater_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifgreater_color4'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifgreater_color4.nodedef_name = 'ND_ifgreater_color4'; +mtlx_conditional_ifgreater_color4.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4', mtlx_conditional_ifgreater_color4); + +// MaterialX node type: mtlx/conditional/ifgreater_vector2 +// +function mtlx_conditional_ifgreater_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifgreater_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifgreater_vector2.nodedef_name = 'ND_ifgreater_vector2'; +mtlx_conditional_ifgreater_vector2.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2', mtlx_conditional_ifgreater_vector2); + +// MaterialX node type: mtlx/conditional/ifgreater_vector3 +// +function mtlx_conditional_ifgreater_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifgreater_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifgreater_vector3.nodedef_name = 'ND_ifgreater_vector3'; +mtlx_conditional_ifgreater_vector3.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3', mtlx_conditional_ifgreater_vector3); + +// MaterialX node type: mtlx/conditional/ifgreater_vector4 +// +function mtlx_conditional_ifgreater_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifgreater_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifgreater_vector4.nodedef_name = 'ND_ifgreater_vector4'; +mtlx_conditional_ifgreater_vector4.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4', mtlx_conditional_ifgreater_vector4); + +// MaterialX node type: mtlx/conditional/ifgreater_matrix33 +// +function mtlx_conditional_ifgreater_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifgreater_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifgreater_matrix33.nodedef_name = 'ND_ifgreater_matrix33'; +mtlx_conditional_ifgreater_matrix33.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33', mtlx_conditional_ifgreater_matrix33); + +// MaterialX node type: mtlx/conditional/ifgreater_matrix44 +// +function mtlx_conditional_ifgreater_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifgreater_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifgreater_matrix44.nodedef_name = 'ND_ifgreater_matrix44'; +mtlx_conditional_ifgreater_matrix44.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44', mtlx_conditional_ifgreater_matrix44); + +// MaterialX node type: mtlx/conditional/ifgreater_floatI +// +function mtlx_conditional_ifgreater_floatI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_floatI'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_floatI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifgreater_float'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_floatI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifgreater_floatI.nodedef_name = 'ND_ifgreater_floatI'; +mtlx_conditional_ifgreater_floatI.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_floatI', mtlx_conditional_ifgreater_floatI); + +// MaterialX node type: mtlx/conditional/ifgreater_integerI +// +function mtlx_conditional_ifgreater_integerI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_integerI'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_integerI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifgreater_integer'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_integerI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifgreater_integerI.nodedef_name = 'ND_ifgreater_integerI'; +mtlx_conditional_ifgreater_integerI.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_integerI', mtlx_conditional_ifgreater_integerI); + +// MaterialX node type: mtlx/conditional/ifgreater_color3I +// +function mtlx_conditional_ifgreater_color3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_color3I'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifgreater_color3'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_color3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifgreater_color3I.nodedef_name = 'ND_ifgreater_color3I'; +mtlx_conditional_ifgreater_color3I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color3I', mtlx_conditional_ifgreater_color3I); + +// MaterialX node type: mtlx/conditional/ifgreater_color4I +// +function mtlx_conditional_ifgreater_color4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_color4I'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_color4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifgreater_color4'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_color4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifgreater_color4I.nodedef_name = 'ND_ifgreater_color4I'; +mtlx_conditional_ifgreater_color4I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_color4I', mtlx_conditional_ifgreater_color4I); + +// MaterialX node type: mtlx/conditional/ifgreater_vector2I +// +function mtlx_conditional_ifgreater_vector2I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector2I'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector2I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifgreater_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifgreater_vector2I.nodedef_name = 'ND_ifgreater_vector2I'; +mtlx_conditional_ifgreater_vector2I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector2I', mtlx_conditional_ifgreater_vector2I); + +// MaterialX node type: mtlx/conditional/ifgreater_vector3I +// +function mtlx_conditional_ifgreater_vector3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector3I'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifgreater_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifgreater_vector3I.nodedef_name = 'ND_ifgreater_vector3I'; +mtlx_conditional_ifgreater_vector3I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector3I', mtlx_conditional_ifgreater_vector3I); + +// MaterialX node type: mtlx/conditional/ifgreater_vector4I +// +function mtlx_conditional_ifgreater_vector4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_vector4I'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_vector4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifgreater_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifgreater_vector4I.nodedef_name = 'ND_ifgreater_vector4I'; +mtlx_conditional_ifgreater_vector4I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_vector4I', mtlx_conditional_ifgreater_vector4I); + +// MaterialX node type: mtlx/conditional/ifgreater_matrix33I +// +function mtlx_conditional_ifgreater_matrix33I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_matrix33I'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix33I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifgreater_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifgreater_matrix33I.nodedef_name = 'ND_ifgreater_matrix33I'; +mtlx_conditional_ifgreater_matrix33I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix33I', mtlx_conditional_ifgreater_matrix33I); + +// MaterialX node type: mtlx/conditional/ifgreater_matrix44I +// +function mtlx_conditional_ifgreater_matrix44I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreater_matrix44I'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifgreater'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreater_matrix44I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifgreater_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifgreater_matrix44I.nodedef_name = 'ND_ifgreater_matrix44I'; +mtlx_conditional_ifgreater_matrix44I.nodedef_node = 'ifgreater'; +mtlx_conditional_ifgreater_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreater.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreater_matrix44I', mtlx_conditional_ifgreater_matrix44I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_float +// +function mtlx_conditional_ifgreatereq_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_float_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifgreatereq_float'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifgreatereq_float.nodedef_name = 'ND_ifgreatereq_float'; +mtlx_conditional_ifgreatereq_float.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_float', mtlx_conditional_ifgreatereq_float); + +// MaterialX node type: mtlx/conditional/ifgreatereq_integer +// +function mtlx_conditional_ifgreatereq_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integer_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifgreatereq_integer'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifgreatereq_integer.nodedef_name = 'ND_ifgreatereq_integer'; +mtlx_conditional_ifgreatereq_integer.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integer', mtlx_conditional_ifgreatereq_integer); + +// MaterialX node type: mtlx/conditional/ifgreatereq_color3 +// +function mtlx_conditional_ifgreatereq_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifgreatereq_color3'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifgreatereq_color3.nodedef_name = 'ND_ifgreatereq_color3'; +mtlx_conditional_ifgreatereq_color3.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3', mtlx_conditional_ifgreatereq_color3); + +// MaterialX node type: mtlx/conditional/ifgreatereq_color4 +// +function mtlx_conditional_ifgreatereq_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifgreatereq_color4'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifgreatereq_color4.nodedef_name = 'ND_ifgreatereq_color4'; +mtlx_conditional_ifgreatereq_color4.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4', mtlx_conditional_ifgreatereq_color4); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector2 +// +function mtlx_conditional_ifgreatereq_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifgreatereq_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifgreatereq_vector2.nodedef_name = 'ND_ifgreatereq_vector2'; +mtlx_conditional_ifgreatereq_vector2.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2', mtlx_conditional_ifgreatereq_vector2); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector3 +// +function mtlx_conditional_ifgreatereq_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifgreatereq_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifgreatereq_vector3.nodedef_name = 'ND_ifgreatereq_vector3'; +mtlx_conditional_ifgreatereq_vector3.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3', mtlx_conditional_ifgreatereq_vector3); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector4 +// +function mtlx_conditional_ifgreatereq_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifgreatereq_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifgreatereq_vector4.nodedef_name = 'ND_ifgreatereq_vector4'; +mtlx_conditional_ifgreatereq_vector4.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4', mtlx_conditional_ifgreatereq_vector4); + +// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33 +// +function mtlx_conditional_ifgreatereq_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifgreatereq_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifgreatereq_matrix33.nodedef_name = 'ND_ifgreatereq_matrix33'; +mtlx_conditional_ifgreatereq_matrix33.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33', mtlx_conditional_ifgreatereq_matrix33); + +// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44 +// +function mtlx_conditional_ifgreatereq_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifgreatereq_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifgreatereq_matrix44.nodedef_name = 'ND_ifgreatereq_matrix44'; +mtlx_conditional_ifgreatereq_matrix44.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44', mtlx_conditional_ifgreatereq_matrix44); + +// MaterialX node type: mtlx/conditional/ifgreatereq_floatI +// +function mtlx_conditional_ifgreatereq_floatI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_floatI'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_floatI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifgreatereq_float'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_floatI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifgreatereq_floatI.nodedef_name = 'ND_ifgreatereq_floatI'; +mtlx_conditional_ifgreatereq_floatI.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_floatI', mtlx_conditional_ifgreatereq_floatI); + +// MaterialX node type: mtlx/conditional/ifgreatereq_integerI +// +function mtlx_conditional_ifgreatereq_integerI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_integerI'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_integerI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifgreatereq_integer'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integerI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifgreatereq_integerI.nodedef_name = 'ND_ifgreatereq_integerI'; +mtlx_conditional_ifgreatereq_integerI.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_integerI', mtlx_conditional_ifgreatereq_integerI); + +// MaterialX node type: mtlx/conditional/ifgreatereq_color3I +// +function mtlx_conditional_ifgreatereq_color3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_color3I'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifgreatereq_color3'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifgreatereq_color3I.nodedef_name = 'ND_ifgreatereq_color3I'; +mtlx_conditional_ifgreatereq_color3I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color3I', mtlx_conditional_ifgreatereq_color3I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_color4I +// +function mtlx_conditional_ifgreatereq_color4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_color4I'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_color4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifgreatereq_color4'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifgreatereq_color4I.nodedef_name = 'ND_ifgreatereq_color4I'; +mtlx_conditional_ifgreatereq_color4I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_color4I', mtlx_conditional_ifgreatereq_color4I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector2I +// +function mtlx_conditional_ifgreatereq_vector2I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector2I'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifgreatereq_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifgreatereq_vector2I.nodedef_name = 'ND_ifgreatereq_vector2I'; +mtlx_conditional_ifgreatereq_vector2I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector2I', mtlx_conditional_ifgreatereq_vector2I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector3I +// +function mtlx_conditional_ifgreatereq_vector3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector3I'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifgreatereq_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifgreatereq_vector3I.nodedef_name = 'ND_ifgreatereq_vector3I'; +mtlx_conditional_ifgreatereq_vector3I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector3I', mtlx_conditional_ifgreatereq_vector3I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_vector4I +// +function mtlx_conditional_ifgreatereq_vector4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_vector4I'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifgreatereq_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifgreatereq_vector4I.nodedef_name = 'ND_ifgreatereq_vector4I'; +mtlx_conditional_ifgreatereq_vector4I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_vector4I', mtlx_conditional_ifgreatereq_vector4I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_matrix33I +// +function mtlx_conditional_ifgreatereq_matrix33I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_matrix33I'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifgreatereq_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifgreatereq_matrix33I.nodedef_name = 'ND_ifgreatereq_matrix33I'; +mtlx_conditional_ifgreatereq_matrix33I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix33I', mtlx_conditional_ifgreatereq_matrix33I); + +// MaterialX node type: mtlx/conditional/ifgreatereq_matrix44I +// +function mtlx_conditional_ifgreatereq_matrix44I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifgreatereq_matrix44I'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifgreatereq'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifgreatereq_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifgreatereq_matrix44I.nodedef_name = 'ND_ifgreatereq_matrix44I'; +mtlx_conditional_ifgreatereq_matrix44I.nodedef_node = 'ifgreatereq'; +mtlx_conditional_ifgreatereq_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifgreatereq.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifgreatereq_matrix44I', mtlx_conditional_ifgreatereq_matrix44I); + +// MaterialX node type: mtlx/conditional/ifequal_float +// +function mtlx_conditional_ifequal_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_float_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifequal_float'; + this.desc = "MaterialX:mtlx/conditional/ifequal_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifequal_float.nodedef_name = 'ND_ifequal_float'; +mtlx_conditional_ifequal_float.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_float', mtlx_conditional_ifequal_float); + +// MaterialX node type: mtlx/conditional/ifequal_integer +// +function mtlx_conditional_ifequal_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integer_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifequal_integer'; + this.desc = "MaterialX:mtlx/conditional/ifequal_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifequal_integer.nodedef_name = 'ND_ifequal_integer'; +mtlx_conditional_ifequal_integer.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_integer', mtlx_conditional_ifequal_integer); + +// MaterialX node type: mtlx/conditional/ifequal_color3 +// +function mtlx_conditional_ifequal_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifequal_color3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifequal_color3.nodedef_name = 'ND_ifequal_color3'; +mtlx_conditional_ifequal_color3.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3', mtlx_conditional_ifequal_color3); + +// MaterialX node type: mtlx/conditional/ifequal_color4 +// +function mtlx_conditional_ifequal_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifequal_color4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifequal_color4.nodedef_name = 'ND_ifequal_color4'; +mtlx_conditional_ifequal_color4.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4', mtlx_conditional_ifequal_color4); + +// MaterialX node type: mtlx/conditional/ifequal_vector2 +// +function mtlx_conditional_ifequal_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifequal_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifequal_vector2.nodedef_name = 'ND_ifequal_vector2'; +mtlx_conditional_ifequal_vector2.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2', mtlx_conditional_ifequal_vector2); + +// MaterialX node type: mtlx/conditional/ifequal_vector3 +// +function mtlx_conditional_ifequal_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifequal_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifequal_vector3.nodedef_name = 'ND_ifequal_vector3'; +mtlx_conditional_ifequal_vector3.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3', mtlx_conditional_ifequal_vector3); + +// MaterialX node type: mtlx/conditional/ifequal_vector4 +// +function mtlx_conditional_ifequal_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifequal_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifequal_vector4.nodedef_name = 'ND_ifequal_vector4'; +mtlx_conditional_ifequal_vector4.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4', mtlx_conditional_ifequal_vector4); + +// MaterialX node type: mtlx/conditional/ifequal_matrix33 +// +function mtlx_conditional_ifequal_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifequal_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifequal_matrix33.nodedef_name = 'ND_ifequal_matrix33'; +mtlx_conditional_ifequal_matrix33.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33', mtlx_conditional_ifequal_matrix33); + +// MaterialX node type: mtlx/conditional/ifequal_matrix44 +// +function mtlx_conditional_ifequal_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'float'); + this.addProperty('value1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'float'); + this.addProperty('value2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifequal_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifequal_matrix44.nodedef_name = 'ND_ifequal_matrix44'; +mtlx_conditional_ifequal_matrix44.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44', mtlx_conditional_ifequal_matrix44); + +// MaterialX node type: mtlx/conditional/ifequal_floatI +// +function mtlx_conditional_ifequal_floatI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_floatI'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifequal_float'; + this.desc = "MaterialX:mtlx/conditional/ifequal_floatI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifequal_floatI.nodedef_name = 'ND_ifequal_floatI'; +mtlx_conditional_ifequal_floatI.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatI', mtlx_conditional_ifequal_floatI); + +// MaterialX node type: mtlx/conditional/ifequal_integerI +// +function mtlx_conditional_ifequal_integerI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_integerI'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifequal_integer'; + this.desc = "MaterialX:mtlx/conditional/ifequal_integerI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifequal_integerI.nodedef_name = 'ND_ifequal_integerI'; +mtlx_conditional_ifequal_integerI.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_integerI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerI', mtlx_conditional_ifequal_integerI); + +// MaterialX node type: mtlx/conditional/ifequal_color3I +// +function mtlx_conditional_ifequal_color3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color3I'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifequal_color3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifequal_color3I.nodedef_name = 'ND_ifequal_color3I'; +mtlx_conditional_ifequal_color3I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3I', mtlx_conditional_ifequal_color3I); + +// MaterialX node type: mtlx/conditional/ifequal_color4I +// +function mtlx_conditional_ifequal_color4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color4I'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifequal_color4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifequal_color4I.nodedef_name = 'ND_ifequal_color4I'; +mtlx_conditional_ifequal_color4I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4I', mtlx_conditional_ifequal_color4I); + +// MaterialX node type: mtlx/conditional/ifequal_vector2I +// +function mtlx_conditional_ifequal_vector2I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector2I'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifequal_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector2I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifequal_vector2I.nodedef_name = 'ND_ifequal_vector2I'; +mtlx_conditional_ifequal_vector2I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2I', mtlx_conditional_ifequal_vector2I); + +// MaterialX node type: mtlx/conditional/ifequal_vector3I +// +function mtlx_conditional_ifequal_vector3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector3I'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifequal_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifequal_vector3I.nodedef_name = 'ND_ifequal_vector3I'; +mtlx_conditional_ifequal_vector3I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3I', mtlx_conditional_ifequal_vector3I); + +// MaterialX node type: mtlx/conditional/ifequal_vector4I +// +function mtlx_conditional_ifequal_vector4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector4I'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifequal_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifequal_vector4I.nodedef_name = 'ND_ifequal_vector4I'; +mtlx_conditional_ifequal_vector4I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4I', mtlx_conditional_ifequal_vector4I); + +// MaterialX node type: mtlx/conditional/ifequal_matrix33I +// +function mtlx_conditional_ifequal_matrix33I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix33I'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifequal_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifequal_matrix33I.nodedef_name = 'ND_ifequal_matrix33I'; +mtlx_conditional_ifequal_matrix33I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33I', mtlx_conditional_ifequal_matrix33I); + +// MaterialX node type: mtlx/conditional/ifequal_matrix44I +// +function mtlx_conditional_ifequal_matrix44I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix44I'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'integer'); + this.addProperty('value1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'integer'); + this.addProperty('value2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifequal_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifequal_matrix44I.nodedef_name = 'ND_ifequal_matrix44I'; +mtlx_conditional_ifequal_matrix44I.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44I', mtlx_conditional_ifequal_matrix44I); + +// MaterialX node type: mtlx/conditional/ifequal_floatB +// +function mtlx_conditional_ifequal_floatB() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_floatB'; + this.nodedef_type = 'float'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_floatB_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'ifequal_float'; + this.desc = "MaterialX:mtlx/conditional/ifequal_floatB"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_ifequal_floatB.nodedef_name = 'ND_ifequal_floatB'; +mtlx_conditional_ifequal_floatB.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_floatB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_floatB', mtlx_conditional_ifequal_floatB); + +// MaterialX node type: mtlx/conditional/ifequal_integerB +// +function mtlx_conditional_ifequal_integerB() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_integerB'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_integerB_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'integer'); + this.addProperty('in1', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'integer'); + this.addProperty('in2', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'ifequal_integer'; + this.desc = "MaterialX:mtlx/conditional/ifequal_integerB"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_conditional_ifequal_integerB.nodedef_name = 'ND_ifequal_integerB'; +mtlx_conditional_ifequal_integerB.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_integerB.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_integerB', mtlx_conditional_ifequal_integerB); + +// MaterialX node type: mtlx/conditional/ifequal_color3B +// +function mtlx_conditional_ifequal_color3B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color3B'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color3B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'ifequal_color3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color3B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_ifequal_color3B.nodedef_name = 'ND_ifequal_color3B'; +mtlx_conditional_ifequal_color3B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color3B', mtlx_conditional_ifequal_color3B); + +// MaterialX node type: mtlx/conditional/ifequal_color4B +// +function mtlx_conditional_ifequal_color4B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_color4B'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_color4B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'ifequal_color4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_color4B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_ifequal_color4B.nodedef_name = 'ND_ifequal_color4B'; +mtlx_conditional_ifequal_color4B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_color4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_color4B', mtlx_conditional_ifequal_color4B); + +// MaterialX node type: mtlx/conditional/ifequal_vector2B +// +function mtlx_conditional_ifequal_vector2B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector2B'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector2B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'ifequal_vector2'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector2B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_ifequal_vector2B.nodedef_name = 'ND_ifequal_vector2B'; +mtlx_conditional_ifequal_vector2B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector2B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector2B', mtlx_conditional_ifequal_vector2B); + +// MaterialX node type: mtlx/conditional/ifequal_vector3B +// +function mtlx_conditional_ifequal_vector3B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector3B'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector3B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'ifequal_vector3'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector3B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_ifequal_vector3B.nodedef_name = 'ND_ifequal_vector3B'; +mtlx_conditional_ifequal_vector3B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector3B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector3B', mtlx_conditional_ifequal_vector3B); + +// MaterialX node type: mtlx/conditional/ifequal_vector4B +// +function mtlx_conditional_ifequal_vector4B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_vector4B'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_vector4B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'ifequal_vector4'; + this.desc = "MaterialX:mtlx/conditional/ifequal_vector4B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_ifequal_vector4B.nodedef_name = 'ND_ifequal_vector4B'; +mtlx_conditional_ifequal_vector4B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_vector4B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_vector4B', mtlx_conditional_ifequal_vector4B); + +// MaterialX node type: mtlx/conditional/ifequal_matrix33B +// +function mtlx_conditional_ifequal_matrix33B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix33B'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix33B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'ifequal_matrix33'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_ifequal_matrix33B.nodedef_name = 'ND_ifequal_matrix33B'; +mtlx_conditional_ifequal_matrix33B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix33B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix33B', mtlx_conditional_ifequal_matrix33B); + +// MaterialX node type: mtlx/conditional/ifequal_matrix44B +// +function mtlx_conditional_ifequal_matrix44B() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_ifequal_matrix44B'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'ifequal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_ifequal_matrix44B_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('value1', 'boolean'); + this.addProperty('value1', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('value2', 'boolean'); + this.addProperty('value2', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'ifequal_matrix44'; + this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44B"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_ifequal_matrix44B.nodedef_name = 'ND_ifequal_matrix44B'; +mtlx_conditional_ifequal_matrix44B.nodedef_node = 'ifequal'; +mtlx_conditional_ifequal_matrix44B.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/ifequal.html'; +LiteGraph.registerNodeType('mtlx/conditional/ifequal_matrix44B', mtlx_conditional_ifequal_matrix44B); + +// MaterialX node type: mtlx/conditional/switch_float +// +function mtlx_conditional_switch_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_float_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'float'); + this.addProperty('in4', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'float'); + this.addProperty('in5', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'float'); + this.addProperty('in6', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'float'); + this.addProperty('in7', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'float'); + this.addProperty('in8', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'float'); + this.addProperty('in9', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'float'); + this.addProperty('in10', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'switch_float'; + this.desc = "MaterialX:mtlx/conditional/switch_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_switch_float.nodedef_name = 'ND_switch_float'; +mtlx_conditional_switch_float.nodedef_node = 'switch'; +mtlx_conditional_switch_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_float', mtlx_conditional_switch_float); + +// MaterialX node type: mtlx/conditional/switch_color3 +// +function mtlx_conditional_switch_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'color3'); + this.addProperty('in3', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'color3'); + this.addProperty('in4', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'color3'); + this.addProperty('in5', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'color3'); + this.addProperty('in6', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'color3'); + this.addProperty('in7', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'color3'); + this.addProperty('in8', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'color3'); + this.addProperty('in9', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'color3'); + this.addProperty('in10', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'switch_color3'; + this.desc = "MaterialX:mtlx/conditional/switch_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_switch_color3.nodedef_name = 'ND_switch_color3'; +mtlx_conditional_switch_color3.nodedef_node = 'switch'; +mtlx_conditional_switch_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_color3', mtlx_conditional_switch_color3); + +// MaterialX node type: mtlx/conditional/switch_color4 +// +function mtlx_conditional_switch_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'color4'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'color4'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'color4'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'color4'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'color4'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'color4'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'color4'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'color4'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'switch_color4'; + this.desc = "MaterialX:mtlx/conditional/switch_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_switch_color4.nodedef_name = 'ND_switch_color4'; +mtlx_conditional_switch_color4.nodedef_node = 'switch'; +mtlx_conditional_switch_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_color4', mtlx_conditional_switch_color4); + +// MaterialX node type: mtlx/conditional/switch_vector2 +// +function mtlx_conditional_switch_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector2'); + this.addProperty('in3', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector2'); + this.addProperty('in4', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector2'); + this.addProperty('in5', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector2'); + this.addProperty('in6', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector2'); + this.addProperty('in7', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector2'); + this.addProperty('in8', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector2'); + this.addProperty('in9', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector2'); + this.addProperty('in10', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'switch_vector2'; + this.desc = "MaterialX:mtlx/conditional/switch_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_switch_vector2.nodedef_name = 'ND_switch_vector2'; +mtlx_conditional_switch_vector2.nodedef_node = 'switch'; +mtlx_conditional_switch_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector2', mtlx_conditional_switch_vector2); + +// MaterialX node type: mtlx/conditional/switch_vector3 +// +function mtlx_conditional_switch_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector3'); + this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector3'); + this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector3'); + this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector3'); + this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector3'); + this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector3'); + this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector3'); + this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector3'); + this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'switch_vector3'; + this.desc = "MaterialX:mtlx/conditional/switch_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_switch_vector3.nodedef_name = 'ND_switch_vector3'; +mtlx_conditional_switch_vector3.nodedef_node = 'switch'; +mtlx_conditional_switch_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector3', mtlx_conditional_switch_vector3); + +// MaterialX node type: mtlx/conditional/switch_vector4 +// +function mtlx_conditional_switch_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector4'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector4'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector4'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector4'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector4'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector4'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector4'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector4'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'switch_vector4'; + this.desc = "MaterialX:mtlx/conditional/switch_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_switch_vector4.nodedef_name = 'ND_switch_vector4'; +mtlx_conditional_switch_vector4.nodedef_node = 'switch'; +mtlx_conditional_switch_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector4', mtlx_conditional_switch_vector4); + +// MaterialX node type: mtlx/conditional/switch_matrix33 +// +function mtlx_conditional_switch_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'matrix33'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'matrix33'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'matrix33'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'matrix33'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'matrix33'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'matrix33'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'matrix33'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'matrix33'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'switch_matrix33'; + this.desc = "MaterialX:mtlx/conditional/switch_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_switch_matrix33.nodedef_name = 'ND_switch_matrix33'; +mtlx_conditional_switch_matrix33.nodedef_node = 'switch'; +mtlx_conditional_switch_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33', mtlx_conditional_switch_matrix33); + +// MaterialX node type: mtlx/conditional/switch_matrix44 +// +function mtlx_conditional_switch_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'matrix44'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'matrix44'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'matrix44'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'matrix44'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'matrix44'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'matrix44'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'matrix44'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'matrix44'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'float'); + this.addProperty('which', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'switch_matrix44'; + this.desc = "MaterialX:mtlx/conditional/switch_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_switch_matrix44.nodedef_name = 'ND_switch_matrix44'; +mtlx_conditional_switch_matrix44.nodedef_node = 'switch'; +mtlx_conditional_switch_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44', mtlx_conditional_switch_matrix44); + +// MaterialX node type: mtlx/conditional/switch_floatI +// +function mtlx_conditional_switch_floatI() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_floatI'; + this.nodedef_type = 'float'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_floatI_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'float'); + this.addProperty('in4', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'float'); + this.addProperty('in5', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'float'); + this.addProperty('in6', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'float'); + this.addProperty('in7', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'float'); + this.addProperty('in8', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'float'); + this.addProperty('in9', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'float'); + this.addProperty('in10', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'switch_float'; + this.desc = "MaterialX:mtlx/conditional/switch_floatI"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#161'; +} +mtlx_conditional_switch_floatI.nodedef_name = 'ND_switch_floatI'; +mtlx_conditional_switch_floatI.nodedef_node = 'switch'; +mtlx_conditional_switch_floatI.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_floatI', mtlx_conditional_switch_floatI); + +// MaterialX node type: mtlx/conditional/switch_color3I +// +function mtlx_conditional_switch_color3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_color3I'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'color3'); + this.addProperty('in3', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'color3'); + this.addProperty('in4', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'color3'); + this.addProperty('in5', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'color3'); + this.addProperty('in6', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'color3'); + this.addProperty('in7', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'color3'); + this.addProperty('in8', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'color3'); + this.addProperty('in9', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'color3'); + this.addProperty('in10', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'switch_color3'; + this.desc = "MaterialX:mtlx/conditional/switch_color3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_conditional_switch_color3I.nodedef_name = 'ND_switch_color3I'; +mtlx_conditional_switch_color3I.nodedef_node = 'switch'; +mtlx_conditional_switch_color3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_color3I', mtlx_conditional_switch_color3I); + +// MaterialX node type: mtlx/conditional/switch_color4I +// +function mtlx_conditional_switch_color4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_color4I'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_color4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'color4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'color4'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'color4'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'color4'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'color4'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'color4'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'color4'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'color4'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'color4'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'switch_color4'; + this.desc = "MaterialX:mtlx/conditional/switch_color4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_conditional_switch_color4I.nodedef_name = 'ND_switch_color4I'; +mtlx_conditional_switch_color4I.nodedef_node = 'switch'; +mtlx_conditional_switch_color4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_color4I', mtlx_conditional_switch_color4I); + +// MaterialX node type: mtlx/conditional/switch_vector2I +// +function mtlx_conditional_switch_vector2I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector2I'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector2I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector2'); + this.addProperty('in3', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector2'); + this.addProperty('in4', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector2'); + this.addProperty('in5', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector2'); + this.addProperty('in6', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector2'); + this.addProperty('in7', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector2'); + this.addProperty('in8', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector2'); + this.addProperty('in9', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector2'); + this.addProperty('in10', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'switch_vector2'; + this.desc = "MaterialX:mtlx/conditional/switch_vector2I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#265'; +} +mtlx_conditional_switch_vector2I.nodedef_name = 'ND_switch_vector2I'; +mtlx_conditional_switch_vector2I.nodedef_node = 'switch'; +mtlx_conditional_switch_vector2I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector2I', mtlx_conditional_switch_vector2I); + +// MaterialX node type: mtlx/conditional/switch_vector3I +// +function mtlx_conditional_switch_vector3I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector3I'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector3I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector3'); + this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector3'); + this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector3'); + this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector3'); + this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector3'); + this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector3'); + this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector3'); + this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector3'); + this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'switch_vector3'; + this.desc = "MaterialX:mtlx/conditional/switch_vector3I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#465'; +} +mtlx_conditional_switch_vector3I.nodedef_name = 'ND_switch_vector3I'; +mtlx_conditional_switch_vector3I.nodedef_node = 'switch'; +mtlx_conditional_switch_vector3I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector3I', mtlx_conditional_switch_vector3I); + +// MaterialX node type: mtlx/conditional/switch_vector4I +// +function mtlx_conditional_switch_vector4I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_vector4I'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_vector4I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector4'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector4'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'vector4'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'vector4'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'vector4'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'vector4'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'vector4'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'vector4'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'switch_vector4'; + this.desc = "MaterialX:mtlx/conditional/switch_vector4I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#275'; +} +mtlx_conditional_switch_vector4I.nodedef_name = 'ND_switch_vector4I'; +mtlx_conditional_switch_vector4I.nodedef_node = 'switch'; +mtlx_conditional_switch_vector4I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_vector4I', mtlx_conditional_switch_vector4I); + +// MaterialX node type: mtlx/conditional/switch_matrix33I +// +function mtlx_conditional_switch_matrix33I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_matrix33I'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix33I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'matrix33'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix33'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'matrix33'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'matrix33'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'matrix33'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'matrix33'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'matrix33'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'matrix33'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'matrix33'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'matrix33'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'switch_matrix33'; + this.desc = "MaterialX:mtlx/conditional/switch_matrix33I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#333'; +} +mtlx_conditional_switch_matrix33I.nodedef_name = 'ND_switch_matrix33I'; +mtlx_conditional_switch_matrix33I.nodedef_node = 'switch'; +mtlx_conditional_switch_matrix33I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_matrix33I', mtlx_conditional_switch_matrix33I); + +// MaterialX node type: mtlx/conditional/switch_matrix44I +// +function mtlx_conditional_switch_matrix44I() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_switch_matrix44I'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'switch'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_switch_matrix44I_out_genglsl.png'; + this.nodedef_group = 'conditional'; + this.addInput('in1', 'matrix44'); + this.addProperty('in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'matrix44'); + this.addProperty('in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'matrix44'); + this.addProperty('in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'matrix44'); + this.addProperty('in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in5', 'matrix44'); + this.addProperty('in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in6', 'matrix44'); + this.addProperty('in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in7', 'matrix44'); + this.addProperty('in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in8', 'matrix44'); + this.addProperty('in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in9', 'matrix44'); + this.addProperty('in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in10', 'matrix44'); + this.addProperty('in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('which', 'integer'); + this.addProperty('which', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'switch_matrix44'; + this.desc = "MaterialX:mtlx/conditional/switch_matrix44I"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#532200'; + this.title_text_color = '#000'; + this.shape = LiteGraph.CARD_SHAPE; + this.boxcolor = '#444'; +} +mtlx_conditional_switch_matrix44I.nodedef_name = 'ND_switch_matrix44I'; +mtlx_conditional_switch_matrix44I.nodedef_node = 'switch'; +mtlx_conditional_switch_matrix44I.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/switch.html'; +LiteGraph.registerNodeType('mtlx/conditional/switch_matrix44I', mtlx_conditional_switch_matrix44I); + +// MaterialX node type: mtlx/channel/convert_float_color3 +// +function mtlx_channel_convert_float_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'convert_color3'; + this.desc = "MaterialX:mtlx/channel/convert_float_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_channel_convert_float_color3.nodedef_name = 'ND_convert_float_color3'; +mtlx_channel_convert_float_color3.nodedef_node = 'convert'; +mtlx_channel_convert_float_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_float_color3', mtlx_channel_convert_float_color3); + +// MaterialX node type: mtlx/channel/convert_float_color4 +// +function mtlx_channel_convert_float_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_color4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'convert_color4'; + this.desc = "MaterialX:mtlx/channel/convert_float_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_channel_convert_float_color4.nodedef_name = 'ND_convert_float_color4'; +mtlx_channel_convert_float_color4.nodedef_node = 'convert'; +mtlx_channel_convert_float_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_float_color4', mtlx_channel_convert_float_color4); + +// MaterialX node type: mtlx/channel/convert_float_vector2 +// +function mtlx_channel_convert_float_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector2_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'convert_vector2'; + this.desc = "MaterialX:mtlx/channel/convert_float_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_channel_convert_float_vector2.nodedef_name = 'ND_convert_float_vector2'; +mtlx_channel_convert_float_vector2.nodedef_node = 'convert'; +mtlx_channel_convert_float_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_float_vector2', mtlx_channel_convert_float_vector2); + +// MaterialX node type: mtlx/channel/convert_float_vector3 +// +function mtlx_channel_convert_float_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'convert_vector3'; + this.desc = "MaterialX:mtlx/channel/convert_float_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_channel_convert_float_vector3.nodedef_name = 'ND_convert_float_vector3'; +mtlx_channel_convert_float_vector3.nodedef_node = 'convert'; +mtlx_channel_convert_float_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_float_vector3', mtlx_channel_convert_float_vector3); + +// MaterialX node type: mtlx/channel/convert_float_vector4 +// +function mtlx_channel_convert_float_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_vector4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'convert_vector4'; + this.desc = "MaterialX:mtlx/channel/convert_float_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_convert_float_vector4.nodedef_name = 'ND_convert_float_vector4'; +mtlx_channel_convert_float_vector4.nodedef_node = 'convert'; +mtlx_channel_convert_float_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_float_vector4', mtlx_channel_convert_float_vector4); + +// MaterialX node type: mtlx/channel/convert_vector2_vector3 +// +function mtlx_channel_convert_vector2_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector2_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'convert_vector3'; + this.desc = "MaterialX:mtlx/channel/convert_vector2_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_channel_convert_vector2_vector3.nodedef_name = 'ND_convert_vector2_vector3'; +mtlx_channel_convert_vector2_vector3.nodedef_node = 'convert'; +mtlx_channel_convert_vector2_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector2_vector3', mtlx_channel_convert_vector2_vector3); + +// MaterialX node type: mtlx/channel/convert_vector3_color3 +// +function mtlx_channel_convert_vector3_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector3_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_color3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'convert_color3'; + this.desc = "MaterialX:mtlx/channel/convert_vector3_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_channel_convert_vector3_color3.nodedef_name = 'ND_convert_vector3_color3'; +mtlx_channel_convert_vector3_color3.nodedef_node = 'convert'; +mtlx_channel_convert_vector3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector3_color3', mtlx_channel_convert_vector3_color3); + +// MaterialX node type: mtlx/channel/convert_vector3_vector2 +// +function mtlx_channel_convert_vector3_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector3_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector2_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'convert_vector2'; + this.desc = "MaterialX:mtlx/channel/convert_vector3_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_channel_convert_vector3_vector2.nodedef_name = 'ND_convert_vector3_vector2'; +mtlx_channel_convert_vector3_vector2.nodedef_node = 'convert'; +mtlx_channel_convert_vector3_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector2', mtlx_channel_convert_vector3_vector2); + +// MaterialX node type: mtlx/channel/convert_vector3_vector4 +// +function mtlx_channel_convert_vector3_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector3_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_vector4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'convert_vector4'; + this.desc = "MaterialX:mtlx/channel/convert_vector3_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_convert_vector3_vector4.nodedef_name = 'ND_convert_vector3_vector4'; +mtlx_channel_convert_vector3_vector4.nodedef_node = 'convert'; +mtlx_channel_convert_vector3_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector3_vector4', mtlx_channel_convert_vector3_vector4); + +// MaterialX node type: mtlx/channel/convert_vector4_color4 +// +function mtlx_channel_convert_vector4_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector4_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_color4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'convert_color4'; + this.desc = "MaterialX:mtlx/channel/convert_vector4_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_channel_convert_vector4_color4.nodedef_name = 'ND_convert_vector4_color4'; +mtlx_channel_convert_vector4_color4.nodedef_node = 'convert'; +mtlx_channel_convert_vector4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector4_color4', mtlx_channel_convert_vector4_color4); + +// MaterialX node type: mtlx/channel/convert_vector4_vector3 +// +function mtlx_channel_convert_vector4_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector4_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'convert_vector3'; + this.desc = "MaterialX:mtlx/channel/convert_vector4_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_channel_convert_vector4_vector3.nodedef_name = 'ND_convert_vector4_vector3'; +mtlx_channel_convert_vector4_vector3.nodedef_node = 'convert'; +mtlx_channel_convert_vector4_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_vector4_vector3', mtlx_channel_convert_vector4_vector3); + +// MaterialX node type: mtlx/channel/convert_color3_vector3 +// +function mtlx_channel_convert_color3_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color3_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'convert_vector3'; + this.desc = "MaterialX:mtlx/channel/convert_color3_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_channel_convert_color3_vector3.nodedef_name = 'ND_convert_color3_vector3'; +mtlx_channel_convert_color3_vector3.nodedef_node = 'convert'; +mtlx_channel_convert_color3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_color3_vector3', mtlx_channel_convert_color3_vector3); + +// MaterialX node type: mtlx/channel/convert_color4_vector4 +// +function mtlx_channel_convert_color4_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color4_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_vector4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'convert_vector4'; + this.desc = "MaterialX:mtlx/channel/convert_color4_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_convert_color4_vector4.nodedef_name = 'ND_convert_color4_vector4'; +mtlx_channel_convert_color4_vector4.nodedef_node = 'convert'; +mtlx_channel_convert_color4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_color4_vector4', mtlx_channel_convert_color4_vector4); + +// MaterialX node type: mtlx/channel/convert_color3_color4 +// +function mtlx_channel_convert_color3_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color3_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_color4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'convert_color4'; + this.desc = "MaterialX:mtlx/channel/convert_color3_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_channel_convert_color3_color4.nodedef_name = 'ND_convert_color3_color4'; +mtlx_channel_convert_color3_color4.nodedef_node = 'convert'; +mtlx_channel_convert_color3_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_color3_color4', mtlx_channel_convert_color3_color4); + +// MaterialX node type: mtlx/channel/convert_color4_color3 +// +function mtlx_channel_convert_color4_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color4_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_color3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'convert_color3'; + this.desc = "MaterialX:mtlx/channel/convert_color4_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_channel_convert_color4_color3.nodedef_name = 'ND_convert_color4_color3'; +mtlx_channel_convert_color4_color3.nodedef_node = 'convert'; +mtlx_channel_convert_color4_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_color4_color3', mtlx_channel_convert_color4_color3); + +// MaterialX node type: mtlx/channel/convert_boolean_float +// +function mtlx_channel_convert_boolean_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_boolean_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_float_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'boolean'); + this.addProperty('in', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'convert_float'; + this.desc = "MaterialX:mtlx/channel/convert_boolean_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_convert_boolean_float.nodedef_name = 'ND_convert_boolean_float'; +mtlx_channel_convert_boolean_float.nodedef_node = 'convert'; +mtlx_channel_convert_boolean_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_boolean_float', mtlx_channel_convert_boolean_float); + +// MaterialX node type: mtlx/channel/convert_integer_float +// +function mtlx_channel_convert_integer_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_integer_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_float_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'convert_float'; + this.desc = "MaterialX:mtlx/channel/convert_integer_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_convert_integer_float.nodedef_name = 'ND_convert_integer_float'; +mtlx_channel_convert_integer_float.nodedef_node = 'convert'; +mtlx_channel_convert_integer_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/channel/convert_integer_float', mtlx_channel_convert_integer_float); + +// MaterialX node type: mtlx/shader/convert_color3_surfaceshader +// +function mtlx_shader_convert_color3_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color3_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color3_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'color3'); + this.addProperty('in', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_color3_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_color3_surfaceshader.nodedef_name = 'ND_convert_color3_surfaceshader'; +mtlx_shader_convert_color3_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_color3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_color3_surfaceshader', mtlx_shader_convert_color3_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_color4_surfaceshader +// +function mtlx_shader_convert_color4_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_color4_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_color4_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'color4'); + this.addProperty('in', [0, 0, 0, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_color4_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_color4_surfaceshader.nodedef_name = 'ND_convert_color4_surfaceshader'; +mtlx_shader_convert_color4_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_color4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_color4_surfaceshader', mtlx_shader_convert_color4_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_float_surfaceshader +// +function mtlx_shader_convert_float_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_float_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_float_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'float'); + this.addProperty('in', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_float_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_float_surfaceshader.nodedef_name = 'ND_convert_float_surfaceshader'; +mtlx_shader_convert_float_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_float_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_float_surfaceshader', mtlx_shader_convert_float_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_vector2_surfaceshader +// +function mtlx_shader_convert_vector2_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector2_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector2_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_vector2_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_vector2_surfaceshader.nodedef_name = 'ND_convert_vector2_surfaceshader'; +mtlx_shader_convert_vector2_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_vector2_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_vector2_surfaceshader', mtlx_shader_convert_vector2_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_vector3_surfaceshader +// +function mtlx_shader_convert_vector3_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector3_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector3_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_vector3_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_vector3_surfaceshader.nodedef_name = 'ND_convert_vector3_surfaceshader'; +mtlx_shader_convert_vector3_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_vector3_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_vector3_surfaceshader', mtlx_shader_convert_vector3_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_vector4_surfaceshader +// +function mtlx_shader_convert_vector4_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_vector4_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_vector4_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0, 0, 0, 0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_vector4_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_vector4_surfaceshader.nodedef_name = 'ND_convert_vector4_surfaceshader'; +mtlx_shader_convert_vector4_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_vector4_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_vector4_surfaceshader', mtlx_shader_convert_vector4_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_integer_surfaceshader +// +function mtlx_shader_convert_integer_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_integer_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_integer_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_integer_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_integer_surfaceshader.nodedef_name = 'ND_convert_integer_surfaceshader'; +mtlx_shader_convert_integer_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_integer_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_integer_surfaceshader', mtlx_shader_convert_integer_surfaceshader); + +// MaterialX node type: mtlx/shader/convert_boolean_surfaceshader +// +function mtlx_shader_convert_boolean_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_convert_boolean_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'convert'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_convert_boolean_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'shader'; + this.addInput('in', 'boolean'); + this.addProperty('in', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'convert_surfaceshader'; + this.desc = "MaterialX:mtlx/shader/convert_boolean_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_shader_convert_boolean_surfaceshader.nodedef_name = 'ND_convert_boolean_surfaceshader'; +mtlx_shader_convert_boolean_surfaceshader.nodedef_node = 'convert'; +mtlx_shader_convert_boolean_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/convert.html'; +LiteGraph.registerNodeType('mtlx/shader/convert_boolean_surfaceshader', mtlx_shader_convert_boolean_surfaceshader); + +// MaterialX node type: mtlx/channel/combine2_vector2 +// +function mtlx_channel_combine2_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine2_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'combine2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector2_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'combine2_vector2'; + this.desc = "MaterialX:mtlx/channel/combine2_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_channel_combine2_vector2.nodedef_name = 'ND_combine2_vector2'; +mtlx_channel_combine2_vector2.nodedef_node = 'combine2'; +mtlx_channel_combine2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; +LiteGraph.registerNodeType('mtlx/channel/combine2_vector2', mtlx_channel_combine2_vector2); + +// MaterialX node type: mtlx/channel/combine2_color4CF +// +function mtlx_channel_combine2_color4CF() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine2_color4CF'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'combine2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_color4CF_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'color3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'combine2_color4'; + this.desc = "MaterialX:mtlx/channel/combine2_color4CF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_channel_combine2_color4CF.nodedef_name = 'ND_combine2_color4CF'; +mtlx_channel_combine2_color4CF.nodedef_node = 'combine2'; +mtlx_channel_combine2_color4CF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; +LiteGraph.registerNodeType('mtlx/channel/combine2_color4CF', mtlx_channel_combine2_color4CF); + +// MaterialX node type: mtlx/channel/combine2_vector4VF +// +function mtlx_channel_combine2_vector4VF() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine2_vector4VF'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'combine2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VF_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'combine2_vector4'; + this.desc = "MaterialX:mtlx/channel/combine2_vector4VF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_combine2_vector4VF.nodedef_name = 'ND_combine2_vector4VF'; +mtlx_channel_combine2_vector4VF.nodedef_node = 'combine2'; +mtlx_channel_combine2_vector4VF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; +LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VF', mtlx_channel_combine2_vector4VF); + +// MaterialX node type: mtlx/channel/combine2_vector4VV +// +function mtlx_channel_combine2_vector4VV() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine2_vector4VV'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'combine2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine2_vector4VV_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'vector2'); + this.addProperty('in1', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector2'); + this.addProperty('in2', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'combine2_vector4'; + this.desc = "MaterialX:mtlx/channel/combine2_vector4VV"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_combine2_vector4VV.nodedef_name = 'ND_combine2_vector4VV'; +mtlx_channel_combine2_vector4VV.nodedef_node = 'combine2'; +mtlx_channel_combine2_vector4VV.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine2.html'; +LiteGraph.registerNodeType('mtlx/channel/combine2_vector4VV', mtlx_channel_combine2_vector4VV); + +// MaterialX node type: mtlx/channel/combine3_color3 +// +function mtlx_channel_combine3_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine3_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'combine3'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_color3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'combine3_color3'; + this.desc = "MaterialX:mtlx/channel/combine3_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_channel_combine3_color3.nodedef_name = 'ND_combine3_color3'; +mtlx_channel_combine3_color3.nodedef_node = 'combine3'; +mtlx_channel_combine3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; +LiteGraph.registerNodeType('mtlx/channel/combine3_color3', mtlx_channel_combine3_color3); + +// MaterialX node type: mtlx/channel/combine3_vector3 +// +function mtlx_channel_combine3_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine3_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'combine3'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine3_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'combine3_vector3'; + this.desc = "MaterialX:mtlx/channel/combine3_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_channel_combine3_vector3.nodedef_name = 'ND_combine3_vector3'; +mtlx_channel_combine3_vector3.nodedef_node = 'combine3'; +mtlx_channel_combine3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine3.html'; +LiteGraph.registerNodeType('mtlx/channel/combine3_vector3', mtlx_channel_combine3_vector3); + +// MaterialX node type: mtlx/channel/combine4_color4 +// +function mtlx_channel_combine4_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine4_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'combine4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_color4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'float'); + this.addProperty('in4', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'combine4_color4'; + this.desc = "MaterialX:mtlx/channel/combine4_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_channel_combine4_color4.nodedef_name = 'ND_combine4_color4'; +mtlx_channel_combine4_color4.nodedef_node = 'combine4'; +mtlx_channel_combine4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; +LiteGraph.registerNodeType('mtlx/channel/combine4_color4', mtlx_channel_combine4_color4); + +// MaterialX node type: mtlx/channel/combine4_vector4 +// +function mtlx_channel_combine4_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_combine4_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'combine4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_combine4_vector4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in1', 'float'); + this.addProperty('in1', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'float'); + this.addProperty('in3', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'float'); + this.addProperty('in4', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'combine4_vector4'; + this.desc = "MaterialX:mtlx/channel/combine4_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_channel_combine4_vector4.nodedef_name = 'ND_combine4_vector4'; +mtlx_channel_combine4_vector4.nodedef_node = 'combine4'; +mtlx_channel_combine4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/combine4.html'; +LiteGraph.registerNodeType('mtlx/channel/combine4_vector4', mtlx_channel_combine4_vector4); + +// MaterialX node type: mtlx/math/creatematrix_vector3_matrix33 +// +function mtlx_math_creatematrix_vector3_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_creatematrix_vector3_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'creatematrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix33_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector3'); + this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'creatematrix_matrix33'; + this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_math_creatematrix_vector3_matrix33.nodedef_name = 'ND_creatematrix_vector3_matrix33'; +mtlx_math_creatematrix_vector3_matrix33.nodedef_node = 'creatematrix'; +mtlx_math_creatematrix_vector3_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; +LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix33', mtlx_math_creatematrix_vector3_matrix33); + +// MaterialX node type: mtlx/math/creatematrix_vector3_matrix44 +// +function mtlx_math_creatematrix_vector3_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_creatematrix_vector3_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'creatematrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector3'); + this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector3'); + this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector3'); + this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector3'); + this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'creatematrix_matrix44'; + this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_creatematrix_vector3_matrix44.nodedef_name = 'ND_creatematrix_vector3_matrix44'; +mtlx_math_creatematrix_vector3_matrix44.nodedef_node = 'creatematrix'; +mtlx_math_creatematrix_vector3_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; +LiteGraph.registerNodeType('mtlx/math/creatematrix_vector3_matrix44', mtlx_math_creatematrix_vector3_matrix44); + +// MaterialX node type: mtlx/math/creatematrix_vector4_matrix44 +// +function mtlx_math_creatematrix_vector4_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_creatematrix_vector4_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'creatematrix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_creatematrix_vector4_matrix44_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in1', 'vector4'); + this.addProperty('in1', [1.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'vector4'); + this.addProperty('in2', [0.0, 1.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in3', 'vector4'); + this.addProperty('in3', [0.0, 0.0, 1.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in4', 'vector4'); + this.addProperty('in4', [0.0, 0.0, 0.0, 1.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'creatematrix_matrix44'; + this.desc = "MaterialX:mtlx/math/creatematrix_vector4_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_math_creatematrix_vector4_matrix44.nodedef_name = 'ND_creatematrix_vector4_matrix44'; +mtlx_math_creatematrix_vector4_matrix44.nodedef_node = 'creatematrix'; +mtlx_math_creatematrix_vector4_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/creatematrix.html'; +LiteGraph.registerNodeType('mtlx/math/creatematrix_vector4_matrix44', mtlx_math_creatematrix_vector4_matrix44); + +// MaterialX node type: mtlx/channel/extract_color3 +// +function mtlx_channel_extract_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_extract_color3'; + this.nodedef_type = 'float'; + this.nodedef_node = 'extract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "2", "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'extract_float'; + this.desc = "MaterialX:mtlx/channel/extract_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_extract_color3.nodedef_name = 'ND_extract_color3'; +mtlx_channel_extract_color3.nodedef_node = 'extract'; +mtlx_channel_extract_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; +LiteGraph.registerNodeType('mtlx/channel/extract_color3', mtlx_channel_extract_color3); + +// MaterialX node type: mtlx/channel/extract_color4 +// +function mtlx_channel_extract_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_extract_color4'; + this.nodedef_type = 'float'; + this.nodedef_node = 'extract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_color4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "3", "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'extract_float'; + this.desc = "MaterialX:mtlx/channel/extract_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_extract_color4.nodedef_name = 'ND_extract_color4'; +mtlx_channel_extract_color4.nodedef_node = 'extract'; +mtlx_channel_extract_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; +LiteGraph.registerNodeType('mtlx/channel/extract_color4', mtlx_channel_extract_color4); + +// MaterialX node type: mtlx/channel/extract_vector2 +// +function mtlx_channel_extract_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_extract_vector2'; + this.nodedef_type = 'float'; + this.nodedef_node = 'extract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector2_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "1", "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'extract_float'; + this.desc = "MaterialX:mtlx/channel/extract_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_extract_vector2.nodedef_name = 'ND_extract_vector2'; +mtlx_channel_extract_vector2.nodedef_node = 'extract'; +mtlx_channel_extract_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; +LiteGraph.registerNodeType('mtlx/channel/extract_vector2', mtlx_channel_extract_vector2); + +// MaterialX node type: mtlx/channel/extract_vector3 +// +function mtlx_channel_extract_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_extract_vector3'; + this.nodedef_type = 'float'; + this.nodedef_node = 'extract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector3_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "2", "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'extract_float'; + this.desc = "MaterialX:mtlx/channel/extract_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_extract_vector3.nodedef_name = 'ND_extract_vector3'; +mtlx_channel_extract_vector3.nodedef_node = 'extract'; +mtlx_channel_extract_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; +LiteGraph.registerNodeType('mtlx/channel/extract_vector3', mtlx_channel_extract_vector3); + +// MaterialX node type: mtlx/channel/extract_vector4 +// +function mtlx_channel_extract_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_extract_vector4'; + this.nodedef_type = 'float'; + this.nodedef_node = 'extract'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_extract_vector4_out_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('index', 'integer'); + this.addProperty('index', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "3", "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'extract_float'; + this.desc = "MaterialX:mtlx/channel/extract_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_channel_extract_vector4.nodedef_name = 'ND_extract_vector4'; +mtlx_channel_extract_vector4.nodedef_node = 'extract'; +mtlx_channel_extract_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/extract.html'; +LiteGraph.registerNodeType('mtlx/channel/extract_vector4', mtlx_channel_extract_vector4); + +// MaterialX node type: mtlx/channel/separate2_vector2 +// +function mtlx_channel_separate2_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_separate2_vector2'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'separate2'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate2_vector2_outx_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('outx', 'float'); + this.addOutput('outy', 'float'); + this.title = 'separate2_multioutput'; + this.desc = "MaterialX:mtlx/channel/separate2_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_channel_separate2_vector2.nodedef_name = 'ND_separate2_vector2'; +mtlx_channel_separate2_vector2.nodedef_node = 'separate2'; +mtlx_channel_separate2_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate2.html'; +LiteGraph.registerNodeType('mtlx/channel/separate2_vector2', mtlx_channel_separate2_vector2); + +// MaterialX node type: mtlx/channel/separate3_color3 +// +function mtlx_channel_separate3_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_separate3_color3'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'separate3'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_color3_outr_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('outr', 'float'); + this.addOutput('outg', 'float'); + this.addOutput('outb', 'float'); + this.title = 'separate3_multioutput'; + this.desc = "MaterialX:mtlx/channel/separate3_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_channel_separate3_color3.nodedef_name = 'ND_separate3_color3'; +mtlx_channel_separate3_color3.nodedef_node = 'separate3'; +mtlx_channel_separate3_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; +LiteGraph.registerNodeType('mtlx/channel/separate3_color3', mtlx_channel_separate3_color3); + +// MaterialX node type: mtlx/channel/separate3_vector3 +// +function mtlx_channel_separate3_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_separate3_vector3'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'separate3'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate3_vector3_outx_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('outx', 'float'); + this.addOutput('outy', 'float'); + this.addOutput('outz', 'float'); + this.title = 'separate3_multioutput'; + this.desc = "MaterialX:mtlx/channel/separate3_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_channel_separate3_vector3.nodedef_name = 'ND_separate3_vector3'; +mtlx_channel_separate3_vector3.nodedef_node = 'separate3'; +mtlx_channel_separate3_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate3.html'; +LiteGraph.registerNodeType('mtlx/channel/separate3_vector3', mtlx_channel_separate3_vector3); + +// MaterialX node type: mtlx/channel/separate4_color4 +// +function mtlx_channel_separate4_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_separate4_color4'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'separate4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_color4_outr_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('outr', 'float'); + this.addOutput('outg', 'float'); + this.addOutput('outb', 'float'); + this.addOutput('outa', 'float'); + this.title = 'separate4_multioutput'; + this.desc = "MaterialX:mtlx/channel/separate4_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_channel_separate4_color4.nodedef_name = 'ND_separate4_color4'; +mtlx_channel_separate4_color4.nodedef_node = 'separate4'; +mtlx_channel_separate4_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; +LiteGraph.registerNodeType('mtlx/channel/separate4_color4', mtlx_channel_separate4_color4); + +// MaterialX node type: mtlx/channel/separate4_vector4 +// +function mtlx_channel_separate4_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_separate4_vector4'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'separate4'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_separate4_vector4_outx_genglsl.png'; + this.nodedef_group = 'channel'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('outx', 'float'); + this.addOutput('outy', 'float'); + this.addOutput('outz', 'float'); + this.addOutput('outw', 'float'); + this.title = 'separate4_multioutput'; + this.desc = "MaterialX:mtlx/channel/separate4_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_channel_separate4_vector4.nodedef_name = 'ND_separate4_vector4'; +mtlx_channel_separate4_vector4.nodedef_node = 'separate4'; +mtlx_channel_separate4_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/separate4.html'; +LiteGraph.registerNodeType('mtlx/channel/separate4_vector4', mtlx_channel_separate4_vector4); + +// MaterialX node type: mtlx/convolution2d/blur_float +// +function mtlx_convolution2d_blur_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_float_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'blur_float'; + this.desc = "MaterialX:mtlx/convolution2d/blur_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_convolution2d_blur_float.nodedef_name = 'ND_blur_float'; +mtlx_convolution2d_blur_float.nodedef_node = 'blur'; +mtlx_convolution2d_blur_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_float', mtlx_convolution2d_blur_float); + +// MaterialX node type: mtlx/convolution2d/blur_color3 +// +function mtlx_convolution2d_blur_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color3_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'blur_color3'; + this.desc = "MaterialX:mtlx/convolution2d/blur_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_convolution2d_blur_color3.nodedef_name = 'ND_blur_color3'; +mtlx_convolution2d_blur_color3.nodedef_node = 'blur'; +mtlx_convolution2d_blur_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_color3', mtlx_convolution2d_blur_color3); + +// MaterialX node type: mtlx/convolution2d/blur_color4 +// +function mtlx_convolution2d_blur_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_color4_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'blur_color4'; + this.desc = "MaterialX:mtlx/convolution2d/blur_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_convolution2d_blur_color4.nodedef_name = 'ND_blur_color4'; +mtlx_convolution2d_blur_color4.nodedef_node = 'blur'; +mtlx_convolution2d_blur_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_color4', mtlx_convolution2d_blur_color4); + +// MaterialX node type: mtlx/convolution2d/blur_vector2 +// +function mtlx_convolution2d_blur_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector2_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'blur_vector2'; + this.desc = "MaterialX:mtlx/convolution2d/blur_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_convolution2d_blur_vector2.nodedef_name = 'ND_blur_vector2'; +mtlx_convolution2d_blur_vector2.nodedef_node = 'blur'; +mtlx_convolution2d_blur_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector2', mtlx_convolution2d_blur_vector2); + +// MaterialX node type: mtlx/convolution2d/blur_vector3 +// +function mtlx_convolution2d_blur_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector3_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'blur_vector3'; + this.desc = "MaterialX:mtlx/convolution2d/blur_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_convolution2d_blur_vector3.nodedef_name = 'ND_blur_vector3'; +mtlx_convolution2d_blur_vector3.nodedef_node = 'blur'; +mtlx_convolution2d_blur_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector3', mtlx_convolution2d_blur_vector3); + +// MaterialX node type: mtlx/convolution2d/blur_vector4 +// +function mtlx_convolution2d_blur_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blur_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'blur'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blur_vector4_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('size', 'float'); + this.addProperty('size', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'box', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'blur_vector4'; + this.desc = "MaterialX:mtlx/convolution2d/blur_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_convolution2d_blur_vector4.nodedef_name = 'ND_blur_vector4'; +mtlx_convolution2d_blur_vector4.nodedef_node = 'blur'; +mtlx_convolution2d_blur_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blur.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/blur_vector4', mtlx_convolution2d_blur_vector4); + +// MaterialX node type: mtlx/convolution2d/heighttonormal_vector3 +// +function mtlx_convolution2d_heighttonormal_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_heighttonormal_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'heighttonormal'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_heighttonormal_vector3_out_genglsl.png'; + this.nodedef_group = 'convolution2d'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'float'); + this.addProperty('scale', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'heighttonormal_vector3'; + this.desc = "MaterialX:mtlx/convolution2d/heighttonormal_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_convolution2d_heighttonormal_vector3.nodedef_name = 'ND_heighttonormal_vector3'; +mtlx_convolution2d_heighttonormal_vector3.nodedef_node = 'heighttonormal'; +mtlx_convolution2d_heighttonormal_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/heighttonormal.html'; +LiteGraph.registerNodeType('mtlx/convolution2d/heighttonormal_vector3', mtlx_convolution2d_heighttonormal_vector3); + +// MaterialX node type: mtlx/organization/dot_float +// +function mtlx_organization_dot_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_float_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'float'); + this.addProperty('in', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'dot_float'; + this.desc = "MaterialX:mtlx/organization/dot_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_organization_dot_float.nodedef_name = 'ND_dot_float'; +mtlx_organization_dot_float.nodedef_node = 'dot'; +mtlx_organization_dot_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_float', mtlx_organization_dot_float); + +// MaterialX node type: mtlx/organization/dot_color3 +// +function mtlx_organization_dot_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color3_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'dot_color3'; + this.desc = "MaterialX:mtlx/organization/dot_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_organization_dot_color3.nodedef_name = 'ND_dot_color3'; +mtlx_organization_dot_color3.nodedef_node = 'dot'; +mtlx_organization_dot_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_color3', mtlx_organization_dot_color3); + +// MaterialX node type: mtlx/organization/dot_color4 +// +function mtlx_organization_dot_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_color4_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'dot_color4'; + this.desc = "MaterialX:mtlx/organization/dot_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_organization_dot_color4.nodedef_name = 'ND_dot_color4'; +mtlx_organization_dot_color4.nodedef_node = 'dot'; +mtlx_organization_dot_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_color4', mtlx_organization_dot_color4); + +// MaterialX node type: mtlx/organization/dot_vector2 +// +function mtlx_organization_dot_vector2() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector2_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'dot_vector2'; + this.desc = "MaterialX:mtlx/organization/dot_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_organization_dot_vector2.nodedef_name = 'ND_dot_vector2'; +mtlx_organization_dot_vector2.nodedef_node = 'dot'; +mtlx_organization_dot_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_vector2', mtlx_organization_dot_vector2); + +// MaterialX node type: mtlx/organization/dot_vector3 +// +function mtlx_organization_dot_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector3_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'vector3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'dot_vector3'; + this.desc = "MaterialX:mtlx/organization/dot_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_organization_dot_vector3.nodedef_name = 'ND_dot_vector3'; +mtlx_organization_dot_vector3.nodedef_node = 'dot'; +mtlx_organization_dot_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_vector3', mtlx_organization_dot_vector3); + +// MaterialX node type: mtlx/organization/dot_vector4 +// +function mtlx_organization_dot_vector4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_vector4_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'vector4'); + this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'dot_vector4'; + this.desc = "MaterialX:mtlx/organization/dot_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_organization_dot_vector4.nodedef_name = 'ND_dot_vector4'; +mtlx_organization_dot_vector4.nodedef_node = 'dot'; +mtlx_organization_dot_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_vector4', mtlx_organization_dot_vector4); + +// MaterialX node type: mtlx/organization/dot_boolean +// +function mtlx_organization_dot_boolean() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_boolean'; + this.nodedef_type = 'boolean'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_boolean_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'boolean'); + this.addProperty('in', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'boolean'); + this.title = 'dot_boolean'; + this.desc = "MaterialX:mtlx/organization/dot_boolean"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#060'; +} +mtlx_organization_dot_boolean.nodedef_name = 'ND_dot_boolean'; +mtlx_organization_dot_boolean.nodedef_node = 'dot'; +mtlx_organization_dot_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_boolean', mtlx_organization_dot_boolean); + +// MaterialX node type: mtlx/organization/dot_integer +// +function mtlx_organization_dot_integer() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_integer_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'integer'); + this.addProperty('in', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'dot_integer'; + this.desc = "MaterialX:mtlx/organization/dot_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_organization_dot_integer.nodedef_name = 'ND_dot_integer'; +mtlx_organization_dot_integer.nodedef_node = 'dot'; +mtlx_organization_dot_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_integer', mtlx_organization_dot_integer); + +// MaterialX node type: mtlx/organization/dot_matrix33 +// +function mtlx_organization_dot_matrix33() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_matrix33'; + this.nodedef_type = 'matrix33'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix33_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'matrix33'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix33'); + this.title = 'dot_matrix33'; + this.desc = "MaterialX:mtlx/organization/dot_matrix33"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#333'; +} +mtlx_organization_dot_matrix33.nodedef_name = 'ND_dot_matrix33'; +mtlx_organization_dot_matrix33.nodedef_node = 'dot'; +mtlx_organization_dot_matrix33.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_matrix33', mtlx_organization_dot_matrix33); + +// MaterialX node type: mtlx/organization/dot_matrix44 +// +function mtlx_organization_dot_matrix44() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_matrix44'; + this.nodedef_type = 'matrix44'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_matrix44_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'matrix44'); + this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0], 'matrix44', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'matrix44'); + this.title = 'dot_matrix44'; + this.desc = "MaterialX:mtlx/organization/dot_matrix44"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#444'; +} +mtlx_organization_dot_matrix44.nodedef_name = 'ND_dot_matrix44'; +mtlx_organization_dot_matrix44.nodedef_node = 'dot'; +mtlx_organization_dot_matrix44.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_matrix44', mtlx_organization_dot_matrix44); + +// MaterialX node type: mtlx/organization/dot_string +// +function mtlx_organization_dot_string() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_string'; + this.nodedef_type = 'string'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_string_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'string'); + this.addProperty('in', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'string'); + this.title = 'dot_string'; + this.desc = "MaterialX:mtlx/organization/dot_string"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#395'; +} +mtlx_organization_dot_string.nodedef_name = 'ND_dot_string'; +mtlx_organization_dot_string.nodedef_node = 'dot'; +mtlx_organization_dot_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_string', mtlx_organization_dot_string); + +// MaterialX node type: mtlx/organization/dot_filename +// +function mtlx_organization_dot_filename() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_filename'; + this.nodedef_type = 'filename'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_filename_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'filename'); + this.addProperty('in', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'filename'); + this.title = 'dot_filename'; + this.desc = "MaterialX:mtlx/organization/dot_filename"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#888'; +} +mtlx_organization_dot_filename.nodedef_name = 'ND_dot_filename'; +mtlx_organization_dot_filename.nodedef_node = 'dot'; +mtlx_organization_dot_filename.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_filename', mtlx_organization_dot_filename); + +// MaterialX node type: mtlx/organization/dot_surfaceshader +// +function mtlx_organization_dot_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'surfaceshader'); + this.addProperty('in', '', 'surfaceshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'dot_surfaceshader'; + this.desc = "MaterialX:mtlx/organization/dot_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_organization_dot_surfaceshader.nodedef_name = 'ND_dot_surfaceshader'; +mtlx_organization_dot_surfaceshader.nodedef_node = 'dot'; +mtlx_organization_dot_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_surfaceshader', mtlx_organization_dot_surfaceshader); + +// MaterialX node type: mtlx/organization/dot_displacementshader +// +function mtlx_organization_dot_displacementshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_displacementshader'; + this.nodedef_type = 'displacementshader'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_displacementshader_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'displacementshader'); + this.addProperty('in', '', 'displacementshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'displacementshader'); + this.title = 'dot_displacementshader'; + this.desc = "MaterialX:mtlx/organization/dot_displacementshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_organization_dot_displacementshader.nodedef_name = 'ND_dot_displacementshader'; +mtlx_organization_dot_displacementshader.nodedef_node = 'dot'; +mtlx_organization_dot_displacementshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_displacementshader', mtlx_organization_dot_displacementshader); + +// MaterialX node type: mtlx/organization/dot_volumeshader +// +function mtlx_organization_dot_volumeshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_volumeshader'; + this.nodedef_type = 'volumeshader'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_volumeshader_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'volumeshader'); + this.addProperty('in', '', 'volumeshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'volumeshader'); + this.title = 'dot_volumeshader'; + this.desc = "MaterialX:mtlx/organization/dot_volumeshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_organization_dot_volumeshader.nodedef_name = 'ND_dot_volumeshader'; +mtlx_organization_dot_volumeshader.nodedef_node = 'dot'; +mtlx_organization_dot_volumeshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_volumeshader', mtlx_organization_dot_volumeshader); + +// MaterialX node type: mtlx/organization/dot_lightshader +// +function mtlx_organization_dot_lightshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dot_lightshader'; + this.nodedef_type = 'lightshader'; + this.nodedef_node = 'dot'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dot_lightshader_out_genglsl.png'; + this.nodedef_group = 'organization'; + this.addInput('in', 'lightshader'); + this.addProperty('in', '', 'lightshader', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('note', 'string'); + this.addProperty('note', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'dot_lightshader'; + this.desc = "MaterialX:mtlx/organization/dot_lightshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_organization_dot_lightshader.nodedef_name = 'ND_dot_lightshader'; +mtlx_organization_dot_lightshader.nodedef_node = 'dot'; +mtlx_organization_dot_lightshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dot.html'; +LiteGraph.registerNodeType('mtlx/organization/dot_lightshader', mtlx_organization_dot_lightshader); + +// MaterialX node type: mtlx/pbr/oren_nayar_diffuse_bsdf +// +function mtlx_pbr_oren_nayar_diffuse_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'oren_nayar_diffuse_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_oren_nayar_diffuse_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'oren_nayar_diffuse_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/oren_nayar_diffuse_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_name = 'ND_oren_nayar_diffuse_bsdf'; +mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_node = 'oren_nayar_diffuse_bsdf'; +mtlx_pbr_oren_nayar_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/oren_nayar_diffuse_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/oren_nayar_diffuse_bsdf', mtlx_pbr_oren_nayar_diffuse_bsdf); + +// MaterialX node type: mtlx/pbr/burley_diffuse_bsdf +// +function mtlx_pbr_burley_diffuse_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_burley_diffuse_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'burley_diffuse_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_burley_diffuse_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'burley_diffuse_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/burley_diffuse_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_burley_diffuse_bsdf.nodedef_name = 'ND_burley_diffuse_bsdf'; +mtlx_pbr_burley_diffuse_bsdf.nodedef_node = 'burley_diffuse_bsdf'; +mtlx_pbr_burley_diffuse_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/burley_diffuse_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/burley_diffuse_bsdf', mtlx_pbr_burley_diffuse_bsdf); + +// MaterialX node type: mtlx/pbr/translucent_bsdf +// +function mtlx_pbr_translucent_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_translucent_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'translucent_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_translucent_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'translucent_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/translucent_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_translucent_bsdf.nodedef_name = 'ND_translucent_bsdf'; +mtlx_pbr_translucent_bsdf.nodedef_node = 'translucent_bsdf'; +mtlx_pbr_translucent_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/translucent_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/translucent_bsdf', mtlx_pbr_translucent_bsdf); + +// MaterialX node type: mtlx/pbr/dielectric_bsdf +// +function mtlx_pbr_dielectric_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_dielectric_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'dielectric_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_dielectric_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('tint', 'color3'); + this.addProperty('tint', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('ior', 'float'); + this.addProperty('ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'vector2'); + this.addProperty('roughness', [0.05, 0.05], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_thickness', 'float'); + this.addProperty('thinfilm_thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_ior', 'float'); + this.addProperty('thinfilm_ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('distribution', 'string'); + this.addProperty('distribution', 'ggx', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scatter_mode', 'string'); + this.addProperty('scatter_mode', 'R', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'dielectric_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/dielectric_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_dielectric_bsdf.nodedef_name = 'ND_dielectric_bsdf'; +mtlx_pbr_dielectric_bsdf.nodedef_node = 'dielectric_bsdf'; +mtlx_pbr_dielectric_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/dielectric_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/dielectric_bsdf', mtlx_pbr_dielectric_bsdf); + +// MaterialX node type: mtlx/pbr/conductor_bsdf +// +function mtlx_pbr_conductor_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_conductor_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'conductor_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conductor_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('ior', 'color3'); + this.addProperty('ior', [0.183, 0.421, 1.373], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('extinction', 'color3'); + this.addProperty('extinction', [3.424, 2.346, 1.770], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'vector2'); + this.addProperty('roughness', [0.05, 0.05], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_thickness', 'float'); + this.addProperty('thinfilm_thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_ior', 'float'); + this.addProperty('thinfilm_ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('distribution', 'string'); + this.addProperty('distribution', 'ggx', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'conductor_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/conductor_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_conductor_bsdf.nodedef_name = 'ND_conductor_bsdf'; +mtlx_pbr_conductor_bsdf.nodedef_node = 'conductor_bsdf'; +mtlx_pbr_conductor_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conductor_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/conductor_bsdf', mtlx_pbr_conductor_bsdf); + +// MaterialX node type: mtlx/pbr/generalized_schlick_bsdf +// +function mtlx_pbr_generalized_schlick_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_generalized_schlick_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'generalized_schlick_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color0', 'color3'); + this.addProperty('color0', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color82', 'color3'); + this.addProperty('color82', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color90', 'color3'); + this.addProperty('color90', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('exponent', 'float'); + this.addProperty('exponent', 5.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'vector2'); + this.addProperty('roughness', [0.05, 0.05], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_thickness', 'float'); + this.addProperty('thinfilm_thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thinfilm_ior', 'float'); + this.addProperty('thinfilm_ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('distribution', 'string'); + this.addProperty('distribution', 'ggx', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scatter_mode', 'string'); + this.addProperty('scatter_mode', 'R', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'generalized_schlick_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/generalized_schlick_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_generalized_schlick_bsdf.nodedef_name = 'ND_generalized_schlick_bsdf'; +mtlx_pbr_generalized_schlick_bsdf.nodedef_node = 'generalized_schlick_bsdf'; +mtlx_pbr_generalized_schlick_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_bsdf', mtlx_pbr_generalized_schlick_bsdf); + +// MaterialX node type: mtlx/pbr/subsurface_bsdf +// +function mtlx_pbr_subsurface_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_subsurface_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'subsurface_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_subsurface_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('radius', 'vector3'); + this.addProperty('radius', [1.0, 1.0, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'subsurface_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/subsurface_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_subsurface_bsdf.nodedef_name = 'ND_subsurface_bsdf'; +mtlx_pbr_subsurface_bsdf.nodedef_node = 'subsurface_bsdf'; +mtlx_pbr_subsurface_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/subsurface_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/subsurface_bsdf', mtlx_pbr_subsurface_bsdf); + +// MaterialX node type: mtlx/pbr/sheen_bsdf +// +function mtlx_pbr_sheen_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_sheen_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'sheen_bsdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_sheen_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('weight', 'float'); + this.addProperty('weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'sheen_bsdf_BSDF'; + this.desc = "MaterialX:mtlx/pbr/sheen_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_sheen_bsdf.nodedef_name = 'ND_sheen_bsdf'; +mtlx_pbr_sheen_bsdf.nodedef_node = 'sheen_bsdf'; +mtlx_pbr_sheen_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/sheen_bsdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/sheen_bsdf', mtlx_pbr_sheen_bsdf); + +// MaterialX node type: mtlx/pbr/uniform_edf +// +function mtlx_pbr_uniform_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_uniform_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'uniform_edf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_uniform_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'uniform_edf_EDF'; + this.desc = "MaterialX:mtlx/pbr/uniform_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_uniform_edf.nodedef_name = 'ND_uniform_edf'; +mtlx_pbr_uniform_edf.nodedef_node = 'uniform_edf'; +mtlx_pbr_uniform_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/uniform_edf.html'; +LiteGraph.registerNodeType('mtlx/pbr/uniform_edf', mtlx_pbr_uniform_edf); + +// MaterialX node type: mtlx/pbr/conical_edf +// +function mtlx_pbr_conical_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_conical_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'conical_edf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_conical_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('inner_angle', 'float'); + this.addProperty('inner_angle', 60.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('outer_angle', 'float'); + this.addProperty('outer_angle', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'conical_edf_EDF'; + this.desc = "MaterialX:mtlx/pbr/conical_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_conical_edf.nodedef_name = 'ND_conical_edf'; +mtlx_pbr_conical_edf.nodedef_node = 'conical_edf'; +mtlx_pbr_conical_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/conical_edf.html'; +LiteGraph.registerNodeType('mtlx/pbr/conical_edf', mtlx_pbr_conical_edf); + +// MaterialX node type: mtlx/pbr/measured_edf +// +function mtlx_pbr_measured_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_measured_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'measured_edf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_measured_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'measured_edf_EDF'; + this.desc = "MaterialX:mtlx/pbr/measured_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_measured_edf.nodedef_name = 'ND_measured_edf'; +mtlx_pbr_measured_edf.nodedef_node = 'measured_edf'; +mtlx_pbr_measured_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/measured_edf.html'; +LiteGraph.registerNodeType('mtlx/pbr/measured_edf', mtlx_pbr_measured_edf); + +// MaterialX node type: mtlx/pbr/generalized_schlick_edf +// +function mtlx_pbr_generalized_schlick_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_generalized_schlick_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'generalized_schlick_edf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_generalized_schlick_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color0', 'color3'); + this.addProperty('color0', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('color90', 'color3'); + this.addProperty('color90', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('exponent', 'float'); + this.addProperty('exponent', 5.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base', 'EDF'); + this.addProperty('base', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'generalized_schlick_edf_EDF'; + this.desc = "MaterialX:mtlx/pbr/generalized_schlick_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_generalized_schlick_edf.nodedef_name = 'ND_generalized_schlick_edf'; +mtlx_pbr_generalized_schlick_edf.nodedef_node = 'generalized_schlick_edf'; +mtlx_pbr_generalized_schlick_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/generalized_schlick_edf.html'; +LiteGraph.registerNodeType('mtlx/pbr/generalized_schlick_edf', mtlx_pbr_generalized_schlick_edf); + +// MaterialX node type: mtlx/pbr/absorption_vdf +// +function mtlx_pbr_absorption_vdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_absorption_vdf'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'absorption_vdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_absorption_vdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('absorption', 'vector3'); + this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'absorption_vdf_VDF'; + this.desc = "MaterialX:mtlx/pbr/absorption_vdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_absorption_vdf.nodedef_name = 'ND_absorption_vdf'; +mtlx_pbr_absorption_vdf.nodedef_node = 'absorption_vdf'; +mtlx_pbr_absorption_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/absorption_vdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/absorption_vdf', mtlx_pbr_absorption_vdf); + +// MaterialX node type: mtlx/pbr/anisotropic_vdf +// +function mtlx_pbr_anisotropic_vdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_anisotropic_vdf'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'anisotropic_vdf'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_anisotropic_vdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('absorption', 'vector3'); + this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scattering', 'vector3'); + this.addProperty('scattering', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'anisotropic_vdf_VDF'; + this.desc = "MaterialX:mtlx/pbr/anisotropic_vdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_anisotropic_vdf.nodedef_name = 'ND_anisotropic_vdf'; +mtlx_pbr_anisotropic_vdf.nodedef_node = 'anisotropic_vdf'; +mtlx_pbr_anisotropic_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/anisotropic_vdf.html'; +LiteGraph.registerNodeType('mtlx/pbr/anisotropic_vdf', mtlx_pbr_anisotropic_vdf); + +// MaterialX node type: mtlx/pbr/surface +// +function mtlx_pbr_surface() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_surface'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'surface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_surface_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('bsdf', 'BSDF'); + this.addProperty('bsdf', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('edf', 'EDF'); + this.addProperty('edf', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('opacity', 'float'); + this.addProperty('opacity', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'surface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/surface"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_surface.nodedef_name = 'ND_surface'; +mtlx_pbr_surface.nodedef_node = 'surface'; +mtlx_pbr_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/surface.html'; +LiteGraph.registerNodeType('mtlx/pbr/surface', mtlx_pbr_surface); + +// MaterialX node type: mtlx/pbr/thin_surface +// +function mtlx_pbr_thin_surface() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_thin_surface'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'thin_surface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_thin_surface_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('front_bsdf', 'BSDF'); + this.addProperty('front_bsdf', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('front_edf', 'EDF'); + this.addProperty('front_edf', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('back_bsdf', 'BSDF'); + this.addProperty('back_bsdf', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('back_edf', 'EDF'); + this.addProperty('back_edf', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('opacity', 'float'); + this.addProperty('opacity', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'thin_surface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/thin_surface"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_thin_surface.nodedef_name = 'ND_thin_surface'; +mtlx_pbr_thin_surface.nodedef_node = 'thin_surface'; +mtlx_pbr_thin_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/thin_surface.html'; +LiteGraph.registerNodeType('mtlx/pbr/thin_surface', mtlx_pbr_thin_surface); + +// MaterialX node type: mtlx/pbr/volume +// +function mtlx_pbr_volume() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_volume'; + this.nodedef_type = 'volumeshader'; + this.nodedef_node = 'volume'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_volume_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('vdf', 'VDF'); + this.addProperty('vdf', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('edf', 'EDF'); + this.addProperty('edf', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'volumeshader'); + this.title = 'volume_volumeshader'; + this.desc = "MaterialX:mtlx/pbr/volume"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_volume.nodedef_name = 'ND_volume'; +mtlx_pbr_volume.nodedef_node = 'volume'; +mtlx_pbr_volume.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/volume.html'; +LiteGraph.registerNodeType('mtlx/pbr/volume', mtlx_pbr_volume); + +// MaterialX node type: mtlx/pbr/light +// +function mtlx_pbr_light() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_light'; + this.nodedef_type = 'lightshader'; + this.nodedef_node = 'light'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_light_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('edf', 'EDF'); + this.addProperty('edf', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('intensity', 'float'); + this.addProperty('intensity', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('exposure', 'float'); + this.addProperty('exposure', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'lightshader'); + this.title = 'light_lightshader'; + this.desc = "MaterialX:mtlx/pbr/light"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_light.nodedef_name = 'ND_light'; +mtlx_pbr_light.nodedef_node = 'light'; +mtlx_pbr_light.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/light.html'; +LiteGraph.registerNodeType('mtlx/pbr/light', mtlx_pbr_light); + +// MaterialX node type: mtlx/pbr/displacement_float +// +function mtlx_pbr_displacement_float() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_displacement_float'; + this.nodedef_type = 'displacementshader'; + this.nodedef_node = 'displacement'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_float_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('displacement', 'float'); + this.addProperty('displacement', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'float'); + this.addProperty('scale', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'displacementshader'); + this.title = 'displacement_displacementshader'; + this.desc = "MaterialX:mtlx/pbr/displacement_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_displacement_float.nodedef_name = 'ND_displacement_float'; +mtlx_pbr_displacement_float.nodedef_node = 'displacement'; +mtlx_pbr_displacement_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; +LiteGraph.registerNodeType('mtlx/pbr/displacement_float', mtlx_pbr_displacement_float); + +// MaterialX node type: mtlx/pbr/displacement_vector3 +// +function mtlx_pbr_displacement_vector3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_displacement_vector3'; + this.nodedef_type = 'displacementshader'; + this.nodedef_node = 'displacement'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_displacement_vector3_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('displacement', 'vector3'); + this.addProperty('displacement', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'float'); + this.addProperty('scale', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'displacementshader'); + this.title = 'displacement_displacementshader'; + this.desc = "MaterialX:mtlx/pbr/displacement_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_displacement_vector3.nodedef_name = 'ND_displacement_vector3'; +mtlx_pbr_displacement_vector3.nodedef_node = 'displacement'; +mtlx_pbr_displacement_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/displacement.html'; +LiteGraph.registerNodeType('mtlx/pbr/displacement_vector3', mtlx_pbr_displacement_vector3); + +// MaterialX node type: mtlx/pbr/layer_bsdf +// +function mtlx_pbr_layer_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_layer_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'layer'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('top', 'BSDF'); + this.addProperty('top', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base', 'BSDF'); + this.addProperty('base', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'layer_BSDF'; + this.desc = "MaterialX:mtlx/pbr/layer_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_layer_bsdf.nodedef_name = 'ND_layer_bsdf'; +mtlx_pbr_layer_bsdf.nodedef_node = 'layer'; +mtlx_pbr_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; +LiteGraph.registerNodeType('mtlx/pbr/layer_bsdf', mtlx_pbr_layer_bsdf); + +// MaterialX node type: mtlx/pbr/layer_vdf +// +function mtlx_pbr_layer_vdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_layer_vdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'layer'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_layer_vdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('top', 'BSDF'); + this.addProperty('top', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base', 'VDF'); + this.addProperty('base', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'layer_BSDF'; + this.desc = "MaterialX:mtlx/pbr/layer_vdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_layer_vdf.nodedef_name = 'ND_layer_vdf'; +mtlx_pbr_layer_vdf.nodedef_node = 'layer'; +mtlx_pbr_layer_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/layer.html'; +LiteGraph.registerNodeType('mtlx/pbr/layer_vdf', mtlx_pbr_layer_vdf); + +// MaterialX node type: mtlx/pbr/mix_bsdf +// +function mtlx_pbr_mix_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('fg', 'BSDF'); + this.addProperty('fg', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'BSDF'); + this.addProperty('bg', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'mix_BSDF'; + this.desc = "MaterialX:mtlx/pbr/mix_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_mix_bsdf.nodedef_name = 'ND_mix_bsdf'; +mtlx_pbr_mix_bsdf.nodedef_node = 'mix'; +mtlx_pbr_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/pbr/mix_bsdf', mtlx_pbr_mix_bsdf); + +// MaterialX node type: mtlx/pbr/mix_edf +// +function mtlx_pbr_mix_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('fg', 'EDF'); + this.addProperty('fg', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'EDF'); + this.addProperty('bg', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'mix_EDF'; + this.desc = "MaterialX:mtlx/pbr/mix_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_mix_edf.nodedef_name = 'ND_mix_edf'; +mtlx_pbr_mix_edf.nodedef_node = 'mix'; +mtlx_pbr_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/pbr/mix_edf', mtlx_pbr_mix_edf); + +// MaterialX node type: mtlx/pbr/mix_vdf +// +function mtlx_pbr_mix_vdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_mix_vdf'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'mix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_mix_vdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('fg', 'VDF'); + this.addProperty('fg', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bg', 'VDF'); + this.addProperty('bg', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'mix_VDF'; + this.desc = "MaterialX:mtlx/pbr/mix_vdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_mix_vdf.nodedef_name = 'ND_mix_vdf'; +mtlx_pbr_mix_vdf.nodedef_node = 'mix'; +mtlx_pbr_mix_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/mix.html'; +LiteGraph.registerNodeType('mtlx/pbr/mix_vdf', mtlx_pbr_mix_vdf); + +// MaterialX node type: mtlx/pbr/add_bsdf +// +function mtlx_pbr_add_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'BSDF'); + this.addProperty('in1', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'BSDF'); + this.addProperty('in2', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'add_BSDF'; + this.desc = "MaterialX:mtlx/pbr/add_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_add_bsdf.nodedef_name = 'ND_add_bsdf'; +mtlx_pbr_add_bsdf.nodedef_node = 'add'; +mtlx_pbr_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/pbr/add_bsdf', mtlx_pbr_add_bsdf); + +// MaterialX node type: mtlx/pbr/add_edf +// +function mtlx_pbr_add_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'EDF'); + this.addProperty('in1', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'EDF'); + this.addProperty('in2', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'add_EDF'; + this.desc = "MaterialX:mtlx/pbr/add_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_add_edf.nodedef_name = 'ND_add_edf'; +mtlx_pbr_add_edf.nodedef_node = 'add'; +mtlx_pbr_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/pbr/add_edf', mtlx_pbr_add_edf); + +// MaterialX node type: mtlx/pbr/add_vdf +// +function mtlx_pbr_add_vdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_add_vdf'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'add'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_add_vdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'VDF'); + this.addProperty('in1', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'VDF'); + this.addProperty('in2', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'add_VDF'; + this.desc = "MaterialX:mtlx/pbr/add_vdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_add_vdf.nodedef_name = 'ND_add_vdf'; +mtlx_pbr_add_vdf.nodedef_node = 'add'; +mtlx_pbr_add_vdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/add.html'; +LiteGraph.registerNodeType('mtlx/pbr/add_vdf', mtlx_pbr_add_vdf); + +// MaterialX node type: mtlx/pbr/multiply_bsdfC +// +function mtlx_pbr_multiply_bsdfC() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_bsdfC'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfC_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'BSDF'); + this.addProperty('in1', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'multiply_BSDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_bsdfC"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_bsdfC.nodedef_name = 'ND_multiply_bsdfC'; +mtlx_pbr_multiply_bsdfC.nodedef_node = 'multiply'; +mtlx_pbr_multiply_bsdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfC', mtlx_pbr_multiply_bsdfC); + +// MaterialX node type: mtlx/pbr/multiply_bsdfF +// +function mtlx_pbr_multiply_bsdfF() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_bsdfF'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_bsdfF_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'BSDF'); + this.addProperty('in1', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'multiply_BSDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_bsdfF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_bsdfF.nodedef_name = 'ND_multiply_bsdfF'; +mtlx_pbr_multiply_bsdfF.nodedef_node = 'multiply'; +mtlx_pbr_multiply_bsdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_bsdfF', mtlx_pbr_multiply_bsdfF); + +// MaterialX node type: mtlx/pbr/multiply_edfC +// +function mtlx_pbr_multiply_edfC() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_edfC'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfC_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'EDF'); + this.addProperty('in1', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'multiply_EDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_edfC"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_edfC.nodedef_name = 'ND_multiply_edfC'; +mtlx_pbr_multiply_edfC.nodedef_node = 'multiply'; +mtlx_pbr_multiply_edfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_edfC', mtlx_pbr_multiply_edfC); + +// MaterialX node type: mtlx/pbr/multiply_edfF +// +function mtlx_pbr_multiply_edfF() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_edfF'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_edfF_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'EDF'); + this.addProperty('in1', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'multiply_EDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_edfF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_edfF.nodedef_name = 'ND_multiply_edfF'; +mtlx_pbr_multiply_edfF.nodedef_node = 'multiply'; +mtlx_pbr_multiply_edfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_edfF', mtlx_pbr_multiply_edfF); + +// MaterialX node type: mtlx/pbr/multiply_vdfC +// +function mtlx_pbr_multiply_vdfC() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vdfC'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfC_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'VDF'); + this.addProperty('in1', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'color3'); + this.addProperty('in2', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'multiply_VDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_vdfC"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_vdfC.nodedef_name = 'ND_multiply_vdfC'; +mtlx_pbr_multiply_vdfC.nodedef_node = 'multiply'; +mtlx_pbr_multiply_vdfC.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfC', mtlx_pbr_multiply_vdfC); + +// MaterialX node type: mtlx/pbr/multiply_vdfF +// +function mtlx_pbr_multiply_vdfF() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_multiply_vdfF'; + this.nodedef_type = 'VDF'; + this.nodedef_node = 'multiply'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_multiply_vdfF_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('in1', 'VDF'); + this.addProperty('in1', '', 'VDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('in2', 'float'); + this.addProperty('in2', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'VDF'); + this.title = 'multiply_VDF'; + this.desc = "MaterialX:mtlx/pbr/multiply_vdfF"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_multiply_vdfF.nodedef_name = 'ND_multiply_vdfF'; +mtlx_pbr_multiply_vdfF.nodedef_node = 'multiply'; +mtlx_pbr_multiply_vdfF.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/multiply.html'; +LiteGraph.registerNodeType('mtlx/pbr/multiply_vdfF', mtlx_pbr_multiply_vdfF); + +// MaterialX node type: mtlx/pbr/roughness_anisotropy +// +function mtlx_pbr_roughness_anisotropy() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_roughness_anisotropy'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'roughness_anisotropy'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_anisotropy_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'roughness_anisotropy_vector2'; + this.desc = "MaterialX:mtlx/pbr/roughness_anisotropy"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_pbr_roughness_anisotropy.nodedef_name = 'ND_roughness_anisotropy'; +mtlx_pbr_roughness_anisotropy.nodedef_node = 'roughness_anisotropy'; +mtlx_pbr_roughness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_anisotropy.html'; +LiteGraph.registerNodeType('mtlx/pbr/roughness_anisotropy', mtlx_pbr_roughness_anisotropy); + +// MaterialX node type: mtlx/pbr/roughness_dual +// +function mtlx_pbr_roughness_dual() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_roughness_dual'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'roughness_dual'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_roughness_dual_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('roughness', 'vector2'); + this.addProperty('roughness', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'roughness_dual_vector2'; + this.desc = "MaterialX:mtlx/pbr/roughness_dual"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_pbr_roughness_dual.nodedef_name = 'ND_roughness_dual'; +mtlx_pbr_roughness_dual.nodedef_node = 'roughness_dual'; +mtlx_pbr_roughness_dual.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/roughness_dual.html'; +LiteGraph.registerNodeType('mtlx/pbr/roughness_dual', mtlx_pbr_roughness_dual); + +// MaterialX node type: mtlx/pbr/glossiness_anisotropy +// +function mtlx_pbr_glossiness_anisotropy() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_glossiness_anisotropy'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'glossiness_anisotropy'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_glossiness_anisotropy_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('glossiness', 'float'); + this.addProperty('glossiness', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'glossiness_anisotropy_vector2'; + this.desc = "MaterialX:mtlx/pbr/glossiness_anisotropy"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_pbr_glossiness_anisotropy.nodedef_name = 'ND_glossiness_anisotropy'; +mtlx_pbr_glossiness_anisotropy.nodedef_node = 'glossiness_anisotropy'; +mtlx_pbr_glossiness_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/glossiness_anisotropy.html'; +LiteGraph.registerNodeType('mtlx/pbr/glossiness_anisotropy', mtlx_pbr_glossiness_anisotropy); + +// MaterialX node type: mtlx/pbr/blackbody +// +function mtlx_pbr_blackbody() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_blackbody'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'blackbody'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_blackbody_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('temperature', 'float'); + this.addProperty('temperature', 5000.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'blackbody_color3'; + this.desc = "MaterialX:mtlx/pbr/blackbody"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_pbr_blackbody.nodedef_name = 'ND_blackbody'; +mtlx_pbr_blackbody.nodedef_node = 'blackbody'; +mtlx_pbr_blackbody.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/blackbody.html'; +LiteGraph.registerNodeType('mtlx/pbr/blackbody', mtlx_pbr_blackbody); + +// MaterialX node type: mtlx/pbr/artistic_ior +// +function mtlx_pbr_artistic_ior() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_artistic_ior'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'artistic_ior'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_artistic_ior_ior_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('reflectivity', 'color3'); + this.addProperty('reflectivity', [0.944, 0.776, 0.373], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('edge_color', 'color3'); + this.addProperty('edge_color', [0.998, 0.981, 0.751], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('ior', 'color3'); + this.addOutput('extinction', 'color3'); + this.title = 'artistic_ior_multioutput'; + this.desc = "MaterialX:mtlx/pbr/artistic_ior"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_artistic_ior.nodedef_name = 'ND_artistic_ior'; +mtlx_pbr_artistic_ior.nodedef_node = 'artistic_ior'; +mtlx_pbr_artistic_ior.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/artistic_ior.html'; +LiteGraph.registerNodeType('mtlx/pbr/artistic_ior', mtlx_pbr_artistic_ior); + +// MaterialX node type: mtlx/pbr/gltf_pbr_surfaceshader +// +function mtlx_pbr_gltf_pbr_surfaceshader() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_pbr_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'gltf_pbr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_pbr_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Color", "uimin": "0, 0, 0", "uimax": "1, 1, 1", "uifolder": "Base" }); + this.addInput('metallic', 'float'); + this.addProperty('metallic', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Metallic", "uimin": "0", "uimax": "1", "uifolder": "Base" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0", "uimax": "1", "uifolder": "Base" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Base" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tangent", "uimin": null, "uimax": null, "uifolder": "Base" }); + this.addInput('occlusion', 'float'); + this.addProperty('occlusion', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Occlusion", "uimin": "0", "uimax": "1", "uifolder": "Base" }); + this.addInput('transmission', 'float'); + this.addProperty('transmission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission", "uimin": "0", "uimax": "1", "uifolder": "Base" }); + this.addInput('specular', 'float'); + this.addProperty('specular', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular", "uimin": "0", "uimax": "1", "uifolder": "Base" }); + this.addInput('specular_color', 'color3'); + this.addProperty('specular_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Color", "uimin": "0, 0, 0", "uimax": null, "uifolder": "Base" }); + this.addInput('ior', 'float'); + this.addProperty('ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Index of Refraction", "uimin": "1", "uimax": null, "uifolder": "Base" }); + this.addInput('alpha', 'float'); + this.addProperty('alpha', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Alpha", "uimin": "0", "uimax": "1", "uifolder": "Alpha" }); + this.addInput('alpha_mode', 'integer'); + this.addProperty('alpha_mode', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Alpha Mode", "uimin": null, "uimax": null, "uifolder": "Alpha" }); + this.addInput('alpha_cutoff', 'float'); + this.addProperty('alpha_cutoff', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Alpha Cutoff", "uimin": "0", "uimax": "1", "uifolder": "Alpha" }); + this.addInput('iridescence', 'float'); + this.addProperty('iridescence', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Iridescence", "uimin": "0", "uimax": "1", "uifolder": "Iridescence" }); + this.addInput('iridescence_ior', 'float'); + this.addProperty('iridescence_ior', 1.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Iridescence Index of Refraction", "uimin": "1", "uimax": null, "uifolder": "Iridescence" }); + this.addInput('iridescence_thickness', 'float'); + this.addProperty('iridescence_thickness', 100, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Iridescence Thickness", "uimin": "0", "uimax": null, "uifolder": "Iridescence" }); + this.addInput('sheen_color', 'color3'); + this.addProperty('sheen_color', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Color", "uimin": "0, 0, 0", "uimax": "1, 1, 1", "uifolder": "Sheen" }); + this.addInput('sheen_roughness', 'float'); + this.addProperty('sheen_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Roughness", "uimin": "0", "uimax": "1", "uifolder": "Sheen" }); + this.addInput('clearcoat', 'float'); + this.addProperty('clearcoat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Clearcoat", "uimin": "0", "uimax": "1", "uifolder": "Clearcoat" }); + this.addInput('clearcoat_roughness', 'float'); + this.addProperty('clearcoat_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Clearcoat Roughness", "uimin": "0", "uimax": "1", "uifolder": "Clearcoat" }); + this.addInput('clearcoat_normal', 'vector3'); + this.addProperty('clearcoat_normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Clearcoat Normal", "uimin": null, "uimax": null, "uifolder": "Clearcoat" }); + this.addInput('emissive', 'color3'); + this.addProperty('emissive', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emissive", "uimin": "0, 0, 0", "uimax": "1, 1, 1", "uifolder": "Emission" }); + this.addInput('emissive_strength', 'float'); + this.addProperty('emissive_strength', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emissive Strength", "uimin": "0", "uimax": null, "uifolder": "Emission" }); + this.addInput('thickness', 'float'); + this.addProperty('thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thickness", "uimin": "0", "uimax": null, "uifolder": "Volume" }); + this.addInput('attenuation_distance', 'float'); + this.addProperty('attenuation_distance', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Attenuation Distance", "uimin": "0", "uimax": null, "uifolder": "Volume" }); + this.addInput('attenuation_color', 'color3'); + this.addProperty('attenuation_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Attenuation Color", "uimin": "0, 0, 0", "uimax": "1, 1, 1", "uifolder": "Volume" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'gltf_pbr_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/gltf_pbr_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_gltf_pbr_surfaceshader.nodedef_name = 'ND_gltf_pbr_surfaceshader'; +mtlx_pbr_gltf_pbr_surfaceshader.nodedef_node = 'gltf_pbr'; +mtlx_pbr_gltf_pbr_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_pbr.html'; +LiteGraph.registerNodeType('mtlx/pbr/gltf_pbr_surfaceshader', mtlx_pbr_gltf_pbr_surfaceshader); + +// MaterialX node type: mtlx/texture2d/gltf_colorimage +// +function mtlx_texture2d_gltf_colorimage() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_colorimage'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'gltf_colorimage'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_colorimage_outcolor_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0, 0, 0, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "Image" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('color', 'color4'); + this.addProperty('color', [1, 1, 1, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Color" }); + this.addInput('geomcolor', 'color4'); + this.addProperty('geomcolor', [1, 1, 1, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Geometry Color", "uimin": null, "uimax": null, "uifolder": "Color" }); + this.addOutput('outcolor', 'color3'); + this.addOutput('outa', 'float'); + this.title = 'gltf_colorimage_multioutput'; + this.desc = "MaterialX:mtlx/texture2d/gltf_colorimage"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_texture2d_gltf_colorimage.nodedef_name = 'ND_gltf_colorimage'; +mtlx_texture2d_gltf_colorimage.nodedef_node = 'gltf_colorimage'; +mtlx_texture2d_gltf_colorimage.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_colorimage.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_colorimage', mtlx_texture2d_gltf_colorimage); + +// MaterialX node type: mtlx/texture2d/gltf_image_color3_color3_1_0 +// +function mtlx_texture2d_gltf_image_color3_color3_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'gltf_image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color3_color3_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('factor', 'color3'); + this.addProperty('factor', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color3'); + this.addProperty('default', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'gltf_image_color3'; + this.desc = "MaterialX:mtlx/texture2d/gltf_image_color3_color3_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_name = 'ND_gltf_image_color3_color3_1_0'; +mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_node = 'gltf_image'; +mtlx_texture2d_gltf_image_color3_color3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color3_color3_1_0', mtlx_texture2d_gltf_image_color3_color3_1_0); + +// MaterialX node type: mtlx/texture2d/gltf_image_color4_color4_1_0 +// +function mtlx_texture2d_gltf_image_color4_color4_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'gltf_image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_color4_color4_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('factor', 'color4'); + this.addProperty('factor', [1, 1, 1, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'color4'); + this.addProperty('default', [0, 0, 0, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 1, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'gltf_image_color4'; + this.desc = "MaterialX:mtlx/texture2d/gltf_image_color4_color4_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_name = 'ND_gltf_image_color4_color4_1_0'; +mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_node = 'gltf_image'; +mtlx_texture2d_gltf_image_color4_color4_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_color4_color4_1_0', mtlx_texture2d_gltf_image_color4_color4_1_0); + +// MaterialX node type: mtlx/texture2d/gltf_image_float_float_1_0 +// +function mtlx_texture2d_gltf_image_float_float_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_image_float_float_1_0'; + this.nodedef_type = 'float'; + this.nodedef_node = 'gltf_image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_float_float_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('factor', 'float'); + this.addProperty('factor', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'float'); + this.addProperty('default', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'gltf_image_float'; + this.desc = "MaterialX:mtlx/texture2d/gltf_image_float_float_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_texture2d_gltf_image_float_float_1_0.nodedef_name = 'ND_gltf_image_float_float_1_0'; +mtlx_texture2d_gltf_image_float_float_1_0.nodedef_node = 'gltf_image'; +mtlx_texture2d_gltf_image_float_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_float_float_1_0', mtlx_texture2d_gltf_image_float_float_1_0); + +// MaterialX node type: mtlx/texture2d/gltf_image_vector3_vector3_1_0 +// +function mtlx_texture2d_gltf_image_vector3_vector3_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'gltf_image'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_image_vector3_vector3_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'gltf_image_vector3'; + this.desc = "MaterialX:mtlx/texture2d/gltf_image_vector3_vector3_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0'; +mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_node = 'gltf_image'; +mtlx_texture2d_gltf_image_vector3_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_image.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_image_vector3_vector3_1_0', mtlx_texture2d_gltf_image_vector3_vector3_1_0); + +// MaterialX node type: mtlx/texture2d/gltf_normalmap_vector3_1_0 +// +function mtlx_texture2d_gltf_normalmap_vector3_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'gltf_normalmap'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_normalmap_vector3_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0.5, 0.5, 1], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "360", "uifolder": "" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('operationorder', 'integer'); + this.addProperty('operationorder', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'gltf_normalmap_vector3'; + this.desc = "MaterialX:mtlx/texture2d/gltf_normalmap_vector3_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_name = 'ND_gltf_normalmap_vector3_1_0'; +mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_node = 'gltf_normalmap'; +mtlx_texture2d_gltf_normalmap_vector3_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_normalmap.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_normalmap_vector3_1_0', mtlx_texture2d_gltf_normalmap_vector3_1_0); + +// MaterialX node type: mtlx/texture2d/gltf_iridescence_thickness_float_1_0 +// +function mtlx_texture2d_gltf_iridescence_thickness_float_1_0() { + this.nodedef_icon = './Images/gltf_logo.webp'; + this.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; + this.nodedef_type = 'float'; + this.nodedef_node = 'gltf_iridescence_thickness'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_gltf_iridescence_thickness_float_1_0_out_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('default', 'vector3'); + this.addProperty('default', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('texcoord', 'vector2'); + this.addProperty('texcoord', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('pivot', 'vector2'); + this.addProperty('pivot', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('rotate', 'float'); + this.addProperty('rotate', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('offset', 'vector2'); + this.addProperty('offset', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('uaddressmode', 'string'); + this.addProperty('uaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('vaddressmode', 'string'); + this.addProperty('vaddressmode', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('filtertype', 'string'); + this.addProperty('filtertype', 'linear', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Image" }); + this.addInput('thicknessMin', 'float'); + this.addProperty('thicknessMin', 100, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Thickness" }); + this.addInput('thicknessMax', 'float'); + this.addProperty('thicknessMax', 400, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "Thickness" }); + this.addOutput('out', 'float'); + this.title = 'gltf_iridescence_thickness_float'; + this.desc = "MaterialX:mtlx/texture2d/gltf_iridescence_thickness_float_1_0"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0'; +mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_node = 'gltf_iridescence_thickness'; +mtlx_texture2d_gltf_iridescence_thickness_float_1_0.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/gltf_iridescence_thickness.html'; +LiteGraph.registerNodeType('mtlx/texture2d/gltf_iridescence_thickness_float_1_0', mtlx_texture2d_gltf_iridescence_thickness_float_1_0); + +// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader +// +function mtlx_pbr_standard_surface_surfaceshader() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_standard_surface_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'standard_surface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('base', 'float'); + this.addProperty('base', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Base" }); + this.addInput('diffuse_roughness', 'float'); + this.addProperty('diffuse_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Diffuse Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('metalness', 'float'); + this.addProperty('metalness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Metalness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('specular', 'float'); + this.addProperty('specular', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_color', 'color3'); + this.addProperty('specular_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Specular" }); + this.addInput('specular_roughness', 'float'); + this.addProperty('specular_roughness', 0.2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_IOR', 'float'); + this.addProperty('specular_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Specular" }); + this.addInput('specular_anisotropy', 'float'); + this.addProperty('specular_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_rotation', 'float'); + this.addProperty('specular_rotation', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Rotation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('transmission', 'float'); + this.addProperty('transmission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_color', 'color3'); + this.addProperty('transmission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_depth', 'float'); + this.addProperty('transmission_depth', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Depth", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('transmission_scatter', 'color3'); + this.addProperty('transmission_scatter', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Scatter", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_scatter_anisotropy', 'float'); + this.addProperty('transmission_scatter_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_dispersion', 'float'); + this.addProperty('transmission_dispersion', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Dispersion", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('transmission_extra_roughness', 'float'); + this.addProperty('transmission_extra_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Roughness", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('subsurface', 'float'); + this.addProperty('subsurface', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface", "uimin": "0.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('subsurface_color', 'color3'); + this.addProperty('subsurface_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_radius', 'color3'); + this.addProperty('subsurface_radius', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Radius", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_scale', 'float'); + this.addProperty('subsurface_scale', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Scale", "uimin": "0.0", "uimax": null, "uifolder": "Subsurface" }); + this.addInput('subsurface_anisotropy', 'float'); + this.addProperty('subsurface_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('sheen', 'float'); + this.addProperty('sheen', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen", "uimin": "0.0", "uimax": "1.0", "uifolder": "Sheen" }); + this.addInput('sheen_color', 'color3'); + this.addProperty('sheen_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Sheen" }); + this.addInput('sheen_roughness', 'float'); + this.addProperty('sheen_roughness', 0.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Sheen" }); + this.addInput('coat', 'float'); + this.addProperty('coat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_color', 'color3'); + this.addProperty('coat_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Coat" }); + this.addInput('coat_roughness', 'float'); + this.addProperty('coat_roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_anisotropy', 'float'); + this.addProperty('coat_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_rotation', 'float'); + this.addProperty('coat_rotation', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Rotation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_IOR', 'float'); + this.addProperty('coat_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Coat" }); + this.addInput('coat_normal', 'vector3'); + this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat normal", "uimin": null, "uimax": null, "uifolder": "Coat" }); + this.addInput('coat_affect_color', 'float'); + this.addProperty('coat_affect_color', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Affect Color", "uimin": "0", "uimax": "1", "uifolder": "Coat" }); + this.addInput('coat_affect_roughness', 'float'); + this.addProperty('coat_affect_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Affect Roughness", "uimin": "0", "uimax": "1", "uifolder": "Coat" }); + this.addInput('thin_film_thickness', 'float'); + this.addProperty('thin_film_thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Thickness", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('thin_film_IOR', 'float'); + this.addProperty('thin_film_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('emission', 'float'); + this.addProperty('emission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission", "uimin": "0.0", "uimax": null, "uifolder": "Emission" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Emission" }); + this.addInput('opacity', 'color3'); + this.addProperty('opacity', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Opacity", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Geometry" }); + this.addInput('thin_walled', 'boolean'); + this.addProperty('thin_walled', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Walled", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tangent Input", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'standard_surface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_standard_surface_surfaceshader.nodedef_name = 'ND_standard_surface_surfaceshader'; +mtlx_pbr_standard_surface_surfaceshader.nodedef_node = 'standard_surface'; +mtlx_pbr_standard_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; +LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader', mtlx_pbr_standard_surface_surfaceshader); + +// MaterialX node type: mtlx/pbr/standard_surface_surfaceshader_100 +// +function mtlx_pbr_standard_surface_surfaceshader_100() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_standard_surface_surfaceshader_100'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'standard_surface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_100_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('base', 'float'); + this.addProperty('base', 0.8, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Base" }); + this.addInput('diffuse_roughness', 'float'); + this.addProperty('diffuse_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Diffuse Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('metalness', 'float'); + this.addProperty('metalness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Metalness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('specular', 'float'); + this.addProperty('specular', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_color', 'color3'); + this.addProperty('specular_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Specular" }); + this.addInput('specular_roughness', 'float'); + this.addProperty('specular_roughness', 0.2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_IOR', 'float'); + this.addProperty('specular_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Specular" }); + this.addInput('specular_anisotropy', 'float'); + this.addProperty('specular_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_rotation', 'float'); + this.addProperty('specular_rotation', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Rotation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('transmission', 'float'); + this.addProperty('transmission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_color', 'color3'); + this.addProperty('transmission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_depth', 'float'); + this.addProperty('transmission_depth', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Depth", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('transmission_scatter', 'color3'); + this.addProperty('transmission_scatter', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Scatter", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_scatter_anisotropy', 'float'); + this.addProperty('transmission_scatter_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_dispersion', 'float'); + this.addProperty('transmission_dispersion', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Dispersion", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('transmission_extra_roughness', 'float'); + this.addProperty('transmission_extra_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Roughness", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('subsurface', 'float'); + this.addProperty('subsurface', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface", "uimin": "0.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('subsurface_color', 'color3'); + this.addProperty('subsurface_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_radius', 'color3'); + this.addProperty('subsurface_radius', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Radius", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_scale', 'float'); + this.addProperty('subsurface_scale', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Scale", "uimin": "0.0", "uimax": null, "uifolder": "Subsurface" }); + this.addInput('subsurface_anisotropy', 'float'); + this.addProperty('subsurface_anisotropy', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('sheen', 'float'); + this.addProperty('sheen', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen", "uimin": "0.0", "uimax": "1.0", "uifolder": "Sheen" }); + this.addInput('sheen_color', 'color3'); + this.addProperty('sheen_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Sheen" }); + this.addInput('sheen_roughness', 'float'); + this.addProperty('sheen_roughness', 0.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Sheen Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Sheen" }); + this.addInput('coat', 'float'); + this.addProperty('coat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_color', 'color3'); + this.addProperty('coat_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Coat" }); + this.addInput('coat_roughness', 'float'); + this.addProperty('coat_roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_anisotropy', 'float'); + this.addProperty('coat_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_rotation', 'float'); + this.addProperty('coat_rotation', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Rotation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_IOR', 'float'); + this.addProperty('coat_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Coat" }); + this.addInput('coat_normal', 'vector3'); + this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat normal", "uimin": null, "uimax": null, "uifolder": "Coat" }); + this.addInput('coat_affect_color', 'float'); + this.addProperty('coat_affect_color', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Affect Color", "uimin": "0", "uimax": "1", "uifolder": "Coat" }); + this.addInput('coat_affect_roughness', 'float'); + this.addProperty('coat_affect_roughness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Affect Roughness", "uimin": "0", "uimax": "1", "uifolder": "Coat" }); + this.addInput('thin_film_thickness', 'float'); + this.addProperty('thin_film_thickness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Thickness", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('thin_film_IOR', 'float'); + this.addProperty('thin_film_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('emission', 'float'); + this.addProperty('emission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission", "uimin": "0.0", "uimax": null, "uifolder": "Emission" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Emission" }); + this.addInput('opacity', 'color3'); + this.addProperty('opacity', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Opacity", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Geometry" }); + this.addInput('thin_walled', 'boolean'); + this.addProperty('thin_walled', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Walled", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('tangent', 'vector3'); + this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tangent Input", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'standard_surface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader_100"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_standard_surface_surfaceshader_100.nodedef_name = 'ND_standard_surface_surfaceshader_100'; +mtlx_pbr_standard_surface_surfaceshader_100.nodedef_node = 'standard_surface'; +mtlx_pbr_standard_surface_surfaceshader_100.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface.html'; +LiteGraph.registerNodeType('mtlx/pbr/standard_surface_surfaceshader_100', mtlx_pbr_standard_surface_surfaceshader_100); + +// MaterialX node type: mtlx/pbr/disney_bsdf_2015_surface +// +function mtlx_pbr_disney_bsdf_2015_surface() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_disney_bsdf_2015_surface'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'disney_bsdf_2015'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_bsdf_2015_surface_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('baseColor', 'color3'); + this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('metallic', 'float'); + this.addProperty('metallic', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropic', 'float'); + this.addProperty('anisotropic', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specularTint', 'float'); + this.addProperty('specularTint', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheen', 'float'); + this.addProperty('sheen', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheenTint', 'float'); + this.addProperty('sheenTint', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('clearcoat', 'float'); + this.addProperty('clearcoat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('clearcoatGloss', 'float'); + this.addProperty('clearcoatGloss', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specTrans', 'float'); + this.addProperty('specTrans', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('ior', 'float'); + this.addProperty('ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scatterDistance', 'vector3'); + this.addProperty('scatterDistance', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('flatness', 'float'); + this.addProperty('flatness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('diffTrans', 'float'); + this.addProperty('diffTrans', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('thin', 'boolean'); + this.addProperty('thin', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'disney_bsdf_2015_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/disney_bsdf_2015_surface"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_disney_bsdf_2015_surface.nodedef_name = 'ND_disney_bsdf_2015_surface'; +mtlx_pbr_disney_bsdf_2015_surface.nodedef_node = 'disney_bsdf_2015'; +mtlx_pbr_disney_bsdf_2015_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_bsdf_2015.html'; +LiteGraph.registerNodeType('mtlx/pbr/disney_bsdf_2015_surface', mtlx_pbr_disney_bsdf_2015_surface); + +// MaterialX node type: mtlx/pbr/open_pbr_surface_surfaceshader +// +function mtlx_pbr_open_pbr_surface_surfaceshader() { + this.nodedef_icon = './Images/openpbr_logo.webp'; + this.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'open_pbr_surface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_surface_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('base_weight', 'float'); + this.addProperty('base_weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Base" }); + this.addInput('base_diffuse_roughness', 'float'); + this.addProperty('base_diffuse_roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Diffuse Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('base_metalness', 'float'); + this.addProperty('base_metalness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Base Metalness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Base" }); + this.addInput('specular_weight', 'float'); + this.addProperty('specular_weight', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Weight", "uimin": "0.0", "uimax": null, "uifolder": "Specular" }); + this.addInput('specular_color', 'color3'); + this.addProperty('specular_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Specular" }); + this.addInput('specular_roughness', 'float'); + this.addProperty('specular_roughness', 0.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('specular_ior', 'float'); + this.addProperty('specular_ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Specular" }); + this.addInput('specular_roughness_anisotropy', 'float'); + this.addProperty('specular_roughness_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Specular Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Specular" }); + this.addInput('transmission_weight', 'float'); + this.addProperty('transmission_weight', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_color', 'color3'); + this.addProperty('transmission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_depth', 'float'); + this.addProperty('transmission_depth', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Depth", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('transmission_scatter', 'color3'); + this.addProperty('transmission_scatter', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Scatter", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Transmission" }); + this.addInput('transmission_scatter_anisotropy', 'float'); + this.addProperty('transmission_scatter_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_dispersion_scale', 'float'); + this.addProperty('transmission_dispersion_scale', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Dispersion Scale", "uimin": "0.0", "uimax": "1.0", "uifolder": "Transmission" }); + this.addInput('transmission_dispersion_abbe_number', 'float'); + this.addProperty('transmission_dispersion_abbe_number', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Dispersion Abbe Number", "uimin": "0.0", "uimax": null, "uifolder": "Transmission" }); + this.addInput('subsurface_weight', 'float'); + this.addProperty('subsurface_weight', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('subsurface_color', 'color3'); + this.addProperty('subsurface_color', [0.8, 0.8, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_radius', 'float'); + this.addProperty('subsurface_radius', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Radius", "uimin": "0.0", "uimax": null, "uifolder": "Subsurface" }); + this.addInput('subsurface_radius_scale', 'color3'); + this.addProperty('subsurface_radius_scale', [1.0, 0.5, 0.25], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Radius Scale", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Subsurface" }); + this.addInput('subsurface_scatter_anisotropy', 'float'); + this.addProperty('subsurface_scatter_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subsurface Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Subsurface" }); + this.addInput('fuzz_weight', 'float'); + this.addProperty('fuzz_weight', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Fuzz Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Fuzz" }); + this.addInput('fuzz_color', 'color3'); + this.addProperty('fuzz_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Fuzz Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Fuzz" }); + this.addInput('fuzz_roughness', 'float'); + this.addProperty('fuzz_roughness', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Fuzz Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Fuzz" }); + this.addInput('coat_weight', 'float'); + this.addProperty('coat_weight', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_color', 'color3'); + this.addProperty('coat_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Coat" }); + this.addInput('coat_roughness', 'float'); + this.addProperty('coat_roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_roughness_anisotropy', 'float'); + this.addProperty('coat_roughness_anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Anisotropy", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('coat_ior', 'float'); + this.addProperty('coat_ior', 1.6, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Coat" }); + this.addInput('coat_darkening', 'float'); + this.addProperty('coat_darkening', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Darkening", "uimin": "0.0", "uimax": "1.0", "uifolder": "Coat" }); + this.addInput('thin_film_weight', 'float'); + this.addProperty('thin_film_weight', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Weight", "uimin": "0.0", "uimax": "1.0", "uifolder": "Thin Film" }); + this.addInput('thin_film_thickness', 'float'); + this.addProperty('thin_film_thickness', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Thickness", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('thin_film_ior', 'float'); + this.addProperty('thin_film_ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Film Index of Refraction", "uimin": "0.0", "uimax": null, "uifolder": "Thin Film" }); + this.addInput('emission_luminance', 'float'); + this.addProperty('emission_luminance', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission Luminance", "uimin": "0.0", "uimax": null, "uifolder": "Emission" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Emission Color", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "Emission" }); + this.addInput('geometry_opacity', 'float'); + this.addProperty('geometry_opacity', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Opacity", "uimin": "0", "uimax": "1", "uifolder": "Geometry" }); + this.addInput('geometry_thin_walled', 'boolean'); + this.addProperty('geometry_thin_walled', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thin Walled", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('geometry_normal', 'vector3'); + this.addProperty('geometry_normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('geometry_coat_normal', 'vector3'); + this.addProperty('geometry_coat_normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Normal", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('geometry_tangent', 'vector3'); + this.addProperty('geometry_tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tangent", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addInput('geometry_coat_tangent', 'vector3'); + this.addProperty('geometry_coat_tangent', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Coat Tangent", "uimin": null, "uimax": null, "uifolder": "Geometry" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'open_pbr_surface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/open_pbr_surface_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_name = 'ND_open_pbr_surface_surfaceshader'; +mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_node = 'open_pbr_surface'; +mtlx_pbr_open_pbr_surface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_surface.html'; +LiteGraph.registerNodeType('mtlx/pbr/open_pbr_surface_surfaceshader', mtlx_pbr_open_pbr_surface_surfaceshader); + +// MaterialX node type: mtlx/pbr/open_pbr_anisotropy +// +function mtlx_pbr_open_pbr_anisotropy() { + this.nodedef_icon = './Images/openpbr_logo.webp'; + this.nodedef_name = 'ND_open_pbr_anisotropy'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'open_pbr_anisotropy'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_open_pbr_anisotropy_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'open_pbr_anisotropy_vector2'; + this.desc = "MaterialX:mtlx/pbr/open_pbr_anisotropy"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_pbr_open_pbr_anisotropy.nodedef_name = 'ND_open_pbr_anisotropy'; +mtlx_pbr_open_pbr_anisotropy.nodedef_node = 'open_pbr_anisotropy'; +mtlx_pbr_open_pbr_anisotropy.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/open_pbr_anisotropy.html'; +LiteGraph.registerNodeType('mtlx/pbr/open_pbr_anisotropy', mtlx_pbr_open_pbr_anisotropy); + +// MaterialX node type: mtlx/pbr/UsdPreviewSurface_surfaceshader +// +function mtlx_pbr_UsdPreviewSurface_surfaceshader() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'UsdPreviewSurface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPreviewSurface_surfaceshader_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('diffuseColor', 'color3'); + this.addProperty('diffuseColor', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "" }); + this.addInput('emissiveColor', 'color3'); + this.addProperty('emissiveColor', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0,0,0", "uimax": null, "uifolder": "" }); + this.addInput('useSpecularWorkflow', 'integer'); + this.addProperty('useSpecularWorkflow', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0", "uimax": "1", "uifolder": "" }); + this.addInput('specularColor', 'color3'); + this.addProperty('specularColor', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0,0,0", "uimax": "1,1,1", "uifolder": "" }); + this.addInput('metallic', 'float'); + this.addProperty('metallic', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('clearcoat', 'float'); + this.addProperty('clearcoat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('clearcoatRoughness', 'float'); + this.addProperty('clearcoatRoughness', 0.01, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('opacity', 'float'); + this.addProperty('opacity', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('opacityThreshold', 'float'); + this.addProperty('opacityThreshold', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('ior', 'float'); + this.addProperty('ior', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0, 0, 1], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": [-1, -1, -1], "uimax": [1, 1, 1], "uifolder": "" }); + this.addInput('displacement', 'float'); + this.addProperty('displacement', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('occlusion', 'float'); + this.addProperty('occlusion', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'UsdPreviewSurface_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/UsdPreviewSurface_surfaceshader"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader'; +mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_node = 'UsdPreviewSurface'; +mtlx_pbr_UsdPreviewSurface_surfaceshader.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPreviewSurface.html'; +LiteGraph.registerNodeType('mtlx/pbr/UsdPreviewSurface_surfaceshader', mtlx_pbr_UsdPreviewSurface_surfaceshader); + +// MaterialX node type: mtlx/texture2d/UsdUVTexture +// +function mtlx_texture2d_UsdUVTexture() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdUVTexture'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'UsdUVTexture'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_r_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('st', 'vector2'); + this.addProperty('st', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('wrapS', 'string'); + this.addProperty('wrapS', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('wrapT', 'string'); + this.addProperty('wrapT', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'color4'); + this.addProperty('fallback', [0, 0, 0, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'color4'); + this.addProperty('scale', [1, 1, 1, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bias', 'color4'); + this.addProperty('bias', [0, 0, 0, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('r', 'float'); + this.addOutput('g', 'float'); + this.addOutput('b', 'float'); + this.addOutput('a', 'float'); + this.addOutput('rgb', 'color3'); + this.addOutput('rgba', 'color4'); + this.title = 'UsdUVTexture_multioutput'; + this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_texture2d_UsdUVTexture.nodedef_name = 'ND_UsdUVTexture'; +mtlx_texture2d_UsdUVTexture.nodedef_node = 'UsdUVTexture'; +mtlx_texture2d_UsdUVTexture.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; +LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture', mtlx_texture2d_UsdUVTexture); + +// MaterialX node type: mtlx/texture2d/UsdUVTexture_23 +// +function mtlx_texture2d_UsdUVTexture_23() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdUVTexture_23'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'UsdUVTexture'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdUVTexture_23_r_genglsl.png'; + this.nodedef_group = 'texture2d'; + this.addInput('file', 'filename'); + this.addProperty('file', '', 'filename', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('st', 'vector2'); + this.addProperty('st', [0.0, 0.0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('wrapS', 'string'); + this.addProperty('wrapS', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('wrapT', 'string'); + this.addProperty('wrapT', 'periodic', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'color4'); + this.addProperty('fallback', [0, 0, 0, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'color4'); + this.addProperty('scale', [1, 1, 1, 1], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('bias', 'color4'); + this.addProperty('bias', [0, 0, 0, 0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('r', 'float'); + this.addOutput('g', 'float'); + this.addOutput('b', 'float'); + this.addOutput('a', 'float'); + this.addOutput('rgb', 'color3'); + this.title = 'UsdUVTexture_multioutput'; + this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture_23"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_texture2d_UsdUVTexture_23.nodedef_name = 'ND_UsdUVTexture_23'; +mtlx_texture2d_UsdUVTexture_23.nodedef_node = 'UsdUVTexture'; +mtlx_texture2d_UsdUVTexture_23.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdUVTexture.html'; +LiteGraph.registerNodeType('mtlx/texture2d/UsdUVTexture_23', mtlx_texture2d_UsdUVTexture_23); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_integer +// +function mtlx_geometric_UsdPrimvarReader_integer() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_integer'; + this.nodedef_type = 'integer'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_integer_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'integer'); + this.addProperty('fallback', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'integer'); + this.title = 'UsdPrimvarReader_integer'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_integer"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#A32'; +} +mtlx_geometric_UsdPrimvarReader_integer.nodedef_name = 'ND_UsdPrimvarReader_integer'; +mtlx_geometric_UsdPrimvarReader_integer.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_integer.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_integer', mtlx_geometric_UsdPrimvarReader_integer); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_boolean +// +function mtlx_geometric_UsdPrimvarReader_boolean() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_boolean'; + this.nodedef_type = 'boolean'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_boolean_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'boolean'); + this.addProperty('fallback', true, 'boolean', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'boolean'); + this.title = 'UsdPrimvarReader_boolean'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_boolean"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#060'; +} +mtlx_geometric_UsdPrimvarReader_boolean.nodedef_name = 'ND_UsdPrimvarReader_boolean'; +mtlx_geometric_UsdPrimvarReader_boolean.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_boolean.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_boolean', mtlx_geometric_UsdPrimvarReader_boolean); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_string +// +function mtlx_geometric_UsdPrimvarReader_string() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_string'; + this.nodedef_type = 'string'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_string_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'string'); + this.addProperty('fallback', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'string'); + this.title = 'UsdPrimvarReader_string'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_string"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#395'; +} +mtlx_geometric_UsdPrimvarReader_string.nodedef_name = 'ND_UsdPrimvarReader_string'; +mtlx_geometric_UsdPrimvarReader_string.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_string.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_string', mtlx_geometric_UsdPrimvarReader_string); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_float +// +function mtlx_geometric_UsdPrimvarReader_float() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_float'; + this.nodedef_type = 'float'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_float_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'float'); + this.addProperty('fallback', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'float'); + this.title = 'UsdPrimvarReader_float'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_float"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#161'; +} +mtlx_geometric_UsdPrimvarReader_float.nodedef_name = 'ND_UsdPrimvarReader_float'; +mtlx_geometric_UsdPrimvarReader_float.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_float.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_float', mtlx_geometric_UsdPrimvarReader_float); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector2 +// +function mtlx_geometric_UsdPrimvarReader_vector2() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_vector2'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector2_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'vector2'); + this.addProperty('fallback', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'UsdPrimvarReader_vector2'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector2"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_geometric_UsdPrimvarReader_vector2.nodedef_name = 'ND_UsdPrimvarReader_vector2'; +mtlx_geometric_UsdPrimvarReader_vector2.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_vector2.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector2', mtlx_geometric_UsdPrimvarReader_vector2); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector3 +// +function mtlx_geometric_UsdPrimvarReader_vector3() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_vector3'; + this.nodedef_type = 'vector3'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector3_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'vector3'); + this.addProperty('fallback', [0, 0, 0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector3'); + this.title = 'UsdPrimvarReader_vector3'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#465'; +} +mtlx_geometric_UsdPrimvarReader_vector3.nodedef_name = 'ND_UsdPrimvarReader_vector3'; +mtlx_geometric_UsdPrimvarReader_vector3.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_vector3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector3', mtlx_geometric_UsdPrimvarReader_vector3); + +// MaterialX node type: mtlx/geometric/UsdPrimvarReader_vector4 +// +function mtlx_geometric_UsdPrimvarReader_vector4() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdPrimvarReader_vector4'; + this.nodedef_type = 'vector4'; + this.nodedef_node = 'UsdPrimvarReader'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector4_out_genglsl.png'; + this.nodedef_group = 'geometric'; + this.addInput('varname', 'string'); + this.addProperty('varname', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('fallback', 'vector4'); + this.addProperty('fallback', [0, 0, 0, 0], 'vector4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector4'); + this.title = 'UsdPrimvarReader_vector4'; + this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#275'; +} +mtlx_geometric_UsdPrimvarReader_vector4.nodedef_name = 'ND_UsdPrimvarReader_vector4'; +mtlx_geometric_UsdPrimvarReader_vector4.nodedef_node = 'UsdPrimvarReader'; +mtlx_geometric_UsdPrimvarReader_vector4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdPrimvarReader.html'; +LiteGraph.registerNodeType('mtlx/geometric/UsdPrimvarReader_vector4', mtlx_geometric_UsdPrimvarReader_vector4); + +// MaterialX node type: mtlx/math/UsdTransform2d +// +function mtlx_math_UsdTransform2d() { + this.nodedef_icon = './Images/openusd_logo.webp'; + this.nodedef_name = 'ND_UsdTransform2d'; + this.nodedef_type = 'vector2'; + this.nodedef_node = 'UsdTransform2d'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_UsdTransform2d_out_genglsl.png'; + this.nodedef_group = 'math'; + this.addInput('in', 'vector2'); + this.addProperty('in', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('rotation', 'float'); + this.addProperty('rotation', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('scale', 'vector2'); + this.addProperty('scale', [1, 1], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('translation', 'vector2'); + this.addProperty('translation', [0, 0], 'vector2', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'vector2'); + this.title = 'UsdTransform2d_vector2'; + this.desc = "MaterialX:mtlx/math/UsdTransform2d"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#265'; +} +mtlx_math_UsdTransform2d.nodedef_name = 'ND_UsdTransform2d'; +mtlx_math_UsdTransform2d.nodedef_node = 'UsdTransform2d'; +mtlx_math_UsdTransform2d.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/UsdTransform2d.html'; +LiteGraph.registerNodeType('mtlx/math/UsdTransform2d', mtlx_math_UsdTransform2d); + +// MaterialX node type: mtlx/pbr/disney_brdf_2012_surface +// +function mtlx_pbr_disney_brdf_2012_surface() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_disney_brdf_2012_surface'; + this.nodedef_type = 'surfaceshader'; + this.nodedef_node = 'disney_brdf_2012'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_disney_brdf_2012_surface_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('baseColor', 'color3'); + this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('metallic', 'float'); + this.addProperty('metallic', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('subsurface', 'float'); + this.addProperty('subsurface', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular', 'float'); + this.addProperty('specular', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specularTint', 'float'); + this.addProperty('specularTint', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('anisotropic', 'float'); + this.addProperty('anisotropic', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheen', 'float'); + this.addProperty('sheen', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheenTint', 'float'); + this.addProperty('sheenTint', 0.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('clearcoat', 'float'); + this.addProperty('clearcoat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('clearcoatGloss', 'float'); + this.addProperty('clearcoatGloss', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'surfaceshader'); + this.title = 'disney_brdf_2012_surfaceshader'; + this.desc = "MaterialX:mtlx/pbr/disney_brdf_2012_surface"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#232'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_disney_brdf_2012_surface.nodedef_name = 'ND_disney_brdf_2012_surface'; +mtlx_pbr_disney_brdf_2012_surface.nodedef_node = 'disney_brdf_2012'; +mtlx_pbr_disney_brdf_2012_surface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/disney_brdf_2012.html'; +LiteGraph.registerNodeType('mtlx/pbr/disney_brdf_2012_surface', mtlx_pbr_disney_brdf_2012_surface); + +// MaterialX node type: mtlx/translation/standard_surface_to_UsdPreviewSurface +// +function mtlx_translation_standard_surface_to_UsdPreviewSurface() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_UsdPreviewSurface_diffuseColor_out_genglsl.png'; + this.nodedef_group = 'translation'; + this.addInput('metalness', 'float'); + this.addProperty('metalness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base', 'float'); + this.addProperty('base', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular', 'float'); + this.addProperty('specular', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular_color', 'color3'); + this.addProperty('specular_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular_IOR', 'float'); + this.addProperty('specular_IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular_roughness', 'float'); + this.addProperty('specular_roughness', 0.2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat', 'float'); + this.addProperty('coat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat_color', 'color3'); + this.addProperty('coat_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat_roughness', 'float'); + this.addProperty('coat_roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('emission', 'float'); + this.addProperty('emission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('opacity', 'color3'); + this.addProperty('opacity', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.5, 0.5, 1.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('diffuseColor_out', 'color3'); + this.addOutput('emissiveColor_out', 'color3'); + this.addOutput('metallic_out', 'float'); + this.addOutput('roughness_out', 'float'); + this.addOutput('clearcoat_out', 'float'); + this.addOutput('clearcoatRoughness_out', 'float'); + this.addOutput('opacity_out', 'float'); + this.addOutput('ior_out', 'float'); + this.addOutput('normal_out', 'vector3'); + this.title = 'standard_surface_to_UsdPreviewSurface_multioutput'; + this.desc = "MaterialX:mtlx/translation/standard_surface_to_UsdPreviewSurface"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface'; +mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_node = 'standard_surface_to_UsdPreviewSurface'; +mtlx_translation_standard_surface_to_UsdPreviewSurface.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_UsdPreviewSurface.html'; +LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_UsdPreviewSurface', mtlx_translation_standard_surface_to_UsdPreviewSurface); + +// MaterialX node type: mtlx/translation/standard_surface_to_gltf_pbr +// +function mtlx_translation_standard_surface_to_gltf_pbr() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; + this.nodedef_type = 'multioutput'; + this.nodedef_node = 'standard_surface_to_gltf_pbr'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_standard_surface_to_gltf_pbr_base_color_out_genglsl.png'; + this.nodedef_group = 'translation'; + this.addInput('base', 'float'); + this.addProperty('base', 1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('base_color', 'color3'); + this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('metalness', 'float'); + this.addProperty('metalness', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('specular_roughness', 'float'); + this.addProperty('specular_roughness', 0.2, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('transmission', 'float'); + this.addProperty('transmission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('transmission_color', 'color3'); + this.addProperty('transmission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('transmission_depth', 'float'); + this.addProperty('transmission_depth', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheen', 'float'); + this.addProperty('sheen', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheen_color', 'color3'); + this.addProperty('sheen_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('sheen_roughness', 'float'); + this.addProperty('sheen_roughness', 0.3, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat', 'float'); + this.addProperty('coat', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat_color', 'color3'); + this.addProperty('coat_color', [0, 0, 0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('coat_roughness', 'float'); + this.addProperty('coat_roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('emission', 'float'); + this.addProperty('emission', 0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('emission_color', 'color3'); + this.addProperty('emission_color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('base_color_out', 'color3'); + this.addOutput('metallic_out', 'float'); + this.addOutput('roughness_out', 'float'); + this.addOutput('transmission_out', 'float'); + this.addOutput('thickness_out', 'float'); + this.addOutput('attenuation_color_out', 'color3'); + this.addOutput('sheen_color_out', 'color3'); + this.addOutput('sheen_roughness_out', 'float'); + this.addOutput('clearcoat_out', 'float'); + this.addOutput('clearcoat_roughness_out', 'float'); + this.addOutput('emissive_out', 'color3'); + this.title = 'standard_surface_to_gltf_pbr_multioutput'; + this.desc = "MaterialX:mtlx/translation/standard_surface_to_gltf_pbr"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_translation_standard_surface_to_gltf_pbr.nodedef_name = 'ND_standard_surface_to_gltf_pbr'; +mtlx_translation_standard_surface_to_gltf_pbr.nodedef_node = 'standard_surface_to_gltf_pbr'; +mtlx_translation_standard_surface_to_gltf_pbr.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/standard_surface_to_gltf_pbr.html'; +LiteGraph.registerNodeType('mtlx/translation/standard_surface_to_gltf_pbr', mtlx_translation_standard_surface_to_gltf_pbr); + +// MaterialX node type: mtlx/pbr/lama_add_bsdf +// +function mtlx_pbr_lama_add_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_add_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaAdd'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('material1', 'BSDF'); + this.addProperty('material1', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('material2', 'BSDF'); + this.addProperty('material2', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('weight1', 'float'); + this.addProperty('weight1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Weight 1", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('weight2', 'float'); + this.addProperty('weight2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Weight 2", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaAdd_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_add_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_add_bsdf.nodedef_name = 'ND_lama_add_bsdf'; +mtlx_pbr_lama_add_bsdf.nodedef_node = 'LamaAdd'; +mtlx_pbr_lama_add_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_add_bsdf', mtlx_pbr_lama_add_bsdf); + +// MaterialX node type: mtlx/pbr/lama_add_edf +// +function mtlx_pbr_lama_add_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_add_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'LamaAdd'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_add_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('material1', 'EDF'); + this.addProperty('material1', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('material2', 'EDF'); + this.addProperty('material2', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('weight1', 'float'); + this.addProperty('weight1', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Weight 1", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('weight2', 'float'); + this.addProperty('weight2', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Weight 2", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'LamaAdd_EDF'; + this.desc = "MaterialX:mtlx/pbr/lama_add_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_add_edf.nodedef_name = 'ND_lama_add_edf'; +mtlx_pbr_lama_add_edf.nodedef_node = 'LamaAdd'; +mtlx_pbr_lama_add_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaAdd.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_add_edf', mtlx_pbr_lama_add_edf); + +// MaterialX node type: mtlx/pbr/lama_diffuse +// +function mtlx_pbr_lama_diffuse() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_diffuse'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaDiffuse'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_diffuse_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('energyCompensation', 'float'); + this.addProperty('energyCompensation', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Energy Compensation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Advanced" }); + this.addInput('lobeName', 'string'); + this.addProperty('lobeName', 'diffuse', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lobe Name", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('matte', 'string'); + this.addProperty('matte', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Matte", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaDiffuse_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_diffuse"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_diffuse.nodedef_name = 'ND_lama_diffuse'; +mtlx_pbr_lama_diffuse.nodedef_node = 'LamaDiffuse'; +mtlx_pbr_lama_diffuse.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDiffuse.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_diffuse', mtlx_pbr_lama_diffuse); + +// MaterialX node type: mtlx/pbr/lama_sheen +// +function mtlx_pbr_lama_sheen() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_sheen'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaSheen'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sheen_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Main" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaSheen_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_sheen"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_sheen.nodedef_name = 'ND_lama_sheen'; +mtlx_pbr_lama_sheen.nodedef_node = 'LamaSheen'; +mtlx_pbr_lama_sheen.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSheen.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_sheen', mtlx_pbr_lama_sheen); + +// MaterialX node type: mtlx/pbr/lama_sss +// +function mtlx_pbr_lama_sss() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_sss'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaSSS'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_sss_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('sssRadius', 'color3'); + this.addProperty('sssRadius', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Radius", "uimin": null, "uimax": null, "uifolder": "SSS" }); + this.addInput('sssScale', 'float'); + this.addProperty('sssScale', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Scale", "uimin": null, "uimax": null, "uifolder": "SSS" }); + this.addInput('sssMode', 'integer'); + this.addProperty('sssMode', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Mode", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('sssIOR', 'float'); + this.addProperty('sssIOR', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "IOR", "uimin": "1.0", "uimax": "2.0", "uifolder": "SSS" }); + this.addInput('sssAnisotropy', 'float'); + this.addProperty('sssAnisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "SSS" }); + this.addInput('sssBleed', 'float'); + this.addProperty('sssBleed', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Bleed", "uimin": "0.0", "uimax": "1.0", "uifolder": "SSS" }); + this.addInput('sssFollowTopology', 'float'); + this.addProperty('sssFollowTopology', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Follow Topology", "uimin": "0.0", "uimax": "1.0", "uifolder": "SSS" }); + this.addInput('sssSubset', 'string'); + this.addProperty('sssSubset', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Subset", "uimin": null, "uimax": null, "uifolder": "SSS" }); + this.addInput('sssContinuationRays', 'integer'); + this.addProperty('sssContinuationRays', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Continuation Rays", "uimin": null, "uimax": null, "uifolder": "SSS" }); + this.addInput('sssUnitLength', 'float'); + this.addProperty('sssUnitLength', 0.00328, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Unit Length", "uimin": null, "uimax": null, "uifolder": "SSS" }); + this.addInput('mode', 'integer'); + this.addProperty('mode', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Mode", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('albedoInversionMethod', 'integer'); + this.addProperty('albedoInversionMethod', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Albedo Inversion Method", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('diffuseLobeName', 'string'); + this.addProperty('diffuseLobeName', 'diffuse', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Diffuse Lobe Name", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('sssEntryLobeName', 'string'); + this.addProperty('sssEntryLobeName', 'irradiance', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "SSS Entry Lobe Name", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('sssExitLobeName', 'string'); + this.addProperty('sssExitLobeName', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "SSS Exit Lobe Name", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('sssId', 'integer'); + this.addProperty('sssId', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "SSS Id", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('matte', 'string'); + this.addProperty('matte', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Matte", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaSSS_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_sss"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_sss.nodedef_name = 'ND_lama_sss'; +mtlx_pbr_lama_sss.nodedef_node = 'LamaSSS'; +mtlx_pbr_lama_sss.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaSSS.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_sss', mtlx_pbr_lama_sss); + +// MaterialX node type: mtlx/pbr/lama_mix_bsdf +// +function mtlx_pbr_lama_mix_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_mix_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaMix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('material1', 'BSDF'); + this.addProperty('material1', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('material2', 'BSDF'); + this.addProperty('material2', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaMix_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_mix_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_mix_bsdf.nodedef_name = 'ND_lama_mix_bsdf'; +mtlx_pbr_lama_mix_bsdf.nodedef_node = 'LamaMix'; +mtlx_pbr_lama_mix_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_mix_bsdf', mtlx_pbr_lama_mix_bsdf); + +// MaterialX node type: mtlx/pbr/lama_mix_edf +// +function mtlx_pbr_lama_mix_edf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_mix_edf'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'LamaMix'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_mix_edf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('material1', 'EDF'); + this.addProperty('material1', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 1", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('material2', 'EDF'); + this.addProperty('material2', '', 'EDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material 2", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('mix', 'float'); + this.addProperty('mix', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addOutput('out', 'EDF'); + this.title = 'LamaMix_EDF'; + this.desc = "MaterialX:mtlx/pbr/lama_mix_edf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_mix_edf.nodedef_name = 'ND_lama_mix_edf'; +mtlx_pbr_lama_mix_edf.nodedef_node = 'LamaMix'; +mtlx_pbr_lama_mix_edf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaMix.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_mix_edf', mtlx_pbr_lama_mix_edf); + +// MaterialX node type: mtlx/pbr/lama_emission +// +function mtlx_pbr_lama_emission() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_emission'; + this.nodedef_type = 'EDF'; + this.nodedef_node = 'LamaEmission'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_emission_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addOutput('out', 'EDF'); + this.title = 'LamaEmission_EDF'; + this.desc = "MaterialX:mtlx/pbr/lama_emission"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_emission.nodedef_name = 'ND_lama_emission'; +mtlx_pbr_lama_emission.nodedef_node = 'LamaEmission'; +mtlx_pbr_lama_emission.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaEmission.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_emission', mtlx_pbr_lama_emission); + +// MaterialX node type: mtlx/pbr/lama_dielectric +// +function mtlx_pbr_lama_dielectric() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_dielectric'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaDielectric'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_dielectric_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('reflectionTint', 'color3'); + this.addProperty('reflectionTint', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Reflection Tint", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('transmissionTint', 'color3'); + this.addProperty('transmissionTint', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Transmission Tint", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('fresnelMode', 'integer'); + this.addProperty('fresnelMode', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Fresnel Mode", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('IOR', 'float'); + this.addProperty('IOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "IOR", "uimin": "1.0", "uimax": "3.0", "uifolder": "Main" }); + this.addInput('reflectivity', 'float'); + this.addProperty('reflectivity', 0.04, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Reflectivity", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Main" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Anisotropy" }); + this.addInput('direction', 'vector3'); + this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Direction", "uimin": null, "uimax": null, "uifolder": "Anisotropy" }); + this.addInput('rotation', 'float'); + this.addProperty('rotation', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Rotation", "uimin": null, "uimax": null, "uifolder": "Anisotropy" }); + this.addInput('exteriorIOR', 'float'); + this.addProperty('exteriorIOR', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Exterior IOR", "uimin": "1.0", "uimax": "3.0", "uifolder": "Advanced" }); + this.addInput('absorptionColor', 'color3'); + this.addProperty('absorptionColor', [1.0, 1.0, 1.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Absorption Color", "uimin": null, "uimax": null, "uifolder": "Interior" }); + this.addInput('absorptionRadius', 'float'); + this.addProperty('absorptionRadius', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Absorption Radius", "uimin": null, "uimax": null, "uifolder": "Interior" }); + this.addInput('scatterColor', 'color3'); + this.addProperty('scatterColor', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Scatter Color", "uimin": null, "uimax": null, "uifolder": "Interior" }); + this.addInput('scatterAnisotropy', 'float'); + this.addProperty('scatterAnisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Scatter Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Interior" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaDielectric_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_dielectric"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_dielectric.nodedef_name = 'ND_lama_dielectric'; +mtlx_pbr_lama_dielectric.nodedef_node = 'LamaDielectric'; +mtlx_pbr_lama_dielectric.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaDielectric.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_dielectric', mtlx_pbr_lama_dielectric); + +// MaterialX node type: mtlx/pbr/lama_conductor +// +function mtlx_pbr_lama_conductor() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_conductor'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaConductor'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_conductor_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('tint', 'color3'); + this.addProperty('tint', [1, 1, 1], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Tint", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('fresnelMode', 'integer'); + this.addProperty('fresnelMode', 0, 'integer', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Fresnel Mode", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('IOR', 'vector3'); + this.addProperty('IOR', [0.180000007153, 0.419999986887, 1.37000000477], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "IOR", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('extinction', 'vector3'); + this.addProperty('extinction', [3.42000007629, 2.34999990463, 1.76999998093], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Extinction", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('reflectivity', 'color3'); + this.addProperty('reflectivity', [0.9450, 0.7772, 0.3737], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Reflectivity", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('edgeColor', 'color3'); + this.addProperty('edgeColor', [0.9979, 0.9813, 0.7523], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Edge Color", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.1, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "Main" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "Main" }); + this.addInput('anisotropy', 'float'); + this.addProperty('anisotropy', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Anisotropy", "uimin": "-1.0", "uimax": "1.0", "uifolder": "Anisotropy" }); + this.addInput('anisotropyDirection', 'vector3'); + this.addProperty('anisotropyDirection', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Direction", "uimin": null, "uimax": null, "uifolder": "Anisotropy" }); + this.addInput('anisotropyRotation', 'float'); + this.addProperty('anisotropyRotation', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Rotation", "uimin": null, "uimax": null, "uifolder": "Anisotropy" }); + this.addInput('iridescenceThickness', 'float'); + this.addProperty('iridescenceThickness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Thickness", "uimin": "0.0", "uimax": null, "uifolder": "Iridescence" }); + this.addInput('iridescenceIOR', 'float'); + this.addProperty('iridescenceIOR', 1.5, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "IOR", "uimin": "1.0", "uimax": "3.0", "uifolder": "Iridescence" }); + this.addInput('exteriorIOR', 'float'); + this.addProperty('exteriorIOR', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Exterior IOR", "uimin": "1.0", "uimax": "3.0", "uifolder": "Advanced" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaConductor_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_conductor"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_conductor.nodedef_name = 'ND_lama_conductor'; +mtlx_pbr_lama_conductor.nodedef_node = 'LamaConductor'; +mtlx_pbr_lama_conductor.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaConductor.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_conductor', mtlx_pbr_lama_conductor); + +// MaterialX node type: mtlx/pbr/lama_translucent +// +function mtlx_pbr_lama_translucent() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_translucent'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaTranslucent'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_translucent_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('color', 'color3'); + this.addProperty('color', [0.18, 0.18, 0.18], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Color", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('roughness', 'float'); + this.addProperty('roughness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Roughness", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('normal', 'vector3'); + this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Normal", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('energyCompensation', 'float'); + this.addProperty('energyCompensation', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Energy Compensation", "uimin": "0.0", "uimax": "1.0", "uifolder": "Advanced" }); + this.addInput('lobeName', 'string'); + this.addProperty('lobeName', 'diffuse', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Lobe Name", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addInput('matte', 'string'); + this.addProperty('matte', '', 'string', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Matte", "uimin": null, "uimax": null, "uifolder": "Advanced" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaTranslucent_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_translucent"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_translucent.nodedef_name = 'ND_lama_translucent'; +mtlx_pbr_lama_translucent.nodedef_node = 'LamaTranslucent'; +mtlx_pbr_lama_translucent.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaTranslucent.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_translucent', mtlx_pbr_lama_translucent); + +// MaterialX node type: mtlx/pbr/lama_layer_bsdf +// +function mtlx_pbr_lama_layer_bsdf() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lama_layer_bsdf'; + this.nodedef_type = 'BSDF'; + this.nodedef_node = 'LamaLayer'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lama_layer_bsdf_out_genglsl.png'; + this.nodedef_group = 'pbr'; + this.addInput('materialTop', 'BSDF'); + this.addProperty('materialTop', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material Top", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('materialBase', 'BSDF'); + this.addProperty('materialBase', '', 'BSDF', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Material Base", "uimin": null, "uimax": null, "uifolder": "" }); + this.addInput('topMix', 'float'); + this.addProperty('topMix', 1.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top Mix", "uimin": "0.0", "uimax": "1.0", "uifolder": "" }); + this.addInput('topThickness', 'float'); + this.addProperty('topThickness', 0.0, 'float', { "colorspace": "", "unit": "", "unittype": "", "uiname": "Top Thickness", "uimin": "0.0", "uimax": null, "uifolder": "" }); + this.addOutput('out', 'BSDF'); + this.title = 'LamaLayer_BSDF'; + this.desc = "MaterialX:mtlx/pbr/lama_layer_bsdf"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; +} +mtlx_pbr_lama_layer_bsdf.nodedef_name = 'ND_lama_layer_bsdf'; +mtlx_pbr_lama_layer_bsdf.nodedef_node = 'LamaLayer'; +mtlx_pbr_lama_layer_bsdf.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/LamaLayer.html'; +LiteGraph.registerNodeType('mtlx/pbr/lama_layer_bsdf', mtlx_pbr_lama_layer_bsdf); + +// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color3 +// +function mtlx_colortransform_g18_rec709_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'g18_rec709_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'g18_rec709_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3'; +mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_node = 'g18_rec709_to_lin_rec709'; +mtlx_colortransform_g18_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color3', mtlx_colortransform_g18_rec709_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/g18_rec709_to_lin_rec709_color4 +// +function mtlx_colortransform_g18_rec709_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'g18_rec709_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'g18_rec709_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4'; +mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_node = 'g18_rec709_to_lin_rec709'; +mtlx_colortransform_g18_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g18_rec709_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g18_rec709_to_lin_rec709_color4', mtlx_colortransform_g18_rec709_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color3 +// +function mtlx_colortransform_g22_rec709_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'g22_rec709_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'g22_rec709_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3'; +mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_node = 'g22_rec709_to_lin_rec709'; +mtlx_colortransform_g22_rec709_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color3', mtlx_colortransform_g22_rec709_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/g22_rec709_to_lin_rec709_color4 +// +function mtlx_colortransform_g22_rec709_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'g22_rec709_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'g22_rec709_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4'; +mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_node = 'g22_rec709_to_lin_rec709'; +mtlx_colortransform_g22_rec709_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_rec709_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g22_rec709_to_lin_rec709_color4', mtlx_colortransform_g22_rec709_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color3 +// +function mtlx_colortransform_rec709_display_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'rec709_display_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'rec709_display_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3'; +mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_node = 'rec709_display_to_lin_rec709'; +mtlx_colortransform_rec709_display_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color3', mtlx_colortransform_rec709_display_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/rec709_display_to_lin_rec709_color4 +// +function mtlx_colortransform_rec709_display_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'rec709_display_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'rec709_display_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4'; +mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_node = 'rec709_display_to_lin_rec709'; +mtlx_colortransform_rec709_display_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/rec709_display_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/rec709_display_to_lin_rec709_color4', mtlx_colortransform_rec709_display_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color3 +// +function mtlx_colortransform_acescg_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'acescg_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'acescg_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_name = 'ND_acescg_to_lin_rec709_color3'; +mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_node = 'acescg_to_lin_rec709'; +mtlx_colortransform_acescg_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color3', mtlx_colortransform_acescg_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/acescg_to_lin_rec709_color4 +// +function mtlx_colortransform_acescg_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'acescg_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'acescg_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_name = 'ND_acescg_to_lin_rec709_color4'; +mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_node = 'acescg_to_lin_rec709'; +mtlx_colortransform_acescg_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/acescg_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/acescg_to_lin_rec709_color4', mtlx_colortransform_acescg_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color3 +// +function mtlx_colortransform_g22_ap1_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'g22_ap1_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'g22_ap1_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3'; +mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_node = 'g22_ap1_to_lin_rec709'; +mtlx_colortransform_g22_ap1_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color3', mtlx_colortransform_g22_ap1_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/g22_ap1_to_lin_rec709_color4 +// +function mtlx_colortransform_g22_ap1_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'g22_ap1_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'g22_ap1_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4'; +mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_node = 'g22_ap1_to_lin_rec709'; +mtlx_colortransform_g22_ap1_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/g22_ap1_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/g22_ap1_to_lin_rec709_color4', mtlx_colortransform_g22_ap1_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color3 +// +function mtlx_colortransform_srgb_texture_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'srgb_texture_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'srgb_texture_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3'; +mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_node = 'srgb_texture_to_lin_rec709'; +mtlx_colortransform_srgb_texture_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color3', mtlx_colortransform_srgb_texture_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/srgb_texture_to_lin_rec709_color4 +// +function mtlx_colortransform_srgb_texture_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'srgb_texture_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'srgb_texture_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4'; +mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_node = 'srgb_texture_to_lin_rec709'; +mtlx_colortransform_srgb_texture_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_texture_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/srgb_texture_to_lin_rec709_color4', mtlx_colortransform_srgb_texture_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color3 +// +function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'lin_adobergb_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'lin_adobergb_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3'; +mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_node = 'lin_adobergb_to_lin_rec709'; +mtlx_colortransform_lin_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color3', mtlx_colortransform_lin_adobergb_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/lin_adobergb_to_lin_rec709_color4 +// +function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'lin_adobergb_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'lin_adobergb_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4'; +mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_node = 'lin_adobergb_to_lin_rec709'; +mtlx_colortransform_lin_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_adobergb_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/lin_adobergb_to_lin_rec709_color4', mtlx_colortransform_lin_adobergb_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color3 +// +function mtlx_colortransform_adobergb_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'adobergb_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'adobergb_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_name = 'ND_adobergb_to_lin_rec709_color3'; +mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_node = 'adobergb_to_lin_rec709'; +mtlx_colortransform_adobergb_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color3', mtlx_colortransform_adobergb_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/adobergb_to_lin_rec709_color4 +// +function mtlx_colortransform_adobergb_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'adobergb_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'adobergb_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_name = 'ND_adobergb_to_lin_rec709_color4'; +mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_node = 'adobergb_to_lin_rec709'; +mtlx_colortransform_adobergb_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/adobergb_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/adobergb_to_lin_rec709_color4', mtlx_colortransform_adobergb_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3 +// +function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'srgb_displayp3_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3'; +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_node = 'srgb_displayp3_to_lin_rec709'; +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3', mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4 +// +function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'srgb_displayp3_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'srgb_displayp3_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4'; +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_node = 'srgb_displayp3_to_lin_rec709'; +mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/srgb_displayp3_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4', mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4); + +// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color3 +// +function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; + this.nodedef_type = 'color3'; + this.nodedef_node = 'lin_displayp3_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color3_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color3'); + this.addProperty('in', [0.0, 0.0, 0.0], 'color3', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color3'); + this.title = 'lin_displayp3_to_lin_rec709_color3'; + this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color3"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#37A'; +} +mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3'; +mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_node = 'lin_displayp3_to_lin_rec709'; +mtlx_colortransform_lin_displayp3_to_lin_rec709_color3.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color3', mtlx_colortransform_lin_displayp3_to_lin_rec709_color3); + +// MaterialX node type: mtlx/colortransform/lin_displayp3_to_lin_rec709_color4 +// +function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4() { + this.nodedef_icon = ''; + this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; + this.nodedef_type = 'color4'; + this.nodedef_node = 'lin_displayp3_to_lin_rec709'; + this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; + this.nodedef_swatch = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color4_out_genglsl.png'; + this.nodedef_group = 'colortransform'; + this.addInput('in', 'color4'); + this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4', { "colorspace": "", "unit": "", "unittype": "", "uiname": "", "uimin": null, "uimax": null, "uifolder": "" }); + this.addOutput('out', 'color4'); + this.title = 'lin_displayp3_to_lin_rec709_color4'; + this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color4"; + this.onNodeCreated = function () { + //console.log('Node created:', this); + } + this.onRemoved = function () { + //console.log('Node removed:', this); + } + this.bgcolor = '#111'; + this.color = '#222'; + this.shape = LiteGraph.ROUND_SHAPE; + this.boxcolor = '#69A'; +} +mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4'; +mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_node = 'lin_displayp3_to_lin_rec709'; +mtlx_colortransform_lin_displayp3_to_lin_rec709_color4.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/lin_displayp3_to_lin_rec709.html'; +LiteGraph.registerNodeType('mtlx/colortransform/lin_displayp3_to_lin_rec709_color4', mtlx_colortransform_lin_displayp3_to_lin_rec709_color4); diff --git a/javascript/materialxnode/dist/Images/brass_color.jpg b/javascript/node_editor/resources/Images/brass_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brass_color.jpg rename to javascript/node_editor/resources/Images/brass_color.jpg diff --git a/javascript/materialxnode/dist/Images/brass_roughness.jpg b/javascript/node_editor/resources/Images/brass_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brass_roughness.jpg rename to javascript/node_editor/resources/Images/brass_roughness.jpg diff --git a/javascript/materialxnode/dist/Images/brick_base_gray.jpg b/javascript/node_editor/resources/Images/brick_base_gray.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_base_gray.jpg rename to javascript/node_editor/resources/Images/brick_base_gray.jpg diff --git a/javascript/materialxnode/dist/Images/brick_dirt_mask.jpg b/javascript/node_editor/resources/Images/brick_dirt_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_dirt_mask.jpg rename to javascript/node_editor/resources/Images/brick_dirt_mask.jpg diff --git a/javascript/materialxnode/dist/Images/brick_mask.jpg b/javascript/node_editor/resources/Images/brick_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_mask.jpg rename to javascript/node_editor/resources/Images/brick_mask.jpg diff --git a/javascript/materialxnode/dist/Images/brick_normal.jpg b/javascript/node_editor/resources/Images/brick_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_normal.jpg rename to javascript/node_editor/resources/Images/brick_normal.jpg diff --git a/javascript/materialxnode/dist/Images/brick_roughness.jpg b/javascript/node_editor/resources/Images/brick_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_roughness.jpg rename to javascript/node_editor/resources/Images/brick_roughness.jpg diff --git a/javascript/materialxnode/dist/Images/brick_variation_mask.jpg b/javascript/node_editor/resources/Images/brick_variation_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/brick_variation_mask.jpg rename to javascript/node_editor/resources/Images/brick_variation_mask.jpg diff --git a/javascript/materialxnode/dist/Images/cloth.bmp b/javascript/node_editor/resources/Images/cloth.bmp similarity index 100% rename from javascript/materialxnode/dist/Images/cloth.bmp rename to javascript/node_editor/resources/Images/cloth.bmp diff --git a/javascript/materialxnode/dist/Images/cloth.gif b/javascript/node_editor/resources/Images/cloth.gif similarity index 100% rename from javascript/materialxnode/dist/Images/cloth.gif rename to javascript/node_editor/resources/Images/cloth.gif diff --git a/javascript/materialxnode/dist/Images/cloth.jpg b/javascript/node_editor/resources/Images/cloth.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/cloth.jpg rename to javascript/node_editor/resources/Images/cloth.jpg diff --git a/javascript/materialxnode/dist/Images/cloth.png b/javascript/node_editor/resources/Images/cloth.png similarity index 100% rename from javascript/materialxnode/dist/Images/cloth.png rename to javascript/node_editor/resources/Images/cloth.png diff --git a/javascript/materialxnode/dist/Images/cloth.tga b/javascript/node_editor/resources/Images/cloth.tga similarity index 100% rename from javascript/materialxnode/dist/Images/cloth.tga rename to javascript/node_editor/resources/Images/cloth.tga diff --git a/javascript/materialxnode/dist/Images/greysphere_calibration.png b/javascript/node_editor/resources/Images/greysphere_calibration.png similarity index 100% rename from javascript/materialxnode/dist/Images/greysphere_calibration.png rename to javascript/node_editor/resources/Images/greysphere_calibration.png diff --git a/javascript/materialxnode/dist/Images/grid.png b/javascript/node_editor/resources/Images/grid.png similarity index 100% rename from javascript/materialxnode/dist/Images/grid.png rename to javascript/node_editor/resources/Images/grid.png diff --git a/javascript/materialxnode/dist/Images/mesh_wire_norm.png b/javascript/node_editor/resources/Images/mesh_wire_norm.png similarity index 100% rename from javascript/materialxnode/dist/Images/mesh_wire_norm.png rename to javascript/node_editor/resources/Images/mesh_wire_norm.png diff --git a/javascript/materialxnode/dist/Images/plain_heightmap.png b/javascript/node_editor/resources/Images/plain_heightmap.png similarity index 100% rename from javascript/materialxnode/dist/Images/plain_heightmap.png rename to javascript/node_editor/resources/Images/plain_heightmap.png diff --git a/javascript/materialxnode/dist/Images/wood_color.jpg b/javascript/node_editor/resources/Images/wood_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/wood_color.jpg rename to javascript/node_editor/resources/Images/wood_color.jpg diff --git a/javascript/materialxnode/dist/Images/wood_roughness.jpg b/javascript/node_editor/resources/Images/wood_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/wood_roughness.jpg rename to javascript/node_editor/resources/Images/wood_roughness.jpg diff --git a/javascript/materialxnode/dist/ui_helpers.js b/javascript/node_editor/ui_helpers.js similarity index 100% rename from javascript/materialxnode/dist/ui_helpers.js rename to javascript/node_editor/ui_helpers.js diff --git a/javascript/package-lock.json b/javascript/package-lock.json new file mode 100644 index 00000000..745639a1 --- /dev/null +++ b/javascript/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "javascript", + "lockfileVersion": 2, + "requires": true, + "packages": {} +} diff --git a/javascript/shader_editor/dist/Geometry/boombox.glb b/javascript/shader_editor/dist/Geometry/boombox.glb new file mode 100644 index 00000000..fea64585 Binary files /dev/null and b/javascript/shader_editor/dist/Geometry/boombox.glb differ diff --git a/javascript/materialxnode/dist/Geometry/cloth.glb b/javascript/shader_editor/dist/Geometry/cloth.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/cloth.glb rename to javascript/shader_editor/dist/Geometry/cloth.glb diff --git a/javascript/materialxnode/dist/Geometry/cylinder.glb b/javascript/shader_editor/dist/Geometry/cylinder.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/cylinder.glb rename to javascript/shader_editor/dist/Geometry/cylinder.glb diff --git a/javascript/materialxnode/dist/Geometry/glTF.glb b/javascript/shader_editor/dist/Geometry/glTF.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/glTF.glb rename to javascript/shader_editor/dist/Geometry/glTF.glb diff --git a/javascript/materialxnode/dist/Geometry/plane.glb b/javascript/shader_editor/dist/Geometry/plane.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/plane.glb rename to javascript/shader_editor/dist/Geometry/plane.glb diff --git a/javascript/materialxnode/dist/Geometry/shaderball.glb b/javascript/shader_editor/dist/Geometry/shaderball.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/shaderball.glb rename to javascript/shader_editor/dist/Geometry/shaderball.glb diff --git a/javascript/materialxnode/dist/Geometry/sphere.glb b/javascript/shader_editor/dist/Geometry/sphere.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/sphere.glb rename to javascript/shader_editor/dist/Geometry/sphere.glb diff --git a/javascript/materialxnode/dist/Geometry/teapot.glb b/javascript/shader_editor/dist/Geometry/teapot.glb similarity index 100% rename from javascript/materialxnode/dist/Geometry/teapot.glb rename to javascript/shader_editor/dist/Geometry/teapot.glb diff --git a/javascript/materialxnode/dist/Images/300x300_logo.png b/javascript/shader_editor/dist/Images/300x300_logo.png similarity index 100% rename from javascript/materialxnode/dist/Images/300x300_logo.png rename to javascript/shader_editor/dist/Images/300x300_logo.png diff --git a/javascript/materialxnode/dist/Images/Blender_logo_no_text.svg.png b/javascript/shader_editor/dist/Images/Blender_logo_no_text.svg.png similarity index 100% rename from javascript/materialxnode/dist/Images/Blender_logo_no_text.svg.png rename to javascript/shader_editor/dist/Images/Blender_logo_no_text.svg.png diff --git a/javascript/materialxnode/dist/Images/BlueMetalShader.png b/javascript/shader_editor/dist/Images/BlueMetalShader.png similarity index 100% rename from javascript/materialxnode/dist/Images/BlueMetalShader.png rename to javascript/shader_editor/dist/Images/BlueMetalShader.png diff --git a/javascript/materialxnode/dist/Images/Brick_ORM_baking.png b/javascript/shader_editor/dist/Images/Brick_ORM_baking.png similarity index 100% rename from javascript/materialxnode/dist/Images/Brick_ORM_baking.png rename to javascript/shader_editor/dist/Images/Brick_ORM_baking.png diff --git a/javascript/materialxnode/dist/Images/Color Test.png b/javascript/shader_editor/dist/Images/Color Test.png similarity index 100% rename from javascript/materialxnode/dist/Images/Color Test.png rename to javascript/shader_editor/dist/Images/Color Test.png diff --git a/javascript/materialxnode/dist/Images/Default_osl.png b/javascript/shader_editor/dist/Images/Default_osl.png similarity index 100% rename from javascript/materialxnode/dist/Images/Default_osl.png rename to javascript/shader_editor/dist/Images/Default_osl.png diff --git a/javascript/materialxnode/dist/Images/Design_Icon.png b/javascript/shader_editor/dist/Images/Design_Icon.png similarity index 100% rename from javascript/materialxnode/dist/Images/Design_Icon.png rename to javascript/shader_editor/dist/Images/Design_Icon.png diff --git a/javascript/materialxnode/dist/Images/DirtyWoodMaterial.png b/javascript/shader_editor/dist/Images/DirtyWoodMaterial.png similarity index 100% rename from javascript/materialxnode/dist/Images/DirtyWoodMaterial.png rename to javascript/shader_editor/dist/Images/DirtyWoodMaterial.png diff --git a/javascript/materialxnode/dist/Images/DirtyWoodMaterial.webp b/javascript/shader_editor/dist/Images/DirtyWoodMaterial.webp similarity index 100% rename from javascript/materialxnode/dist/Images/DirtyWoodMaterial.webp rename to javascript/shader_editor/dist/Images/DirtyWoodMaterial.webp diff --git a/javascript/materialxnode/dist/Images/FireplaceMaterial.png b/javascript/shader_editor/dist/Images/FireplaceMaterial.png similarity index 100% rename from javascript/materialxnode/dist/Images/FireplaceMaterial.png rename to javascript/shader_editor/dist/Images/FireplaceMaterial.png diff --git a/javascript/materialxnode/dist/Images/FireplaceMaterial.webp b/javascript/shader_editor/dist/Images/FireplaceMaterial.webp similarity index 100% rename from javascript/materialxnode/dist/Images/FireplaceMaterial.webp rename to javascript/shader_editor/dist/Images/FireplaceMaterial.webp diff --git a/javascript/materialxnode/dist/Images/GitHub_Logo.png b/javascript/shader_editor/dist/Images/GitHub_Logo.png similarity index 100% rename from javascript/materialxnode/dist/Images/GitHub_Logo.png rename to javascript/shader_editor/dist/Images/GitHub_Logo.png diff --git a/javascript/materialxnode/dist/Images/GlTF_logo.svg.png b/javascript/shader_editor/dist/Images/GlTF_logo.svg.png similarity index 100% rename from javascript/materialxnode/dist/Images/GlTF_logo.svg.png rename to javascript/shader_editor/dist/Images/GlTF_logo.svg.png diff --git a/javascript/materialxnode/dist/Images/HTML5_logo_and_wordmark.svg b/javascript/shader_editor/dist/Images/HTML5_logo_and_wordmark.svg similarity index 100% rename from javascript/materialxnode/dist/Images/HTML5_logo_and_wordmark.svg rename to javascript/shader_editor/dist/Images/HTML5_logo_and_wordmark.svg diff --git a/javascript/materialxnode/dist/Images/Houdini3D_icon.png b/javascript/shader_editor/dist/Images/Houdini3D_icon.png similarity index 100% rename from javascript/materialxnode/dist/Images/Houdini3D_icon.png rename to javascript/shader_editor/dist/Images/Houdini3D_icon.png diff --git a/javascript/materialxnode/dist/Images/InputsOutputs.svg b/javascript/shader_editor/dist/Images/InputsOutputs.svg similarity index 100% rename from javascript/materialxnode/dist/Images/InputsOutputs.svg rename to javascript/shader_editor/dist/Images/InputsOutputs.svg diff --git a/javascript/materialxnode/dist/Images/JSON_vector_logo.svg b/javascript/shader_editor/dist/Images/JSON_vector_logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/JSON_vector_logo.svg rename to javascript/shader_editor/dist/Images/JSON_vector_logo.svg diff --git a/javascript/materialxnode/dist/Images/Jupyter_logo.svg b/javascript/shader_editor/dist/Images/Jupyter_logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/Jupyter_logo.svg rename to javascript/shader_editor/dist/Images/Jupyter_logo.svg diff --git a/javascript/materialxnode/dist/Images/MX Learn.svg b/javascript/shader_editor/dist/Images/MX Learn.svg similarity index 100% rename from javascript/materialxnode/dist/Images/MX Learn.svg rename to javascript/shader_editor/dist/Images/MX Learn.svg diff --git a/javascript/materialxnode/dist/Images/MaterialXLogo2K.png b/javascript/shader_editor/dist/Images/MaterialXLogo2K.png similarity index 100% rename from javascript/materialxnode/dist/Images/MaterialXLogo2K.png rename to javascript/shader_editor/dist/Images/MaterialXLogo2K.png diff --git a/javascript/materialxnode/dist/Images/MaterialXLogo2KWhite.png b/javascript/shader_editor/dist/Images/MaterialXLogo2KWhite.png similarity index 100% rename from javascript/materialxnode/dist/Images/MaterialXLogo2KWhite.png rename to javascript/shader_editor/dist/Images/MaterialXLogo2KWhite.png diff --git a/javascript/materialxnode/dist/Images/MaterialXLogo_200x155.png b/javascript/shader_editor/dist/Images/MaterialXLogo_200x155.png similarity index 100% rename from javascript/materialxnode/dist/Images/MaterialXLogo_200x155.png rename to javascript/shader_editor/dist/Images/MaterialXLogo_200x155.png diff --git a/javascript/materialxnode/dist/Images/MaterialXLogo_icon.gif b/javascript/shader_editor/dist/Images/MaterialXLogo_icon.gif similarity index 100% rename from javascript/materialxnode/dist/Images/MaterialXLogo_icon.gif rename to javascript/shader_editor/dist/Images/MaterialXLogo_icon.gif diff --git a/javascript/materialxnode/dist/Images/MaterialX_Core_Libraries.svg b/javascript/shader_editor/dist/Images/MaterialX_Core_Libraries.svg similarity index 100% rename from javascript/materialxnode/dist/Images/MaterialX_Core_Libraries.svg rename to javascript/shader_editor/dist/Images/MaterialX_Core_Libraries.svg diff --git a/javascript/materialxnode/dist/Images/QuiltiX_GLTF_JSON_USD.webp b/javascript/shader_editor/dist/Images/QuiltiX_GLTF_JSON_USD.webp similarity index 100% rename from javascript/materialxnode/dist/Images/QuiltiX_GLTF_JSON_USD.webp rename to javascript/shader_editor/dist/Images/QuiltiX_GLTF_JSON_USD.webp diff --git a/javascript/materialxnode/dist/Images/QuiltiX_USD_text.png b/javascript/shader_editor/dist/Images/QuiltiX_USD_text.png similarity index 100% rename from javascript/materialxnode/dist/Images/QuiltiX_USD_text.png rename to javascript/shader_editor/dist/Images/QuiltiX_USD_text.png diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall.png b/javascript/shader_editor/dist/Images/Sample_ShaderBall.png similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall.png rename to javascript/shader_editor/dist/Images/Sample_ShaderBall.png diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall.webp b/javascript/shader_editor/dist/Images/Sample_ShaderBall.webp similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall.webp rename to javascript/shader_editor/dist/Images/Sample_ShaderBall.webp diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall_Brick.png b/javascript/shader_editor/dist/Images/Sample_ShaderBall_Brick.png similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall_Brick.png rename to javascript/shader_editor/dist/Images/Sample_ShaderBall_Brick.png diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall_Brick.webp b/javascript/shader_editor/dist/Images/Sample_ShaderBall_Brick.webp similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall_Brick.webp rename to javascript/shader_editor/dist/Images/Sample_ShaderBall_Brick.webp diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall_Nickel.png b/javascript/shader_editor/dist/Images/Sample_ShaderBall_Nickel.png similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall_Nickel.png rename to javascript/shader_editor/dist/Images/Sample_ShaderBall_Nickel.png diff --git a/javascript/materialxnode/dist/Images/Sample_ShaderBall_Nickel.webp b/javascript/shader_editor/dist/Images/Sample_ShaderBall_Nickel.webp similarity index 100% rename from javascript/materialxnode/dist/Images/Sample_ShaderBall_Nickel.webp rename to javascript/shader_editor/dist/Images/Sample_ShaderBall_Nickel.webp diff --git a/javascript/materialxnode/dist/Images/Sept_2023_v1.38.8_Release.png b/javascript/shader_editor/dist/Images/Sept_2023_v1.38.8_Release.png similarity index 100% rename from javascript/materialxnode/dist/Images/Sept_2023_v1.38.8_Release.png rename to javascript/shader_editor/dist/Images/Sept_2023_v1.38.8_Release.png diff --git a/javascript/materialxnode/dist/Images/ShaderGenerator_inheritance.png b/javascript/shader_editor/dist/Images/ShaderGenerator_inheritance.png similarity index 100% rename from javascript/materialxnode/dist/Images/ShaderGenerator_inheritance.png rename to javascript/shader_editor/dist/Images/ShaderGenerator_inheritance.png diff --git a/javascript/materialxnode/dist/Images/Style Guide.png b/javascript/shader_editor/dist/Images/Style Guide.png similarity index 100% rename from javascript/materialxnode/dist/Images/Style Guide.png rename to javascript/shader_editor/dist/Images/Style Guide.png diff --git a/javascript/materialxnode/dist/Images/Three.js_Icon.svg b/javascript/shader_editor/dist/Images/Three.js_Icon.svg similarity index 100% rename from javascript/materialxnode/dist/Images/Three.js_Icon.svg rename to javascript/shader_editor/dist/Images/Three.js_Icon.svg diff --git a/javascript/materialxnode/dist/Images/ThreeJS_editor_chessset.webp b/javascript/shader_editor/dist/Images/ThreeJS_editor_chessset.webp similarity index 100% rename from javascript/materialxnode/dist/Images/ThreeJS_editor_chessset.webp rename to javascript/shader_editor/dist/Images/ThreeJS_editor_chessset.webp diff --git a/javascript/materialxnode/dist/Images/VSCode_Environment.png b/javascript/shader_editor/dist/Images/VSCode_Environment.png similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_Environment.png rename to javascript/shader_editor/dist/Images/VSCode_Environment.png diff --git a/javascript/materialxnode/dist/Images/VSCode_Environment2.png b/javascript/shader_editor/dist/Images/VSCode_Environment2.png similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_Environment2.png rename to javascript/shader_editor/dist/Images/VSCode_Environment2.png diff --git a/javascript/materialxnode/dist/Images/VSCode_Environment2.webp b/javascript/shader_editor/dist/Images/VSCode_Environment2.webp similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_Environment2.webp rename to javascript/shader_editor/dist/Images/VSCode_Environment2.webp diff --git a/javascript/materialxnode/dist/Images/VSCode_Jupyter.png b/javascript/shader_editor/dist/Images/VSCode_Jupyter.png similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_Jupyter.png rename to javascript/shader_editor/dist/Images/VSCode_Jupyter.png diff --git a/javascript/materialxnode/dist/Images/VSCode_PythonModules.png b/javascript/shader_editor/dist/Images/VSCode_PythonModules.png similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_PythonModules.png rename to javascript/shader_editor/dist/Images/VSCode_PythonModules.png diff --git a/javascript/materialxnode/dist/Images/VSCode_Python_Markdown_Example.png b/javascript/shader_editor/dist/Images/VSCode_Python_Markdown_Example.png similarity index 100% rename from javascript/materialxnode/dist/Images/VSCode_Python_Markdown_Example.png rename to javascript/shader_editor/dist/Images/VSCode_Python_Markdown_Example.png diff --git a/javascript/materialxnode/dist/Images/acescg_mermaid_out_in.svg b/javascript/shader_editor/dist/Images/acescg_mermaid_out_in.svg similarity index 100% rename from javascript/materialxnode/dist/Images/acescg_mermaid_out_in.svg rename to javascript/shader_editor/dist/Images/acescg_mermaid_out_in.svg diff --git a/javascript/materialxtoy/Images/adsk.png b/javascript/shader_editor/dist/Images/adsk.png similarity index 100% rename from javascript/materialxtoy/Images/adsk.png rename to javascript/shader_editor/dist/Images/adsk.png diff --git a/javascript/materialxnode/dist/Images/architecture_overview.svg b/javascript/shader_editor/dist/Images/architecture_overview.svg similarity index 100% rename from javascript/materialxnode/dist/Images/architecture_overview.svg rename to javascript/shader_editor/dist/Images/architecture_overview.svg diff --git a/javascript/materialxtoy/Images/arrow_down.svg b/javascript/shader_editor/dist/Images/arrow_down.svg similarity index 100% rename from javascript/materialxtoy/Images/arrow_down.svg rename to javascript/shader_editor/dist/Images/arrow_down.svg diff --git a/javascript/materialxtoy/Images/arrow_down_white.svg b/javascript/shader_editor/dist/Images/arrow_down_white.svg similarity index 100% rename from javascript/materialxtoy/Images/arrow_down_white.svg rename to javascript/shader_editor/dist/Images/arrow_down_white.svg diff --git a/javascript/materialxtoy/Images/arrow_up.svg b/javascript/shader_editor/dist/Images/arrow_up.svg similarity index 100% rename from javascript/materialxtoy/Images/arrow_up.svg rename to javascript/shader_editor/dist/Images/arrow_up.svg diff --git a/javascript/materialxtoy/Images/arrow_up_white.svg b/javascript/shader_editor/dist/Images/arrow_up_white.svg similarity index 100% rename from javascript/materialxtoy/Images/arrow_up_white.svg rename to javascript/shader_editor/dist/Images/arrow_up_white.svg diff --git a/javascript/materialxnode/dist/Images/auguest_update.png b/javascript/shader_editor/dist/Images/auguest_update.png similarity index 100% rename from javascript/materialxnode/dist/Images/auguest_update.png rename to javascript/shader_editor/dist/Images/auguest_update.png diff --git a/javascript/materialxnode/dist/Images/background_camera_options_reference_pages1.png b/javascript/shader_editor/dist/Images/background_camera_options_reference_pages1.png similarity index 100% rename from javascript/materialxnode/dist/Images/background_camera_options_reference_pages1.png rename to javascript/shader_editor/dist/Images/background_camera_options_reference_pages1.png diff --git a/javascript/materialxnode/dist/Images/background_camera_options_reference_pages2.png b/javascript/shader_editor/dist/Images/background_camera_options_reference_pages2.png similarity index 100% rename from javascript/materialxnode/dist/Images/background_camera_options_reference_pages2.png rename to javascript/shader_editor/dist/Images/background_camera_options_reference_pages2.png diff --git a/javascript/materialxnode/dist/Images/background_camera_options_reference_pages3.png b/javascript/shader_editor/dist/Images/background_camera_options_reference_pages3.png similarity index 100% rename from javascript/materialxnode/dist/Images/background_camera_options_reference_pages3.png rename to javascript/shader_editor/dist/Images/background_camera_options_reference_pages3.png diff --git a/javascript/materialxnode/dist/Images/background_switch.svg b/javascript/shader_editor/dist/Images/background_switch.svg similarity index 100% rename from javascript/materialxnode/dist/Images/background_switch.svg rename to javascript/shader_editor/dist/Images/background_switch.svg diff --git a/javascript/materialxnode/dist/Images/bernard_filtered.png b/javascript/shader_editor/dist/Images/bernard_filtered.png similarity index 100% rename from javascript/materialxnode/dist/Images/bernard_filtered.png rename to javascript/shader_editor/dist/Images/bernard_filtered.png diff --git a/javascript/materialxnode/dist/Images/black_bar.png b/javascript/shader_editor/dist/Images/black_bar.png similarity index 100% rename from javascript/materialxnode/dist/Images/black_bar.png rename to javascript/shader_editor/dist/Images/black_bar.png diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png b/javascript/shader_editor/dist/Images/boombox/BoomBox_baseColor.png similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png rename to javascript/shader_editor/dist/Images/boombox/BoomBox_baseColor.png diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png b/javascript/shader_editor/dist/Images/boombox/BoomBox_emissive.png similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png rename to javascript/shader_editor/dist/Images/boombox/BoomBox_emissive.png diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png b/javascript/shader_editor/dist/Images/boombox/BoomBox_normal.png similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png rename to javascript/shader_editor/dist/Images/boombox/BoomBox_normal.png diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png b/javascript/shader_editor/dist/Images/boombox/BoomBox_occlusionRoughnessMetallic.png similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png rename to javascript/shader_editor/dist/Images/boombox/BoomBox_occlusionRoughnessMetallic.png diff --git a/javascript/materialxnode/dist/resources/Images/brass_color.jpg b/javascript/shader_editor/dist/Images/brass_color.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brass_color.jpg rename to javascript/shader_editor/dist/Images/brass_color.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brass_roughness.jpg b/javascript/shader_editor/dist/Images/brass_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brass_roughness.jpg rename to javascript/shader_editor/dist/Images/brass_roughness.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_base_gray.jpg b/javascript/shader_editor/dist/Images/brick_base_gray.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_base_gray.jpg rename to javascript/shader_editor/dist/Images/brick_base_gray.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_dirt_mask.jpg b/javascript/shader_editor/dist/Images/brick_dirt_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_dirt_mask.jpg rename to javascript/shader_editor/dist/Images/brick_dirt_mask.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_mask.jpg b/javascript/shader_editor/dist/Images/brick_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_mask.jpg rename to javascript/shader_editor/dist/Images/brick_mask.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_normal.jpg b/javascript/shader_editor/dist/Images/brick_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_normal.jpg rename to javascript/shader_editor/dist/Images/brick_normal.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_roughness.jpg b/javascript/shader_editor/dist/Images/brick_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_roughness.jpg rename to javascript/shader_editor/dist/Images/brick_roughness.jpg diff --git a/javascript/materialxnode/dist/resources/Images/brick_variation_mask.jpg b/javascript/shader_editor/dist/Images/brick_variation_mask.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/brick_variation_mask.jpg rename to javascript/shader_editor/dist/Images/brick_variation_mask.jpg diff --git a/javascript/materialxnode/dist/Images/camera_reset.svg b/javascript/shader_editor/dist/Images/camera_reset.svg similarity index 100% rename from javascript/materialxnode/dist/Images/camera_reset.svg rename to javascript/shader_editor/dist/Images/camera_reset.svg diff --git a/javascript/materialxnode/dist/Images/caret-down-fill.svg b/javascript/shader_editor/dist/Images/caret-down-fill.svg similarity index 100% rename from javascript/materialxnode/dist/Images/caret-down-fill.svg rename to javascript/shader_editor/dist/Images/caret-down-fill.svg diff --git a/javascript/materialxnode/dist/Images/caret-right-fill.svg b/javascript/shader_editor/dist/Images/caret-right-fill.svg similarity index 100% rename from javascript/materialxnode/dist/Images/caret-right-fill.svg rename to javascript/shader_editor/dist/Images/caret-right-fill.svg diff --git a/javascript/materialxnode/dist/Images/checkerboard_graph_nodeeditor.png b/javascript/shader_editor/dist/Images/checkerboard_graph_nodeeditor.png similarity index 100% rename from javascript/materialxnode/dist/Images/checkerboard_graph_nodeeditor.png rename to javascript/shader_editor/dist/Images/checkerboard_graph_nodeeditor.png diff --git a/javascript/materialxnode/dist/Images/checkerboard_mermaid_graph.svg b/javascript/shader_editor/dist/Images/checkerboard_mermaid_graph.svg similarity index 100% rename from javascript/materialxnode/dist/Images/checkerboard_mermaid_graph.svg rename to javascript/shader_editor/dist/Images/checkerboard_mermaid_graph.svg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_black_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_black_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_black_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_black_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_shared_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_shared_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_white_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_white_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/bishop_white_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/bishop_white_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/castle_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/castle_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/castle_shared_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/castle_shared_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/castle_shared_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/castle_shared_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/castle_shared_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/castle_shared_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/castle_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/castle_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/chessboard_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/chessboard_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/chessboard_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/chessboard_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/chessboard_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/chessboard_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/chessboard_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/chessboard_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/king_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/king_black_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_black_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/king_black_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_black_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/king_shared_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_shared_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg b/javascript/shader_editor/dist/Images/chess_set/king_shared_scattering.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_shared_scattering.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/king_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/king_white_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_white_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/king_white_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/king_white_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_black_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_black_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_black_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_black_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_white_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_white_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/knight_white_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/knight_white_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/pawn_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/pawn_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/pawn_shared_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/pawn_shared_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/pawn_shared_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/pawn_shared_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/pawn_shared_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/pawn_shared_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/pawn_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/pawn_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_black_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_black_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_black_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_black_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_black_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_black_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_shared_metallic.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_shared_metallic.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_shared_scattering.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_shared_scattering.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_white_base_color.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_white_base_color.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_white_normal.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_white_normal.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg b/javascript/shader_editor/dist/Images/chess_set/queen_white_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg rename to javascript/shader_editor/dist/Images/chess_set/queen_white_roughness.jpg diff --git a/javascript/materialxtoy/Images/clipboard.svg b/javascript/shader_editor/dist/Images/clipboard.svg similarity index 100% rename from javascript/materialxtoy/Images/clipboard.svg rename to javascript/shader_editor/dist/Images/clipboard.svg diff --git a/javascript/materialxtoy/Images/clipboard_white.svg b/javascript/shader_editor/dist/Images/clipboard_white.svg similarity index 100% rename from javascript/materialxtoy/Images/clipboard_white.svg rename to javascript/shader_editor/dist/Images/clipboard_white.svg diff --git a/javascript/materialxnode/dist/resources/Images/cloth.bmp b/javascript/shader_editor/dist/Images/cloth.bmp similarity index 100% rename from javascript/materialxnode/dist/resources/Images/cloth.bmp rename to javascript/shader_editor/dist/Images/cloth.bmp diff --git a/javascript/materialxnode/dist/resources/Images/cloth.gif b/javascript/shader_editor/dist/Images/cloth.gif similarity index 100% rename from javascript/materialxnode/dist/resources/Images/cloth.gif rename to javascript/shader_editor/dist/Images/cloth.gif diff --git a/javascript/materialxnode/dist/resources/Images/cloth.jpg b/javascript/shader_editor/dist/Images/cloth.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/cloth.jpg rename to javascript/shader_editor/dist/Images/cloth.jpg diff --git a/javascript/materialxnode/dist/resources/Images/cloth.png b/javascript/shader_editor/dist/Images/cloth.png similarity index 100% rename from javascript/materialxnode/dist/resources/Images/cloth.png rename to javascript/shader_editor/dist/Images/cloth.png diff --git a/javascript/materialxnode/dist/resources/Images/cloth.tga b/javascript/shader_editor/dist/Images/cloth.tga similarity index 100% rename from javascript/materialxnode/dist/resources/Images/cloth.tga rename to javascript/shader_editor/dist/Images/cloth.tga diff --git a/javascript/materialxnode/dist/Images/cm_nodedefs.png b/javascript/shader_editor/dist/Images/cm_nodedefs.png similarity index 100% rename from javascript/materialxnode/dist/Images/cm_nodedefs.png rename to javascript/shader_editor/dist/Images/cm_nodedefs.png diff --git a/javascript/materialxnode/dist/Images/code-square.svg b/javascript/shader_editor/dist/Images/code-square.svg similarity index 100% rename from javascript/materialxnode/dist/Images/code-square.svg rename to javascript/shader_editor/dist/Images/code-square.svg diff --git a/javascript/materialxnode/dist/Images/codespace_extension.png b/javascript/shader_editor/dist/Images/codespace_extension.png similarity index 100% rename from javascript/materialxnode/dist/Images/codespace_extension.png rename to javascript/shader_editor/dist/Images/codespace_extension.png diff --git a/javascript/materialxnode/dist/Images/codespace_packages.png b/javascript/shader_editor/dist/Images/codespace_packages.png similarity index 100% rename from javascript/materialxnode/dist/Images/codespace_packages.png rename to javascript/shader_editor/dist/Images/codespace_packages.png diff --git a/javascript/materialxnode/dist/Images/codespace_usd_install.png b/javascript/shader_editor/dist/Images/codespace_usd_install.png similarity index 100% rename from javascript/materialxnode/dist/Images/codespace_usd_install.png rename to javascript/shader_editor/dist/Images/codespace_usd_install.png diff --git a/javascript/materialxnode/dist/Images/codespace_vscode_synced.png b/javascript/shader_editor/dist/Images/codespace_vscode_synced.png similarity index 100% rename from javascript/materialxnode/dist/Images/codespace_vscode_synced.png rename to javascript/shader_editor/dist/Images/codespace_vscode_synced.png diff --git a/javascript/materialxnode/dist/Images/colab_github_notebook_access.png b/javascript/shader_editor/dist/Images/colab_github_notebook_access.png similarity index 100% rename from javascript/materialxnode/dist/Images/colab_github_notebook_access.png rename to javascript/shader_editor/dist/Images/colab_github_notebook_access.png diff --git a/javascript/materialxnode/dist/Images/colable_github_setup.png b/javascript/shader_editor/dist/Images/colable_github_setup.png similarity index 100% rename from javascript/materialxnode/dist/Images/colable_github_setup.png rename to javascript/shader_editor/dist/Images/colable_github_setup.png diff --git a/javascript/materialxnode/dist/Images/colorspace_input_example.png b/javascript/shader_editor/dist/Images/colorspace_input_example.png similarity index 100% rename from javascript/materialxnode/dist/Images/colorspace_input_example.png rename to javascript/shader_editor/dist/Images/colorspace_input_example.png diff --git a/javascript/materialxnode/dist/Images/copillot.svg b/javascript/shader_editor/dist/Images/copillot.svg similarity index 100% rename from javascript/materialxnode/dist/Images/copillot.svg rename to javascript/shader_editor/dist/Images/copillot.svg diff --git a/javascript/materialxnode/dist/Images/copilot_chat_darkmode_example.png b/javascript/shader_editor/dist/Images/copilot_chat_darkmode_example.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_chat_darkmode_example.png rename to javascript/shader_editor/dist/Images/copilot_chat_darkmode_example.png diff --git a/javascript/materialxnode/dist/Images/copilot_chat_plugin.png b/javascript/shader_editor/dist/Images/copilot_chat_plugin.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_chat_plugin.png rename to javascript/shader_editor/dist/Images/copilot_chat_plugin.png diff --git a/javascript/materialxnode/dist/Images/copilot_fixthis.png b/javascript/shader_editor/dist/Images/copilot_fixthis.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_fixthis.png rename to javascript/shader_editor/dist/Images/copilot_fixthis.png diff --git a/javascript/materialxnode/dist/Images/copilot_function_complete.png b/javascript/shader_editor/dist/Images/copilot_function_complete.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_function_complete.png rename to javascript/shader_editor/dist/Images/copilot_function_complete.png diff --git a/javascript/materialxnode/dist/Images/copilot_perffix.png b/javascript/shader_editor/dist/Images/copilot_perffix.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_perffix.png rename to javascript/shader_editor/dist/Images/copilot_perffix.png diff --git a/javascript/materialxnode/dist/Images/copilot_plugin.png b/javascript/shader_editor/dist/Images/copilot_plugin.png similarity index 100% rename from javascript/materialxnode/dist/Images/copilot_plugin.png rename to javascript/shader_editor/dist/Images/copilot_plugin.png diff --git a/javascript/materialxtoy/Images/copy-regular.svg b/javascript/shader_editor/dist/Images/copy-regular.svg similarity index 100% rename from javascript/materialxtoy/Images/copy-regular.svg rename to javascript/shader_editor/dist/Images/copy-regular.svg diff --git a/javascript/materialxtoy/Images/copy-regular_white.svg b/javascript/shader_editor/dist/Images/copy-regular_white.svg similarity index 100% rename from javascript/materialxtoy/Images/copy-regular_white.svg rename to javascript/shader_editor/dist/Images/copy-regular_white.svg diff --git a/javascript/materialxnode/dist/Images/copycontents_document.svg b/javascript/shader_editor/dist/Images/copycontents_document.svg similarity index 100% rename from javascript/materialxnode/dist/Images/copycontents_document.svg rename to javascript/shader_editor/dist/Images/copycontents_document.svg diff --git a/javascript/materialxnode/dist/Images/create_codespace_github.png b/javascript/shader_editor/dist/Images/create_codespace_github.png similarity index 100% rename from javascript/materialxnode/dist/Images/create_codespace_github.png rename to javascript/shader_editor/dist/Images/create_codespace_github.png diff --git a/javascript/materialxnode/dist/Images/create_codespace_github_2.png b/javascript/shader_editor/dist/Images/create_codespace_github_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/create_codespace_github_2.png rename to javascript/shader_editor/dist/Images/create_codespace_github_2.png diff --git a/javascript/materialxnode/dist/Images/create_codespace_github_editor_prefs.png b/javascript/shader_editor/dist/Images/create_codespace_github_editor_prefs.png similarity index 100% rename from javascript/materialxnode/dist/Images/create_codespace_github_editor_prefs.png rename to javascript/shader_editor/dist/Images/create_codespace_github_editor_prefs.png diff --git a/javascript/materialxnode/dist/Images/definition_diagrams.drawio b/javascript/shader_editor/dist/Images/definition_diagrams.drawio similarity index 100% rename from javascript/materialxnode/dist/Images/definition_diagrams.drawio rename to javascript/shader_editor/dist/Images/definition_diagrams.drawio diff --git a/javascript/materialxnode/dist/Images/definition_diagrams.drawio.pdf b/javascript/shader_editor/dist/Images/definition_diagrams.drawio.pdf similarity index 100% rename from javascript/materialxnode/dist/Images/definition_diagrams.drawio.pdf rename to javascript/shader_editor/dist/Images/definition_diagrams.drawio.pdf diff --git a/javascript/materialxnode/dist/Images/definition_inherits_example.png b/javascript/shader_editor/dist/Images/definition_inherits_example.png similarity index 100% rename from javascript/materialxnode/dist/Images/definition_inherits_example.png rename to javascript/shader_editor/dist/Images/definition_inherits_example.png diff --git a/javascript/materialxnode/dist/Images/definition_library_org.jpg b/javascript/shader_editor/dist/Images/definition_library_org.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/definition_library_org.jpg rename to javascript/shader_editor/dist/Images/definition_library_org.jpg diff --git a/javascript/materialxnode/dist/Images/definition_library_org.png b/javascript/shader_editor/dist/Images/definition_library_org.png similarity index 100% rename from javascript/materialxnode/dist/Images/definition_library_org.png rename to javascript/shader_editor/dist/Images/definition_library_org.png diff --git a/javascript/materialxnode/dist/Images/diagram-3.svg b/javascript/shader_editor/dist/Images/diagram-3.svg similarity index 100% rename from javascript/materialxnode/dist/Images/diagram-3.svg rename to javascript/shader_editor/dist/Images/diagram-3.svg diff --git a/javascript/materialxnode/dist/Images/diffuse_env.hdr b/javascript/shader_editor/dist/Images/diffuse_env.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/diffuse_env.hdr rename to javascript/shader_editor/dist/Images/diffuse_env.hdr diff --git a/javascript/materialxnode/dist/Images/document_converted_interop.svg b/javascript/shader_editor/dist/Images/document_converted_interop.svg similarity index 100% rename from javascript/materialxnode/dist/Images/document_converted_interop.svg rename to javascript/shader_editor/dist/Images/document_converted_interop.svg diff --git a/javascript/materialxnode/dist/Images/downgrade_document.svg b/javascript/shader_editor/dist/Images/downgrade_document.svg similarity index 100% rename from javascript/materialxnode/dist/Images/downgrade_document.svg rename to javascript/shader_editor/dist/Images/downgrade_document.svg diff --git a/javascript/materialxnode/dist/Images/draw_copy_graph_option.png b/javascript/shader_editor/dist/Images/draw_copy_graph_option.png similarity index 100% rename from javascript/materialxnode/dist/Images/draw_copy_graph_option.png rename to javascript/shader_editor/dist/Images/draw_copy_graph_option.png diff --git a/javascript/materialxnode/dist/Images/dreifaltigkeitsberg_1k.hdr b/javascript/shader_editor/dist/Images/dreifaltigkeitsberg_1k.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/dreifaltigkeitsberg_1k.hdr rename to javascript/shader_editor/dist/Images/dreifaltigkeitsberg_1k.hdr diff --git a/javascript/materialxnode/dist/Images/export_document.svg b/javascript/shader_editor/dist/Images/export_document.svg similarity index 100% rename from javascript/materialxnode/dist/Images/export_document.svg rename to javascript/shader_editor/dist/Images/export_document.svg diff --git a/javascript/materialxnode/dist/Images/extract_connection.svg b/javascript/shader_editor/dist/Images/extract_connection.svg similarity index 100% rename from javascript/materialxnode/dist/Images/extract_connection.svg rename to javascript/shader_editor/dist/Images/extract_connection.svg diff --git a/javascript/materialxnode/dist/Images/file-earmark-arrow-down.svg b/javascript/shader_editor/dist/Images/file-earmark-arrow-down.svg similarity index 100% rename from javascript/materialxnode/dist/Images/file-earmark-arrow-down.svg rename to javascript/shader_editor/dist/Images/file-earmark-arrow-down.svg diff --git a/javascript/materialxnode/dist/Images/file-earmark-arrow-up.svg b/javascript/shader_editor/dist/Images/file-earmark-arrow-up.svg similarity index 100% rename from javascript/materialxnode/dist/Images/file-earmark-arrow-up.svg rename to javascript/shader_editor/dist/Images/file-earmark-arrow-up.svg diff --git a/javascript/materialxnode/dist/Images/first_version.png b/javascript/shader_editor/dist/Images/first_version.png similarity index 100% rename from javascript/materialxnode/dist/Images/first_version.png rename to javascript/shader_editor/dist/Images/first_version.png diff --git a/javascript/materialxnode/dist/Images/generative_docs.svg b/javascript/shader_editor/dist/Images/generative_docs.svg similarity index 100% rename from javascript/materialxnode/dist/Images/generative_docs.svg rename to javascript/shader_editor/dist/Images/generative_docs.svg diff --git a/javascript/materialxnode/dist/Images/generative_docs2.svg b/javascript/shader_editor/dist/Images/generative_docs2.svg similarity index 100% rename from javascript/materialxnode/dist/Images/generative_docs2.svg rename to javascript/shader_editor/dist/Images/generative_docs2.svg diff --git a/javascript/materialxnode/dist/Images/generative_docs3.svg b/javascript/shader_editor/dist/Images/generative_docs3.svg similarity index 100% rename from javascript/materialxnode/dist/Images/generative_docs3.svg rename to javascript/shader_editor/dist/Images/generative_docs3.svg diff --git a/javascript/materialxnode/dist/Images/glTF_import_graphEditor.png b/javascript/shader_editor/dist/Images/glTF_import_graphEditor.png similarity index 100% rename from javascript/materialxnode/dist/Images/glTF_import_graphEditor.png rename to javascript/shader_editor/dist/Images/glTF_import_graphEditor.png diff --git a/javascript/materialxnode/dist/Images/gltf_import-graphEditor2.png b/javascript/shader_editor/dist/Images/gltf_import-graphEditor2.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_import-graphEditor2.png rename to javascript/shader_editor/dist/Images/gltf_import-graphEditor2.png diff --git a/javascript/materialxtoy/Images/gltf_logo.webp b/javascript/shader_editor/dist/Images/gltf_logo.webp similarity index 100% rename from javascript/materialxtoy/Images/gltf_logo.webp rename to javascript/shader_editor/dist/Images/gltf_logo.webp diff --git a/javascript/materialxnode/dist/Images/gltf_pbr_interactive_preview_reference.png b/javascript/shader_editor/dist/Images/gltf_pbr_interactive_preview_reference.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_pbr_interactive_preview_reference.png rename to javascript/shader_editor/dist/Images/gltf_pbr_interactive_preview_reference.png diff --git a/javascript/materialxnode/dist/Images/gltf_sample_ref_flattened_usdview.png b/javascript/shader_editor/dist/Images/gltf_sample_ref_flattened_usdview.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_sample_ref_flattened_usdview.png rename to javascript/shader_editor/dist/Images/gltf_sample_ref_flattened_usdview.png diff --git a/javascript/materialxnode/dist/Images/gltf_target_graph.png b/javascript/shader_editor/dist/Images/gltf_target_graph.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_target_graph.png rename to javascript/shader_editor/dist/Images/gltf_target_graph.png diff --git a/javascript/materialxnode/dist/Images/gltf_to_mtlx_boombox_with_axes.png b/javascript/shader_editor/dist/Images/gltf_to_mtlx_boombox_with_axes.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_to_mtlx_boombox_with_axes.png rename to javascript/shader_editor/dist/Images/gltf_to_mtlx_boombox_with_axes.png diff --git a/javascript/materialxnode/dist/Images/gltf_viewer_poster.png b/javascript/shader_editor/dist/Images/gltf_viewer_poster.png similarity index 100% rename from javascript/materialxnode/dist/Images/gltf_viewer_poster.png rename to javascript/shader_editor/dist/Images/gltf_viewer_poster.png diff --git a/javascript/materialxnode/dist/Images/google_colab_sample.png b/javascript/shader_editor/dist/Images/google_colab_sample.png similarity index 100% rename from javascript/materialxnode/dist/Images/google_colab_sample.png rename to javascript/shader_editor/dist/Images/google_colab_sample.png diff --git a/javascript/materialxnode/dist/Images/google_drive_colab.png b/javascript/shader_editor/dist/Images/google_drive_colab.png similarity index 100% rename from javascript/materialxnode/dist/Images/google_drive_colab.png rename to javascript/shader_editor/dist/Images/google_drive_colab.png diff --git a/javascript/materialxnode/dist/Images/graph.png b/javascript/shader_editor/dist/Images/graph.png similarity index 100% rename from javascript/materialxnode/dist/Images/graph.png rename to javascript/shader_editor/dist/Images/graph.png diff --git a/javascript/materialxnode/dist/Images/graph_editing_util_april_2024.png b/javascript/shader_editor/dist/Images/graph_editing_util_april_2024.png similarity index 100% rename from javascript/materialxnode/dist/Images/graph_editing_util_april_2024.png rename to javascript/shader_editor/dist/Images/graph_editing_util_april_2024.png diff --git a/javascript/materialxnode/dist/Images/graph_editing_util_april_2024.webp b/javascript/shader_editor/dist/Images/graph_editing_util_april_2024.webp similarity index 100% rename from javascript/materialxnode/dist/Images/graph_editing_util_april_2024.webp rename to javascript/shader_editor/dist/Images/graph_editing_util_april_2024.webp diff --git a/javascript/materialxnode/dist/Images/graph_editor_supported.png b/javascript/shader_editor/dist/Images/graph_editor_supported.png similarity index 100% rename from javascript/materialxnode/dist/Images/graph_editor_supported.png rename to javascript/shader_editor/dist/Images/graph_editor_supported.png diff --git a/javascript/materialxnode/dist/resources/Images/greysphere_calibration.png b/javascript/shader_editor/dist/Images/greysphere_calibration.png similarity index 100% rename from javascript/materialxnode/dist/resources/Images/greysphere_calibration.png rename to javascript/shader_editor/dist/Images/greysphere_calibration.png diff --git a/javascript/materialxnode/dist/resources/Images/grid.png b/javascript/shader_editor/dist/Images/grid.png similarity index 100% rename from javascript/materialxnode/dist/resources/Images/grid.png rename to javascript/shader_editor/dist/Images/grid.png diff --git a/javascript/materialxnode/dist/Images/hair_material.png b/javascript/shader_editor/dist/Images/hair_material.png similarity index 100% rename from javascript/materialxnode/dist/Images/hair_material.png rename to javascript/shader_editor/dist/Images/hair_material.png diff --git a/javascript/materialxnode/dist/Images/hide.svg b/javascript/shader_editor/dist/Images/hide.svg similarity index 100% rename from javascript/materialxnode/dist/Images/hide.svg rename to javascript/shader_editor/dist/Images/hide.svg diff --git a/javascript/materialxnode/dist/Images/home.png b/javascript/shader_editor/dist/Images/home.png similarity index 100% rename from javascript/materialxnode/dist/Images/home.png rename to javascript/shader_editor/dist/Images/home.png diff --git a/javascript/materialxnode/dist/Images/houdini_disallowed_nodes.png b/javascript/shader_editor/dist/Images/houdini_disallowed_nodes.png similarity index 100% rename from javascript/materialxnode/dist/Images/houdini_disallowed_nodes.png rename to javascript/shader_editor/dist/Images/houdini_disallowed_nodes.png diff --git a/javascript/materialxtoy/Images/houdini_icon.webp b/javascript/shader_editor/dist/Images/houdini_icon.webp similarity index 100% rename from javascript/materialxtoy/Images/houdini_icon.webp rename to javascript/shader_editor/dist/Images/houdini_icon.webp diff --git a/javascript/materialxnode/dist/Images/houdini_maya_blender_library_usage.png b/javascript/shader_editor/dist/Images/houdini_maya_blender_library_usage.png similarity index 100% rename from javascript/materialxnode/dist/Images/houdini_maya_blender_library_usage.png rename to javascript/shader_editor/dist/Images/houdini_maya_blender_library_usage.png diff --git a/javascript/materialxnode/dist/Images/image_filter_graph.md b/javascript/shader_editor/dist/Images/image_filter_graph.md similarity index 100% rename from javascript/materialxnode/dist/Images/image_filter_graph.md rename to javascript/shader_editor/dist/Images/image_filter_graph.md diff --git a/javascript/materialxnode/dist/Images/image_filter_graph.png b/javascript/shader_editor/dist/Images/image_filter_graph.png similarity index 100% rename from javascript/materialxnode/dist/Images/image_filter_graph.png rename to javascript/shader_editor/dist/Images/image_filter_graph.png diff --git a/javascript/materialxnode/dist/Images/image_filter_graph.svg b/javascript/shader_editor/dist/Images/image_filter_graph.svg similarity index 100% rename from javascript/materialxnode/dist/Images/image_filter_graph.svg rename to javascript/shader_editor/dist/Images/image_filter_graph.svg diff --git a/javascript/materialxnode/dist/Images/image_filter_graph_LR.svg b/javascript/shader_editor/dist/Images/image_filter_graph_LR.svg similarity index 100% rename from javascript/materialxnode/dist/Images/image_filter_graph_LR.svg rename to javascript/shader_editor/dist/Images/image_filter_graph_LR.svg diff --git a/javascript/materialxnode/dist/Images/impl_diagram1.svg b/javascript/shader_editor/dist/Images/impl_diagram1.svg similarity index 100% rename from javascript/materialxnode/dist/Images/impl_diagram1.svg rename to javascript/shader_editor/dist/Images/impl_diagram1.svg diff --git a/javascript/materialxnode/dist/Images/impl_diagram2.svg b/javascript/shader_editor/dist/Images/impl_diagram2.svg similarity index 100% rename from javascript/materialxnode/dist/Images/impl_diagram2.svg rename to javascript/shader_editor/dist/Images/impl_diagram2.svg diff --git a/javascript/materialxnode/dist/Images/import_document.svg b/javascript/shader_editor/dist/Images/import_document.svg similarity index 100% rename from javascript/materialxnode/dist/Images/import_document.svg rename to javascript/shader_editor/dist/Images/import_document.svg diff --git a/javascript/materialxnode/dist/Images/import_document_sourceURI.svg b/javascript/shader_editor/dist/Images/import_document_sourceURI.svg similarity index 100% rename from javascript/materialxnode/dist/Images/import_document_sourceURI.svg rename to javascript/shader_editor/dist/Images/import_document_sourceURI.svg diff --git a/javascript/materialxnode/dist/Images/info-circle.svg b/javascript/shader_editor/dist/Images/info-circle.svg similarity index 100% rename from javascript/materialxnode/dist/Images/info-circle.svg rename to javascript/shader_editor/dist/Images/info-circle.svg diff --git a/javascript/materialxnode/dist/Images/interactive_nodedefs.png b/javascript/shader_editor/dist/Images/interactive_nodedefs.png similarity index 100% rename from javascript/materialxnode/dist/Images/interactive_nodedefs.png rename to javascript/shader_editor/dist/Images/interactive_nodedefs.png diff --git a/javascript/materialxnode/dist/Images/interactive_nodedefs_2.png b/javascript/shader_editor/dist/Images/interactive_nodedefs_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/interactive_nodedefs_2.png rename to javascript/shader_editor/dist/Images/interactive_nodedefs_2.png diff --git a/javascript/materialxnode/dist/Images/interop_ecosystem.svg b/javascript/shader_editor/dist/Images/interop_ecosystem.svg similarity index 100% rename from javascript/materialxnode/dist/Images/interop_ecosystem.svg rename to javascript/shader_editor/dist/Images/interop_ecosystem.svg diff --git a/javascript/materialxnode/dist/Images/jan_2024_update_page.png b/javascript/shader_editor/dist/Images/jan_2024_update_page.png similarity index 100% rename from javascript/materialxnode/dist/Images/jan_2024_update_page.png rename to javascript/shader_editor/dist/Images/jan_2024_update_page.png diff --git a/javascript/materialxnode/dist/Images/js_codegen_render.png b/javascript/shader_editor/dist/Images/js_codegen_render.png similarity index 100% rename from javascript/materialxnode/dist/Images/js_codegen_render.png rename to javascript/shader_editor/dist/Images/js_codegen_render.png diff --git a/javascript/materialxnode/dist/Images/js_doc_hilight_graph.png b/javascript/shader_editor/dist/Images/js_doc_hilight_graph.png similarity index 100% rename from javascript/materialxnode/dist/Images/js_doc_hilight_graph.png rename to javascript/shader_editor/dist/Images/js_doc_hilight_graph.png diff --git a/javascript/materialxnode/dist/Images/json_graph_snap.png b/javascript/shader_editor/dist/Images/json_graph_snap.png similarity index 100% rename from javascript/materialxnode/dist/Images/json_graph_snap.png rename to javascript/shader_editor/dist/Images/json_graph_snap.png diff --git a/javascript/materialxnode/dist/Images/july_2023_update.png b/javascript/shader_editor/dist/Images/july_2023_update.png similarity index 100% rename from javascript/materialxnode/dist/Images/july_2023_update.png rename to javascript/shader_editor/dist/Images/july_2023_update.png diff --git a/javascript/materialxnode/dist/Images/june_1388_update1.png b/javascript/shader_editor/dist/Images/june_1388_update1.png similarity index 100% rename from javascript/materialxnode/dist/Images/june_1388_update1.png rename to javascript/shader_editor/dist/Images/june_1388_update1.png diff --git a/javascript/materialxnode/dist/Images/layout-text-sidebar.svg b/javascript/shader_editor/dist/Images/layout-text-sidebar.svg similarity index 100% rename from javascript/materialxnode/dist/Images/layout-text-sidebar.svg rename to javascript/shader_editor/dist/Images/layout-text-sidebar.svg diff --git a/javascript/materialxnode/dist/Images/learning_setup.png b/javascript/shader_editor/dist/Images/learning_setup.png similarity index 100% rename from javascript/materialxnode/dist/Images/learning_setup.png rename to javascript/shader_editor/dist/Images/learning_setup.png diff --git a/javascript/materialxnode/dist/Images/learning_setup.svg b/javascript/shader_editor/dist/Images/learning_setup.svg similarity index 100% rename from javascript/materialxnode/dist/Images/learning_setup.svg rename to javascript/shader_editor/dist/Images/learning_setup.svg diff --git a/javascript/materialxnode/dist/Images/learning_setup2.svg b/javascript/shader_editor/dist/Images/learning_setup2.svg similarity index 100% rename from javascript/materialxnode/dist/Images/learning_setup2.svg rename to javascript/shader_editor/dist/Images/learning_setup2.svg diff --git a/javascript/materialxnode/dist/Images/learning_setup3.svg b/javascript/shader_editor/dist/Images/learning_setup3.svg similarity index 100% rename from javascript/materialxnode/dist/Images/learning_setup3.svg rename to javascript/shader_editor/dist/Images/learning_setup3.svg diff --git a/javascript/materialxnode/dist/Images/learning_setup4.svg b/javascript/shader_editor/dist/Images/learning_setup4.svg similarity index 100% rename from javascript/materialxnode/dist/Images/learning_setup4.svg rename to javascript/shader_editor/dist/Images/learning_setup4.svg diff --git a/javascript/materialxnode/dist/Images/library.png b/javascript/shader_editor/dist/Images/library.png similarity index 100% rename from javascript/materialxnode/dist/Images/library.png rename to javascript/shader_editor/dist/Images/library.png diff --git a/javascript/materialxnode/dist/Images/logo.svg b/javascript/shader_editor/dist/Images/logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/logo.svg rename to javascript/shader_editor/dist/Images/logo.svg diff --git a/javascript/materialxnode/dist/Images/logo3d.png b/javascript/shader_editor/dist/Images/logo3d.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d.png rename to javascript/shader_editor/dist/Images/logo3d.png diff --git a/javascript/materialxnode/dist/Images/logo3d_2.png b/javascript/shader_editor/dist/Images/logo3d_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_2.png rename to javascript/shader_editor/dist/Images/logo3d_2.png diff --git a/javascript/materialxtoy/Images/logo3d_2_small.png b/javascript/shader_editor/dist/Images/logo3d_2_small.png similarity index 100% rename from javascript/materialxtoy/Images/logo3d_2_small.png rename to javascript/shader_editor/dist/Images/logo3d_2_small.png diff --git a/javascript/materialxnode/dist/Images/logo3d_dark.png b/javascript/shader_editor/dist/Images/logo3d_dark.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_dark.png rename to javascript/shader_editor/dist/Images/logo3d_dark.png diff --git a/javascript/materialxnode/dist/Images/logo3d_dark.webp b/javascript/shader_editor/dist/Images/logo3d_dark.webp similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_dark.webp rename to javascript/shader_editor/dist/Images/logo3d_dark.webp diff --git a/javascript/materialxnode/dist/Images/logo3d_icon.png b/javascript/shader_editor/dist/Images/logo3d_icon.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_icon.png rename to javascript/shader_editor/dist/Images/logo3d_icon.png diff --git a/javascript/materialxnode/dist/Images/logo3d_wide.png b/javascript/shader_editor/dist/Images/logo3d_wide.png similarity index 100% rename from javascript/materialxnode/dist/Images/logo3d_wide.png rename to javascript/shader_editor/dist/Images/logo3d_wide.png diff --git a/javascript/materialxtoy/Images/logo_toon.png b/javascript/shader_editor/dist/Images/logo_toon.png similarity index 100% rename from javascript/materialxtoy/Images/logo_toon.png rename to javascript/shader_editor/dist/Images/logo_toon.png diff --git a/javascript/materialxtoy/Images/logo_toon2.png b/javascript/shader_editor/dist/Images/logo_toon2.png similarity index 100% rename from javascript/materialxtoy/Images/logo_toon2.png rename to javascript/shader_editor/dist/Images/logo_toon2.png diff --git a/javascript/materialxtoy/Images/logo_toon3.png b/javascript/shader_editor/dist/Images/logo_toon3.png similarity index 100% rename from javascript/materialxtoy/Images/logo_toon3.png rename to javascript/shader_editor/dist/Images/logo_toon3.png diff --git a/javascript/shader_editor/dist/Images/logo_wave3.png b/javascript/shader_editor/dist/Images/logo_wave3.png new file mode 100644 index 00000000..0689fc34 Binary files /dev/null and b/javascript/shader_editor/dist/Images/logo_wave3.png differ diff --git a/javascript/materialxnode/dist/Images/machine_shop_02_2k.hdr b/javascript/shader_editor/dist/Images/machine_shop_02_2k.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/machine_shop_02_2k.hdr rename to javascript/shader_editor/dist/Images/machine_shop_02_2k.hdr diff --git a/javascript/materialxnode/dist/Images/march_2024_1.38.9_final.png b/javascript/shader_editor/dist/Images/march_2024_1.38.9_final.png similarity index 100% rename from javascript/materialxnode/dist/Images/march_2024_1.38.9_final.png rename to javascript/shader_editor/dist/Images/march_2024_1.38.9_final.png diff --git a/javascript/materialxnode/dist/Images/markdown_logo.svg b/javascript/shader_editor/dist/Images/markdown_logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/markdown_logo.svg rename to javascript/shader_editor/dist/Images/markdown_logo.svg diff --git a/javascript/materialxnode/dist/Images/material_mobile.png b/javascript/shader_editor/dist/Images/material_mobile.png similarity index 100% rename from javascript/materialxnode/dist/Images/material_mobile.png rename to javascript/shader_editor/dist/Images/material_mobile.png diff --git a/javascript/materialxnode/dist/Images/material_section_desktop_2.png b/javascript/shader_editor/dist/Images/material_section_desktop_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/material_section_desktop_2.png rename to javascript/shader_editor/dist/Images/material_section_desktop_2.png diff --git a/javascript/materialxtoy/Images/materialtoy_ai_3.svg b/javascript/shader_editor/dist/Images/materialtoy_ai_3.svg similarity index 100% rename from javascript/materialxtoy/Images/materialtoy_ai_3.svg rename to javascript/shader_editor/dist/Images/materialtoy_ai_3.svg diff --git a/javascript/materialxtoy/Images/materialtoy_ai_variant3.png b/javascript/shader_editor/dist/Images/materialtoy_ai_variant3.png similarity index 100% rename from javascript/materialxtoy/Images/materialtoy_ai_variant3.png rename to javascript/shader_editor/dist/Images/materialtoy_ai_variant3.png diff --git a/javascript/materialxnode/dist/Images/materialx-stacked-black.svg b/javascript/shader_editor/dist/Images/materialx-stacked-black.svg similarity index 100% rename from javascript/materialxnode/dist/Images/materialx-stacked-black.svg rename to javascript/shader_editor/dist/Images/materialx-stacked-black.svg diff --git a/javascript/materialxnode/dist/Images/materialx-stacked-color.svg b/javascript/shader_editor/dist/Images/materialx-stacked-color.svg similarity index 100% rename from javascript/materialxnode/dist/Images/materialx-stacked-color.svg rename to javascript/shader_editor/dist/Images/materialx-stacked-color.svg diff --git a/javascript/materialxtoy/Images/materialx_logo.png b/javascript/shader_editor/dist/Images/materialx_logo.png similarity index 100% rename from javascript/materialxtoy/Images/materialx_logo.png rename to javascript/shader_editor/dist/Images/materialx_logo.png diff --git a/javascript/materialxtoy/Images/materialx_logo.webp b/javascript/shader_editor/dist/Images/materialx_logo.webp similarity index 100% rename from javascript/materialxtoy/Images/materialx_logo.webp rename to javascript/shader_editor/dist/Images/materialx_logo.webp diff --git a/javascript/materialxnode/dist/Images/materialx_rendered.png b/javascript/shader_editor/dist/Images/materialx_rendered.png similarity index 100% rename from javascript/materialxnode/dist/Images/materialx_rendered.png rename to javascript/shader_editor/dist/Images/materialx_rendered.png diff --git a/javascript/materialxnode/dist/Images/materialx_rendered_2.png b/javascript/shader_editor/dist/Images/materialx_rendered_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/materialx_rendered_2.png rename to javascript/shader_editor/dist/Images/materialx_rendered_2.png diff --git a/javascript/materialxtoy/Images/materialxtoy_node_editor.svg b/javascript/shader_editor/dist/Images/materialxtoy_node_editor.svg similarity index 100% rename from javascript/materialxtoy/Images/materialxtoy_node_editor.svg rename to javascript/shader_editor/dist/Images/materialxtoy_node_editor.svg diff --git a/javascript/materialxnode/dist/Images/matthew_filtered.png b/javascript/shader_editor/dist/Images/matthew_filtered.png similarity index 100% rename from javascript/materialxnode/dist/Images/matthew_filtered.png rename to javascript/shader_editor/dist/Images/matthew_filtered.png diff --git a/javascript/materialxnode/dist/Images/maya.jpg b/javascript/shader_editor/dist/Images/maya.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/maya.jpg rename to javascript/shader_editor/dist/Images/maya.jpg diff --git a/javascript/materialxnode/dist/Images/maya.webp b/javascript/shader_editor/dist/Images/maya.webp similarity index 100% rename from javascript/materialxnode/dist/Images/maya.webp rename to javascript/shader_editor/dist/Images/maya.webp diff --git a/javascript/materialxtoy/Images/maya_surfaces.webp b/javascript/shader_editor/dist/Images/maya_surfaces.webp similarity index 100% rename from javascript/materialxtoy/Images/maya_surfaces.webp rename to javascript/shader_editor/dist/Images/maya_surfaces.webp diff --git a/javascript/materialxnode/dist/Images/mermaid-logo.png b/javascript/shader_editor/dist/Images/mermaid-logo.png similarity index 100% rename from javascript/materialxnode/dist/Images/mermaid-logo.png rename to javascript/shader_editor/dist/Images/mermaid-logo.png diff --git a/javascript/materialxnode/dist/Images/mermaid-logo.svg b/javascript/shader_editor/dist/Images/mermaid-logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/mermaid-logo.svg rename to javascript/shader_editor/dist/Images/mermaid-logo.svg diff --git a/javascript/materialxnode/dist/resources/Images/mesh_wire_norm.png b/javascript/shader_editor/dist/Images/mesh_wire_norm.png similarity index 100% rename from javascript/materialxnode/dist/resources/Images/mesh_wire_norm.png rename to javascript/shader_editor/dist/Images/mesh_wire_norm.png diff --git a/javascript/materialxnode/dist/Images/metallicSpheres_converted.png b/javascript/shader_editor/dist/Images/metallicSpheres_converted.png similarity index 100% rename from javascript/materialxnode/dist/Images/metallicSpheres_converted.png rename to javascript/shader_editor/dist/Images/metallicSpheres_converted.png diff --git a/javascript/materialxnode/dist/Images/mobile_color_no_wrap_three_columns.png b/javascript/shader_editor/dist/Images/mobile_color_no_wrap_three_columns.png similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_color_no_wrap_three_columns.png rename to javascript/shader_editor/dist/Images/mobile_color_no_wrap_three_columns.png diff --git a/javascript/materialxnode/dist/Images/mobile_color_no_wrap_three_columns.webp b/javascript/shader_editor/dist/Images/mobile_color_no_wrap_three_columns.webp similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_color_no_wrap_three_columns.webp rename to javascript/shader_editor/dist/Images/mobile_color_no_wrap_three_columns.webp diff --git a/javascript/materialxnode/dist/Images/mobile_no_wrap_color_three_columns.png b/javascript/shader_editor/dist/Images/mobile_no_wrap_color_three_columns.png similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_no_wrap_color_three_columns.png rename to javascript/shader_editor/dist/Images/mobile_no_wrap_color_three_columns.png diff --git a/javascript/materialxnode/dist/Images/mobile_no_wrap_three_columns.png b/javascript/shader_editor/dist/Images/mobile_no_wrap_three_columns.png similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_no_wrap_three_columns.png rename to javascript/shader_editor/dist/Images/mobile_no_wrap_three_columns.png diff --git a/javascript/materialxnode/dist/Images/mobile_wrap_color_material_view.png b/javascript/shader_editor/dist/Images/mobile_wrap_color_material_view.png similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_wrap_color_material_view.png rename to javascript/shader_editor/dist/Images/mobile_wrap_color_material_view.png diff --git a/javascript/materialxnode/dist/Images/mobile_wrap_material_view.png b/javascript/shader_editor/dist/Images/mobile_wrap_material_view.png similarity index 100% rename from javascript/materialxnode/dist/Images/mobile_wrap_material_view.png rename to javascript/shader_editor/dist/Images/mobile_wrap_material_view.png diff --git a/javascript/materialxnode/dist/Images/mtlx_to_gltf_materialviewer.png b/javascript/shader_editor/dist/Images/mtlx_to_gltf_materialviewer.png similarity index 100% rename from javascript/materialxnode/dist/Images/mtlx_to_gltf_materialviewer.png rename to javascript/shader_editor/dist/Images/mtlx_to_gltf_materialviewer.png diff --git a/javascript/materialxnode/dist/Images/multioutput_preview_swatches.png b/javascript/shader_editor/dist/Images/multioutput_preview_swatches.png similarity index 100% rename from javascript/materialxnode/dist/Images/multioutput_preview_swatches.png rename to javascript/shader_editor/dist/Images/multioutput_preview_swatches.png diff --git a/javascript/materialxnode/dist/Images/narrow_moonlit_road_1k.hdr b/javascript/shader_editor/dist/Images/narrow_moonlit_road_1k.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/narrow_moonlit_road_1k.hdr rename to javascript/shader_editor/dist/Images/narrow_moonlit_road_1k.hdr diff --git a/javascript/materialxnode/dist/Images/navbar.png b/javascript/shader_editor/dist/Images/navbar.png similarity index 100% rename from javascript/materialxnode/dist/Images/navbar.png rename to javascript/shader_editor/dist/Images/navbar.png diff --git a/javascript/materialxnode/dist/Images/nested_nodegraphs.png b/javascript/shader_editor/dist/Images/nested_nodegraphs.png similarity index 100% rename from javascript/materialxnode/dist/Images/nested_nodegraphs.png rename to javascript/shader_editor/dist/Images/nested_nodegraphs.png diff --git a/javascript/materialxtoy/Images/no_image.png b/javascript/shader_editor/dist/Images/no_image.png similarity index 100% rename from javascript/materialxtoy/Images/no_image.png rename to javascript/shader_editor/dist/Images/no_image.png diff --git a/javascript/materialxnode/dist/Images/no_text_logo.svg b/javascript/shader_editor/dist/Images/no_text_logo.svg similarity index 100% rename from javascript/materialxnode/dist/Images/no_text_logo.svg rename to javascript/shader_editor/dist/Images/no_text_logo.svg diff --git a/javascript/materialxnode/dist/Images/node_and_nodgraph_connections.svg b/javascript/shader_editor/dist/Images/node_and_nodgraph_connections.svg similarity index 100% rename from javascript/materialxnode/dist/Images/node_and_nodgraph_connections.svg rename to javascript/shader_editor/dist/Images/node_and_nodgraph_connections.svg diff --git a/javascript/materialxtoy/Images/nodegraph.svg b/javascript/shader_editor/dist/Images/nodegraph.svg similarity index 100% rename from javascript/materialxtoy/Images/nodegraph.svg rename to javascript/shader_editor/dist/Images/nodegraph.svg diff --git a/javascript/materialxnode/dist/Images/nodegraph_book_sample_graph.png b/javascript/shader_editor/dist/Images/nodegraph_book_sample_graph.png similarity index 100% rename from javascript/materialxnode/dist/Images/nodegraph_book_sample_graph.png rename to javascript/shader_editor/dist/Images/nodegraph_book_sample_graph.png diff --git a/javascript/materialxnode/dist/Images/nodegraph_book_sample_graph.svg b/javascript/shader_editor/dist/Images/nodegraph_book_sample_graph.svg similarity index 100% rename from javascript/materialxnode/dist/Images/nodegraph_book_sample_graph.svg rename to javascript/shader_editor/dist/Images/nodegraph_book_sample_graph.svg diff --git a/javascript/materialxtoy/Images/nodegraph_white.svg b/javascript/shader_editor/dist/Images/nodegraph_white.svg similarity index 100% rename from javascript/materialxtoy/Images/nodegraph_white.svg rename to javascript/shader_editor/dist/Images/nodegraph_white.svg diff --git a/javascript/materialxnode/dist/Images/non_color_example.png b/javascript/shader_editor/dist/Images/non_color_example.png similarity index 100% rename from javascript/materialxnode/dist/Images/non_color_example.png rename to javascript/shader_editor/dist/Images/non_color_example.png diff --git a/javascript/materialxnode/dist/Images/ocio_transforms_in_grapheditor.png b/javascript/shader_editor/dist/Images/ocio_transforms_in_grapheditor.png similarity index 100% rename from javascript/materialxnode/dist/Images/ocio_transforms_in_grapheditor.png rename to javascript/shader_editor/dist/Images/ocio_transforms_in_grapheditor.png diff --git a/javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.png b/javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.png similarity index 100% rename from javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.png rename to javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.png diff --git a/javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.svg b/javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.svg similarity index 100% rename from javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.svg rename to javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.svg diff --git a/javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.webp b/javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.webp similarity index 100% rename from javascript/materialxnode/dist/Images/openpbr_graph_jan_2024.webp rename to javascript/shader_editor/dist/Images/openpbr_graph_jan_2024.webp diff --git a/javascript/materialxtoy/Images/openpbr_logo.webp b/javascript/shader_editor/dist/Images/openpbr_logo.webp similarity index 100% rename from javascript/materialxtoy/Images/openpbr_logo.webp rename to javascript/shader_editor/dist/Images/openpbr_logo.webp diff --git a/javascript/materialxtoy/Images/openusd_logo.webp b/javascript/shader_editor/dist/Images/openusd_logo.webp similarity index 100% rename from javascript/materialxtoy/Images/openusd_logo.webp rename to javascript/shader_editor/dist/Images/openusd_logo.webp diff --git a/javascript/materialxnode/dist/Images/osd2022_gltf_distill.png b/javascript/shader_editor/dist/Images/osd2022_gltf_distill.png similarity index 100% rename from javascript/materialxnode/dist/Images/osd2022_gltf_distill.png rename to javascript/shader_editor/dist/Images/osd2022_gltf_distill.png diff --git a/javascript/materialxnode/dist/Images/pbr_final_metallic_slider_field_edit.png b/javascript/shader_editor/dist/Images/pbr_final_metallic_slider_field_edit.png similarity index 100% rename from javascript/materialxnode/dist/Images/pbr_final_metallic_slider_field_edit.png rename to javascript/shader_editor/dist/Images/pbr_final_metallic_slider_field_edit.png diff --git a/javascript/materialxnode/dist/Images/pbr_metallic_no_slider.png b/javascript/shader_editor/dist/Images/pbr_metallic_no_slider.png similarity index 100% rename from javascript/materialxnode/dist/Images/pbr_metallic_no_slider.png rename to javascript/shader_editor/dist/Images/pbr_metallic_no_slider.png diff --git a/javascript/materialxnode/dist/Images/pbr_metallic_slider.png b/javascript/shader_editor/dist/Images/pbr_metallic_slider.png similarity index 100% rename from javascript/materialxnode/dist/Images/pbr_metallic_slider.png rename to javascript/shader_editor/dist/Images/pbr_metallic_slider.png diff --git a/javascript/materialxnode/dist/Images/pbr_metallic_slider_2.png b/javascript/shader_editor/dist/Images/pbr_metallic_slider_2.png similarity index 100% rename from javascript/materialxnode/dist/Images/pbr_metallic_slider_2.png rename to javascript/shader_editor/dist/Images/pbr_metallic_slider_2.png diff --git a/javascript/materialxnode/dist/resources/Images/plain_heightmap.png b/javascript/shader_editor/dist/Images/plain_heightmap.png similarity index 100% rename from javascript/materialxnode/dist/resources/Images/plain_heightmap.png rename to javascript/shader_editor/dist/Images/plain_heightmap.png diff --git a/javascript/materialxnode/dist/Images/play.svg b/javascript/shader_editor/dist/Images/play.svg similarity index 100% rename from javascript/materialxnode/dist/Images/play.svg rename to javascript/shader_editor/dist/Images/play.svg diff --git a/javascript/materialxnode/dist/Images/play_white.svg b/javascript/shader_editor/dist/Images/play_white.svg similarity index 100% rename from javascript/materialxnode/dist/Images/play_white.svg rename to javascript/shader_editor/dist/Images/play_white.svg diff --git a/javascript/materialxnode/dist/Images/property_editor_figma_mobile_v1.png b/javascript/shader_editor/dist/Images/property_editor_figma_mobile_v1.png similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_figma_mobile_v1.png rename to javascript/shader_editor/dist/Images/property_editor_figma_mobile_v1.png diff --git a/javascript/materialxnode/dist/Images/property_editor_impl_desktop_v1.png b/javascript/shader_editor/dist/Images/property_editor_impl_desktop_v1.png similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_impl_desktop_v1.png rename to javascript/shader_editor/dist/Images/property_editor_impl_desktop_v1.png diff --git a/javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1.png b/javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1.png similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1.png rename to javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1.png diff --git a/javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_1.jpg b/javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_1.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_1.jpg rename to javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_1.jpg diff --git a/javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_2.jpg b/javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_2.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_2.jpg rename to javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_2.jpg diff --git a/javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_3.jpg b/javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_3.jpg similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_impl_mobile_v1_3.jpg rename to javascript/shader_editor/dist/Images/property_editor_impl_mobile_v1_3.jpg diff --git a/javascript/materialxnode/dist/Images/property_editor_original_version.png b/javascript/shader_editor/dist/Images/property_editor_original_version.png similarity index 100% rename from javascript/materialxnode/dist/Images/property_editor_original_version.png rename to javascript/shader_editor/dist/Images/property_editor_original_version.png diff --git a/javascript/materialxnode/dist/Images/property_edtor_figma_desktop_v1.png b/javascript/shader_editor/dist/Images/property_edtor_figma_desktop_v1.png similarity index 100% rename from javascript/materialxnode/dist/Images/property_edtor_figma_desktop_v1.png rename to javascript/shader_editor/dist/Images/property_edtor_figma_desktop_v1.png diff --git a/javascript/materialxnode/dist/Images/python-logo-only.svg b/javascript/shader_editor/dist/Images/python-logo-only.svg similarity index 100% rename from javascript/materialxnode/dist/Images/python-logo-only.svg rename to javascript/shader_editor/dist/Images/python-logo-only.svg diff --git a/javascript/materialxnode/dist/Images/read_documents.svg b/javascript/shader_editor/dist/Images/read_documents.svg similarity index 100% rename from javascript/materialxnode/dist/Images/read_documents.svg rename to javascript/shader_editor/dist/Images/read_documents.svg diff --git a/javascript/materialxnode/dist/Images/rural_crossroads_1k.hdr b/javascript/shader_editor/dist/Images/rural_crossroads_1k.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/rural_crossroads_1k.hdr rename to javascript/shader_editor/dist/Images/rural_crossroads_1k.hdr diff --git a/javascript/materialxnode/dist/Images/sample_graph.svg b/javascript/shader_editor/dist/Images/sample_graph.svg similarity index 100% rename from javascript/materialxnode/dist/Images/sample_graph.svg rename to javascript/shader_editor/dist/Images/sample_graph.svg diff --git a/javascript/materialxnode/dist/Images/san_giuseppe_bridge.hdr b/javascript/shader_editor/dist/Images/san_giuseppe_bridge.hdr similarity index 100% rename from javascript/materialxnode/dist/Images/san_giuseppe_bridge.hdr rename to javascript/shader_editor/dist/Images/san_giuseppe_bridge.hdr diff --git a/javascript/materialxnode/dist/Images/sept_2023_page.png b/javascript/shader_editor/dist/Images/sept_2023_page.png similarity index 100% rename from javascript/materialxnode/dist/Images/sept_2023_page.png rename to javascript/shader_editor/dist/Images/sept_2023_page.png diff --git a/javascript/shader_editor/dist/Images/shader_graph_snapshot1.png b/javascript/shader_editor/dist/Images/shader_graph_snapshot1.png new file mode 100644 index 00000000..a80e394a Binary files /dev/null and b/javascript/shader_editor/dist/Images/shader_graph_snapshot1.png differ diff --git a/javascript/shader_editor/dist/Images/shader_graph_snapshot2.png b/javascript/shader_editor/dist/Images/shader_graph_snapshot2.png new file mode 100644 index 00000000..066f20c8 Binary files /dev/null and b/javascript/shader_editor/dist/Images/shader_graph_snapshot2.png differ diff --git a/javascript/shader_editor/dist/Images/shader_graph_snapshot3.png b/javascript/shader_editor/dist/Images/shader_graph_snapshot3.png new file mode 100644 index 00000000..d4ab7a43 Binary files /dev/null and b/javascript/shader_editor/dist/Images/shader_graph_snapshot3.png differ diff --git a/javascript/shader_editor/dist/Images/shader_graph_snapshot4.png b/javascript/shader_editor/dist/Images/shader_graph_snapshot4.png new file mode 100644 index 00000000..5fd493e1 Binary files /dev/null and b/javascript/shader_editor/dist/Images/shader_graph_snapshot4.png differ diff --git a/javascript/materialxnode/dist/Images/shader_reflection_example.png b/javascript/shader_editor/dist/Images/shader_reflection_example.png similarity index 100% rename from javascript/materialxnode/dist/Images/shader_reflection_example.png rename to javascript/shader_editor/dist/Images/shader_reflection_example.png diff --git a/javascript/materialxnode/dist/Images/shader_reflection_example.webp b/javascript/shader_editor/dist/Images/shader_reflection_example.webp similarity index 100% rename from javascript/materialxnode/dist/Images/shader_reflection_example.webp rename to javascript/shader_editor/dist/Images/shader_reflection_example.webp diff --git a/javascript/materialxnode/dist/Images/shaderball.glb b/javascript/shader_editor/dist/Images/shaderball.glb similarity index 100% rename from javascript/materialxnode/dist/Images/shaderball.glb rename to javascript/shader_editor/dist/Images/shaderball.glb diff --git a/javascript/materialxnode/dist/Images/shaderball2.glb b/javascript/shader_editor/dist/Images/shaderball2.glb similarity index 100% rename from javascript/materialxnode/dist/Images/shaderball2.glb rename to javascript/shader_editor/dist/Images/shaderball2.glb diff --git a/javascript/materialxnode/dist/Images/sidebar.png b/javascript/shader_editor/dist/Images/sidebar.png similarity index 100% rename from javascript/materialxnode/dist/Images/sidebar.png rename to javascript/shader_editor/dist/Images/sidebar.png diff --git a/javascript/materialxnode/dist/Images/standalone_mermaid_checker_html.png b/javascript/shader_editor/dist/Images/standalone_mermaid_checker_html.png similarity index 100% rename from javascript/materialxnode/dist/Images/standalone_mermaid_checker_html.png rename to javascript/shader_editor/dist/Images/standalone_mermaid_checker_html.png diff --git a/javascript/materialxnode/dist/Images/tools.svg b/javascript/shader_editor/dist/Images/tools.svg similarity index 100% rename from javascript/materialxnode/dist/Images/tools.svg rename to javascript/shader_editor/dist/Images/tools.svg diff --git a/javascript/materialxnode/dist/Images/ui_input_parameters.png b/javascript/shader_editor/dist/Images/ui_input_parameters.png similarity index 100% rename from javascript/materialxnode/dist/Images/ui_input_parameters.png rename to javascript/shader_editor/dist/Images/ui_input_parameters.png diff --git a/javascript/materialxnode/dist/Images/ui_nodedef_attributes.PNG b/javascript/shader_editor/dist/Images/ui_nodedef_attributes.PNG similarity index 100% rename from javascript/materialxnode/dist/Images/ui_nodedef_attributes.PNG rename to javascript/shader_editor/dist/Images/ui_nodedef_attributes.PNG diff --git a/javascript/materialxnode/dist/Images/ui_nodedef_graph_elements.svg b/javascript/shader_editor/dist/Images/ui_nodedef_graph_elements.svg similarity index 100% rename from javascript/materialxnode/dist/Images/ui_nodedef_graph_elements.svg rename to javascript/shader_editor/dist/Images/ui_nodedef_graph_elements.svg diff --git a/javascript/materialxnode/dist/Images/ui_output_parameters.png b/javascript/shader_editor/dist/Images/ui_output_parameters.png similarity index 100% rename from javascript/materialxnode/dist/Images/ui_output_parameters.png rename to javascript/shader_editor/dist/Images/ui_output_parameters.png diff --git a/javascript/materialxnode/dist/Images/upgrade_document.svg b/javascript/shader_editor/dist/Images/upgrade_document.svg similarity index 100% rename from javascript/materialxnode/dist/Images/upgrade_document.svg rename to javascript/shader_editor/dist/Images/upgrade_document.svg diff --git a/javascript/materialxnode/dist/Images/upgrade_patch_releases.svg b/javascript/shader_editor/dist/Images/upgrade_patch_releases.svg similarity index 100% rename from javascript/materialxnode/dist/Images/upgrade_patch_releases.svg rename to javascript/shader_editor/dist/Images/upgrade_patch_releases.svg diff --git a/javascript/materialxnode/dist/Images/upgrade_resources.svg b/javascript/shader_editor/dist/Images/upgrade_resources.svg similarity index 100% rename from javascript/materialxnode/dist/Images/upgrade_resources.svg rename to javascript/shader_editor/dist/Images/upgrade_resources.svg diff --git a/javascript/materialxnode/dist/Images/usd.svg b/javascript/shader_editor/dist/Images/usd.svg similarity index 100% rename from javascript/materialxnode/dist/Images/usd.svg rename to javascript/shader_editor/dist/Images/usd.svg diff --git a/javascript/materialxnode/dist/Images/usd_graph_news.png b/javascript/shader_editor/dist/Images/usd_graph_news.png similarity index 100% rename from javascript/materialxnode/dist/Images/usd_graph_news.png rename to javascript/shader_editor/dist/Images/usd_graph_news.png diff --git a/javascript/materialxnode/dist/Images/usd_material_vs_mtlx_material.png b/javascript/shader_editor/dist/Images/usd_material_vs_mtlx_material.png similarity index 100% rename from javascript/materialxnode/dist/Images/usd_material_vs_mtlx_material.png rename to javascript/shader_editor/dist/Images/usd_material_vs_mtlx_material.png diff --git a/javascript/materialxnode/dist/Images/usd_materialx_interop.png b/javascript/shader_editor/dist/Images/usd_materialx_interop.png similarity index 100% rename from javascript/materialxnode/dist/Images/usd_materialx_interop.png rename to javascript/shader_editor/dist/Images/usd_materialx_interop.png diff --git a/javascript/shader_editor/dist/Images/utilities_menu.png b/javascript/shader_editor/dist/Images/utilities_menu.png new file mode 100644 index 00000000..64d37d9e Binary files /dev/null and b/javascript/shader_editor/dist/Images/utilities_menu.png differ diff --git a/javascript/materialxnode/dist/Images/web_logo_poster.png b/javascript/shader_editor/dist/Images/web_logo_poster.png similarity index 100% rename from javascript/materialxnode/dist/Images/web_logo_poster.png rename to javascript/shader_editor/dist/Images/web_logo_poster.png diff --git a/javascript/materialxnode/dist/Images/web_logo_poster.webp b/javascript/shader_editor/dist/Images/web_logo_poster.webp similarity index 100% rename from javascript/materialxnode/dist/Images/web_logo_poster.webp rename to javascript/shader_editor/dist/Images/web_logo_poster.webp diff --git a/javascript/materialxnode/dist/Images/webplogo.png b/javascript/shader_editor/dist/Images/webplogo.png similarity index 100% rename from javascript/materialxnode/dist/Images/webplogo.png rename to javascript/shader_editor/dist/Images/webplogo.png diff --git a/javascript/materialxnode/dist/resources/Images/wood_color.jpg b/javascript/shader_editor/dist/Images/wood_color.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/wood_color.jpg rename to javascript/shader_editor/dist/Images/wood_color.jpg diff --git a/javascript/materialxnode/dist/resources/Images/wood_roughness.jpg b/javascript/shader_editor/dist/Images/wood_roughness.jpg similarity index 100% rename from javascript/materialxnode/dist/resources/Images/wood_roughness.jpg rename to javascript/shader_editor/dist/Images/wood_roughness.jpg diff --git a/javascript/materialxnode/dist/JsMaterialXCore.js b/javascript/shader_editor/dist/JsMaterialXCore.js similarity index 100% rename from javascript/materialxnode/dist/JsMaterialXCore.js rename to javascript/shader_editor/dist/JsMaterialXCore.js diff --git a/javascript/materialxnode/dist/JsMaterialXCore.wasm b/javascript/shader_editor/dist/JsMaterialXCore.wasm similarity index 100% rename from javascript/materialxnode/dist/JsMaterialXCore.wasm rename to javascript/shader_editor/dist/JsMaterialXCore.wasm diff --git a/javascript/materialxtoy/JsMaterialXGenShader.data b/javascript/shader_editor/dist/JsMaterialXGenShader.data similarity index 100% rename from javascript/materialxtoy/JsMaterialXGenShader.data rename to javascript/shader_editor/dist/JsMaterialXGenShader.data diff --git a/javascript/materialxnode/dist/JsMaterialXGenShader.js b/javascript/shader_editor/dist/JsMaterialXGenShader.js similarity index 100% rename from javascript/materialxnode/dist/JsMaterialXGenShader.js rename to javascript/shader_editor/dist/JsMaterialXGenShader.js diff --git a/javascript/materialxnode/dist/JsMaterialXGenShader.wasm b/javascript/shader_editor/dist/JsMaterialXGenShader.wasm similarity index 100% rename from javascript/materialxnode/dist/JsMaterialXGenShader.wasm rename to javascript/shader_editor/dist/JsMaterialXGenShader.wasm diff --git a/javascript/materialxnode/dist/JsMaterialXNodeEditor.js b/javascript/shader_editor/dist/JsMaterialXNodeEditor.js similarity index 98% rename from javascript/materialxnode/dist/JsMaterialXNodeEditor.js rename to javascript/shader_editor/dist/JsMaterialXNodeEditor.js index 6908ffd4..241f050e 100644 --- a/javascript/materialxnode/dist/JsMaterialXNodeEditor.js +++ b/javascript/shader_editor/dist/JsMaterialXNodeEditor.js @@ -178,7 +178,7 @@ class MxMaterialXHandler extends MxGraphHandler { loadDefaultDocument(editor, materialFilename) { - function loadInitialText(filePath) { + function loadInitialText(filePath, handler) { try { fetch(filePath) .then(response => response.blob()) @@ -195,7 +195,7 @@ class MxMaterialXHandler extends MxGraphHandler { } } - loadInitialText(materialFilename); + loadInitialText(materialFilename, this); } // Initialize the MaterialX handler for the given editor @@ -239,7 +239,7 @@ class MxMaterialXHandler extends MxGraphHandler { } editor.debugOutput("Registered node types:" + definitionsList.length, 0, false); - //editor.displayNodeTypes(); + editor.displayNodeTypes(); if (materialFilename.length> 0) { @@ -261,7 +261,11 @@ class MxMaterialXHandler extends MxGraphHandler { console.log('Failed to save graph to document'); return; } + return this.findRenderableItemsInDoc(mdoc); + } + findRenderableItemsInDoc(mdoc) { + const materialNodes = mdoc.getMaterialNodes(); let shaderList = []; let renderableItems = []; @@ -269,7 +273,7 @@ class MxMaterialXHandler extends MxGraphHandler { for (let i = 0; i < materialNodes.length; ++i) { let materialNode = materialNodes[i]; if (materialNode) { - console.log('Scan material: ', materialNode.getNamePath()); + //console.log('Scan material: ', materialNode.getNamePath()); let shaderNodes = ne_mx.getShaderNodes(materialNode) if (shaderNodes.length > 0) { let shaderNodePath = shaderNodes[0].getNamePath() @@ -1739,6 +1743,17 @@ class MxMaterialXHandler extends MxGraphHandler { else { textArea.setValue(fileContents); } + + // Update render items in UI + let renderableItemUpdater = MxShadingGraphEditor.theEditor.ui.renderableItemUpdater; + if (renderableItemUpdater) { + let renderableItems = this.findRenderableItemsInDoc(doc); + if (!renderableItems || renderableItems.length == 0) { + MxShadingGraphEditor.theEditor.debugOutput('No renderable items found in graph: ' + fileName, 1, false); + } + renderableItemUpdater(renderableItems); + } + } catch (error) { MxShadingGraphEditor.theEditor.debugOutput('Error reading document: ' + fileName + '. Error: ' + error, 2, false); } @@ -2071,7 +2086,7 @@ class MxShadingGraphEditor { var img = document.createElement("img"); img.id = id + "_img"; img.src = imageSrc; - img.classList.add("img-fluid"); // Bootstrap class for responsive images + img.classList.add("img-fluid"); // Create text element var span = document.createElement("span"); @@ -2081,9 +2096,9 @@ class MxShadingGraphEditor { // Create button element var button = document.createElement("button"); button.id = id; - button.classList.add("btn", "btn-sm", "btn-outline-secondary", "form-control", "form-control-sm"); // Bootstrap button classes - button.appendChild(img); // Append image to button - button.appendChild(span); // Append text to button + button.classList.add("btn", "btn-sm", "btn-outline-secondary", "form-control", "form-control-sm"); + button.appendChild(img); + button.appendChild(span); return button; } @@ -2145,14 +2160,14 @@ class MxShadingGraphEditor { return fetch(uri) .then(response => { if (response.ok) { - return true; + return Promise.resolve(true); } else { - return false; + return Promise.resolve(false); } }) .catch(error => { console.log('Error checking URI:', error); - return false; + return Promise.resolve(false); }); } @@ -2475,26 +2490,31 @@ class MxShadingGraphEditor { // Check if there is a link if (nodeInputLink) { - var upstreamLink = null; + let upstreamLink = null; - var nodegraph = node.graph; - var link = nodegraph.links[nodeInputLink]; + let nodegraph = node.graph; + let link = nodegraph.links[nodeInputLink]; //console.log('link:', link); - var linkId = link && link.origin_id; - var linkNode = linkId && nodegraph.getNodeById(linkId); + let linkId = link && link.origin_id; + let linkNode = linkId && nodegraph.getNodeById(linkId); if (linkNode) { //console.log('linkNode:', linkNode); - var linkSlot = link.origin_slot; + let linkSlot = link.origin_slot; //console.log('linkSlot:', linkSlot); - var linkOutput = linkNode.outputs[linkSlot]; + let linkOutput = linkNode.outputs[linkSlot]; //console.log('linkOutput:', linkOutput); upstreamLink = linkNode.title + '.' + linkOutput.name; //console.log('upstreamLink:', upstreamLink); - var id = "__pp:" + inputName; - var input = this.createButtonWithImageAndText("./Images/arrow_up_white.svg", upstreamLink, id); + let id = "__pp:" + inputName; + let buttonText = upstreamLink; + // Truncate long names + if (buttonText.length > 15) { + buttonText = buttonText.substring(0, 15) + "..."; + } + let input = this.createButtonWithImageAndText("./Images/arrow_up_white.svg", buttonText, id); //var input = document.createElement("div"); //input.id = "__pp:" + inputName; @@ -3320,6 +3340,10 @@ class MxShadingGraphEditor { // Get the list container var nodeList = this.ui.nodeTypesList; + if (!nodeList) { + return; + } + // Clear all children of nodeList while (nodeList.firstChild) { nodeList.removeChild(nodeList.firstChild); diff --git a/javascript/materialxnode/dist/Lights/environment_map.mtlx b/javascript/shader_editor/dist/Lights/environment_map.mtlx similarity index 100% rename from javascript/materialxnode/dist/Lights/environment_map.mtlx rename to javascript/shader_editor/dist/Lights/environment_map.mtlx diff --git a/javascript/materialxnode/dist/Lights/irradiance/san_giuseppe_bridge.hdr b/javascript/shader_editor/dist/Lights/irradiance/san_giuseppe_bridge.hdr similarity index 100% rename from javascript/materialxnode/dist/Lights/irradiance/san_giuseppe_bridge.hdr rename to javascript/shader_editor/dist/Lights/irradiance/san_giuseppe_bridge.hdr diff --git a/javascript/materialxnode/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr b/javascript/shader_editor/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr similarity index 100% rename from javascript/materialxnode/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr rename to javascript/shader_editor/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr diff --git a/javascript/materialxnode/dist/Lights/san_giuseppe_bridge.hdr b/javascript/shader_editor/dist/Lights/san_giuseppe_bridge.hdr similarity index 100% rename from javascript/materialxnode/dist/Lights/san_giuseppe_bridge.hdr rename to javascript/shader_editor/dist/Lights/san_giuseppe_bridge.hdr diff --git a/javascript/materialxnode/dist/Lights/san_giuseppe_bridge_split.hdr b/javascript/shader_editor/dist/Lights/san_giuseppe_bridge_split.hdr similarity index 100% rename from javascript/materialxnode/dist/Lights/san_giuseppe_bridge_split.hdr rename to javascript/shader_editor/dist/Lights/san_giuseppe_bridge_split.hdr diff --git a/javascript/materialxnode/dist/Lights/san_giuseppe_bridge_split.mtlx b/javascript/shader_editor/dist/Lights/san_giuseppe_bridge_split.mtlx similarity index 100% rename from javascript/materialxnode/dist/Lights/san_giuseppe_bridge_split.mtlx rename to javascript/shader_editor/dist/Lights/san_giuseppe_bridge_split.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx similarity index 94% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx index 72d23a8c..34052699 100644 --- a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json b/javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json rename to javascript/shader_editor/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx b/javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx rename to javascript/shader_editor/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/gooch_shade.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/gooch_shade.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/gooch_shade.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/gooch_shade.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx similarity index 94% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx index bc59bf17..89abdf3a 100644 --- a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx similarity index 98% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx index 1d6f6da6..27476f42 100644 --- a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx similarity index 99% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx index 96e8a658..7fb96c37 100644 --- a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_copper.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_copper.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_copper.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_copper.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_default.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_default.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_default.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_default.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_gold.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_gold.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_gold.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_gold.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx similarity index 94% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx index 9e3ada7c..79e39088 100644 --- a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_jade.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_jade.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_jade.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_jade.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx similarity index 95% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx index c030aa94..339f2147 100644 --- a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx @@ -1,6 +1,6 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/toon_shade.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/toon_shade.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/toon_shade.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/toon_shade.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/toon_shade.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/toon_shade.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/toon_shade.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/toon_shade.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unlitshader_default.md b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unlitshader_default.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unlitshader_default.md rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unlitshader_default.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx b/javascript/shader_editor/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx rename to javascript/shader_editor/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx similarity index 94% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx index 59562e4a..e108eb80 100644 --- a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx +++ b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx @@ -1,6 +1,6 @@ - + diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json b/javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json similarity index 100% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json rename to javascript/shader_editor/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json diff --git a/javascript/materialxnode/dist/index.html b/javascript/shader_editor/dist/index.html similarity index 98% rename from javascript/materialxnode/dist/index.html rename to javascript/shader_editor/dist/index.html index 49648c02..3dcb223d 100644 --- a/javascript/materialxnode/dist/index.html +++ b/javascript/shader_editor/dist/index.html @@ -1,11 +1,11 @@ + - MaterialX Shader Editor @@ -59,12 +59,12 @@ } - + - + @@ -75,7 +75,7 @@
    -

    MaterialX Shader Editor


    @@ -313,6 +313,11 @@

    + + \ No newline at end of file diff --git a/javascript/shader_editor/dist/index_out.html b/javascript/shader_editor/dist/index_out.html new file mode 100644 index 00000000..a228414b --- /dev/null +++ b/javascript/shader_editor/dist/index_out.html @@ -0,0 +1,556 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + MaterialX Shader Editor + + + + + + + + + + + + + + + + MaterialX Learn + + + + + + + + + + + + + + +
    +
    + + + + + + + + +
    + +

    MaterialX Shader Editor

    +
    + + +
    +
    + +
    + +
    + +
    +
    + +
    +
    + + +
    +
    + + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    + Preview +
    +
    +
    + + + + +
    +
    +
    +
    + + + + +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + Properties Icon Properties + +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + + + + + +
    +
    +
    +
    + + + + + + + + + + + + +
    +
    + +
    +
    + +

    + + Creative Commons License + © 2022-2024 NanMu Consulting. +

    +
    +
    + + + + \ No newline at end of file diff --git a/javascript/materialxtoy/litegraph/base.js b/javascript/shader_editor/dist/litegraph/base.js similarity index 100% rename from javascript/materialxtoy/litegraph/base.js rename to javascript/shader_editor/dist/litegraph/base.js diff --git a/javascript/materialxtoy/litegraph/demos.js b/javascript/shader_editor/dist/litegraph/demos.js similarity index 100% rename from javascript/materialxtoy/litegraph/demos.js rename to javascript/shader_editor/dist/litegraph/demos.js diff --git a/javascript/materialxtoy/litegraph/input.js b/javascript/shader_editor/dist/litegraph/input.js similarity index 100% rename from javascript/materialxtoy/litegraph/input.js rename to javascript/shader_editor/dist/litegraph/input.js diff --git a/javascript/materialxtoy/litegraph/interface.js b/javascript/shader_editor/dist/litegraph/interface.js similarity index 100% rename from javascript/materialxtoy/litegraph/interface.js rename to javascript/shader_editor/dist/litegraph/interface.js diff --git a/javascript/materialxtoy/litegraph/litegraph-editor.css b/javascript/shader_editor/dist/litegraph/litegraph-editor.css similarity index 100% rename from javascript/materialxtoy/litegraph/litegraph-editor.css rename to javascript/shader_editor/dist/litegraph/litegraph-editor.css diff --git a/javascript/materialxtoy/litegraph/litegraph-editor.js b/javascript/shader_editor/dist/litegraph/litegraph-editor.js similarity index 100% rename from javascript/materialxtoy/litegraph/litegraph-editor.js rename to javascript/shader_editor/dist/litegraph/litegraph-editor.js diff --git a/javascript/materialxtoy/litegraph/litegraph.css b/javascript/shader_editor/dist/litegraph/litegraph.css similarity index 100% rename from javascript/materialxtoy/litegraph/litegraph.css rename to javascript/shader_editor/dist/litegraph/litegraph.css diff --git a/javascript/materialxtoy/litegraph/litegraph.js b/javascript/shader_editor/dist/litegraph/litegraph.js similarity index 100% rename from javascript/materialxtoy/litegraph/litegraph.js rename to javascript/shader_editor/dist/litegraph/litegraph.js diff --git a/javascript/materialxtoy/litegraph/math.js b/javascript/shader_editor/dist/litegraph/math.js similarity index 100% rename from javascript/materialxtoy/litegraph/math.js rename to javascript/shader_editor/dist/litegraph/math.js diff --git a/javascript/materialxtoy/litegraph/style.css b/javascript/shader_editor/dist/litegraph/style.css similarity index 100% rename from javascript/materialxtoy/litegraph/style.css rename to javascript/shader_editor/dist/litegraph/style.css diff --git a/javascript/materialxnode/dist/main.js b/javascript/shader_editor/dist/main.js similarity index 95% rename from javascript/materialxnode/dist/main.js rename to javascript/shader_editor/dist/main.js index 8e9324af..707cfa26 100644 --- a/javascript/materialxnode/dist/main.js +++ b/javascript/shader_editor/dist/main.js @@ -10,6 +10,16 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ +/***/ "../node_editor.js": +/*!*************************!*\ + !*** ../node_editor.js ***! + \*************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initializeNodeEditor: () => (/* binding */ initializeNodeEditor)\n/* harmony export */ });\n\r\n\r\nfunction initializeNodeEditor(materialFilename, geometryFilename, theRenderer) {\r\n\r\n // Customize what icon to show based on nodedef name prefix or nodegroup\r\n // Note that this is just a heuristic based on current nodegroup and naming \r\n // convention. Default is \"mtlx\" for MaterialX nodes.\r\n var my_icon_map = {\r\n \"gltf\": \"./Images/gltf_logo.webp\",\r\n \"usd\": \"./Images/openusd_logo.webp\",\r\n \"open_pbr\": \"./Images/openpbr_logo.webp\",\r\n \"houdini\": \"./Images/houdini_icon.webp\",\r\n \"maya\": \"./Images/maya_surfaces.webp\",\r\n \"_default_\": \"./Images/materialx_logo.webp\",\r\n \"_default_graph_\": \"./Images/nodegraph_white.svg\"\r\n };\r\n\r\n function uriExists(uri) {\r\n // Add try / catch block to handle network errors \r\n return fetch(uri)\r\n .then(response => {\r\n if (response.ok) {\r\n return Promise.resolve(true);\r\n } else {\r\n return Promise.resolve(false);\r\n }\r\n })\r\n .catch(error => {\r\n console.log('Error checking URI:', error);\r\n return Promise.resolve(false);\r\n });\r\n } \r\n\r\n function renderableItemUpdater(renderableItems) {\r\n\r\n let renderableItemSelect = document.getElementById('renderableItem');\r\n if (renderableItemSelect) {\r\n \r\n while (renderableItemSelect.firstChild) {\r\n renderableItemSelect.removeChild(renderableItemSelect.firstChild);\r\n }\r\n for (let i = 0; i < renderableItems.length; i++) {\r\n let item = renderableItems[i];\r\n let option = document.createElement('option');\r\n option.value = item;\r\n let uiitem = item;\r\n // Truncate the name so it will fit into UI.\r\n if (uiitem.length > 12)\r\n uiitem = uiitem.substring(0, 12) + '...';\r\n option.text = uiitem; \r\n renderableItemSelect.appendChild(option);\r\n } \r\n } \r\n }\r\n \r\n if (theRenderer) {\r\n var viewer = theRenderer.initializeViewer(materialFilename, geometryFilename);\r\n console.log('Setup viewer:', viewer);\r\n }\r\n else {\r\n let preview_panel = document.getElementById(\"preview_panel\");\r\n // Hide preview_panel DOM element\r\n if (preview_panel)\r\n preview_panel.style.display = 'none';\r\n }\r\n\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var cmeditor = setupXMLSyntax();\r\n var cmeditor2 = setupJavascriptSyntax();\r\n var ui = {\r\n console_area: document.getElementById('console_area'),\r\n nodeTypesList: document.getElementById('nodeTypesList'),\r\n renderableItemUpdater: renderableItemUpdater,\r\n mtlxdoc: cmeditor,\r\n mtlxlib: cmeditor2,\r\n mtlxdoc_colorspace: null, // document.getElementById('mtlxdoc_colorspace'),\r\n propertypanel_content: document.getElementById('propertypanel_content'),\r\n propertypanel_icon: document.getElementById('propertypanel_icon'),\r\n icon_map: my_icon_map,\r\n };\r\n var editor = new MxShadingGraphEditor();\r\n editor.initialize(false, canvas, ui, materialFilename);\r\n\r\n function addUIHandlers() {\r\n // Add event listener to save canvas as image when button is clicked\r\n var saveCanvasButton = document.getElementById('captureGraph');\r\n saveCanvasButton.addEventListener('click', function () {\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var dataURL = canvas.toDataURL('image/png');\r\n var link = document.createElement('a');\r\n link.href = dataURL;\r\n link.download = 'graph_capture.png';\r\n link.click();\r\n });\r\n\r\n // TODO: Make this a user option\r\n var auto_arrange_size = 80;\r\n\r\n // Add load materialx graph event listener\r\n var loadMaterialXDocumentFromFile = document.getElementById('loadMaterialXDocumentFromFile');\r\n loadMaterialXDocumentFromFile.addEventListener('click', function () {\r\n editor.loadGraphFromFile('mtlx', auto_arrange_size);\r\n });\r\n\r\n // Add load materialx graph from text event listener\r\n var texAreaNumber = 0;\r\n var loadMaterialXDocumentFromText = document.getElementById('loadMaterialXDocumentFromText');\r\n loadMaterialXDocumentFromText.addEventListener('click', function () {\r\n var mtlxdoc = document.getElementById('mtlxdoc').value;\r\n // Generate a name for the graph\r\n if (mtlxdoc.length > 0) {\r\n var name = 'MaterialXGraph' + texAreaNumber++;\r\n editor.loadGraphFromString('mtlx', mtlxdoc, name, auto_arrange_size);\r\n }\r\n });\r\n\r\n // Add load definitions event listener\r\n var loadMaterialXDefinitions = document.getElementById('loadMaterialXDefinitions');\r\n loadMaterialXDefinitions.addEventListener('click', function () {\r\n editor.loadDefinitionsFromFile('mtlx');\r\n });\r\n\r\n // Add clear graph event listener\r\n var clearGraphButton = document.getElementById('clearGraph');\r\n clearGraphButton.addEventListener('click', function () {\r\n editor.clearGraph();\r\n });\r\n\r\n // Add save materialx graph event listener\r\n var saveMaterialXGraph = document.getElementById('saveMaterialXGraph');\r\n saveMaterialXGraph.addEventListener('click', function () {\r\n var saveCustomLibs = document.getElementById('saveCustomLibs').checked;\r\n var saveNodePositions = document.getElementById('saveNodePositions').checked;\r\n editor.saveGraphToFile('mtlx', saveCustomLibs, saveNodePositions);\r\n });\r\n\r\n // Add save materialx graph text event listener\r\n var saveMaterialXGraphText = document.getElementById('saveMaterialXGraphText');\r\n saveMaterialXGraphText.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n\r\n // Add open subgraph event handler\r\n var openSubgraph = document.getElementById('openSubgraph');\r\n openSubgraph.addEventListener('click', function () {\r\n editor.openSubgraph();\r\n });\r\n\r\n // Add close subgraph event handler\r\n var closeSubgraph = document.getElementById('closeSubgraph');\r\n closeSubgraph.addEventListener('click', function () {\r\n editor.closeSubgraph();\r\n });\r\n\r\n\r\n // Add reset view event handler\r\n var resetView = document.getElementById('resetView');\r\n resetView.addEventListener('click', function () {\r\n editor.resetView();\r\n });\r\n\r\n // Add arrange graph event listener\r\n var arrangeGraphButton = document.getElementById('arrangeGraph');\r\n arrangeGraphButton.addEventListener('click', function () {\r\n editor.arrangeGraph();\r\n });\r\n\r\n // Add center node event listener\r\n var centerNodeButton = document.getElementById('centerNode');\r\n centerNodeButton.addEventListener('click', function () {\r\n editor.centerNode();\r\n });\r\n\r\n // Add collapse/expand nodes event listener\r\n var collapseNodesButton = document.getElementById('collapseNodes');\r\n collapseNodesButton.addEventListener('click', function () {\r\n editor.collapseExpandNodes(true);\r\n });\r\n var expandNodesButton = document.getElementById('expandNodes');\r\n expandNodesButton.addEventListener('click', function () {\r\n editor.collapseExpandNodes(false);\r\n });\r\n\r\n // Add copy selected event listener\r\n var copySelectedButton = document.getElementById('copySelected');\r\n copySelectedButton.addEventListener('click', function () {\r\n editor.copyToClipboard();\r\n });\r\n\r\n // Add paste selected event listener\r\n var pasteSelectedButton = document.getElementById('pasteSelected');\r\n pasteSelectedButton.addEventListener('click', function () {\r\n editor.pasteFromClipboard();\r\n });\r\n\r\n // Add create subgraph event listener\r\n var createNodeGraphButton = document.getElementById('createNodeGraph');\r\n createNodeGraphButton.addEventListener('click', function () {\r\n editor.createNodeGraph();\r\n });\r\n\r\n // Add extract subgraph event listener\r\n var extractNodeGraphButton = document.getElementById('extractNodeGraph');\r\n extractNodeGraphButton.addEventListener('click', function () {\r\n editor.extractNodeGraph();\r\n });\r\n\r\n /* \r\n // Add load serialization event listener\r\n var loadSerialization = document.getElementById('loadSerialization');\r\n loadSerialization.addEventListener('click', function () {\r\n editor.loadSerialization();\r\n });\r\n \r\n // Add download graph event listener\r\n var downloadGraph = document.getElementById('downloadGraph');\r\n downloadGraph.addEventListener('click', function () {\r\n editor.saveSerialization();\r\n }); */\r\n\r\n // Add xml to graph event listener\r\n var xmltograph = document.getElementById('xmltograph');\r\n xmltograph.addEventListener('click', function () {\r\n var name = 'MaterialXGraph' + texAreaNumber++;\r\n var mtlxdoc = document.getElementById('mtlxdoc').value;\r\n editor.loadGraphFromString('mtlx', mtlxdoc, 'MaterialXGraph', auto_arrange_size);\r\n });\r\n\r\n function updateRenderableItemUI()\r\n {\r\n let renderableItems = editor.findRenderableItems();\r\n renderableItemUpdater(renderableItems);\r\n }\r\n\r\n function saveToStringUI() {\r\n var saveCustomLibs = document.getElementById('saveCustomLibs').checked;\r\n var saveNodePositions = document.getElementById('saveNodePositions').checked;\r\n var result = editor.saveGraphToString('mtlx', saveCustomLibs, saveNodePositions);\r\n cmeditor.setValue(result);\r\n\r\n if (theRenderer) {\r\n theRenderer.updateMaterialFromText(result);\r\n updateRenderableItemUI();\r\n }\r\n }\r\n\r\n // Add graph to xml event listener\r\n var graphtoxml = document.getElementById('graphtoxml');\r\n if (graphtoxml) {\r\n graphtoxml.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n }\r\n\r\n var graphtoxml2 = document.getElementById('graphtoxml2');\r\n if (graphtoxml2) {\r\n graphtoxml2.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n }\r\n\r\n // Handle turntabe option\r\n let turntableEnabledUI = document.getElementById('turntableEnabled');\r\n if (turntableEnabledUI) {\r\n turntableEnabledUI.addEventListener('click', (e) => {\r\n // Toggle inverting the button colors no toggling danger\r\n turntableEnabledUI.classList.toggle('btn-secondary');\r\n if (theRenderer)\r\n theRenderer.toggleTurntable();\r\n });\r\n }\r\n\r\n // Handle render disabled option\r\n let disableRenderingUI = document.getElementById('disableRendering');\r\n if (disableRenderingUI) {\r\n disableRenderingUI.addEventListener('click', (e) => {\r\n // Toggle inverting the button colors\r\n disableRenderingUI.classList.toggle('btn-danger');\r\n if (theRenderer)\r\n theRenderer.toggleRendering();\r\n });\r\n }\r\n\r\n // Handle background display option\r\n let toggleBackgroundTextureUI = document.getElementById('toggleBackgroundTexture');\r\n if (toggleBackgroundTextureUI) {\r\n toggleBackgroundTextureUI.addEventListener('click', (e) => {\r\n toggleBackgroundTextureUI.classList.toggle('btn-secondary');\r\n if (theRenderer)\r\n theRenderer.toggleBackgroundTexture();\r\n });\r\n }\r\n // Handle reset camera option\r\n let resetCameraUI = document.getElementById('resetCamera');\r\n if (resetCameraUI) {\r\n resetCameraUI.addEventListener('click', (e) => {\r\n if (theRenderer)\r\n theRenderer.resetCamera();\r\n });\r\n }\r\n\r\n // Handle renderable geometry option\r\n function loadFromMenu(e) {\r\n var uiItem = e.target.value;\r\n if (uiItem == '_loadFromFile_') {\r\n // Create a file dialog to get the filename\r\n var fileInput = document.createElement('input');\r\n fileInput.type = 'file';\r\n fileInput.accept = '.glb';\r\n\r\n fileInput.onchange = function (event) {\r\n var file = event.target.files[0];\r\n if (file) {\r\n var fileURL = URL.createObjectURL(file);\r\n if (theRenderer)\r\n theRenderer.setRenderGeometry(fileURL);\r\n console.log('Change geometry to:', fileURL, 'from file:', file.name);\r\n }\r\n }\r\n fileInput.click();\r\n }\r\n else {\r\n // Convert to lowercase and remove spaces\r\n var geometryURL = uiItem.toLowerCase().replace(/\\s/g, '');\r\n var geometryPath = 'Geometry/' + geometryURL + '.glb';\r\n console.log('Change geometry to:', geometryPath);\r\n if (theRenderer)\r\n theRenderer.setRenderGeometry(geometryPath);\r\n }\r\n }\r\n\r\n // Handle geometry item changed\r\n let geometryItemSelect = document.getElementById('loadGeometry');\r\n if (geometryItemSelect) {\r\n // Add event handler for selection\r\n geometryItemSelect.addEventListener('change', (e) => {\r\n loadFromMenu(e);\r\n if (e.target.value == '_loadFromFile_')\r\n e.target.value = 'Custom Geometry'\r\n });\r\n }\r\n\r\n // Handle material selection change\r\n let renderableItemSelect = document.getElementById('renderableItem');\r\n if (renderableItemSelect) {\r\n renderableItemSelect.addEventListener('change', (e) => {\r\n let index = e.target.value;\r\n if (theRenderer)\r\n theRenderer.setRenderMaterial(index);\r\n });\r\n }\r\n\r\n // Get the canvas element and its container\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var canvasContainer = document.getElementById('canvasContainer');\r\n var colContainer = document.getElementById('colContainer');\r\n\r\n // Create a new ResizeObserver\r\n var observer = new ResizeObserver(function (entries) {\r\n for (var entry of entries) {\r\n // Get the new width and height of the column\r\n var newWidth = entry.contentRect.width;\r\n var newHeight = entry.contentRect.height;\r\n\r\n // Set the canvas size to match the column\r\n canvas.width = newWidth;\r\n canvas.height = newHeight;\r\n\r\n // Mark the editor as dirty to redraw the graph.\r\n editor.setDirty();\r\n }\r\n });\r\n\r\n // Start observing the canvas container\r\n observer.observe(colContainer);\r\n\r\n }\r\n\r\n function setupJavascriptSyntax() {\r\n // Initialize CodeMirror for JS syntax highlighting\r\n const elem = document.getElementById('mtlxlib');\r\n if (!elem) {\r\n return;\r\n }\r\n var cmeditor = CodeMirror.fromTextArea(elem, {\r\n mode: 'application/javascript',\r\n lineNumbers: true,\r\n dragDrop: false,\r\n theme: 'dracula',\r\n readOnly: true\r\n });\r\n\r\n elem.value = '';\r\n cmeditor.setValue('');\r\n\r\n // Update CodeMirror whenever the textarea content changes\r\n cmeditor.on('change', () => {\r\n elem.value = cmeditor.getValue();\r\n });\r\n\r\n return cmeditor;\r\n }\r\n\r\n\r\n function setupXMLSyntax() {\r\n // Initialize CodeMirror for XML syntax highlighting\r\n const materialXTextArea = document.getElementById('mtlxdoc');\r\n var cmeditor = CodeMirror.fromTextArea(materialXTextArea, {\r\n mode: 'application/xml',\r\n lineNumbers: true,\r\n dragDrop: true,\r\n theme: 'night'\r\n });\r\n\r\n // Optional: Set an initial value for the textarea\r\n const initialXML = '';\r\n materialXTextArea.value = initialXML;\r\n cmeditor.setValue(initialXML);\r\n\r\n // Update CodeMirror whenever the textarea content changes\r\n cmeditor.on('change', (e) => {\r\n materialXTextArea.value = cmeditor.getValue();\r\n });\r\n\r\n var pasteButton = document.getElementById('mtlxdoc_paste');\r\n if (pasteButton)\r\n addPasteHandler(pasteButton, cmeditor);\r\n\r\n return cmeditor;\r\n }\r\n\r\n\r\n\r\n\r\n addUIHandlers();\r\n addCopyHandlers();\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/../node_editor.js?"); + +/***/ }), + /***/ "./source/dropHandling.js": /*!********************************!*\ !*** ./source/dropHandling.js ***! @@ -26,7 +36,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ findLights: () => (/* binding */ findLights),\n/* harmony export */ getLightRotation: () => (/* binding */ getLightRotation),\n/* harmony export */ getUniformValues: () => (/* binding */ getUniformValues),\n/* harmony export */ prepareEnvTexture: () => (/* binding */ prepareEnvTexture),\n/* harmony export */ registerLights: () => (/* binding */ registerLights)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n//import { getBufferFromFile } from './dropHandling.js';\r\n\r\nconst IMAGE_PROPERTY_SEPARATOR = \"_\";\r\nconst UADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"uaddressmode\";\r\nconst VADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"vaddressmode\";\r\nconst FILTER_TYPE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"filtertype\";\r\nconst IMAGE_PATH_SEPARATOR = \"/\";\r\n\r\n/**\r\n * Initialized the environment texture as MaterialX expects it\r\n * @param {THREE.Texture} texture\r\n * @param {Object} capabilities\r\n * @returns {THREE.Texture}\r\n */\r\nfunction prepareEnvTexture(texture, capabilities)\r\n{\r\n let newTexture = new three__WEBPACK_IMPORTED_MODULE_0__.DataTexture(texture.image.data, texture.image.width, texture.image.height, texture.format, texture.type);\r\n newTexture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n newTexture.anisotropy = capabilities.getMaxAnisotropy();\r\n newTexture.minFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearMipmapLinearFilter;\r\n newTexture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n newTexture.generateMipmaps = true;\r\n newTexture.needsUpdate = true;\r\n\r\n return newTexture;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX vector\r\n * @param {any} value\r\n * @param {any} dimension\r\n * @returns {THREE.Uniform}\r\n */\r\nfunction fromVector(value, dimension)\r\n{\r\n let outValue;\r\n if (value)\r\n {\r\n outValue = value.data();\r\n }\r\n else\r\n {\r\n outValue = [];\r\n for (let i = 0; i < dimension; ++i)\r\n outValue.push(0.0);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX matrix\r\n * @param {mx.matrix} matrix\r\n * @param {mx.matrix.size} dimension\r\n */\r\nfunction fromMatrix(matrix, dimension)\r\n{\r\n let vec = [];\r\n if (matrix)\r\n {\r\n for (let i = 0; i < matrix.numRows(); ++i)\r\n {\r\n for (let k = 0; k < matrix.numColumns(); ++k)\r\n {\r\n vec.push(matrix.getItem(i, k));\r\n }\r\n }\r\n } else\r\n {\r\n for (let i = 0; i < dimension; ++i)\r\n vec.push(0.0);\r\n }\r\n\r\n return vec;\r\n}\r\n\r\nfunction loadTextureFile(uri, loader)\r\n{\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load image file: \", uri); \r\n loader.load(\r\n uri,\r\n function (texture) {\r\n console.log('- Resolve texture:', texture);\r\n resolve(texture);\r\n },\r\n function (xhr) {\r\n // This function will be called while the texture is loading\r\n console.log((xhr.loaded / xhr.total) * 100 + '% loaded');\r\n },\r\n function (error) {\r\n resolve(null);\r\n // This function will be called if there is an error loading the texture\r\n //reject(new Error('Error loading texture: ' + error));\r\n }\r\n ); \r\n }\r\n });\r\n}\r\n\r\n// Function to load an image file and return a buffer using FileReader.readAsArrayBuffer()\r\nfunction getTextureBufferFromFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n //fileReader.addEventListener('load', function (event) {\r\n fileReader.onloadend = function (e)\r\n {\r\n // Get the result of the FileReader as an ArrayBuffer\r\n const buffer = event.target.result;\r\n\r\n // Convert the ArrayBuffer to a Uint8Array for examination\r\n //const uint8Array = new Uint8Array(buffer);\r\n\r\n console.log('--------- Loaded Buffer:', buffer, filePath, '---------');\r\n\r\n // Handle the obtained buffer\r\n console.log('Add texture buffer to cache:', filePath, ', ', buffer);\r\n\r\n const texture = loadTextureFile(URL.createObjectURL(new Blob([buffer])), textureLoader);\r\n //const texture = textureLoader.load(URL.createObjectURL(new Blob([buffer])));\r\n\r\n //const dataURL = 'data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, uint8Array));\r\n //console.log('dataURL:', dataURL)\r\n //const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n // console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n //}); \r\n\r\n //const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture) {\r\n //THREE.Cache.add(filePath, texture);\r\n //setTextureParameters(texture, name, uniforms, flipY);\r\n //outValue = texture;\r\n console.log('Success: texture cached:', filePath, three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(filePath));\r\n //let blah = THREE.Cache.get(texturePath);\r\n //if (blah)\r\n // console.log('blah.image.width:', blah.image.width, ', blah.image.height:', blah.image.height, ', blah.image.data:', blah.image.data, ', blah.image.data.length:', blah.image.data.length, ', blah.image.data.byteLength:', blah.image.data.byteLength, ', blah.image.data.buffer.byteLength:', blah.image.data.buffer.byteLength, ', blah.image.data.buffer:', blah.image.data.buffer);\r\n }\r\n else {\r\n console.error('Error: texture not found in cache:', filePath);\r\n }\r\n\r\n // Resolve the Promise with the obtained buffer\r\n resolve(texture);\r\n };\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n result(null); // reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as an ArrayBuffer\r\n fileReader.readAsArrayBuffer(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n// Function to load an image file and examine the dimensions of the loaded texture\r\nfunction examineImageFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n fileReader.addEventListener('load', function (event) {\r\n // Get the result of the FileReader as a data URL\r\n const dataURL = event.target.result;\r\n console.log('Load URL:', dataURL, filePath, '---------')\r\n\r\n // Create a texture using the data URL\r\n const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n\r\n // Resolve the Promise with the loaded texture\r\n resolve(texture);\r\n });\r\n });\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as a data URL\r\n fileReader.readAsDataURL(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n\r\n/**\r\n * Get Three uniform from MaterialX value\r\n * @param {mx.Uniform.type} type\r\n * @param {mx.Uniform.value} value\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {THREE.textureLoader} textureLoader\r\n */\r\nfunction toThreeUniform(type, value, name, uniforms, textureLoader, searchPath, flipY)\r\n{\r\n let outValue;\r\n switch (type)\r\n {\r\n case 'float':\r\n case 'integer':\r\n case 'boolean':\r\n outValue = value;\r\n break;\r\n case 'vector2':\r\n outValue = fromVector(value, 2);\r\n break;\r\n case 'vector3':\r\n case 'color3':\r\n outValue = fromVector(value, 3);\r\n break;\r\n case 'vector4':\r\n case 'color4':\r\n outValue = fromVector(value, 4);\r\n break;\r\n case 'matrix33':\r\n outValue = fromMatrix(value, 9);\r\n break;\r\n case 'matrix44':\r\n outValue = fromMatrix(value, 16);\r\n break;\r\n case 'filename':\r\n if (value)\r\n {\r\n let texturePath = searchPath + IMAGE_PATH_SEPARATOR + value;\r\n const textureExists = three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(texturePath);\r\n if (!textureExists)\r\n {\r\n \r\n // Call the function to examine the image file\r\n /* examineImageFile(texturePath, textureLoader)\r\n .then(texture => {\r\n console.log('Add texture to cache:', texturePath, texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture; \r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n // Call the function to get a buffer from the file\r\n /*\r\n getTextureBufferFromFile(texturePath, textureLoader)\r\n .then(texture => {\r\n if (texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture;\r\n console.log('-- FINISHED loading: ' + texturePath)\r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n console.log('Image file not loaded: ', texturePath);\r\n }\r\n //else\r\n {\r\n const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture)\r\n {\r\n console.log('Loaded texture: ' + texturePath, ' searchPath: ' + searchPath + ' texture: ', texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n }\r\n else\r\n {\r\n console.error('Error: texture not found in cache:', texturePath);\r\n }\r\n outValue = texture;\r\n }\r\n }\r\n break;\r\n case 'samplerCube':\r\n case 'string':\r\n break;\r\n default:\r\n console.log('Value type not supported: ' + type);\r\n // struct\r\n outValue = null;//toThreeUniform(value);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three wrapping mode\r\n * @param {mx.TextureFilter.wrap} mode\r\n * @returns {THREE.Wrapping}\r\n */\r\nfunction getWrapping(mode)\r\n{\r\n let wrap;\r\n switch (mode)\r\n {\r\n case 1:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.ClampToEdgeWrapping;\r\n break;\r\n case 2:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n case 3:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.MirroredRepeatWrapping;\r\n break;\r\n default:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n }\r\n return wrap;\r\n}\r\n\r\n/**\r\n * Get Three minification filter\r\n * @param {mx.TextureFilter.minFilter} type\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction getMinFilter(type, generateMipmaps)\r\n{\r\n const filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.LinearMipMapLinearFilter : three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n if (type === 0)\r\n {\r\n filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.NearestMipMapNearestFilter : three__WEBPACK_IMPORTED_MODULE_0__.NearestFilter;\r\n }\r\n return filterType;\r\n}\r\n\r\n/**\r\n * Set Three texture parameters\r\n * @param {THREE.Texture} texture\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction setTextureParameters(texture, name, uniforms, flipY = true, generateMipmaps = true)\r\n{\r\n const idx = name.lastIndexOf(IMAGE_PROPERTY_SEPARATOR);\r\n const base = name.substring(0, idx) || name;\r\n\r\n texture.generateMipmaps = generateMipmaps;\r\n texture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.wrapT = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n texture.flipY = flipY;\r\n\r\n if (uniforms.find(base + UADDRESS_MODE_SUFFIX))\r\n {\r\n const uaddressmode = uniforms.find(base + UADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapS = getWrapping(uaddressmode);\r\n }\r\n\r\n if (uniforms.find(base + VADDRESS_MODE_SUFFIX))\r\n {\r\n const vaddressmode = uniforms.find(base + VADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapT = getWrapping(vaddressmode);\r\n }\r\n\r\n const filterType = uniforms.find(base + FILTER_TYPE_SUFFIX) ? uniforms.get(base + FILTER_TYPE_SUFFIX).value : -1;\r\n texture.minFilter = getMinFilter(filterType, generateMipmaps);\r\n}\r\n\r\n/**\r\n * Return the global light rotation matrix\r\n */\r\nfunction getLightRotation()\r\n{\r\n return new three__WEBPACK_IMPORTED_MODULE_0__.Matrix4().makeRotationY(Math.PI / 2);\r\n}\r\n\r\n/**\r\n * Returns all lights nodes in a MaterialX document\r\n * @param {mx.Document} doc \r\n * @returns {Array.}\r\n */\r\nfunction findLights(doc)\r\n{\r\n let lights = [];\r\n for (let node of doc.getNodes())\r\n {\r\n if (node.getType() === \"lightshader\")\r\n lights.push(node);\r\n }\r\n return lights;\r\n}\r\n\r\n/**\r\n * Register lights in shader generation context\r\n * @param {Object} mx MaterialX Module\r\n * @param {Array.} lights Light nodes\r\n * @param {mx.GenContext} genContext Shader generation context\r\n * @returns {Array.}\r\n */\r\nfunction registerLights(mx, lights, genContext)\r\n{\r\n mx.HwShaderGenerator.unbindLightShaders(genContext);\r\n\r\n const lightTypesBound = {};\r\n const lightData = [];\r\n let lightId = 1;\r\n for (let light of lights)\r\n {\r\n let nodeDef = light.getNodeDef();\r\n let nodeName = nodeDef.getName();\r\n if (!lightTypesBound[nodeName])\r\n {\r\n lightTypesBound[nodeName] = lightId;\r\n mx.HwShaderGenerator.bindLightShader(nodeDef, lightId++, genContext);\r\n }\r\n\r\n const lightDirection = light.getValueElement(\"direction\").getValue().getData().data();\r\n const lightColor = light.getValueElement(\"color\").getValue().getData().data();\r\n const lightIntensity = light.getValueElement(\"intensity\").getValue().getData();\r\n\r\n let rotatedLightDirection = new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightDirection)\r\n rotatedLightDirection.transformDirection(getLightRotation())\r\n\r\n lightData.push({\r\n type: lightTypesBound[nodeName],\r\n direction: rotatedLightDirection,\r\n color: new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightColor),\r\n intensity: lightIntensity\r\n });\r\n }\r\n\r\n // Make sure max light count is large enough\r\n genContext.getOptions().hwMaxActiveLightSources = Math.max(genContext.getOptions().hwMaxActiveLightSources, lights.length);\r\n\r\n return lightData;\r\n}\r\n\r\n/**\r\n * Get uniform values for a shader\r\n * @param {mx.shaderStage} shaderStage\r\n * @param {THREE.TextureLoader} textureLoader\r\n */\r\nfunction getUniformValues(shaderStage, textureLoader, searchPath, flipY)\r\n{\r\n let threeUniforms = {};\r\n\r\n const uniformBlocks = Object.values(shaderStage.getUniformBlocks());\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n const name = variable.getVariable();\r\n threeUniforms[name] = new three__WEBPACK_IMPORTED_MODULE_0__.Uniform(toThreeUniform(variable.getType().getName(), value, name, uniforms,\r\n textureLoader, searchPath, flipY));\r\n }\r\n }\r\n });\r\n\r\n return threeUniforms;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/./source/helper.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ findLights: () => (/* binding */ findLights),\n/* harmony export */ getLightRotation: () => (/* binding */ getLightRotation),\n/* harmony export */ getUniformValues: () => (/* binding */ getUniformValues),\n/* harmony export */ prepareEnvTexture: () => (/* binding */ prepareEnvTexture),\n/* harmony export */ registerLights: () => (/* binding */ registerLights)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n//import { getBufferFromFile } from './dropHandling.js';\r\n\r\nconst IMAGE_PROPERTY_SEPARATOR = \"_\";\r\nconst UADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"uaddressmode\";\r\nconst VADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"vaddressmode\";\r\nconst FILTER_TYPE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"filtertype\";\r\nconst IMAGE_PATH_SEPARATOR = \"/\";\r\n\r\n/**\r\n * Initialized the environment texture as MaterialX expects it\r\n * @param {THREE.Texture} texture\r\n * @param {Object} capabilities\r\n * @returns {THREE.Texture}\r\n */\r\nfunction prepareEnvTexture(texture, capabilities)\r\n{\r\n let newTexture = new three__WEBPACK_IMPORTED_MODULE_0__.DataTexture(texture.image.data, texture.image.width, texture.image.height, texture.format, texture.type);\r\n newTexture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n newTexture.anisotropy = capabilities.getMaxAnisotropy();\r\n newTexture.minFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearMipmapLinearFilter;\r\n newTexture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n newTexture.generateMipmaps = true;\r\n newTexture.needsUpdate = true;\r\n\r\n return newTexture;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX vector\r\n * @param {any} value\r\n * @param {any} dimension\r\n * @returns {THREE.Uniform}\r\n */\r\nfunction fromVector(value, dimension)\r\n{\r\n let outValue;\r\n if (value)\r\n {\r\n outValue = value.data();\r\n }\r\n else\r\n {\r\n outValue = [];\r\n for (let i = 0; i < dimension; ++i)\r\n outValue.push(0.0);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX matrix\r\n * @param {mx.matrix} matrix\r\n * @param {mx.matrix.size} dimension\r\n */\r\nfunction fromMatrix(matrix, dimension)\r\n{\r\n let vec = [];\r\n if (matrix)\r\n {\r\n for (let i = 0; i < matrix.numRows(); ++i)\r\n {\r\n for (let k = 0; k < matrix.numColumns(); ++k)\r\n {\r\n vec.push(matrix.getItem(i, k));\r\n }\r\n }\r\n } else\r\n {\r\n for (let i = 0; i < dimension; ++i)\r\n vec.push(0.0);\r\n }\r\n\r\n return vec;\r\n}\r\n\r\nfunction loadTextureFile(uri, loader)\r\n{\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load image file: \", uri); \r\n loader.load(\r\n uri,\r\n function (texture) {\r\n console.log('- Resolve texture:', texture);\r\n resolve(texture);\r\n },\r\n function (xhr) {\r\n // This function will be called while the texture is loading\r\n console.log((xhr.loaded / xhr.total) * 100 + '% loaded');\r\n },\r\n function (error) {\r\n resolve(null);\r\n // This function will be called if there is an error loading the texture\r\n //reject(new Error('Error loading texture: ' + error));\r\n }\r\n ); \r\n }\r\n });\r\n}\r\n\r\n// Function to load an image file and return a buffer using FileReader.readAsArrayBuffer()\r\nfunction getTextureBufferFromFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n //fileReader.addEventListener('load', function (event) {\r\n fileReader.onloadend = function (e)\r\n {\r\n // Get the result of the FileReader as an ArrayBuffer\r\n const buffer = e.target.result;\r\n\r\n // Convert the ArrayBuffer to a Uint8Array for examination\r\n //const uint8Array = new Uint8Array(buffer);\r\n\r\n console.log('--------- Loaded Buffer:', buffer, filePath, '---------');\r\n\r\n // Handle the obtained buffer\r\n console.log('Add texture buffer to cache:', filePath, ', ', buffer);\r\n\r\n const texture = loadTextureFile(URL.createObjectURL(new Blob([buffer])), textureLoader);\r\n //const texture = textureLoader.load(URL.createObjectURL(new Blob([buffer])));\r\n\r\n //const dataURL = 'data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, uint8Array));\r\n //console.log('dataURL:', dataURL)\r\n //const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n // console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n //}); \r\n\r\n //const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture) {\r\n //THREE.Cache.add(filePath, texture);\r\n //setTextureParameters(texture, name, uniforms, flipY);\r\n //outValue = texture;\r\n console.log('Success: texture cached:', filePath, three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(filePath));\r\n //let blah = THREE.Cache.get(texturePath);\r\n //if (blah)\r\n // console.log('blah.image.width:', blah.image.width, ', blah.image.height:', blah.image.height, ', blah.image.data:', blah.image.data, ', blah.image.data.length:', blah.image.data.length, ', blah.image.data.byteLength:', blah.image.data.byteLength, ', blah.image.data.buffer.byteLength:', blah.image.data.buffer.byteLength, ', blah.image.data.buffer:', blah.image.data.buffer);\r\n }\r\n else {\r\n console.error('Error: texture not found in cache:', filePath);\r\n }\r\n\r\n // Resolve the Promise with the obtained buffer\r\n resolve(texture);\r\n };\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n result(null); // reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as an ArrayBuffer\r\n fileReader.readAsArrayBuffer(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n// Function to load an image file and examine the dimensions of the loaded texture\r\nfunction examineImageFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n fileReader.addEventListener('load', function (event) {\r\n // Get the result of the FileReader as a data URL\r\n const dataURL = event.target.result;\r\n console.log('Load URL:', dataURL, filePath, '---------')\r\n\r\n // Create a texture using the data URL\r\n const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n\r\n // Resolve the Promise with the loaded texture\r\n resolve(texture);\r\n });\r\n });\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as a data URL\r\n fileReader.readAsDataURL(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n\r\n/**\r\n * Get Three uniform from MaterialX value\r\n * @param {mx.Uniform.type} type\r\n * @param {mx.Uniform.value} value\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {THREE.textureLoader} textureLoader\r\n */\r\nfunction toThreeUniform(type, value, name, uniforms, textureLoader, searchPath, flipY)\r\n{\r\n let outValue = null;\r\n switch (type)\r\n {\r\n case 'float':\r\n case 'integer':\r\n case 'boolean':\r\n outValue = value;\r\n break;\r\n case 'vector2':\r\n outValue = fromVector(value, 2);\r\n break;\r\n case 'vector3':\r\n case 'color3':\r\n outValue = fromVector(value, 3);\r\n break;\r\n case 'vector4':\r\n case 'color4':\r\n outValue = fromVector(value, 4);\r\n break;\r\n case 'matrix33':\r\n outValue = fromMatrix(value, 9);\r\n break;\r\n case 'matrix44':\r\n outValue = fromMatrix(value, 16);\r\n break;\r\n case 'filename':\r\n if (value)\r\n {\r\n let texturePath = searchPath + IMAGE_PATH_SEPARATOR + value;\r\n if (value.startsWith('blob:')) \r\n {\r\n texturePath = value;\r\n console.log('Load blob URL:', texturePath);\r\n }\r\n else if (value.startsWith('http'))\r\n {\r\n texturePath = value;\r\n console.log('Load HTTP URL:', texturePath);\r\n }\r\n else if (value.startsWith('data:'))\r\n {\r\n texturePath = value;\r\n console.log('Load data URL:', texturePath);\r\n }\r\n const textureExists = three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(texturePath);\r\n if (!textureExists)\r\n {\r\n \r\n // Call the function to examine the image file\r\n /* examineImageFile(texturePath, textureLoader)\r\n .then(texture => {\r\n console.log('Add texture to cache:', texturePath, texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture; \r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n // Call the function to get a buffer from the file\r\n /*\r\n getTextureBufferFromFile(texturePath, textureLoader)\r\n .then(texture => {\r\n if (texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture;\r\n console.log('-- FINISHED loading: ' + texturePath)\r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n //console.log('Image file not loaded: ', texturePath);\r\n }\r\n //else\r\n {\r\n outValue = textureLoader.load(\r\n texturePath, \r\n function (texture) {\r\n console.log('Loaded texture: ' + texturePath, texture);\r\n /* console.log('Texture image properties:');\r\n console.log('Width:', texture.image.width);\r\n console.log('Height:', texture.image.height);\r\n console.log('Format:', texture.image.format);\r\n console.log('Is Data Loaded:', texture.image.complete); // */ \r\n outValue = texture;\r\n },\r\n undefined,\r\n function (error) {\r\n console.error('Error loading texture: ', error);\r\n }); \r\n\r\n // Set address & filtering mode\r\n if (outValue)\r\n setTextureParameters(outValue, name, uniforms, flipY);\r\n }\r\n }\r\n break;\r\n case 'samplerCube':\r\n case 'string':\r\n break;\r\n default:\r\n console.log('Value type not supported: ' + type);\r\n // struct\r\n outValue = null;//toThreeUniform(value);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three wrapping mode\r\n * @param {mx.TextureFilter.wrap} mode\r\n * @returns {THREE.Wrapping}\r\n */\r\nfunction getWrapping(mode)\r\n{\r\n let wrap;\r\n switch (mode)\r\n {\r\n case 1:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.ClampToEdgeWrapping;\r\n break;\r\n case 2:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n case 3:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.MirroredRepeatWrapping;\r\n break;\r\n default:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n }\r\n return wrap;\r\n}\r\n\r\n/**\r\n * Get Three minification filter\r\n * @param {mx.TextureFilter.minFilter} type\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction getMinFilter(type, generateMipmaps)\r\n{\r\n const filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.LinearMipMapLinearFilter : three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n if (type === 0)\r\n {\r\n filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.NearestMipMapNearestFilter : three__WEBPACK_IMPORTED_MODULE_0__.NearestFilter;\r\n }\r\n return filterType;\r\n}\r\n\r\n/**\r\n * Set Three texture parameters\r\n * @param {THREE.Texture} texture\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction setTextureParameters(texture, name, uniforms, flipY = true, generateMipmaps = true)\r\n{\r\n const idx = name.lastIndexOf(IMAGE_PROPERTY_SEPARATOR);\r\n const base = name.substring(0, idx) || name;\r\n\r\n texture.generateMipmaps = generateMipmaps;\r\n texture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.wrapT = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n texture.flipY = flipY;\r\n\r\n if (uniforms.find(base + UADDRESS_MODE_SUFFIX))\r\n {\r\n const uaddressmode = uniforms.find(base + UADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapS = getWrapping(uaddressmode);\r\n }\r\n\r\n if (uniforms.find(base + VADDRESS_MODE_SUFFIX))\r\n {\r\n const vaddressmode = uniforms.find(base + VADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapT = getWrapping(vaddressmode);\r\n }\r\n\r\n const filterType = uniforms.find(base + FILTER_TYPE_SUFFIX) ? uniforms.get(base + FILTER_TYPE_SUFFIX).value : -1;\r\n texture.minFilter = getMinFilter(filterType, generateMipmaps);\r\n}\r\n\r\n/**\r\n * Return the global light rotation matrix\r\n */\r\nfunction getLightRotation()\r\n{\r\n return new three__WEBPACK_IMPORTED_MODULE_0__.Matrix4().makeRotationY(Math.PI / 2);\r\n}\r\n\r\n/**\r\n * Returns all lights nodes in a MaterialX document\r\n * @param {mx.Document} doc \r\n * @returns {Array.}\r\n */\r\nfunction findLights(doc)\r\n{\r\n let lights = [];\r\n for (let node of doc.getNodes())\r\n {\r\n if (node.getType() === \"lightshader\")\r\n lights.push(node);\r\n }\r\n return lights;\r\n}\r\n\r\n/**\r\n * Register lights in shader generation context\r\n * @param {Object} mx MaterialX Module\r\n * @param {Array.} lights Light nodes\r\n * @param {mx.GenContext} genContext Shader generation context\r\n * @returns {Array.}\r\n */\r\nfunction registerLights(mx, lights, genContext)\r\n{\r\n mx.HwShaderGenerator.unbindLightShaders(genContext);\r\n\r\n const lightTypesBound = {};\r\n const lightData = [];\r\n let lightId = 1;\r\n for (let light of lights)\r\n {\r\n let nodeDef = light.getNodeDef();\r\n let nodeName = nodeDef.getName();\r\n if (!lightTypesBound[nodeName])\r\n {\r\n lightTypesBound[nodeName] = lightId;\r\n mx.HwShaderGenerator.bindLightShader(nodeDef, lightId++, genContext);\r\n }\r\n\r\n const lightDirection = light.getValueElement(\"direction\").getValue().getData().data();\r\n const lightColor = light.getValueElement(\"color\").getValue().getData().data();\r\n const lightIntensity = light.getValueElement(\"intensity\").getValue().getData();\r\n\r\n let rotatedLightDirection = new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightDirection)\r\n rotatedLightDirection.transformDirection(getLightRotation())\r\n\r\n lightData.push({\r\n type: lightTypesBound[nodeName],\r\n direction: rotatedLightDirection,\r\n color: new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightColor),\r\n intensity: lightIntensity\r\n });\r\n }\r\n\r\n // Make sure max light count is large enough\r\n genContext.getOptions().hwMaxActiveLightSources = Math.max(genContext.getOptions().hwMaxActiveLightSources, lights.length);\r\n\r\n return lightData;\r\n}\r\n\r\n/**\r\n * Get uniform values for a shader\r\n * @param {mx.shaderStage} shaderStage\r\n * @param {THREE.TextureLoader} textureLoader\r\n */\r\nfunction getUniformValues(shaderStage, textureLoader, searchPath, flipY)\r\n{\r\n let threeUniforms = {};\r\n\r\n const uniformBlocks = Object.values(shaderStage.getUniformBlocks());\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n const name = variable.getVariable();\r\n //console.log('fill uniform, name:', name, ', value:', value);\r\n threeUniforms[name] = new three__WEBPACK_IMPORTED_MODULE_0__.Uniform(toThreeUniform(variable.getType().getName(), value, name, uniforms,\r\n textureLoader, searchPath, flipY));\r\n }\r\n }\r\n });\r\n\r\n return threeUniforms;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/./source/helper.js?"); /***/ }), @@ -56,17 +66,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ren \**************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* binding */ Editor),\n/* harmony export */ Material: () => (/* binding */ Material),\n/* harmony export */ Scene: () => (/* binding */ Scene),\n/* harmony export */ Viewer: () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n/* harmony import */ var three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! three/examples/jsm/loaders/GLTFLoader */ \"./node_modules/three/examples/jsm/loaders/GLTFLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! three/examples/jsm/loaders/ObjLoader */ \"./node_modules/three/examples/jsm/loaders/ObjLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! three/examples/jsm/loaders/RGBELoader.js */ \"./node_modules/three/examples/jsm/loaders/RGBELoader.js\");\n/* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ \"./source/helper.js\");\n/* harmony import */ var lil_gui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lil-gui */ \"./node_modules/lil-gui/dist/lil-gui.esm.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst ALL_GEOMETRY_SPECIFIER = \"*\";\r\nconst NO_GEOMETRY_SPECIFIER = \"\";\r\nconst DAG_PATH_SEPERATOR = \"/\";\r\n\r\n// Logging toggle\r\nvar logDetailedTime = false;\r\n\r\n/*\r\n Scene management\r\n*/\r\nclass Scene\r\n{\r\n constructor()\r\n {\r\n this._geometryURL = new URLSearchParams(document.location.search).get(\"geom\");\r\n if (!this._geometryURL)\r\n {\r\n this._geometryURL = 'Geometry/teapot.glb';\r\n }\r\n }\r\n\r\n initialize()\r\n {\r\n this._scene = new three__WEBPACK_IMPORTED_MODULE_1__.Scene();\r\n this._scene.background = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n this._scene.background.convertSRGBToLinear();\r\n\r\n let cc = document.getElementById('webglcanvas');\r\n const aspectRatio = cc.width / cc.height;\r\n const cameraNearDist = 0.01;\r\n const cameraFarDist = 1000.0;\r\n const cameraFOV = 60.0;\r\n this._camera = new three__WEBPACK_IMPORTED_MODULE_1__.PerspectiveCamera(cameraFOV, aspectRatio, cameraNearDist, cameraFarDist);\r\n\r\n this.#_gltfLoader = new three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__.GLTFLoader();\r\n this.#_objLoader = new three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__.OBJLoader();\r\n\r\n this.#_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n this.#_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n this.#_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n }\r\n\r\n // Set whether to flip UVs in V for loaded geometry\r\n setFlipGeometryV(val)\r\n {\r\n this.#_flipV = val;\r\n }\r\n\r\n // Get whether to flip UVs in V for loaded geometry\r\n getFlipGeometryV()\r\n {\r\n return this.#_flipV;\r\n }\r\n\r\n // Utility to perform geometry file load\r\n loadGeometryFile(geometryFilename, loader)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load geometry: \", geometryFilename); \r\n loader.load(geometryFilename, data => resolve(data), null, reject);\r\n }\r\n });\r\n }\r\n\r\n //\r\n // Load in geometry specified by a given file name,\r\n // then update the scene geometry and camera.\r\n //\r\n async loadGeometry(viewer, orbitControls)\r\n {\r\n var startTime = performance.now();\r\n var geomLoadTime = startTime;\r\n\r\n var gltfData = null;\r\n if (this.getGeometryURL().endsWith('glb'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n else if (this.getGeometryURL().endsWith('obj'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_objLoader);\r\n else \r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n\r\n if (gltfData == null)\r\n {\r\n console.log(\"Failed to load geometry: \", this.getGeometryURL());\r\n return;\r\n }\r\n\r\n const scene = this.getScene();\r\n while (scene.children.length > 0)\r\n {\r\n scene.remove(scene.children[0]);\r\n }\r\n\r\n this.#_rootNode = null;\r\n const model = gltfData.scene;\r\n if (!model)\r\n {\r\n const geometry = new three__WEBPACK_IMPORTED_MODULE_1__.BoxGeometry(1, 1, 1);\r\n const material = new three__WEBPACK_IMPORTED_MODULE_1__.MeshBasicMaterial({ color: 0xdddddd });\r\n const cube = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(geometry, material);\r\n obj = new three__WEBPACK_IMPORTED_MODULE_1__.Group();\r\n obj.add(geometry);\r\n }\r\n else\r\n {\r\n this.#_rootNode = model;\r\n }\r\n scene.add(model);\r\n\r\n // Always reset controls based on camera for each load. \r\n orbitControls.reset();\r\n //console.log(\"- Scene load time: \", performance.now() - geomLoadTime, \"ms\");\r\n\r\n //console.log(\"Total geometry load time: \", performance.now() - startTime, \" ms.\");\r\n\r\n viewer.getMaterial().clearSoloMaterialUI();\r\n viewer.getMaterial().updateMaterialAssignments(viewer, viewer.getMaterial().getSoloMaterial());\r\n this.setUpdateTransforms();\r\n\r\n this.updateScene(viewer, orbitControls);\r\n }\r\n\r\n //\r\n // Update the geometry buffer, assigned materials, and camera controls.\r\n //\r\n updateScene(viewer, orbitControls)\r\n {\r\n var startUpdateSceneTime = performance.now();\r\n var uvTime = 0;\r\n var normalTime = 0;\r\n var tangentTime = 0;\r\n var streamTime = 0;\r\n var bboxTime = 0;\r\n\r\n var startBboxTime = performance.now();\r\n const bbox = new three__WEBPACK_IMPORTED_MODULE_1__.Box3().setFromObject(this._scene);\r\n const bsphere = new three__WEBPACK_IMPORTED_MODULE_1__.Sphere();\r\n bbox.getBoundingSphere(bsphere);\r\n bboxTime = performance.now() - startBboxTime;\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n\r\n\r\n this._scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n var startUVTime = performance.now();\r\n if (!child.geometry.attributes.uv)\r\n {\r\n const posCount = child.geometry.attributes.position.count;\r\n const uvs = [];\r\n const pos = child.geometry.attributes.position.array;\r\n\r\n for (let i = 0; i < posCount; i++)\r\n {\r\n uvs.push((pos[i * 3] - bsphere.center.x) / bsphere.radius);\r\n uvs.push((pos[i * 3 + 1] - bsphere.center.y) / bsphere.radius);\r\n }\r\n\r\n child.geometry.setAttribute('uv', new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(new Float32Array(uvs), 2));\r\n }\r\n else if (flipV)\r\n {\r\n const uvCount = child.geometry.attributes.position.count;\r\n const uvs = child.geometry.attributes.uv.array;\r\n for (let i = 0; i < uvCount; i++)\r\n {\r\n let v = 1.0 - (uvs[i * 2 + 1]);\r\n uvs[i * 2 + 1] = v;\r\n }\r\n }\r\n uvTime += performance.now() - startUVTime;\r\n\r\n if (!child.geometry.attributes.normal)\r\n {\r\n var startNormalTime = performance.new();\r\n child.geometry.computeVertexNormals();\r\n normalTime += performance.now() - startNormalTime;\r\n }\r\n\r\n if (child.geometry.getIndex())\r\n {\r\n if (!child.geometry.attributes.tangent)\r\n {\r\n var startTangentTime = performance.now();\r\n child.geometry.computeTangents();\r\n tangentTime += performance.now() - startTangentTime;\r\n }\r\n }\r\n\r\n // Use default MaterialX naming convention.\r\n var startStreamTime = performance.now();\r\n child.geometry.attributes.i_position = child.geometry.attributes.position;\r\n child.geometry.attributes.i_normal = child.geometry.attributes.normal;\r\n child.geometry.attributes.i_tangent = child.geometry.attributes.tangent;\r\n child.geometry.attributes.i_texcoord_0 = child.geometry.attributes.uv;\r\n streamTime += performance.now() - startStreamTime;\r\n }\r\n });\r\n\r\n //console.log(\"- Stream update time: \", performance.now() - startUpdateSceneTime, \"ms\");\r\n if (logDetailedTime)\r\n {\r\n console.log(' - UV time: ', uvTime);\r\n console.log(' - Normal time: ', normalTime);\r\n console.log(' - Tangent time: ', tangentTime);\r\n console.log(' - Stream Update time: ', streamTime);\r\n console.log(' - Bounds compute time: ', bboxTime);\r\n }\r\n\r\n // Update the background\r\n this._scene.background = this.getBackground();\r\n\r\n //console.log('bounding sphere:', bsphere.center, bsphere.radius);\r\n\r\n // Fit camera to model\r\n const camera = this.getCamera();\r\n camera.position.y = bsphere.center.y;\r\n camera.position.z = bsphere.radius * 2.0;\r\n camera.updateProjectionMatrix();\r\n\r\n orbitControls.target = bsphere.center;\r\n orbitControls.update();\r\n }\r\n\r\n setUpdateTransforms(val=true)\r\n {\r\n this.#_updateTransforms = val;\r\n }\r\n\r\n getUpdateTransforms()\r\n {\r\n return this.#_updateTransforms;\r\n }\r\n\r\n updateTransforms()\r\n {\r\n // Only update on demand versus continuously.\r\n // Call setUpdateTransforms() to trigger an update here.\r\n // Required for: scene geometry, camera change and viewport resize. \r\n if (!this.#_updateTransforms)\r\n {\r\n return;\r\n }\r\n this.setUpdateTransforms(false);\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const uniforms = child.material.uniforms;\r\n if (uniforms)\r\n {\r\n uniforms.u_worldMatrix.value = child.matrixWorld;\r\n uniforms.u_viewProjectionMatrix.value = this.#_viewProjMat.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);\r\n\r\n if (uniforms.u_viewPosition)\r\n uniforms.u_viewPosition.value = camera.getWorldPosition(this.#_worldViewPos);\r\n\r\n if (uniforms.u_worldInverseTransposeMatrix)\r\n uniforms.u_worldInverseTransposeMatrix.value =\r\n new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4().setFromMatrix3(this.#_normalMat.getNormalMatrix(child.matrixWorld));\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Determine string DAG path based on individual node names.\r\n getDagPath(node)\r\n {\r\n const rootNode = this.#_rootNode;\r\n\r\n let path = [node.name];\r\n while (node.parent)\r\n {\r\n node = node.parent;\r\n if (node)\r\n {\r\n // Stop at the root of the scene read in.\r\n if (node == rootNode)\r\n {\r\n break;\r\n }\r\n path.unshift(node.name);\r\n }\r\n }\r\n return path;\r\n }\r\n\r\n // Assign material shader to associated geometry\r\n updateMaterial(matassign)\r\n {\r\n let assigned = 0;\r\n\r\n const shader = matassign.getShader();\r\n const material = matassign.getMaterial().getName();\r\n const geometry = matassign.getGeometry();\r\n const collection = matassign.getCollection();\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const dagPath = this.getDagPath(child).join('/');\r\n\r\n // Note that this is a very simplistic\r\n // assignment resolve and assumes basic\r\n // regular expression name match.\r\n let matches = (geometry == ALL_GEOMETRY_SPECIFIER);\r\n if (!matches)\r\n {\r\n if (collection)\r\n {\r\n if (collection.matchesGeomString(dagPath))\r\n {\r\n matches = true;\r\n }\r\n }\r\n else\r\n {\r\n if (geometry != NO_GEOMETRY_SPECIFIER)\r\n {\r\n const paths = geometry.split(',');\r\n for (let path of paths)\r\n {\r\n if (dagPath.match(path))\r\n {\r\n matches = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (matches)\r\n {\r\n child.material = shader;\r\n assigned++;\r\n }\r\n }\r\n });\r\n\r\n return assigned;\r\n }\r\n\r\n updateCamera()\r\n {\r\n const camera = this.getCamera();\r\n let container = document.getElementById('canvasContainer');\r\n var maxWidth = 4086;\r\n var maxHeight = 1024;\r\n var width = Math.min(container.clientWidth, maxWidth);\r\n var height = Math.min(container.clientHeight, maxHeight); \r\n\r\n camera.aspect = width / height;\r\n camera.updateProjectionMatrix();\r\n }\r\n\r\n getScene()\r\n {\r\n return this._scene;\r\n }\r\n\r\n getCamera()\r\n {\r\n return this._camera;\r\n }\r\n\r\n getGeometryURL()\r\n {\r\n return this._geometryURL;\r\n }\r\n\r\n setGeometryURL(url)\r\n {\r\n this._geometryURL = url;\r\n }\r\n\r\n setBackgroundTexture(texture)\r\n {\r\n this.#_backgroundTexture = texture;\r\n }\r\n\r\n getShowBackgroundTexture()\r\n {\r\n return this.#_showBackgroundTexture;\r\n }\r\n\r\n setShowBackgroundTexture(enable)\r\n {\r\n this.#_showBackgroundTexture = enable;\r\n }\r\n\r\n getBackground()\r\n {\r\n if (this.#_backgroundTexture && this.#_showBackgroundTexture)\r\n {\r\n return this.#_backgroundTexture;\r\n }\r\n var color = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n color.convertSRGBToLinear();\r\n return color;\r\n }\r\n\r\n toggleBackgroundTexture()\r\n {\r\n this.#_showBackgroundTexture = !this.#_showBackgroundTexture;\r\n this._scene.background = this.getBackground();\r\n }\r\n\r\n // Geometry file\r\n #_geometryURL = '';\r\n // Geometry loaders\r\n #_gltfLoader = null;\r\n #_objLoader = null;\r\n // Flip V coordinate of texture coordinates.\r\n // Set to true to be consistent with desktop viewer.\r\n #_flipV = true;\r\n\r\n // Scene\r\n #_scene = null;\r\n\r\n // Camera\r\n #_camera = null;\r\n\r\n // Background color\r\n #_backgroundColor = 0x777777;\r\n\r\n // Background texture\r\n #_backgroundTexture = null;\r\n #_showBackgroundTexture = false;\r\n\r\n // Transform matrices\r\n #_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n #_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n #_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n #_updateTransforms = true;\r\n\r\n // Root node of imported scene\r\n #_rootNode = null;\r\n}\r\n\r\n/* \r\n Property editor\r\n*/\r\nclass Editor\r\n{\r\n // Initialize the editor, clearing any elements from previous materials.\r\n initialize()\r\n {\r\n Array.from(document.getElementsByClassName('lil-gui')).forEach(\r\n function (element, index, array)\r\n {\r\n if (element.className)\r\n {\r\n element.remove();\r\n }\r\n }\r\n );\r\n\r\n let parent = document.getElementById( 'webglcanvas' );\r\n //console.log('parent:', parent);\r\n this._gui = new lil_gui__WEBPACK_IMPORTED_MODULE_4__[\"default\"]( { title: \"Properties\" }, { container: parent } );\r\n //parent = this._gui.domElement;\r\n //console.log('gui parent:', parent);\r\n // Parent parent under webglcanvas\r\n //document.getElementById( 'webglcanvas' ).appendChild( parent );\r\n\r\n //this._gui = new GUI({ title: \"Property Editor\" });\r\n this._gui.close();\r\n this._gui.hide();\r\n }\r\n\r\n // Update ui properties\r\n // - Hide close button\r\n // - Update transparency so scene shows through if overlapping\r\n updateProperties(targetOpacity = 1)\r\n {\r\n // Set opacity\r\n Array.from(document.getElementsByClassName('dg')).forEach(\r\n function (element, index, array)\r\n {\r\n element.style.opacity = targetOpacity;\r\n }\r\n );\r\n }\r\n\r\n getGUI()\r\n {\r\n return this._gui;\r\n }\r\n\r\n _gui = null;\r\n}\r\n\r\nclass MaterialAssign\r\n{\r\n constructor(material, geometry, collection)\r\n {\r\n this._material = material;\r\n this._geometry = geometry;\r\n this._collection = collection;\r\n this._shader = null;\r\n this._materialUI = null;\r\n }\r\n\r\n setMaterialUI(value)\r\n {\r\n this._materialUI = value;\r\n }\r\n\r\n getMaterialUI()\r\n {\r\n return this._materialUI;\r\n }\r\n\r\n setShader(shader)\r\n {\r\n this._shader = shader;\r\n }\r\n\r\n getShader()\r\n {\r\n return this._shader;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this._material;\r\n }\r\n\r\n getGeometry()\r\n {\r\n return this._geometry;\r\n }\r\n\r\n setGeometry(value)\r\n {\r\n this._geometry = value;\r\n }\r\n\r\n getCollection()\r\n {\r\n return this._collection;\r\n }\r\n\r\n // MaterialX material node name\r\n _material;\r\n\r\n // MaterialX assignment geometry string\r\n _geometry;\r\n\r\n // MaterialX assignment collection\r\n _collection;\r\n\r\n // THREE.JS shader\r\n _shader;\r\n}\r\n\r\nclass Material\r\n{\r\n constructor()\r\n {\r\n this._materials = [];\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n this._shaderInterfaceType = 0;\r\n }\r\n\r\n clearMaterials()\r\n {\r\n this._materials.length = 0;\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n }\r\n\r\n setSoloMaterial(value)\r\n {\r\n this._soloMaterial = value;\r\n }\r\n\r\n getSoloMaterial()\r\n {\r\n return this._soloMaterial;\r\n }\r\n\r\n // If no material file is selected, we programmatically create a default material as a fallback\r\n static createFallbackMaterial(doc)\r\n {\r\n let ssNode = doc.getChild('Generated_Default_Shader');\r\n if (ssNode)\r\n {\r\n return ssNode;\r\n }\r\n const ssName = 'Generated_Default_Shader';\r\n ssNode = doc.addChildOfCategory('standard_surface', ssName);\r\n ssNode.setType('surfaceshader');\r\n const smNode = doc.addChildOfCategory('surfacematerial', 'Default');\r\n smNode.setType('material');\r\n const shaderElement = smNode.addInput('surfaceshader');\r\n shaderElement.setType('surfaceshader');\r\n shaderElement.setNodeName(ssName);\r\n\r\n return ssNode;\r\n }\r\n\r\n async loadMaterialFile(loader, materialFilename)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n loader.load(materialFilename, data => resolve(data), null, reject);\r\n });\r\n }\r\n\r\n async loadMaterials(viewer, materialFilename)\r\n {\r\n const fileloader = viewer.getFileLoader();\r\n\r\n let mtlxMaterial = await viewer.getMaterial().loadMaterialFile(fileloader, materialFilename);\r\n\r\n this.loadMaterialFromString(viewer, mtlxMaterial, materialFilename);\r\n }\r\n\r\n async loadMaterialFromString(viewer, mtlxMaterial, materialFilename)\r\n {\r\n var startTime = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n\r\n // Re-initialize document\r\n var startDocTime = performance.now();\r\n var doc = mx.createDocument();\r\n doc.importLibrary(viewer.getLibrary());\r\n if (!doc.validate())\r\n {\r\n console.log(\"MaterialX document validation failed.\");\r\n return;\r\n }\r\n\r\n viewer.setDocument(doc);\r\n\r\n // Load lighting setup into document\r\n doc.importLibrary(viewer.getLightRig());\r\n\r\n //console.log(\"- Material document load time: \", performance.now() - startDocTime, \"ms.\");\r\n\r\n // Set search path. Assumes images are relative to current file\r\n // location.\r\n if (!materialFilename) materialFilename = \"/\";\r\n const paths = materialFilename.split('/');\r\n paths.pop();\r\n const searchPath = paths.join('/');\r\n\r\n // Load material\r\n if (mtlxMaterial)\r\n try { \r\n await mx.readFromXmlString(doc, mtlxMaterial, searchPath);\r\n }\r\n catch (error) {\r\n console.error('Error loading material file: ', error);\r\n }\r\n else\r\n Material.createFallbackMaterial(doc);\r\n\r\n // Check if there are any looks defined in the document\r\n // If so then traverse the looks for all material assignments.\r\n // Generate code and compile for any associated surface shader\r\n // and assign to the associated geometry. If there are no looks\r\n // then the first material is found and assignment to all the\r\n // geometry.\r\n this.clearMaterials();\r\n var looks = doc.getLooks();\r\n if (looks.length)\r\n {\r\n for (let look of looks)\r\n {\r\n const materialAssigns = look.getMaterialAssigns();\r\n for (let materialAssign of materialAssigns)\r\n {\r\n let matName = materialAssign.getMaterial();\r\n if (matName)\r\n {\r\n let mat = doc.getChild(matName);\r\n var shader;\r\n if (mat)\r\n {\r\n var shaders = mx.getShaderNodes(mat);\r\n if (shaders.length)\r\n {\r\n shader = shaders[0];\r\n }\r\n }\r\n let collection = materialAssign.getCollection();\r\n let geom = materialAssign.getGeom();\r\n let newAssignment;\r\n if (collection || geom)\r\n {\r\n // Remove leading \"/\" from collection and geom for \r\n // later assignment comparison checking\r\n if (collection && collection.charAt(0) == \"/\")\r\n {\r\n collection = collection.slice(1);\r\n }\r\n if (geom && geom.charAt(0) == \"/\")\r\n {\r\n geom = geom.slice(1);\r\n }\r\n newAssignment = new MaterialAssign(shader, geom, collection);\r\n }\r\n else\r\n {\r\n newAssignment = new MaterialAssign(shader, NO_GEOMETRY_SPECIFIER, null);\r\n }\r\n\r\n if (newAssignment)\r\n {\r\n this._materials.push(newAssignment);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // Search for any surface shaders. The first found\r\n // is assumed to be assigned to the entire scene\r\n // The identifier used is \"*\" to mean the entire scene. \r\n const materialNodes = doc.getMaterialNodes();\r\n let shaderList = [];\r\n let foundRenderable = false;\r\n for (let i = 0; i < materialNodes.length; ++i)\r\n {\r\n let materialNode = materialNodes[i];\r\n if (materialNode)\r\n {\r\n //console.log('Scan material: ', materialNode.getNamePath());\r\n let shaderNodes = mx.getShaderNodes(materialNode)\r\n if (shaderNodes.length > 0)\r\n {\r\n let shaderNodePath = shaderNodes[0].getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n //console.log('-- add shader: ', shaderNodePath);\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNodes[0], assignment));\r\n }\r\n }\r\n }\r\n }\r\n const nodeGraphs = doc.getNodeGraphs();\r\n for (let i = 0; i < nodeGraphs.length; ++i)\r\n {\r\n let nodeGraph = nodeGraphs[i];\r\n if (nodeGraph)\r\n {\r\n if (nodeGraph.hasAttribute('nodedef') || nodeGraph.hasSourceUri())\r\n {\r\n continue;\r\n }\r\n // Skip any nodegraph that is connected to something downstream\r\n if (nodeGraph.getDownstreamPorts().length > 0)\r\n {\r\n continue\r\n }\r\n let outputs = nodeGraph.getOutputs();\r\n for (let j = 0; j < outputs.length; ++j)\r\n {\r\n let output = outputs[j];\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n let newMat = new MaterialAssign(output, assignment, null);\r\n this._materials.push(newMat);\r\n }\r\n }\r\n }\r\n }\r\n const outputs = doc.getOutputs();\r\n for (let i = 0; i < outputs.length; ++i)\r\n {\r\n let output = outputs[i];\r\n if (output)\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n this._materials.push(new MaterialAssign(output, assignment));\r\n }\r\n }\r\n\r\n const shaderNodes = [];\r\n for (let i = 0; i < shaderNodes.length; ++i)\r\n {\r\n let shaderNode = shaderNodes[i];\r\n let shaderNodePath = shaderNode.getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNode, assignment));\r\n }\r\n }\r\n }\r\n\r\n // Assign to default material if none found\r\n if (this._materials.length == 0)\r\n {\r\n const defaultNode = Material.createFallbackMaterial(doc);\r\n this._materials.push(new MaterialAssign(defaultNode, ALL_GEOMETRY_SPECIFIER));\r\n }\r\n\r\n // Create a new shader for each material node.\r\n // Only create the shader once even if assigned more than once.\r\n var startGenTime = performance.now();\r\n let shaderMap = new Map();\r\n let closeUI = false;\r\n for (let matassign of this._materials)\r\n {\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n let shader = shaderMap[materialName];\r\n if (!shader)\r\n {\r\n shader = viewer.getMaterial().generateMaterial(matassign, viewer, searchPath, closeUI);\r\n shaderMap[materialName] = shader;\r\n }\r\n matassign.setShader(shader);\r\n closeUI = true;\r\n }\r\n console.log(\"- Generate (\", this._materials.length, \") shader(s) time: \", performance.now() - startGenTime, \" ms.\",);\r\n\r\n // Update scene shader assignments\r\n this.updateMaterialAssignments(viewer, this._soloMaterial);\r\n\r\n // Mark transform update\r\n viewer.getScene().setUpdateTransforms(true);\r\n\r\n //console.log(\"Total material time: \", (performance.now() - startTime), \"ms\");\r\n }\r\n\r\n //\r\n // Update the assignments for scene objects based on the\r\n // material assignment information stored in the viewer.\r\n // Note: If none of the MaterialX assignments match the geometry\r\n // in the scene, then the first material assignment shader is assigned\r\n // to the entire scene.\r\n //\r\n async updateMaterialAssignments(viewer, soloMaterial)\r\n {\r\n console.log(\"Update material assignments. Solo=\", soloMaterial?soloMaterial:\"\");\r\n var startTime = performance.now();\r\n\r\n let assigned = 0;\r\n let assignedSolo = false;\r\n for (let matassign of this._materials)\r\n {\r\n if (matassign.getShader())\r\n {\r\n if (soloMaterial.length)\r\n {\r\n if (matassign.getMaterial().getNamePath() == soloMaterial)\r\n {\r\n let temp = matassign.getGeometry();\r\n matassign.setGeometry(ALL_GEOMETRY_SPECIFIER);\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n matassign.setGeometry(temp);\r\n assignedSolo = true;\r\n break\r\n }\r\n }\r\n else\r\n {\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n }\r\n }\r\n }\r\n if (assigned == 0 && this._materials.length)\r\n {\r\n this._defaultMaterial = new MaterialAssign(this._materials[0].getMaterial(), ALL_GEOMETRY_SPECIFIER);\r\n this._defaultMaterial.setShader(this._materials[0].getShader());\r\n viewer.getScene().updateMaterial(this._defaultMaterial);\r\n }\r\n\r\n //if (assigned > 0)\r\n //{\r\n // console.log('Material assignment time: ', performance.now() - startTime, \" ms.\");\r\n //}\r\n }\r\n\r\n // \r\n // Generate a new material for a given element\r\n //\r\n generateMaterial(matassign, viewer, searchPath, closeUI)\r\n {\r\n var elem = matassign.getMaterial();\r\n\r\n var startGenerateMat = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n const textureLoader = new three__WEBPACK_IMPORTED_MODULE_1__.TextureLoader();\r\n\r\n const lights = viewer.getLights();\r\n const lightData = viewer.getLightData();\r\n const radianceTexture = viewer.getRadianceTexture();\r\n const irradianceTexture = viewer.getIrradianceTexture();\r\n const gen = viewer.getGenerator();\r\n const genContext = viewer.getGenContext();\r\n\r\n // Perform transparency check on renderable item\r\n var startTranspCheckTime = performance.now();\r\n const isTransparent = mx.isTransparentSurface(elem, gen.getTarget());\r\n genContext.getOptions().hwTransparency = isTransparent;\r\n // Always set to complete. \r\n // Can consider option to set to reduced as the parsing of large numbers of uniforms (e.g. on shading models)\r\n // can be quite expensive.\r\n //if (this._shaderInterfaceType == 0)\r\n // genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_REDUCED;\r\n //else\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_COMPLETE;\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Transparency check time: \", performance.now() - startTranspCheckTime, \"ms\");\r\n\r\n // Generate GLES code\r\n var startMTLXGenTime = performance.now();\r\n let shader = gen.generate(elem.getNamePath(), elem, genContext);\r\n if (logDetailedTime)\r\n console.log(\" - MaterialX gen time: \", performance.now() - startMTLXGenTime, \"ms\");\r\n\r\n var startUniformUpdate = performance.now();\r\n\r\n // Get shaders and uniform values\r\n let vShader = shader.getSourceCode(\"vertex\");\r\n let fShader = shader.getSourceCode(\"pixel\");\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n let uniforms = {\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('vertex'), textureLoader, searchPath, flipV),\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('pixel'), textureLoader, searchPath, flipV),\r\n }\r\n\r\n Object.assign(uniforms, {\r\n u_numActiveLightSources: { value: lights.length}, //value: lights.length },\r\n u_lightData: { value: lightData },\r\n u_envMatrix: { value: (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getLightRotation)() },\r\n u_envRadiance: { value: radianceTexture },\r\n u_envRadianceMips: { value: Math.trunc(Math.log2(Math.max(radianceTexture.image.width, radianceTexture.image.height))) + 1 },\r\n u_envRadianceSamples: { value: 2 },\r\n u_envIrradiance: { value: irradianceTexture },\r\n u_refractionEnv: { value: false }\r\n });\r\n\r\n // Create Three JS Material\r\n let newMaterial = new three__WEBPACK_IMPORTED_MODULE_1__.RawShaderMaterial({\r\n uniforms: uniforms,\r\n vertexShader: vShader,\r\n fragmentShader: fShader,\r\n transparent: isTransparent,\r\n blendEquation: three__WEBPACK_IMPORTED_MODULE_1__.AddEquation,\r\n blendSrc: three__WEBPACK_IMPORTED_MODULE_1__.OneMinusSrcAlphaFactor,\r\n blendDst: three__WEBPACK_IMPORTED_MODULE_1__.SrcAlphaFactor,\r\n side: three__WEBPACK_IMPORTED_MODULE_1__.DoubleSide\r\n });\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Three material update time: \", performance.now() - startUniformUpdate, \"ms\");\r\n\r\n // Update property editor\r\n //const gui = viewer.getEditor().getGUI();\r\n //this.updateEditor(matassign, shader, newMaterial, gui, closeUI, viewer);\r\n\r\n if (logDetailedTime)\r\n console.log(\"- Per material generate time: \", performance.now() - startGenerateMat, \"ms\");\r\n\r\n return newMaterial;\r\n }\r\n\r\n clearSoloMaterialUI()\r\n {\r\n for (let i = 0; i < this._materials.length; ++i)\r\n {\r\n let matassign = this._materials[i];\r\n let matUI = matassign.getMaterialUI();\r\n if (matUI)\r\n {\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n matTitle.classList.remove('peditor_material_assigned');\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n img.src = 'public/shader_ball.svg';\r\n //matTitle.classList.remove('peditor_material_unassigned');\r\n }\r\n }\r\n }\r\n\r\n static updateSoloMaterial(viewer, elemPath, materials, event)\r\n {\r\n // Prevent the event from being passed to parent folder\r\n event.stopPropagation();\r\n\r\n for (let i = 0; i < materials.length; ++i)\r\n {\r\n let matassign = materials[i];\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n var matUI = matassign.getMaterialUI();\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (materialName == elemPath)\r\n {\r\n if (this._soloMaterial == elemPath)\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n this._soloMaterial = \"\";\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball2.svg';\r\n matTitle.classList.add('peditor_material_assigned');\r\n this._soloMaterial = elemPath;\r\n }\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n }\r\n }\r\n viewer.getMaterial().updateMaterialAssignments(viewer, \"\");\r\n viewer.getScene().setUpdateTransforms();\r\n }\r\n\r\n //\r\n // Update property editor for a given MaterialX element, it's shader, and\r\n // Three material\r\n //\r\n updateEditor(matassign, shader, material, gui, closeUI, viewer)\r\n {\r\n var elem = matassign.getMaterial();\r\n var materials = this._materials;\r\n\r\n const DEFAULT_MIN = 0;\r\n const DEFAULT_MAX = 100;\r\n\r\n var startTime = performance.now();\r\n\r\n const elemPath = elem.getNamePath();\r\n\r\n // Create and cache associated UI\r\n var matUI = gui.addFolder(elemPath);\r\n matassign.setMaterialUI(matUI);\r\n\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n // Add a icon to the title to allow for assigning the material to geometry\r\n // Clicking on the icon will \"solo\" the material to the geometry.\r\n // Clicking on the title will open/close the material folder.\r\n matTitle.innerHTML = \"\" + elem.getNamePath();\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (img)\r\n {\r\n // Add event listener to icon to call updateSoloMaterial function\r\n img.addEventListener('click', function (event)\r\n {\r\n Material.updateSoloMaterial(viewer, elemPath, materials, event);\r\n });\r\n }\r\n\r\n if (closeUI)\r\n {\r\n matUI.close();\r\n }\r\n const uniformBlocks = Object.values(shader.getStage('pixel').getUniformBlocks());\r\n var uniformToUpdate;\r\n const ignoreList = ['u_envRadianceMips', 'u_envRadianceSamples', 'u_alphaThreshold'];\r\n\r\n var folderList = new Map();\r\n folderList[elemPath] = matUI;\r\n\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n let name = variable.getVariable();\r\n\r\n if (ignoreList.includes(name))\r\n {\r\n continue;\r\n }\r\n\r\n let currentFolder = matUI;\r\n let currentElemPath = variable.getPath();\r\n if (!currentElemPath || currentElemPath.length == 0)\r\n {\r\n continue;\r\n }\r\n let currentElem = elem.getDocument().getDescendant(currentElemPath);\r\n if (!currentElem)\r\n {\r\n continue;\r\n }\r\n\r\n let currentNode = null;\r\n if (currentElem.getParent() && currentElem.getParent().getNamePath() != \"\")\r\n {\r\n currentNode = currentElem.getParent();\r\n }\r\n let uiname = \"\";\r\n let nodeDefInput = null;\r\n if (currentNode)\r\n {\r\n\r\n let currentNodePath = currentNode.getNamePath();\r\n var pathSplit = currentNodePath.split('/');\r\n if (pathSplit.length)\r\n {\r\n currentNodePath = pathSplit[0];\r\n }\r\n currentFolder = folderList[currentNodePath];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(currentNodePath);\r\n folderList[currentNodePath] = currentFolder;\r\n }\r\n\r\n // Check for ui attributes\r\n var nodeDef = currentNode.getNodeDef();\r\n if (nodeDef)\r\n {\r\n // Remove node name from shader uniform name for non root nodes\r\n let lookup_name = name.replace(currentNode.getName() + '_', '');\r\n nodeDefInput = nodeDef.getActiveInput(lookup_name);\r\n if (nodeDefInput)\r\n {\r\n uiname = nodeDefInput.getAttribute('uiname');\r\n let uifolderName = nodeDefInput.getAttribute('uifolder');\r\n if (uifolderName && uifolderName.length)\r\n {\r\n let newFolderName = currentNodePath + '/' + uifolderName;\r\n currentFolder = folderList[newFolderName];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(uifolderName);\r\n currentFolder.domElement.classList.add('peditorfolder');\r\n folderList[newFolderName] = currentFolder;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Determine UI name to use\r\n let path = name;\r\n let interfaceName = currentElem.getAttribute(\"interfacename\");\r\n if (interfaceName && interfaceName.length)\r\n {\r\n const graph = currentNode.getParent();\r\n if (graph)\r\n {\r\n const graphInput = graph.getInput(interfaceName);\r\n if (graphInput)\r\n {\r\n let uiname = graphInput.getAttribute('uiname');\r\n if (uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n else\r\n {\r\n path = graphInput.getName();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n path = interfaceName;\r\n }\r\n }\r\n else\r\n {\r\n if (!uiname)\r\n {\r\n uiname = currentElem.getAttribute('uiname');\r\n }\r\n if (uiname && uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n }\r\n\r\n switch (variable.getType().getName())\r\n {\r\n case 'float':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseFloat(nodeDefInput.getAttribute('uistep'));\r\n }\r\n if (step == 0)\r\n {\r\n step = (maxValue - minValue) / 1000.0;\r\n }\r\n const w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'integer':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n var enumList = []\r\n var enumValues = []\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('enum'))\r\n {\r\n // Get enum and enum values attributes (if present)\r\n enumList = nodeDefInput.getAttribute('enum').split(',');\r\n if (nodeDefInput.hasAttribute('enumvalues'))\r\n {\r\n enumValues = nodeDefInput.getAttribute('enumvalues').split(',').map(Number);\r\n }\r\n }\r\n else\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseInt(nodeDefInput.getAttribute('uistep'));\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n if (step == 0)\r\n {\r\n step = 1 / (maxValue - minValue);\r\n step = Math.ceil(step);\r\n if (step == 0)\r\n {\r\n step = 1;\r\n }\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n else\r\n {\r\n // Map enumList strings to values\r\n // Map to 0..N if no values are specified via enumvalues attribute\r\n if (enumValues.length == 0)\r\n {\r\n for (let i = 0; i < enumList.length; ++i)\r\n {\r\n enumValues.push(i);\r\n }\r\n }\r\n const enumeration = {};\r\n enumList.forEach((str, index) =>\r\n {\r\n enumeration[str] = enumValues[index];\r\n });\r\n\r\n // Function to handle enum drop-down\r\n function handleDropdownChange(value)\r\n {\r\n if (material.uniforms[name])\r\n {\r\n material.uniforms[name].value = value;\r\n }\r\n }\r\n const defaultOption = enumList[value]; // Set the default selected option\r\n const dropdownController = currentFolder.add(enumeration, defaultOption, enumeration).name(path);\r\n dropdownController.onChange(handleDropdownChange);\r\n dropdownController.domElement.classList.add('peditoritem');\r\n }\r\n }\r\n break;\r\n\r\n case 'boolean':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value').name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'vector2':\r\n case 'vector3':\r\n case 'vector4':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = [DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN];\r\n var maxValue = [DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX];\r\n var step = [0, 0, 0, 0];\r\n\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = nodeDefInput.getAttribute('uisoftmin').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = nodeDefInput.getAttribute('uimin').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = nodeDefInput.getAttribute('uisoftmax').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = nodeDefInput.getAttribute('uimax').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = nodeDefInput.getAttribute('uistep').split(',').map(Number);\r\n }\r\n for (let i = 0; i < 4; ++i)\r\n {\r\n if (step[i] == 0)\r\n {\r\n step[i] = 1 / (maxValue[i] - minValue[i]);\r\n }\r\n }\r\n\r\n const keyString = [\"x\", \"y\", \"z\", \"w\"];\r\n let vecFolder = currentFolder.addFolder(path);\r\n Object.keys(material.uniforms[name].value).forEach((key) =>\r\n {\r\n let w = vecFolder.add(material.uniforms[name].value,\r\n key, minValue[key], maxValue[key], step[key]).name(keyString[key]);\r\n w.domElement.classList.add('peditoritem');\r\n })\r\n }\r\n break;\r\n\r\n case 'color3':\r\n // Irksome way to map arrays to colors and back\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var dummy =\r\n {\r\n color: 0xFF0000\r\n };\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(dummy.color);\r\n color3.fromArray(material.uniforms[name].value);\r\n dummy.color = color3.getHex();\r\n let w = currentFolder.addColor(dummy, 'color').name(path)\r\n .onChange(function (value)\r\n {\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(value);\r\n material.uniforms[name].value.set(color3.toArray());\r\n });\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'color4':\r\n break;\r\n\r\n case 'matrix33':\r\n case 'matrix44':\r\n case 'samplerCube':\r\n case 'filename':\r\n break;\r\n case 'string':\r\n console.log('String: ', name);\r\n if (value != null)\r\n {\r\n var dummy =\r\n {\r\n thevalue: value\r\n }\r\n let item = currentFolder.add(dummy, 'thevalue');\r\n item.name(path);\r\n item.disable(true);\r\n item.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n\r\n if (logDetailedTime)\r\n {\r\n console.log(\" - Editor update time: \", performance.now() - startTime, \"ms\");\r\n }\r\n }\r\n\r\n // List of material assignments: { MaterialX node, geometry assignment string, and hardware shader }\r\n _materials;\r\n\r\n // Fallback material if nothing was assigned explicitly\r\n _defaultMaterial;\r\n}\r\n\r\n/*\r\n Viewer class\r\n\r\n Keeps track of local scene, and property editor as well as current MaterialX document \r\n and assocaited material, shader and lighting information.\r\n*/\r\nclass Viewer\r\n{\r\n static create()\r\n {\r\n return new Viewer();\r\n }\r\n\r\n constructor()\r\n {\r\n this.scene = new Scene();\r\n this.editor = new Editor();\r\n this.materials.push(new Material());\r\n\r\n this.fileLoader = new three__WEBPACK_IMPORTED_MODULE_1__.FileLoader();\r\n this.hdrLoader = new three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__.RGBELoader();\r\n }\r\n\r\n //\r\n // Create shader generator, generation context and \"base\" document which\r\n // contains the standard definition libraries and lighting elements.\r\n //\r\n async initialize(mtlxIn, renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n this.mx = mtlxIn;\r\n\r\n // Initialize base document\r\n this.generator = new this.mx.EsslShaderGenerator();\r\n this.genContext = new this.mx.GenContext(this.generator);\r\n\r\n this.document = this.mx.createDocument();\r\n this.stdlib = this.mx.loadStandardLibraries(this.genContext);\r\n this.document.importLibrary(this.stdlib);\r\n\r\n this.initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml);\r\n\r\n radianceTexture.mapping = three__WEBPACK_IMPORTED_MODULE_1__.EquirectangularReflectionMapping;\r\n this.getScene().setBackgroundTexture(radianceTexture);\r\n }\r\n\r\n //\r\n // Load in lighting rig document and register lights with generation context\r\n // Initialize environment lighting (IBLs).\r\n //\r\n async initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n // Load lighting setup into document\r\n const mx = this.getMx();\r\n this.lightRigDoc = mx.createDocument();\r\n await mx.readFromXmlString(this.lightRigDoc, lightRigXml);\r\n this.document.importLibrary(this.lightRigDoc);\r\n\r\n // Register lights with generation context\r\n this.lights = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.findLights)(this.document);\r\n this.lightData = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.registerLights)(mx, this.lights, this.genContext);\r\n\r\n this.radianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(radianceTexture, renderer.capabilities);\r\n this.irradianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(irradianceTexture, renderer.capabilities);\r\n }\r\n\r\n getEditor()\r\n {\r\n return this.editor;\r\n }\r\n\r\n getScene()\r\n {\r\n return this.scene;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this.materials[0];\r\n }\r\n\r\n getmaterials()\r\n {\r\n return this.materials;\r\n }\r\n\r\n getFileLoader()\r\n {\r\n return this.fileLoader;\r\n }\r\n\r\n getHdrLoader()\r\n {\r\n return this.hdrLoader;\r\n }\r\n\r\n setDocument(doc)\r\n {\r\n this.doc = doc;\r\n }\r\n getDocument()\r\n {\r\n return this.doc;\r\n }\r\n\r\n getLibrary()\r\n {\r\n return this.stdlib;\r\n }\r\n\r\n getLightRig()\r\n {\r\n return this.lightRigDoc;\r\n }\r\n\r\n getMx()\r\n {\r\n return this.mx;\r\n }\r\n\r\n getGenerator()\r\n {\r\n return this.generator;\r\n }\r\n\r\n getGenContext()\r\n {\r\n return this.genContext;\r\n }\r\n\r\n getLights()\r\n {\r\n return this.lights;\r\n }\r\n\r\n getLightData()\r\n {\r\n return this.lightData;\r\n }\r\n\r\n getRadianceTexture()\r\n {\r\n return this.radianceTexture;\r\n }\r\n\r\n getIrradianceTexture()\r\n {\r\n return this.irradianceTexture;\r\n }\r\n\r\n // Three scene and materials. \r\n scene = null;\r\n materials = [];\r\n\r\n // Property editor\r\n editor = null;\r\n\r\n // Utility loaders\r\n fileloader = null;\r\n hdrLoader = null;\r\n\r\n // MaterialX module, current document and support documents.\r\n mx = null;\r\n doc = null;\r\n stdlib = null;\r\n lightRigDoc = null;\r\n\r\n // MaterialX code generator and context\r\n generator = null;\r\n genContext = null;\r\n\r\n // Lighting information\r\n lights = null;\r\n lightData = null;\r\n radianceTexture = null;\r\n irradianceTexture = null;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/./source/viewer.js?"); - -/***/ }), - -/***/ "../node_editor.js": -/*!*************************!*\ - !*** ../node_editor.js ***! - \*************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initializeNodeEditor: () => (/* binding */ initializeNodeEditor)\n/* harmony export */ });\n\r\n\r\nfunction initializeNodeEditor(materialFilename, geometryFilename, theRenderer) {\r\n\r\n // Customize what icon to show based on nodedef name prefix or nodegroup\r\n // Note that this is just a heuristic based on current nodegroup and naming \r\n // convention. Default is \"mtlx\" for MaterialX nodes.\r\n var my_icon_map = {\r\n \"gltf\": \"./Images/gltf_logo.webp\",\r\n \"usd\": \"./Images/openusd_logo.webp\",\r\n \"open_pbr\": \"./Images/openpbr_logo.webp\",\r\n \"houdini\": \"./Images/houdini_icon.webp\",\r\n \"maya\": \"./Images/maya_surfaces.webp\",\r\n \"_default_\": \"./Images/materialx_logo.webp\",\r\n \"_default_graph_\": \"./Images/nodegraph_white.svg\"\r\n };\r\n\r\n function uriExists(uri) {\r\n // Add try / catch block to handle network errors \r\n return fetch(uri)\r\n .then(response => {\r\n if (response.ok) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n })\r\n .catch(error => {\r\n console.log('Error checking URI:', error);\r\n return false;\r\n });\r\n }\r\n\r\n if (theRenderer) {\r\n var viewer = theRenderer.initializeViewer(materialFilename, geometryFilename);\r\n console.log('Setup viewer:', viewer);\r\n }\r\n else {\r\n let preview_panel = document.getElementById(\"preview_panel\");\r\n // Hide preview_panel DOM element\r\n if (preview_panel)\r\n preview_panel.style.display = 'none';\r\n }\r\n\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var cmeditor = setupXMLSyntax();\r\n var cmeditor2 = setupJavascriptSyntax();\r\n var ui = {\r\n console_area: document.getElementById('console_area'),\r\n nodeTypesList: document.getElementById('nodeTypesList'),\r\n mtlxdoc: cmeditor,\r\n mtlxlib: cmeditor2,\r\n mtlxdoc_colorspace: null, // document.getElementById('mtlxdoc_colorspace'),\r\n propertypanel_content: document.getElementById('propertypanel_content'),\r\n propertypanel_icon: document.getElementById('propertypanel_icon'),\r\n icon_map: my_icon_map,\r\n };\r\n var editor = new MxShadingGraphEditor();\r\n editor.initialize(false, canvas, ui, materialFilename);\r\n\r\n function addUIHandlers() {\r\n // Add event listener to save canvas as image when button is clicked\r\n var saveCanvasButton = document.getElementById('captureGraph');\r\n saveCanvasButton.addEventListener('click', function () {\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var dataURL = canvas.toDataURL('image/png');\r\n var link = document.createElement('a');\r\n link.href = dataURL;\r\n link.download = 'graph_capture.png';\r\n link.click();\r\n });\r\n\r\n // TODO: Make this a user option\r\n var auto_arrange_size = 80;\r\n\r\n // Add load materialx graph event listener\r\n var loadMaterialXDocumentFromFile = document.getElementById('loadMaterialXDocumentFromFile');\r\n loadMaterialXDocumentFromFile.addEventListener('click', function () {\r\n editor.loadGraphFromFile('mtlx', auto_arrange_size);\r\n });\r\n\r\n // Add load materialx graph from text event listener\r\n var texAreaNumber = 0;\r\n var loadMaterialXDocumentFromText = document.getElementById('loadMaterialXDocumentFromText');\r\n loadMaterialXDocumentFromText.addEventListener('click', function () {\r\n var mtlxdoc = document.getElementById('mtlxdoc').value;\r\n // Generate a name for the graph\r\n if (mtlxdoc.length > 0) {\r\n var name = 'MaterialXGraph' + texAreaNumber++;\r\n editor.loadGraphFromString('mtlx', mtlxdoc, name, auto_arrange_size);\r\n }\r\n });\r\n\r\n // Add load definitions event listener\r\n var loadMaterialXDefinitions = document.getElementById('loadMaterialXDefinitions');\r\n loadMaterialXDefinitions.addEventListener('click', function () {\r\n editor.loadDefinitionsFromFile('mtlx');\r\n });\r\n\r\n // Add clear graph event listener\r\n var clearGraphButton = document.getElementById('clearGraph');\r\n clearGraphButton.addEventListener('click', function () {\r\n editor.clearGraph();\r\n });\r\n\r\n // Add save materialx graph event listener\r\n var saveMaterialXGraph = document.getElementById('saveMaterialXGraph');\r\n saveMaterialXGraph.addEventListener('click', function () {\r\n var saveCustomLibs = document.getElementById('saveCustomLibs').checked;\r\n var saveNodePositions = document.getElementById('saveNodePositions').checked;\r\n editor.saveGraphToFile('mtlx', saveCustomLibs, saveNodePositions);\r\n });\r\n\r\n // Add save materialx graph text event listener\r\n var saveMaterialXGraphText = document.getElementById('saveMaterialXGraphText');\r\n saveMaterialXGraphText.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n\r\n // Add open subgraph event handler\r\n var openSubgraph = document.getElementById('openSubgraph');\r\n openSubgraph.addEventListener('click', function () {\r\n editor.openSubgraph();\r\n });\r\n\r\n // Add close subgraph event handler\r\n var closeSubgraph = document.getElementById('closeSubgraph');\r\n closeSubgraph.addEventListener('click', function () {\r\n editor.closeSubgraph();\r\n });\r\n\r\n\r\n // Add reset view event handler\r\n var resetView = document.getElementById('resetView');\r\n resetView.addEventListener('click', function () {\r\n editor.resetView();\r\n });\r\n\r\n // Add arrange graph event listener\r\n var arrangeGraphButton = document.getElementById('arrangeGraph');\r\n arrangeGraphButton.addEventListener('click', function () {\r\n editor.arrangeGraph();\r\n });\r\n\r\n // Add center node event listener\r\n var centerNodeButton = document.getElementById('centerNode');\r\n centerNodeButton.addEventListener('click', function () {\r\n editor.centerNode();\r\n });\r\n\r\n // Add collapse/expand nodes event listener\r\n var collapseNodesButton = document.getElementById('collapseNodes');\r\n collapseNodesButton.addEventListener('click', function () {\r\n editor.collapseExpandNodes(true);\r\n });\r\n var expandNodesButton = document.getElementById('expandNodes');\r\n expandNodesButton.addEventListener('click', function () {\r\n editor.collapseExpandNodes(false);\r\n });\r\n\r\n // Add copy selected event listener\r\n var copySelectedButton = document.getElementById('copySelected');\r\n copySelectedButton.addEventListener('click', function () {\r\n editor.copyToClipboard();\r\n });\r\n\r\n // Add paste selected event listener\r\n var pasteSelectedButton = document.getElementById('pasteSelected');\r\n pasteSelectedButton.addEventListener('click', function () {\r\n editor.pasteFromClipboard();\r\n });\r\n\r\n // Add create subgraph event listener\r\n var createNodeGraphButton = document.getElementById('createNodeGraph');\r\n createNodeGraphButton.addEventListener('click', function () {\r\n editor.createNodeGraph();\r\n });\r\n\r\n // Add extract subgraph event listener\r\n var extractNodeGraphButton = document.getElementById('extractNodeGraph');\r\n extractNodeGraphButton.addEventListener('click', function () {\r\n editor.extractNodeGraph();\r\n });\r\n\r\n /* \r\n // Add load serialization event listener\r\n var loadSerialization = document.getElementById('loadSerialization');\r\n loadSerialization.addEventListener('click', function () {\r\n editor.loadSerialization();\r\n });\r\n \r\n // Add download graph event listener\r\n var downloadGraph = document.getElementById('downloadGraph');\r\n downloadGraph.addEventListener('click', function () {\r\n editor.saveSerialization();\r\n }); */\r\n\r\n // Add xml to graph event listener\r\n var xmltograph = document.getElementById('xmltograph');\r\n xmltograph.addEventListener('click', function () {\r\n var name = 'MaterialXGraph' + texAreaNumber++;\r\n var mtlxdoc = document.getElementById('mtlxdoc').value;\r\n editor.loadGraphFromString('mtlx', mtlxdoc, 'MaterialXGraph', auto_arrange_size);\r\n });\r\n\r\n /* function updateRenderableItemUI(renderableItems) {\r\n let renderableItemSelect = document.getElementById('renderableItem');\r\n // Remove any previous children\r\n while (renderableItemSelect.firstChild) {\r\n renderableItemSelect.removeChild(renderableItemSelect.firstChild);\r\n }\r\n for (let i = 0; i < renderableItems.length; i++) {\r\n let item = renderableItems[i];\r\n let option = document.createElement('option');\r\n option.value = i;\r\n option.text = item; // item.getNamePath();\r\n renderableItemSelect.appendChild(option);\r\n }\r\n } */\r\n\r\n function updateRenderableItemUI()\r\n {\r\n let renderableItems = editor.findRenderableItems();\r\n\r\n // Update selection for renderables\r\n let renderableItemSelect = document.getElementById('renderableItem');\r\n while (renderableItemSelect.firstChild) {\r\n renderableItemSelect.removeChild(renderableItemSelect.firstChild);\r\n }\r\n for (let i = 0; i < renderableItems.length; i++) {\r\n let item = renderableItems[i];\r\n let option = document.createElement('option');\r\n option.value = item;\r\n let uiitem = item;\r\n // Truncate the name so it will fit into UI.\r\n if (uiitem.length > 12)\r\n uiitem = uiitem.substring(0, 12) + '...';\r\n option.text = uiitem; \r\n renderableItemSelect.appendChild(option);\r\n } \r\n }\r\n\r\n function saveToStringUI() {\r\n var saveCustomLibs = document.getElementById('saveCustomLibs').checked;\r\n var saveNodePositions = document.getElementById('saveNodePositions').checked;\r\n var result = editor.saveGraphToString('mtlx', saveCustomLibs, saveNodePositions);\r\n cmeditor.setValue(result);\r\n\r\n if (theRenderer) {\r\n theRenderer.updateMaterialFromText(result);\r\n updateRenderableItemUI();\r\n }\r\n }\r\n\r\n // Add graph to xml event listener\r\n var graphtoxml = document.getElementById('graphtoxml');\r\n if (graphtoxml) {\r\n graphtoxml.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n }\r\n\r\n var graphtoxml2 = document.getElementById('graphtoxml2');\r\n if (graphtoxml2) {\r\n graphtoxml2.addEventListener('click', function () {\r\n saveToStringUI();\r\n });\r\n }\r\n\r\n // Handle turntabe option\r\n let turntableEnabledUI = document.getElementById('turntableEnabled');\r\n if (turntableEnabledUI) {\r\n turntableEnabledUI.addEventListener('click', (e) => {\r\n // Toggle inverting the button colors no toggling danger\r\n turntableEnabledUI.classList.toggle('btn-secondary');\r\n if (theRenderer)\r\n theRenderer.toggleTurntable();\r\n });\r\n }\r\n\r\n // Handle render disabled option\r\n let disableRenderingUI = document.getElementById('disableRendering');\r\n if (disableRenderingUI) {\r\n disableRenderingUI.addEventListener('click', (e) => {\r\n // Toggle inverting the button colors\r\n disableRenderingUI.classList.toggle('btn-danger');\r\n if (theRenderer)\r\n theRenderer.toggleRendering();\r\n });\r\n }\r\n\r\n // Handle background display option\r\n let toggleBackgroundTextureUI = document.getElementById('toggleBackgroundTexture');\r\n if (toggleBackgroundTextureUI) {\r\n toggleBackgroundTextureUI.addEventListener('click', (e) => {\r\n toggleBackgroundTextureUI.classList.toggle('btn-secondary');\r\n if (theRenderer)\r\n theRenderer.toggleBackgroundTexture();\r\n });\r\n }\r\n // Handle reset camera option\r\n let resetCameraUI = document.getElementById('resetCamera');\r\n if (resetCameraUI) {\r\n resetCameraUI.addEventListener('click', (e) => {\r\n if (theRenderer)\r\n theRenderer.resetCamera();\r\n });\r\n }\r\n\r\n // Handle renderable geometry option\r\n function loadFromMenu(e) {\r\n var uiItem = e.target.value;\r\n if (uiItem == '_loadFromFile_') {\r\n // Create a file dialog to get the filename\r\n var fileInput = document.createElement('input');\r\n fileInput.type = 'file';\r\n fileInput.accept = '.glb';\r\n\r\n fileInput.onchange = function (event) {\r\n var file = event.target.files[0];\r\n if (file) {\r\n var fileURL = URL.createObjectURL(file);\r\n if (theRenderer)\r\n theRenderer.setRenderGeometry(fileURL);\r\n console.log('Change geometry to:', fileURL);\r\n }\r\n }\r\n fileInput.click();\r\n }\r\n else {\r\n // Convert to lowercase and remove spaces\r\n var geometryURL = uiItem.toLowerCase().replace(/\\s/g, '');\r\n var geometryPath = 'Geometry/' + geometryURL + '.glb';\r\n console.log('Change geometry to:', geometryPath);\r\n if (theRenderer)\r\n theRenderer.setRenderGeometry(geometryPath);\r\n }\r\n }\r\n\r\n // Handle geometry item changed\r\n let geometryItemSelect = document.getElementById('loadGeometry');\r\n if (geometryItemSelect) {\r\n // Add event handler for selection\r\n geometryItemSelect.addEventListener('change', (e) => {\r\n loadFromMenu(e);\r\n if (e.target.value == '_loadFromFile_')\r\n e.target.value = 'Custom Geometry'\r\n });\r\n }\r\n\r\n // Handle material selection change\r\n let renderableItemSelect = document.getElementById('renderableItem');\r\n if (renderableItemSelect) {\r\n renderableItemSelect.addEventListener('change', (e) => {\r\n let index = e.target.value;\r\n if (theRenderer)\r\n theRenderer.setRenderMaterial(index);\r\n });\r\n }\r\n\r\n // Get the canvas element and its container\r\n var canvas = document.getElementById('mygraphcanvas');\r\n var canvasContainer = document.getElementById('canvasContainer');\r\n var colContainer = document.getElementById('colContainer');\r\n\r\n // Create a new ResizeObserver\r\n var observer = new ResizeObserver(function (entries) {\r\n for (var entry of entries) {\r\n // Get the new width and height of the column\r\n var newWidth = entry.contentRect.width;\r\n var newHeight = entry.contentRect.height;\r\n\r\n // Set the canvas size to match the column\r\n canvas.width = newWidth;\r\n canvas.height = newHeight;\r\n\r\n // Mark the editor as dirty to redraw the graph.\r\n editor.setDirty();\r\n }\r\n });\r\n\r\n // Start observing the canvas container\r\n observer.observe(colContainer);\r\n\r\n }\r\n\r\n function setupJavascriptSyntax() {\r\n // Initialize CodeMirror for JS syntax highlighting\r\n const elem = document.getElementById('mtlxlib');\r\n if (!elem) {\r\n return;\r\n }\r\n var cmeditor = CodeMirror.fromTextArea(elem, {\r\n mode: 'application/javascript',\r\n lineNumbers: true,\r\n dragDrop: false,\r\n theme: 'dracula',\r\n readOnly: true\r\n });\r\n\r\n elem.value = '';\r\n cmeditor.setValue('');\r\n\r\n // Update CodeMirror whenever the textarea content changes\r\n cmeditor.on('change', () => {\r\n elem.value = cmeditor.getValue();\r\n });\r\n\r\n return cmeditor;\r\n }\r\n\r\n\r\n function setupXMLSyntax() {\r\n // Initialize CodeMirror for XML syntax highlighting\r\n const materialXTextArea = document.getElementById('mtlxdoc');\r\n var cmeditor = CodeMirror.fromTextArea(materialXTextArea, {\r\n mode: 'application/xml',\r\n lineNumbers: true,\r\n dragDrop: true,\r\n theme: 'night'\r\n });\r\n\r\n // Optional: Set an initial value for the textarea\r\n const initialXML = '';\r\n materialXTextArea.value = initialXML;\r\n cmeditor.setValue(initialXML);\r\n\r\n // Update CodeMirror whenever the textarea content changes\r\n cmeditor.on('change', (e) => {\r\n materialXTextArea.value = cmeditor.getValue();\r\n });\r\n\r\n var pasteButton = document.getElementById('mtlxdoc_paste');\r\n if (pasteButton)\r\n addPasteHandler(pasteButton, cmeditor);\r\n\r\n return cmeditor;\r\n }\r\n\r\n\r\n\r\n\r\n addUIHandlers();\r\n addCopyHandlers();\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/../node_editor.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* binding */ Editor),\n/* harmony export */ Material: () => (/* binding */ Material),\n/* harmony export */ Scene: () => (/* binding */ Scene),\n/* harmony export */ Viewer: () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n/* harmony import */ var three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! three/examples/jsm/loaders/GLTFLoader */ \"./node_modules/three/examples/jsm/loaders/GLTFLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! three/examples/jsm/loaders/ObjLoader */ \"./node_modules/three/examples/jsm/loaders/ObjLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! three/examples/jsm/loaders/RGBELoader.js */ \"./node_modules/three/examples/jsm/loaders/RGBELoader.js\");\n/* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ \"./source/helper.js\");\n/* harmony import */ var lil_gui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lil-gui */ \"./node_modules/lil-gui/dist/lil-gui.esm.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst ALL_GEOMETRY_SPECIFIER = \"*\";\r\nconst NO_GEOMETRY_SPECIFIER = \"\";\r\nconst DAG_PATH_SEPERATOR = \"/\";\r\n\r\n// Logging toggle\r\nvar logDetailedTime = false;\r\n\r\n/*\r\n Scene management\r\n*/\r\nclass Scene\r\n{\r\n constructor()\r\n {\r\n this._geometryURL = new URLSearchParams(document.location.search).get(\"geom\");\r\n if (!this._geometryURL)\r\n {\r\n this._geometryURL = 'Geometry/teapot.glb';\r\n }\r\n }\r\n\r\n initialize()\r\n {\r\n this._scene = new three__WEBPACK_IMPORTED_MODULE_1__.Scene();\r\n this._scene.background = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n this._scene.background.convertSRGBToLinear();\r\n\r\n let cc = document.getElementById('webglcanvas');\r\n const aspectRatio = cc.width / cc.height;\r\n const cameraNearDist = 0.01;\r\n const cameraFarDist = 1000.0;\r\n const cameraFOV = 60.0;\r\n this._camera = new three__WEBPACK_IMPORTED_MODULE_1__.PerspectiveCamera(cameraFOV, aspectRatio, cameraNearDist, cameraFarDist);\r\n\r\n this.#_gltfLoader = new three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__.GLTFLoader();\r\n this.#_objLoader = new three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__.OBJLoader();\r\n\r\n this.#_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n this.#_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n this.#_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n }\r\n\r\n // Set whether to flip UVs in V for loaded geometry\r\n setFlipGeometryV(val)\r\n {\r\n this.#_flipV = val;\r\n }\r\n\r\n // Get whether to flip UVs in V for loaded geometry\r\n getFlipGeometryV()\r\n {\r\n return this.#_flipV;\r\n }\r\n\r\n // Utility to perform geometry file load\r\n loadGeometryFile(geometryFilename, loader)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load geometry: \", geometryFilename); \r\n loader.load(geometryFilename, data => resolve(data), null, reject);\r\n }\r\n });\r\n }\r\n\r\n //\r\n // Load in geometry specified by a given file name,\r\n // then update the scene geometry and camera.\r\n //\r\n async loadGeometry(viewer, orbitControls)\r\n {\r\n var startTime = performance.now();\r\n var geomLoadTime = startTime;\r\n\r\n console.log('viewer load geometry: ', this.getGeometryURL());\r\n\r\n var gltfData = null;\r\n if (this.getGeometryURL().endsWith('glb'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n else if (this.getGeometryURL().endsWith('obj'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_objLoader);\r\n else \r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n\r\n if (gltfData == null)\r\n {\r\n console.log(\"Failed to load geometry: \", this.getGeometryURL());\r\n return;\r\n }\r\n\r\n const scene = this.getScene();\r\n while (scene.children.length > 0)\r\n {\r\n scene.remove(scene.children[0]);\r\n }\r\n\r\n this.#_rootNode = null;\r\n const model = gltfData.scene;\r\n if (!model)\r\n {\r\n const geometry = new three__WEBPACK_IMPORTED_MODULE_1__.BoxGeometry(1, 1, 1);\r\n const material = new three__WEBPACK_IMPORTED_MODULE_1__.MeshBasicMaterial({ color: 0xdddddd });\r\n const cube = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(geometry, material);\r\n obj = new three__WEBPACK_IMPORTED_MODULE_1__.Group();\r\n obj.add(geometry);\r\n }\r\n else\r\n {\r\n this.#_rootNode = model;\r\n }\r\n scene.add(model);\r\n\r\n // Always reset controls based on camera for each load. \r\n orbitControls.reset();\r\n //console.log(\"- Scene load time: \", performance.now() - geomLoadTime, \"ms\");\r\n\r\n //console.log(\"Total geometry load time: \", performance.now() - startTime, \" ms.\");\r\n\r\n viewer.getMaterial().clearSoloMaterialUI();\r\n viewer.getMaterial().updateMaterialAssignments(viewer, viewer.getMaterial().getSoloMaterial());\r\n this.setUpdateTransforms();\r\n\r\n this.updateScene(viewer, orbitControls);\r\n }\r\n\r\n //\r\n // Update the geometry buffer, assigned materials, and camera controls.\r\n //\r\n updateScene(viewer, orbitControls)\r\n {\r\n var startUpdateSceneTime = performance.now();\r\n var uvTime = 0;\r\n var normalTime = 0;\r\n var tangentTime = 0;\r\n var streamTime = 0;\r\n var bboxTime = 0;\r\n\r\n var startBboxTime = performance.now();\r\n const bbox = new three__WEBPACK_IMPORTED_MODULE_1__.Box3().setFromObject(this._scene);\r\n const bsphere = new three__WEBPACK_IMPORTED_MODULE_1__.Sphere();\r\n bbox.getBoundingSphere(bsphere);\r\n bboxTime = performance.now() - startBboxTime;\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n\r\n\r\n this._scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n var startUVTime = performance.now();\r\n if (!child.geometry.attributes.uv)\r\n {\r\n const posCount = child.geometry.attributes.position.count;\r\n const uvs = [];\r\n const pos = child.geometry.attributes.position.array;\r\n\r\n for (let i = 0; i < posCount; i++)\r\n {\r\n uvs.push((pos[i * 3] - bsphere.center.x) / bsphere.radius);\r\n uvs.push((pos[i * 3 + 1] - bsphere.center.y) / bsphere.radius);\r\n }\r\n\r\n child.geometry.setAttribute('uv', new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(new Float32Array(uvs), 2));\r\n }\r\n else if (flipV)\r\n {\r\n const uvCount = child.geometry.attributes.position.count;\r\n const uvs = child.geometry.attributes.uv.array;\r\n for (let i = 0; i < uvCount; i++)\r\n {\r\n let v = 1.0 - (uvs[i * 2 + 1]);\r\n uvs[i * 2 + 1] = v;\r\n }\r\n }\r\n uvTime += performance.now() - startUVTime;\r\n\r\n if (!child.geometry.attributes.normal)\r\n {\r\n var startNormalTime = performance.new();\r\n child.geometry.computeVertexNormals();\r\n normalTime += performance.now() - startNormalTime;\r\n }\r\n\r\n if (child.geometry.getIndex())\r\n {\r\n if (!child.geometry.attributes.tangent)\r\n {\r\n var startTangentTime = performance.now();\r\n child.geometry.computeTangents();\r\n tangentTime += performance.now() - startTangentTime;\r\n }\r\n }\r\n\r\n // Use default MaterialX naming convention.\r\n var startStreamTime = performance.now();\r\n child.geometry.attributes.i_position = child.geometry.attributes.position;\r\n child.geometry.attributes.i_normal = child.geometry.attributes.normal;\r\n child.geometry.attributes.i_tangent = child.geometry.attributes.tangent;\r\n child.geometry.attributes.i_texcoord_0 = child.geometry.attributes.uv;\r\n streamTime += performance.now() - startStreamTime;\r\n }\r\n });\r\n\r\n //console.log(\"- Stream update time: \", performance.now() - startUpdateSceneTime, \"ms\");\r\n if (logDetailedTime)\r\n {\r\n console.log(' - UV time: ', uvTime);\r\n console.log(' - Normal time: ', normalTime);\r\n console.log(' - Tangent time: ', tangentTime);\r\n console.log(' - Stream Update time: ', streamTime);\r\n console.log(' - Bounds compute time: ', bboxTime);\r\n }\r\n\r\n // Update the background\r\n this._scene.background = this.getBackground();\r\n\r\n //console.log('bounding sphere:', bsphere.center, bsphere.radius);\r\n\r\n // Fit camera to model\r\n const camera = this.getCamera();\r\n camera.position.y = bsphere.center.y;\r\n camera.position.z = bsphere.radius * 2.0;\r\n camera.updateProjectionMatrix();\r\n\r\n orbitControls.target = bsphere.center;\r\n orbitControls.update();\r\n }\r\n\r\n setUpdateTransforms(val=true)\r\n {\r\n this.#_updateTransforms = val;\r\n }\r\n\r\n getUpdateTransforms()\r\n {\r\n return this.#_updateTransforms;\r\n }\r\n\r\n updateTransforms()\r\n {\r\n // Only update on demand versus continuously.\r\n // Call setUpdateTransforms() to trigger an update here.\r\n // Required for: scene geometry, camera change and viewport resize. \r\n if (!this.#_updateTransforms)\r\n {\r\n return;\r\n }\r\n this.setUpdateTransforms(false);\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const uniforms = child.material.uniforms;\r\n if (uniforms)\r\n {\r\n uniforms.u_worldMatrix.value = child.matrixWorld;\r\n uniforms.u_viewProjectionMatrix.value = this.#_viewProjMat.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);\r\n\r\n if (uniforms.u_viewPosition)\r\n uniforms.u_viewPosition.value = camera.getWorldPosition(this.#_worldViewPos);\r\n\r\n if (uniforms.u_worldInverseTransposeMatrix)\r\n uniforms.u_worldInverseTransposeMatrix.value =\r\n new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4().setFromMatrix3(this.#_normalMat.getNormalMatrix(child.matrixWorld));\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Determine string DAG path based on individual node names.\r\n getDagPath(node)\r\n {\r\n const rootNode = this.#_rootNode;\r\n\r\n let path = [node.name];\r\n while (node.parent)\r\n {\r\n node = node.parent;\r\n if (node)\r\n {\r\n // Stop at the root of the scene read in.\r\n if (node == rootNode)\r\n {\r\n break;\r\n }\r\n path.unshift(node.name);\r\n }\r\n }\r\n return path;\r\n }\r\n\r\n // Assign material shader to associated geometry\r\n updateMaterial(matassign)\r\n {\r\n let assigned = 0;\r\n\r\n const shader = matassign.getShader();\r\n const material = matassign.getMaterial().getName();\r\n const geometry = matassign.getGeometry();\r\n const collection = matassign.getCollection();\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const dagPath = this.getDagPath(child).join('/');\r\n\r\n // Note that this is a very simplistic\r\n // assignment resolve and assumes basic\r\n // regular expression name match.\r\n let matches = (geometry == ALL_GEOMETRY_SPECIFIER);\r\n if (!matches)\r\n {\r\n if (collection)\r\n {\r\n if (collection.matchesGeomString(dagPath))\r\n {\r\n matches = true;\r\n }\r\n }\r\n else\r\n {\r\n if (geometry != NO_GEOMETRY_SPECIFIER)\r\n {\r\n const paths = geometry.split(',');\r\n for (let path of paths)\r\n {\r\n if (dagPath.match(path))\r\n {\r\n matches = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (matches)\r\n {\r\n child.material = shader;\r\n assigned++;\r\n }\r\n }\r\n });\r\n\r\n return assigned;\r\n }\r\n\r\n updateCamera()\r\n {\r\n const camera = this.getCamera();\r\n let container = document.getElementById('canvasContainer');\r\n var maxWidth = 4086;\r\n var maxHeight = 1024;\r\n var width = Math.min(container.clientWidth, maxWidth);\r\n var height = Math.min(container.clientHeight, maxHeight); \r\n\r\n camera.aspect = width / height;\r\n camera.updateProjectionMatrix();\r\n }\r\n\r\n getScene()\r\n {\r\n return this._scene;\r\n }\r\n\r\n getCamera()\r\n {\r\n return this._camera;\r\n }\r\n\r\n getGeometryURL()\r\n {\r\n return this._geometryURL;\r\n }\r\n\r\n setGeometryURL(url)\r\n {\r\n this._geometryURL = url;\r\n }\r\n\r\n setBackgroundTexture(texture)\r\n {\r\n this.#_backgroundTexture = texture;\r\n }\r\n\r\n getShowBackgroundTexture()\r\n {\r\n return this.#_showBackgroundTexture;\r\n }\r\n\r\n setShowBackgroundTexture(enable)\r\n {\r\n this.#_showBackgroundTexture = enable;\r\n }\r\n\r\n getBackground()\r\n {\r\n if (this.#_backgroundTexture && this.#_showBackgroundTexture)\r\n {\r\n return this.#_backgroundTexture;\r\n }\r\n var color = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n color.convertSRGBToLinear();\r\n return color;\r\n }\r\n\r\n toggleBackgroundTexture()\r\n {\r\n this.#_showBackgroundTexture = !this.#_showBackgroundTexture;\r\n this._scene.background = this.getBackground();\r\n }\r\n\r\n // Geometry file\r\n #_geometryURL = '';\r\n // Geometry loaders\r\n #_gltfLoader = null;\r\n #_objLoader = null;\r\n // Flip V coordinate of texture coordinates.\r\n // Set to true to be consistent with desktop viewer.\r\n #_flipV = true;\r\n\r\n // Scene\r\n #_scene = null;\r\n\r\n // Camera\r\n #_camera = null;\r\n\r\n // Background color\r\n #_backgroundColor = 0x777777;\r\n\r\n // Background texture\r\n #_backgroundTexture = null;\r\n #_showBackgroundTexture = false;\r\n\r\n // Transform matrices\r\n #_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n #_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n #_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n #_updateTransforms = true;\r\n\r\n // Root node of imported scene\r\n #_rootNode = null;\r\n}\r\n\r\n/* \r\n Property editor\r\n*/\r\nclass Editor\r\n{\r\n // Initialize the editor, clearing any elements from previous materials.\r\n initialize()\r\n {\r\n Array.from(document.getElementsByClassName('lil-gui')).forEach(\r\n function (element, index, array)\r\n {\r\n if (element.className)\r\n {\r\n element.remove();\r\n }\r\n }\r\n );\r\n\r\n let parent = document.getElementById( 'webglcanvas' );\r\n //console.log('parent:', parent);\r\n this._gui = new lil_gui__WEBPACK_IMPORTED_MODULE_4__[\"default\"]( { title: \"Properties\" }, { container: parent } );\r\n //parent = this._gui.domElement;\r\n //console.log('gui parent:', parent);\r\n // Parent parent under webglcanvas\r\n //document.getElementById( 'webglcanvas' ).appendChild( parent );\r\n\r\n //this._gui = new GUI({ title: \"Property Editor\" });\r\n this._gui.close();\r\n this._gui.hide();\r\n }\r\n\r\n // Update ui properties\r\n // - Hide close button\r\n // - Update transparency so scene shows through if overlapping\r\n updateProperties(targetOpacity = 1)\r\n {\r\n // Set opacity\r\n Array.from(document.getElementsByClassName('dg')).forEach(\r\n function (element, index, array)\r\n {\r\n element.style.opacity = targetOpacity;\r\n }\r\n );\r\n }\r\n\r\n getGUI()\r\n {\r\n return this._gui;\r\n }\r\n\r\n _gui = null;\r\n}\r\n\r\nclass MaterialAssign\r\n{\r\n constructor(material, geometry, collection)\r\n {\r\n this._material = material;\r\n this._geometry = geometry;\r\n this._collection = collection;\r\n this._shader = null;\r\n this._materialUI = null;\r\n }\r\n\r\n setMaterialUI(value)\r\n {\r\n this._materialUI = value;\r\n }\r\n\r\n getMaterialUI()\r\n {\r\n return this._materialUI;\r\n }\r\n\r\n setShader(shader)\r\n {\r\n this._shader = shader;\r\n }\r\n\r\n getShader()\r\n {\r\n return this._shader;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this._material;\r\n }\r\n\r\n getGeometry()\r\n {\r\n return this._geometry;\r\n }\r\n\r\n setGeometry(value)\r\n {\r\n this._geometry = value;\r\n }\r\n\r\n getCollection()\r\n {\r\n return this._collection;\r\n }\r\n\r\n // MaterialX material node name\r\n _material;\r\n\r\n // MaterialX assignment geometry string\r\n _geometry;\r\n\r\n // MaterialX assignment collection\r\n _collection;\r\n\r\n // THREE.JS shader\r\n _shader;\r\n}\r\n\r\nclass Material\r\n{\r\n constructor()\r\n {\r\n this._materials = [];\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n this._shaderInterfaceType = 0;\r\n }\r\n\r\n clearMaterials()\r\n {\r\n this._materials.length = 0;\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n }\r\n\r\n setSoloMaterial(value)\r\n {\r\n this._soloMaterial = value;\r\n }\r\n\r\n getSoloMaterial()\r\n {\r\n return this._soloMaterial;\r\n }\r\n\r\n // Create a fallback material\r\n static createFallbackMaterial(doc)\r\n {\r\n let ssNode = doc.getChild('Generated_Default_Shader');\r\n if (ssNode)\r\n {\r\n return ssNode;\r\n }\r\n const ssName = 'Generated_Default_Shader';\r\n ssNode = doc.addChildOfCategory('surface_unlit', ssName);\r\n ssNode.setType('surfaceshader');\r\n const smNode = doc.addChildOfCategory('surfacematerial', 'Default');\r\n smNode.setType('material'); \r\n const shaderElement = smNode.addInput('surfaceshader');\r\n shaderElement.setType('surfaceshader');\r\n shaderElement.setNodeName(ssName);\r\n\r\n return ssNode;\r\n }\r\n\r\n async loadMaterialFile(loader, materialFilename)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n loader.load(materialFilename, data => resolve(data), null, reject);\r\n });\r\n }\r\n\r\n async loadMaterials(viewer, materialFilename)\r\n {\r\n const fileloader = viewer.getFileLoader();\r\n\r\n let mtlxMaterial = await viewer.getMaterial().loadMaterialFile(fileloader, materialFilename);\r\n\r\n this.loadMaterialFromString(viewer, mtlxMaterial, materialFilename);\r\n }\r\n\r\n async loadMaterialFromString(viewer, mtlxMaterial, materialFilename)\r\n {\r\n var startTime = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n\r\n // Re-initialize document\r\n var startDocTime = performance.now();\r\n var doc = mx.createDocument();\r\n doc.importLibrary(viewer.getLibrary());\r\n if (!doc.validate())\r\n {\r\n console.log(\"MaterialX document validation failed.\");\r\n return;\r\n }\r\n\r\n viewer.setDocument(doc);\r\n\r\n // Load lighting setup into document\r\n doc.importLibrary(viewer.getLightRig());\r\n\r\n //console.log(\"- Material document load time: \", performance.now() - startDocTime, \"ms.\");\r\n\r\n // Set search path. Assumes images are relative to current file\r\n // location.\r\n if (!materialFilename) materialFilename = \"/\";\r\n const paths = materialFilename.split('/');\r\n paths.pop();\r\n const searchPath = '/javascript/shader_editor/dist';\r\n console.log('> Global search path = ', searchPath);\r\n\r\n // Load material\r\n if (mtlxMaterial)\r\n try { \r\n await mx.readFromXmlString(doc, mtlxMaterial, searchPath);\r\n }\r\n catch (error) {\r\n console.log('Error loading material file: ', error);\r\n }\r\n else\r\n Material.createFallbackMaterial(doc);\r\n\r\n // Check if there are any looks defined in the document\r\n // If so then traverse the looks for all material assignments.\r\n // Generate code and compile for any associated surface shader\r\n // and assign to the associated geometry. If there are no looks\r\n // then the first material is found and assignment to all the\r\n // geometry.\r\n this.clearMaterials();\r\n var looks = doc.getLooks();\r\n if (looks.length)\r\n {\r\n for (let look of looks)\r\n {\r\n const materialAssigns = look.getMaterialAssigns();\r\n for (let materialAssign of materialAssigns)\r\n {\r\n let matName = materialAssign.getMaterial();\r\n if (matName)\r\n {\r\n let mat = doc.getChild(matName);\r\n var shader;\r\n if (mat)\r\n {\r\n var shaders = mx.getShaderNodes(mat);\r\n if (shaders.length)\r\n {\r\n shader = shaders[0];\r\n }\r\n }\r\n let collection = materialAssign.getCollection();\r\n let geom = materialAssign.getGeom();\r\n let newAssignment;\r\n if (collection || geom)\r\n {\r\n // Remove leading \"/\" from collection and geom for \r\n // later assignment comparison checking\r\n if (collection && collection.charAt(0) == \"/\")\r\n {\r\n collection = collection.slice(1);\r\n }\r\n if (geom && geom.charAt(0) == \"/\")\r\n {\r\n geom = geom.slice(1);\r\n }\r\n newAssignment = new MaterialAssign(shader, geom, collection);\r\n }\r\n else\r\n {\r\n newAssignment = new MaterialAssign(shader, NO_GEOMETRY_SPECIFIER, null);\r\n }\r\n\r\n if (newAssignment)\r\n {\r\n this._materials.push(newAssignment);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // Search for any surface shaders. The first found\r\n // is assumed to be assigned to the entire scene\r\n // The identifier used is \"*\" to mean the entire scene. \r\n const materialNodes = doc.getMaterialNodes();\r\n let shaderList = [];\r\n let foundRenderable = false;\r\n for (let i = 0; i < materialNodes.length; ++i)\r\n {\r\n let materialNode = materialNodes[i];\r\n if (materialNode)\r\n {\r\n //console.log('Scan material: ', materialNode.getNamePath());\r\n let shaderNodes = mx.getShaderNodes(materialNode)\r\n if (shaderNodes.length > 0)\r\n {\r\n let shaderNodePath = shaderNodes[0].getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n //console.log('-- add shader: ', shaderNodePath);\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNodes[0], assignment));\r\n }\r\n }\r\n }\r\n }\r\n const nodeGraphs = doc.getNodeGraphs();\r\n for (let i = 0; i < nodeGraphs.length; ++i)\r\n {\r\n let nodeGraph = nodeGraphs[i];\r\n if (nodeGraph)\r\n {\r\n if (nodeGraph.hasAttribute('nodedef') || nodeGraph.hasSourceUri())\r\n {\r\n continue;\r\n }\r\n // Skip any nodegraph that is connected to something downstream\r\n if (nodeGraph.getDownstreamPorts().length > 0)\r\n {\r\n continue\r\n }\r\n let outputs = nodeGraph.getOutputs();\r\n for (let j = 0; j < outputs.length; ++j)\r\n {\r\n let output = outputs[j];\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n let newMat = new MaterialAssign(output, assignment, null);\r\n this._materials.push(newMat);\r\n }\r\n }\r\n }\r\n }\r\n const outputs = doc.getOutputs();\r\n for (let i = 0; i < outputs.length; ++i)\r\n {\r\n let output = outputs[i];\r\n if (output)\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n this._materials.push(new MaterialAssign(output, assignment));\r\n }\r\n }\r\n\r\n const shaderNodes = [];\r\n for (let i = 0; i < shaderNodes.length; ++i)\r\n {\r\n let shaderNode = shaderNodes[i];\r\n let shaderNodePath = shaderNode.getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNode, assignment));\r\n }\r\n }\r\n }\r\n\r\n // Assign to default material if none found\r\n if (this._materials.length == 0)\r\n {\r\n const defaultNode = Material.createFallbackMaterial(doc);\r\n this._materials.push(new MaterialAssign(defaultNode, ALL_GEOMETRY_SPECIFIER));\r\n }\r\n\r\n // Create a new shader for each material node.\r\n // Only create the shader once even if assigned more than once.\r\n var startGenTime = performance.now();\r\n let shaderMap = new Map();\r\n let closeUI = false;\r\n for (let matassign of this._materials)\r\n {\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n let shader = shaderMap[materialName];\r\n if (!shader)\r\n {\r\n shader = viewer.getMaterial().generateMaterial(matassign, viewer, searchPath, closeUI);\r\n shaderMap[materialName] = shader;\r\n }\r\n matassign.setShader(shader);\r\n closeUI = true;\r\n }\r\n console.log(\"- Generate (\", this._materials.length, \") shader(s) time: \", performance.now() - startGenTime, \" ms.\",);\r\n\r\n // Update scene shader assignments\r\n this.updateMaterialAssignments(viewer, this._soloMaterial);\r\n\r\n // Mark transform update\r\n viewer.getScene().setUpdateTransforms(true);\r\n\r\n //console.log(\"Total material time: \", (performance.now() - startTime), \"ms\");\r\n }\r\n\r\n //\r\n // Update the assignments for scene objects based on the\r\n // material assignment information stored in the viewer.\r\n // Note: If none of the MaterialX assignments match the geometry\r\n // in the scene, then the first material assignment shader is assigned\r\n // to the entire scene.\r\n //\r\n async updateMaterialAssignments(viewer, soloMaterial)\r\n {\r\n console.log(\"Update material assignments. Solo=\", soloMaterial?soloMaterial:\"\");\r\n var startTime = performance.now();\r\n\r\n let assigned = 0;\r\n let assignedSolo = false;\r\n for (let matassign of this._materials)\r\n {\r\n if (matassign.getShader())\r\n {\r\n if (soloMaterial.length)\r\n {\r\n if (matassign.getMaterial().getNamePath() == soloMaterial)\r\n {\r\n let temp = matassign.getGeometry();\r\n matassign.setGeometry(ALL_GEOMETRY_SPECIFIER);\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n matassign.setGeometry(temp);\r\n assignedSolo = true;\r\n break\r\n }\r\n }\r\n else\r\n {\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n }\r\n }\r\n }\r\n if (assigned == 0 && this._materials.length)\r\n {\r\n this._defaultMaterial = new MaterialAssign(this._materials[0].getMaterial(), ALL_GEOMETRY_SPECIFIER);\r\n this._defaultMaterial.setShader(this._materials[0].getShader());\r\n viewer.getScene().updateMaterial(this._defaultMaterial);\r\n }\r\n\r\n //if (assigned > 0)\r\n //{\r\n // console.log('Material assignment time: ', performance.now() - startTime, \" ms.\");\r\n //}\r\n }\r\n\r\n // \r\n // Generate a new material for a given element\r\n //\r\n generateMaterial(matassign, viewer, searchPath, closeUI)\r\n {\r\n var elem = matassign.getMaterial();\r\n\r\n var startGenerateMat = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n const textureLoader = new three__WEBPACK_IMPORTED_MODULE_1__.TextureLoader();\r\n\r\n const lights = viewer.getLights();\r\n const lightData = viewer.getLightData();\r\n const radianceTexture = viewer.getRadianceTexture();\r\n const irradianceTexture = viewer.getIrradianceTexture();\r\n const gen = viewer.getGenerator();\r\n const genContext = viewer.getGenContext();\r\n\r\n // Perform transparency check on renderable item\r\n var startTranspCheckTime = performance.now();\r\n const isTransparent = mx.isTransparentSurface(elem, gen.getTarget());\r\n genContext.getOptions().hwTransparency = isTransparent;\r\n // Always set to complete. \r\n // Can consider option to set to reduced as the parsing of large numbers of uniforms (e.g. on shading models)\r\n // can be quite expensive.\r\n //if (this._shaderInterfaceType == 0)\r\n // genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_REDUCED;\r\n //else\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_COMPLETE;\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Transparency check time: \", performance.now() - startTranspCheckTime, \"ms\");\r\n\r\n // Generate GLES code\r\n var startMTLXGenTime = performance.now();\r\n let shader = gen.generate(elem.getNamePath(), elem, genContext);\r\n if (logDetailedTime)\r\n console.log(\" - MaterialX gen time: \", performance.now() - startMTLXGenTime, \"ms\");\r\n\r\n var startUniformUpdate = performance.now();\r\n\r\n // Get shaders and uniform values\r\n let vShader = shader.getSourceCode(\"vertex\");\r\n let fShader = shader.getSourceCode(\"pixel\");\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n let uniforms = {\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('vertex'), textureLoader, searchPath, flipV),\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('pixel'), textureLoader, searchPath, flipV),\r\n }\r\n\r\n Object.assign(uniforms, {\r\n u_numActiveLightSources: { value: lights.length}, //value: lights.length },\r\n u_lightData: { value: lightData },\r\n u_envMatrix: { value: (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getLightRotation)() },\r\n u_envRadiance: { value: radianceTexture },\r\n u_envRadianceMips: { value: Math.trunc(Math.log2(Math.max(radianceTexture.image.width, radianceTexture.image.height))) + 1 },\r\n u_envRadianceSamples: { value: 2 },\r\n u_envIrradiance: { value: irradianceTexture },\r\n u_refractionEnv: { value: false }\r\n });\r\n\r\n // Create Three JS Material\r\n let newMaterial = new three__WEBPACK_IMPORTED_MODULE_1__.RawShaderMaterial({\r\n uniforms: uniforms,\r\n vertexShader: vShader,\r\n fragmentShader: fShader,\r\n transparent: isTransparent,\r\n blendEquation: three__WEBPACK_IMPORTED_MODULE_1__.AddEquation,\r\n blendSrc: three__WEBPACK_IMPORTED_MODULE_1__.OneMinusSrcAlphaFactor,\r\n blendDst: three__WEBPACK_IMPORTED_MODULE_1__.SrcAlphaFactor,\r\n side: three__WEBPACK_IMPORTED_MODULE_1__.DoubleSide\r\n });\r\n\r\n console.log('new material:', newMaterial);\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Three material update time: \", performance.now() - startUniformUpdate, \"ms\");\r\n\r\n // Update property editor\r\n //const gui = viewer.getEditor().getGUI();\r\n //this.updateEditor(matassign, shader, newMaterial, gui, closeUI, viewer);\r\n\r\n if (logDetailedTime)\r\n console.log(\"- Per material generate time: \", performance.now() - startGenerateMat, \"ms\");\r\n\r\n return newMaterial;\r\n }\r\n\r\n clearSoloMaterialUI()\r\n {\r\n for (let i = 0; i < this._materials.length; ++i)\r\n {\r\n let matassign = this._materials[i];\r\n let matUI = matassign.getMaterialUI();\r\n if (matUI)\r\n {\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n matTitle.classList.remove('peditor_material_assigned');\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n img.src = 'public/shader_ball.svg';\r\n //matTitle.classList.remove('peditor_material_unassigned');\r\n }\r\n }\r\n }\r\n\r\n static updateSoloMaterial(viewer, elemPath, materials, event)\r\n {\r\n // Prevent the event from being passed to parent folder\r\n event.stopPropagation();\r\n\r\n for (let i = 0; i < materials.length; ++i)\r\n {\r\n let matassign = materials[i];\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n var matUI = matassign.getMaterialUI();\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (materialName == elemPath)\r\n {\r\n if (this._soloMaterial == elemPath)\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n this._soloMaterial = \"\";\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball2.svg';\r\n matTitle.classList.add('peditor_material_assigned');\r\n this._soloMaterial = elemPath;\r\n }\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n }\r\n }\r\n viewer.getMaterial().updateMaterialAssignments(viewer, \"\");\r\n viewer.getScene().setUpdateTransforms();\r\n }\r\n\r\n //\r\n // Update property editor for a given MaterialX element, it's shader, and\r\n // Three material\r\n //\r\n updateEditor(matassign, shader, material, gui, closeUI, viewer)\r\n {\r\n var elem = matassign.getMaterial();\r\n var materials = this._materials;\r\n\r\n const DEFAULT_MIN = 0;\r\n const DEFAULT_MAX = 100;\r\n\r\n var startTime = performance.now();\r\n\r\n const elemPath = elem.getNamePath();\r\n\r\n // Create and cache associated UI\r\n var matUI = gui.addFolder(elemPath);\r\n matassign.setMaterialUI(matUI);\r\n\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n // Add a icon to the title to allow for assigning the material to geometry\r\n // Clicking on the icon will \"solo\" the material to the geometry.\r\n // Clicking on the title will open/close the material folder.\r\n matTitle.innerHTML = \"\" + elem.getNamePath();\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (img)\r\n {\r\n // Add event listener to icon to call updateSoloMaterial function\r\n img.addEventListener('click', function (event)\r\n {\r\n Material.updateSoloMaterial(viewer, elemPath, materials, event);\r\n });\r\n }\r\n\r\n if (closeUI)\r\n {\r\n matUI.close();\r\n }\r\n const uniformBlocks = Object.values(shader.getStage('pixel').getUniformBlocks());\r\n var uniformToUpdate;\r\n const ignoreList = ['u_envRadianceMips', 'u_envRadianceSamples', 'u_alphaThreshold'];\r\n\r\n var folderList = new Map();\r\n folderList[elemPath] = matUI;\r\n\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n let name = variable.getVariable();\r\n\r\n if (ignoreList.includes(name))\r\n {\r\n continue;\r\n }\r\n\r\n let currentFolder = matUI;\r\n let currentElemPath = variable.getPath();\r\n if (!currentElemPath || currentElemPath.length == 0)\r\n {\r\n continue;\r\n }\r\n let currentElem = elem.getDocument().getDescendant(currentElemPath);\r\n if (!currentElem)\r\n {\r\n continue;\r\n }\r\n\r\n let currentNode = null;\r\n if (currentElem.getParent() && currentElem.getParent().getNamePath() != \"\")\r\n {\r\n currentNode = currentElem.getParent();\r\n }\r\n let uiname = \"\";\r\n let nodeDefInput = null;\r\n if (currentNode)\r\n {\r\n\r\n let currentNodePath = currentNode.getNamePath();\r\n var pathSplit = currentNodePath.split('/');\r\n if (pathSplit.length)\r\n {\r\n currentNodePath = pathSplit[0];\r\n }\r\n currentFolder = folderList[currentNodePath];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(currentNodePath);\r\n folderList[currentNodePath] = currentFolder;\r\n }\r\n\r\n // Check for ui attributes\r\n var nodeDef = currentNode.getNodeDef();\r\n if (nodeDef)\r\n {\r\n // Remove node name from shader uniform name for non root nodes\r\n let lookup_name = name.replace(currentNode.getName() + '_', '');\r\n nodeDefInput = nodeDef.getActiveInput(lookup_name);\r\n if (nodeDefInput)\r\n {\r\n uiname = nodeDefInput.getAttribute('uiname');\r\n let uifolderName = nodeDefInput.getAttribute('uifolder');\r\n if (uifolderName && uifolderName.length)\r\n {\r\n let newFolderName = currentNodePath + '/' + uifolderName;\r\n currentFolder = folderList[newFolderName];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(uifolderName);\r\n currentFolder.domElement.classList.add('peditorfolder');\r\n folderList[newFolderName] = currentFolder;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Determine UI name to use\r\n let path = name;\r\n let interfaceName = currentElem.getAttribute(\"interfacename\");\r\n if (interfaceName && interfaceName.length)\r\n {\r\n const graph = currentNode.getParent();\r\n if (graph)\r\n {\r\n const graphInput = graph.getInput(interfaceName);\r\n if (graphInput)\r\n {\r\n let uiname = graphInput.getAttribute('uiname');\r\n if (uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n else\r\n {\r\n path = graphInput.getName();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n path = interfaceName;\r\n }\r\n }\r\n else\r\n {\r\n if (!uiname)\r\n {\r\n uiname = currentElem.getAttribute('uiname');\r\n }\r\n if (uiname && uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n }\r\n\r\n switch (variable.getType().getName())\r\n {\r\n case 'float':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseFloat(nodeDefInput.getAttribute('uistep'));\r\n }\r\n if (step == 0)\r\n {\r\n step = (maxValue - minValue) / 1000.0;\r\n }\r\n const w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'integer':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n var enumList = []\r\n var enumValues = []\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('enum'))\r\n {\r\n // Get enum and enum values attributes (if present)\r\n enumList = nodeDefInput.getAttribute('enum').split(',');\r\n if (nodeDefInput.hasAttribute('enumvalues'))\r\n {\r\n enumValues = nodeDefInput.getAttribute('enumvalues').split(',').map(Number);\r\n }\r\n }\r\n else\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseInt(nodeDefInput.getAttribute('uistep'));\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n if (step == 0)\r\n {\r\n step = 1 / (maxValue - minValue);\r\n step = Math.ceil(step);\r\n if (step == 0)\r\n {\r\n step = 1;\r\n }\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n else\r\n {\r\n // Map enumList strings to values\r\n // Map to 0..N if no values are specified via enumvalues attribute\r\n if (enumValues.length == 0)\r\n {\r\n for (let i = 0; i < enumList.length; ++i)\r\n {\r\n enumValues.push(i);\r\n }\r\n }\r\n const enumeration = {};\r\n enumList.forEach((str, index) =>\r\n {\r\n enumeration[str] = enumValues[index];\r\n });\r\n\r\n // Function to handle enum drop-down\r\n function handleDropdownChange(value)\r\n {\r\n if (material.uniforms[name])\r\n {\r\n material.uniforms[name].value = value;\r\n }\r\n }\r\n const defaultOption = enumList[value]; // Set the default selected option\r\n const dropdownController = currentFolder.add(enumeration, defaultOption, enumeration).name(path);\r\n dropdownController.onChange(handleDropdownChange);\r\n dropdownController.domElement.classList.add('peditoritem');\r\n }\r\n }\r\n break;\r\n\r\n case 'boolean':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value').name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'vector2':\r\n case 'vector3':\r\n case 'vector4':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = [DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN];\r\n var maxValue = [DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX];\r\n var step = [0, 0, 0, 0];\r\n\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = nodeDefInput.getAttribute('uisoftmin').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = nodeDefInput.getAttribute('uimin').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = nodeDefInput.getAttribute('uisoftmax').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = nodeDefInput.getAttribute('uimax').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = nodeDefInput.getAttribute('uistep').split(',').map(Number);\r\n }\r\n for (let i = 0; i < 4; ++i)\r\n {\r\n if (step[i] == 0)\r\n {\r\n step[i] = 1 / (maxValue[i] - minValue[i]);\r\n }\r\n }\r\n\r\n const keyString = [\"x\", \"y\", \"z\", \"w\"];\r\n let vecFolder = currentFolder.addFolder(path);\r\n Object.keys(material.uniforms[name].value).forEach((key) =>\r\n {\r\n let w = vecFolder.add(material.uniforms[name].value,\r\n key, minValue[key], maxValue[key], step[key]).name(keyString[key]);\r\n w.domElement.classList.add('peditoritem');\r\n })\r\n }\r\n break;\r\n\r\n case 'color3':\r\n // Irksome way to map arrays to colors and back\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var dummy =\r\n {\r\n color: 0xFF0000\r\n };\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(dummy.color);\r\n color3.fromArray(material.uniforms[name].value);\r\n dummy.color = color3.getHex();\r\n let w = currentFolder.addColor(dummy, 'color').name(path)\r\n .onChange(function (value)\r\n {\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(value);\r\n material.uniforms[name].value.set(color3.toArray());\r\n });\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'color4':\r\n break;\r\n\r\n case 'matrix33':\r\n case 'matrix44':\r\n case 'samplerCube':\r\n case 'filename':\r\n break;\r\n case 'string':\r\n console.log('String: ', name);\r\n if (value != null)\r\n {\r\n var dummy =\r\n {\r\n thevalue: value\r\n }\r\n let item = currentFolder.add(dummy, 'thevalue');\r\n item.name(path);\r\n item.disable(true);\r\n item.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n\r\n if (logDetailedTime)\r\n {\r\n console.log(\" - Editor update time: \", performance.now() - startTime, \"ms\");\r\n }\r\n }\r\n\r\n // List of material assignments: { MaterialX node, geometry assignment string, and hardware shader }\r\n _materials;\r\n\r\n // Fallback material if nothing was assigned explicitly\r\n _defaultMaterial;\r\n}\r\n\r\n/*\r\n Viewer class\r\n\r\n Keeps track of local scene, and property editor as well as current MaterialX document \r\n and assocaited material, shader and lighting information.\r\n*/\r\nclass Viewer\r\n{\r\n static create()\r\n {\r\n return new Viewer();\r\n }\r\n\r\n constructor()\r\n {\r\n this.scene = new Scene();\r\n this.editor = new Editor();\r\n this.materials.push(new Material());\r\n\r\n this.fileLoader = new three__WEBPACK_IMPORTED_MODULE_1__.FileLoader();\r\n this.hdrLoader = new three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__.RGBELoader();\r\n }\r\n\r\n //\r\n // Create shader generator, generation context and \"base\" document which\r\n // contains the standard definition libraries and lighting elements.\r\n //\r\n async initialize(mtlxIn, renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n this.mx = mtlxIn;\r\n\r\n // Initialize base document\r\n this.generator = new this.mx.EsslShaderGenerator();\r\n this.genContext = new this.mx.GenContext(this.generator);\r\n\r\n this.document = this.mx.createDocument();\r\n this.stdlib = this.mx.loadStandardLibraries(this.genContext);\r\n this.document.importLibrary(this.stdlib);\r\n\r\n this.initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml);\r\n\r\n radianceTexture.mapping = three__WEBPACK_IMPORTED_MODULE_1__.EquirectangularReflectionMapping;\r\n this.getScene().setBackgroundTexture(radianceTexture);\r\n }\r\n\r\n //\r\n // Load in lighting rig document and register lights with generation context\r\n // Initialize environment lighting (IBLs).\r\n //\r\n async initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n // Load lighting setup into document\r\n const mx = this.getMx();\r\n this.lightRigDoc = mx.createDocument();\r\n await mx.readFromXmlString(this.lightRigDoc, lightRigXml);\r\n this.document.importLibrary(this.lightRigDoc);\r\n\r\n // Register lights with generation context\r\n this.lights = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.findLights)(this.document);\r\n this.lightData = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.registerLights)(mx, this.lights, this.genContext);\r\n\r\n this.radianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(radianceTexture, renderer.capabilities);\r\n this.irradianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(irradianceTexture, renderer.capabilities);\r\n }\r\n\r\n getEditor()\r\n {\r\n return this.editor;\r\n }\r\n\r\n getScene()\r\n {\r\n return this.scene;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this.materials[0];\r\n }\r\n\r\n getmaterials()\r\n {\r\n return this.materials;\r\n }\r\n\r\n getFileLoader()\r\n {\r\n return this.fileLoader;\r\n }\r\n\r\n getHdrLoader()\r\n {\r\n return this.hdrLoader;\r\n }\r\n\r\n setDocument(doc)\r\n {\r\n this.doc = doc;\r\n }\r\n getDocument()\r\n {\r\n return this.doc;\r\n }\r\n\r\n getLibrary()\r\n {\r\n return this.stdlib;\r\n }\r\n\r\n getLightRig()\r\n {\r\n return this.lightRigDoc;\r\n }\r\n\r\n getMx()\r\n {\r\n return this.mx;\r\n }\r\n\r\n getGenerator()\r\n {\r\n return this.generator;\r\n }\r\n\r\n getGenContext()\r\n {\r\n return this.genContext;\r\n }\r\n\r\n getLights()\r\n {\r\n return this.lights;\r\n }\r\n\r\n getLightData()\r\n {\r\n return this.lightData;\r\n }\r\n\r\n getRadianceTexture()\r\n {\r\n return this.radianceTexture;\r\n }\r\n\r\n getIrradianceTexture()\r\n {\r\n return this.irradianceTexture;\r\n }\r\n\r\n // Three scene and materials. \r\n scene = null;\r\n materials = [];\r\n\r\n // Property editor\r\n editor = null;\r\n\r\n // Utility loaders\r\n fileloader = null;\r\n hdrLoader = null;\r\n\r\n // MaterialX module, current document and support documents.\r\n mx = null;\r\n doc = null;\r\n stdlib = null;\r\n lightRigDoc = null;\r\n\r\n // MaterialX code generator and context\r\n generator = null;\r\n genContext = null;\r\n\r\n // Lighting information\r\n lights = null;\r\n lightData = null;\r\n radianceTexture = null;\r\n irradianceTexture = null;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Shader-Editor/./source/viewer.js?"); /***/ }), diff --git a/javascript/materialxnode/dist/public/favicon.ico b/javascript/shader_editor/dist/public/favicon.ico similarity index 100% rename from javascript/materialxnode/dist/public/favicon.ico rename to javascript/shader_editor/dist/public/favicon.ico diff --git a/javascript/materialxnode/dist/public/shader_ball.svg b/javascript/shader_editor/dist/public/shader_ball.svg similarity index 100% rename from javascript/materialxnode/dist/public/shader_ball.svg rename to javascript/shader_editor/dist/public/shader_ball.svg diff --git a/javascript/materialxnode/dist/public/shader_ball2.svg b/javascript/shader_editor/dist/public/shader_ball2.svg similarity index 100% rename from javascript/materialxnode/dist/public/shader_ball2.svg rename to javascript/shader_editor/dist/public/shader_ball2.svg diff --git a/javascript/materialxtoy/ui_helpers.js b/javascript/shader_editor/dist/ui_helpers.js similarity index 100% rename from javascript/materialxtoy/ui_helpers.js rename to javascript/shader_editor/dist/ui_helpers.js diff --git a/javascript/shader_utilities/dist/Geometry/boombox.glb b/javascript/shader_utilities/dist/Geometry/boombox.glb new file mode 100644 index 00000000..fea64585 Binary files /dev/null and b/javascript/shader_utilities/dist/Geometry/boombox.glb differ diff --git a/javascript/viewer/dist/Geometry/cloth.glb b/javascript/shader_utilities/dist/Geometry/cloth.glb similarity index 100% rename from javascript/viewer/dist/Geometry/cloth.glb rename to javascript/shader_utilities/dist/Geometry/cloth.glb diff --git a/javascript/viewer/dist/Geometry/cylinder.glb b/javascript/shader_utilities/dist/Geometry/cylinder.glb similarity index 100% rename from javascript/viewer/dist/Geometry/cylinder.glb rename to javascript/shader_utilities/dist/Geometry/cylinder.glb diff --git a/javascript/viewer/dist/Geometry/glTF.glb b/javascript/shader_utilities/dist/Geometry/glTF.glb similarity index 100% rename from javascript/viewer/dist/Geometry/glTF.glb rename to javascript/shader_utilities/dist/Geometry/glTF.glb diff --git a/javascript/viewer/dist/Geometry/plane.glb b/javascript/shader_utilities/dist/Geometry/plane.glb similarity index 100% rename from javascript/viewer/dist/Geometry/plane.glb rename to javascript/shader_utilities/dist/Geometry/plane.glb diff --git a/javascript/viewer/dist/Geometry/shaderball.glb b/javascript/shader_utilities/dist/Geometry/shaderball.glb similarity index 100% rename from javascript/viewer/dist/Geometry/shaderball.glb rename to javascript/shader_utilities/dist/Geometry/shaderball.glb diff --git a/javascript/viewer/dist/Geometry/sphere.glb b/javascript/shader_utilities/dist/Geometry/sphere.glb similarity index 100% rename from javascript/viewer/dist/Geometry/sphere.glb rename to javascript/shader_utilities/dist/Geometry/sphere.glb diff --git a/javascript/viewer/dist/Geometry/teapot.glb b/javascript/shader_utilities/dist/Geometry/teapot.glb similarity index 100% rename from javascript/viewer/dist/Geometry/teapot.glb rename to javascript/shader_utilities/dist/Geometry/teapot.glb diff --git a/javascript/shader_utilities/dist/Images/boombox/BoomBox_baseColor.png b/javascript/shader_utilities/dist/Images/boombox/BoomBox_baseColor.png new file mode 100644 index 00000000..992429df Binary files /dev/null and b/javascript/shader_utilities/dist/Images/boombox/BoomBox_baseColor.png differ diff --git a/javascript/shader_utilities/dist/Images/boombox/BoomBox_emissive.png b/javascript/shader_utilities/dist/Images/boombox/BoomBox_emissive.png new file mode 100644 index 00000000..315a4994 Binary files /dev/null and b/javascript/shader_utilities/dist/Images/boombox/BoomBox_emissive.png differ diff --git a/javascript/shader_utilities/dist/Images/boombox/BoomBox_normal.png b/javascript/shader_utilities/dist/Images/boombox/BoomBox_normal.png new file mode 100644 index 00000000..19d7afbe Binary files /dev/null and b/javascript/shader_utilities/dist/Images/boombox/BoomBox_normal.png differ diff --git a/javascript/shader_utilities/dist/Images/boombox/BoomBox_occlusionRoughnessMetallic.png b/javascript/shader_utilities/dist/Images/boombox/BoomBox_occlusionRoughnessMetallic.png new file mode 100644 index 00000000..4370d609 Binary files /dev/null and b/javascript/shader_utilities/dist/Images/boombox/BoomBox_occlusionRoughnessMetallic.png differ diff --git a/javascript/materialxtoy/resources/Images/brass_color.jpg b/javascript/shader_utilities/dist/Images/brass_color.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brass_color.jpg rename to javascript/shader_utilities/dist/Images/brass_color.jpg diff --git a/javascript/materialxtoy/resources/Images/brass_roughness.jpg b/javascript/shader_utilities/dist/Images/brass_roughness.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brass_roughness.jpg rename to javascript/shader_utilities/dist/Images/brass_roughness.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_base_gray.jpg b/javascript/shader_utilities/dist/Images/brick_base_gray.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_base_gray.jpg rename to javascript/shader_utilities/dist/Images/brick_base_gray.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_dirt_mask.jpg b/javascript/shader_utilities/dist/Images/brick_dirt_mask.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_dirt_mask.jpg rename to javascript/shader_utilities/dist/Images/brick_dirt_mask.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_mask.jpg b/javascript/shader_utilities/dist/Images/brick_mask.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_mask.jpg rename to javascript/shader_utilities/dist/Images/brick_mask.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_normal.jpg b/javascript/shader_utilities/dist/Images/brick_normal.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_normal.jpg rename to javascript/shader_utilities/dist/Images/brick_normal.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_roughness.jpg b/javascript/shader_utilities/dist/Images/brick_roughness.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_roughness.jpg rename to javascript/shader_utilities/dist/Images/brick_roughness.jpg diff --git a/javascript/materialxtoy/resources/Images/brick_variation_mask.jpg b/javascript/shader_utilities/dist/Images/brick_variation_mask.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/brick_variation_mask.jpg rename to javascript/shader_utilities/dist/Images/brick_variation_mask.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_black_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_black_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_black_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_black_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_shared_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_shared_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_white_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_white_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/bishop_white_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/bishop_white_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/castle_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/castle_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/castle_shared_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/castle_shared_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/castle_shared_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/castle_shared_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/castle_shared_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/castle_shared_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/castle_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/castle_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/chessboard_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/chessboard_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/chessboard_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/chessboard_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/chessboard_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/chessboard_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/chessboard_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/chessboard_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_black_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_black_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_black_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_black_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_shared_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_shared_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_shared_scattering.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_shared_scattering.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_white_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_white_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/king_white_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/king_white_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_black_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_black_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_black_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_black_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_white_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_white_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/knight_white_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/knight_white_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/pawn_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/pawn_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/pawn_shared_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/pawn_shared_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/pawn_shared_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/pawn_shared_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/pawn_shared_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/pawn_shared_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/pawn_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/pawn_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_black_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_black_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_black_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_black_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_black_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_black_roughness.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_shared_metallic.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_shared_metallic.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_shared_scattering.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_shared_scattering.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_white_base_color.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_white_base_color.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_white_normal.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_white_normal.jpg diff --git a/resources/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg b/javascript/shader_utilities/dist/Images/chess_set/queen_white_roughness.jpg similarity index 100% rename from resources/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg rename to javascript/shader_utilities/dist/Images/chess_set/queen_white_roughness.jpg diff --git a/javascript/viewer/dist/Images/clipboard.svg b/javascript/shader_utilities/dist/Images/clipboard.svg similarity index 100% rename from javascript/viewer/dist/Images/clipboard.svg rename to javascript/shader_utilities/dist/Images/clipboard.svg diff --git a/javascript/viewer/dist/Images/clipboard_white.svg b/javascript/shader_utilities/dist/Images/clipboard_white.svg similarity index 100% rename from javascript/viewer/dist/Images/clipboard_white.svg rename to javascript/shader_utilities/dist/Images/clipboard_white.svg diff --git a/javascript/materialxtoy/resources/Images/cloth.bmp b/javascript/shader_utilities/dist/Images/cloth.bmp similarity index 100% rename from javascript/materialxtoy/resources/Images/cloth.bmp rename to javascript/shader_utilities/dist/Images/cloth.bmp diff --git a/javascript/materialxtoy/resources/Images/cloth.gif b/javascript/shader_utilities/dist/Images/cloth.gif similarity index 100% rename from javascript/materialxtoy/resources/Images/cloth.gif rename to javascript/shader_utilities/dist/Images/cloth.gif diff --git a/javascript/materialxtoy/resources/Images/cloth.jpg b/javascript/shader_utilities/dist/Images/cloth.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/cloth.jpg rename to javascript/shader_utilities/dist/Images/cloth.jpg diff --git a/javascript/materialxtoy/resources/Images/cloth.png b/javascript/shader_utilities/dist/Images/cloth.png similarity index 100% rename from javascript/materialxtoy/resources/Images/cloth.png rename to javascript/shader_utilities/dist/Images/cloth.png diff --git a/javascript/materialxtoy/resources/Images/cloth.tga b/javascript/shader_utilities/dist/Images/cloth.tga similarity index 100% rename from javascript/materialxtoy/resources/Images/cloth.tga rename to javascript/shader_utilities/dist/Images/cloth.tga diff --git a/javascript/viewer/dist/Images/copy-regular.svg b/javascript/shader_utilities/dist/Images/copy-regular.svg similarity index 100% rename from javascript/viewer/dist/Images/copy-regular.svg rename to javascript/shader_utilities/dist/Images/copy-regular.svg diff --git a/javascript/materialxtoy/resources/Images/greysphere_calibration.png b/javascript/shader_utilities/dist/Images/greysphere_calibration.png similarity index 100% rename from javascript/materialxtoy/resources/Images/greysphere_calibration.png rename to javascript/shader_utilities/dist/Images/greysphere_calibration.png diff --git a/javascript/materialxtoy/resources/Images/grid.png b/javascript/shader_utilities/dist/Images/grid.png similarity index 100% rename from javascript/materialxtoy/resources/Images/grid.png rename to javascript/shader_utilities/dist/Images/grid.png diff --git a/javascript/materialxtoy/resources/Images/mesh_wire_norm.png b/javascript/shader_utilities/dist/Images/mesh_wire_norm.png similarity index 100% rename from javascript/materialxtoy/resources/Images/mesh_wire_norm.png rename to javascript/shader_utilities/dist/Images/mesh_wire_norm.png diff --git a/javascript/materialxtoy/resources/Images/plain_heightmap.png b/javascript/shader_utilities/dist/Images/plain_heightmap.png similarity index 100% rename from javascript/materialxtoy/resources/Images/plain_heightmap.png rename to javascript/shader_utilities/dist/Images/plain_heightmap.png diff --git a/javascript/materialxtoy/resources/Images/wood_color.jpg b/javascript/shader_utilities/dist/Images/wood_color.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/wood_color.jpg rename to javascript/shader_utilities/dist/Images/wood_color.jpg diff --git a/javascript/materialxtoy/resources/Images/wood_roughness.jpg b/javascript/shader_utilities/dist/Images/wood_roughness.jpg similarity index 100% rename from javascript/materialxtoy/resources/Images/wood_roughness.jpg rename to javascript/shader_utilities/dist/Images/wood_roughness.jpg diff --git a/javascript/viewer/dist/JsMaterialXCore.js b/javascript/shader_utilities/dist/JsMaterialXCore.js similarity index 100% rename from javascript/viewer/dist/JsMaterialXCore.js rename to javascript/shader_utilities/dist/JsMaterialXCore.js diff --git a/javascript/viewer/dist/JsMaterialXCore.wasm b/javascript/shader_utilities/dist/JsMaterialXCore.wasm similarity index 100% rename from javascript/viewer/dist/JsMaterialXCore.wasm rename to javascript/shader_utilities/dist/JsMaterialXCore.wasm diff --git a/javascript/viewer/dist/JsMaterialXGenShader.data b/javascript/shader_utilities/dist/JsMaterialXGenShader.data similarity index 100% rename from javascript/viewer/dist/JsMaterialXGenShader.data rename to javascript/shader_utilities/dist/JsMaterialXGenShader.data diff --git a/javascript/viewer/dist/JsMaterialXGenShader.js b/javascript/shader_utilities/dist/JsMaterialXGenShader.js similarity index 100% rename from javascript/viewer/dist/JsMaterialXGenShader.js rename to javascript/shader_utilities/dist/JsMaterialXGenShader.js diff --git a/javascript/viewer/dist/JsMaterialXGenShader.wasm b/javascript/shader_utilities/dist/JsMaterialXGenShader.wasm similarity index 100% rename from javascript/viewer/dist/JsMaterialXGenShader.wasm rename to javascript/shader_utilities/dist/JsMaterialXGenShader.wasm diff --git a/javascript/shader_utilities/dist/JsMaterialXNodeEditor.js b/javascript/shader_utilities/dist/JsMaterialXNodeEditor.js new file mode 100644 index 00000000..241f050e --- /dev/null +++ b/javascript/shader_utilities/dist/JsMaterialXNodeEditor.js @@ -0,0 +1,3445 @@ + +// Globals +var ne_mx = null; +var doc = null; +var stdlib = null; +var customlibs = []; +var customDocLibs = []; +var graph = null; +var graphcanvas = null; + +// Base Class for Graph Handler +class MxGraphHandler +{ + constructor(id, extension) + { + // Identifier + this.id = id; + // Extension + this.extension = extension; + // Editor + this.editor = null; + + this.DEFAULT_COLOR_SPACE = 'lin_rec709'; + this.DEFAULT_UNIT = 'meter'; + this.activeColorSpace = this.DEFAULT_COLOR_SPACE; + this.activeUnit = this.DEFAULT_UNIT; + } + + setActiveColorSpace(colorSpace) + { + if (colorSpace && colorSpace.length > 0) + this.activeColorSpace = colorSpace; + else + this.activeColorSpace = this.DEFAULT_COLOR_SPACE; + } + + setActiveUnit(unit) + { + if (unit && unit.length > 0) + this.activeUnit = unit; + else + this.activeUnit = this.DEFAULT_UNIT; + } + + getActiveColorSpace() + { + return this.activeColorSpace; + } + + getActiveUnit() + { + return this.activeUnit; + } + + getExtension() + { + return this.extension; + } + + initialize(editor) + { + this.editor = editor; + } + + createValidName(name) + { + return name; + } + + getDefaultValue(value, _type) + { + if (_type === 'string' || _type === 'filename') { + value = "'" + value + "'"; + } + else if (this.isArray(_type)) { + if (value.length == 0) { + if (_type === 'color3') + value = "[0.0, 0.0, 0.0]"; + else if (_type === 'color4') + value = "[0.0, 0.0, 0.0, 0.0]"; + else if (_type === 'vector2') + value = "[0.0, 0.0]"; + else if (_type === 'vector3') + value = "[0.0, 0.0, 0.0]"; + else if (_type === 'vector4') + value = "[0.0, 0.0, 0.0, 0.0]"; + else if (_type === 'matrix33') + value = "[1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]"; + else if (_type === 'matrix44') + value = "[1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]"; + } + else { + value = "[" + value + "]"; + } + } + else if (_type === 'integer') { + if (value.length == 0) { + value = 0; + } + } + else if (_type === 'float') { + if (value.length == 0) { + value = 0.0; + } + } + else if (_type === 'boolean') { + if (value) + value = 'true'; + else + value = 'false'; + } + + if (value.length == 0) { + //console.log('No value for input:', _name, 'type:', _type, 'value:', value);= + value = "''"; + } + return value; + } + + /* + getDefaultValueRaw(value, _type) { + if (_type === 'integer' || _type === 'float') { + if (value.length == 0) { + value = 0; + } + } + else if (_type === 'string' || _type === 'filename') { + //value = value + "'"; + } + else if (isArray(_type)) { + if (value.length == 0) { + if (_type === 'color3') + value = [0.0, 0.0, 0.0]; + else if (_type === 'color4') + value = [0.0, 0.0, 0.0, 0.0]; + else if (_type === 'vector2') + value = [0.0, 0.0]; + else if (_type === 'vector3') + value = [0.0, 0.0, 0.0]; + else if (_type === 'vector4') + value = [0.0, 0.0, 0.0, 0.0]; + else if (_type === 'matrix33') + value = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]; + else if (_type === 'matrix44') + value = [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]; + } + else { + value = [value]; + } + } + + if (value.length == 0) { + //console.log('No value for input:', _name, 'type:', _type, 'value:', value); + value = ""; + } + return value; + } + */ +}; + +class MxMaterialXHandler extends MxGraphHandler { + constructor(id, extension) + { + super(id, extension); + } + + loadMaterialX() { + return new Promise((resolve, reject) => { + MaterialX().then((ne_mtlx) => { + // Save the MaterialX instance to the global variable + ne_mx = ne_mtlx; + resolve(); + }).catch((error) => { + reject(error); + }); + }); + } + + loadDefaultDocument(editor, materialFilename) { + + function loadInitialText(filePath, handler) { + try { + fetch(filePath) + .then(response => response.blob()) + .then(blob => { + const reader = new FileReader(); + reader.onload = function (e) { + console.log('Loaded startup document:', filePath); + editor.loadGraphFromString('mtlx', e.target.result, filePath, 80); + } + reader.readAsText(blob); + }) + } catch (error) { + console.error('Error loading file %s:' % filePath, error); + } + } + + loadInitialText(materialFilename, this); + } + + // Initialize the MaterialX handler for the given editor + initialize(editor, materialFilename) + { + super.initialize(editor); + + if (!ne_mx) { + + this.loadMaterialX().then(() => { + + // Additional logic after MaterialX is loaded + editor.debugOutput("Loaded MaterialX version:" + ne_mx.getVersionString(), 0, true); + doc = ne_mx.createDocument(); + + var generator = new ne_mx.EsslShaderGenerator(); + var genContext = new ne_mx.GenContext(generator); + stdlib = ne_mx.loadStandardLibraries(genContext); + editor.debugOutput('Loaded standard libraries definitions:' + stdlib.getNodeDefs().length, 0, false); + + var definitionsList = []; + var result = this.createLiteGraphDefinitions(stdlib, false, true, definitionsList, 'mtlx', MxShadingGraphEditor.theEditor); + var textarea = editor.ui.mtlxlib; + if (textarea) + { + //console.log('set value', result); + textarea.setValue(result); + } + + editor.clearNodeTypes(); + try { + eval(result); + } catch (e) { + editor.debugOutput('Error evaluating source: ' + e, 2, false); + } + + var nodeTypes = LiteGraph.registered_node_types; + var i = 0; + for (var typeName in nodeTypes) { + i++; + } + editor.debugOutput("Registered node types:" + definitionsList.length, 0, false); + + editor.displayNodeTypes(); + + if (materialFilename.length> 0) + { + this.loadDefaultDocument(editor, materialFilename); + } + + editor.updatePropertyPanel(null); + + }).catch((error) => { + editor.debugOutput("Error on initialization:" + error, 2); + }); + } + } + + findRenderableItems(graph) { + + let mdoc = this.saveGraphToDocument(graph, false, false); + if (!mdoc) { + console.log('Failed to save graph to document'); + return; + } + return this.findRenderableItemsInDoc(mdoc); + } + + findRenderableItemsInDoc(mdoc) { + + const materialNodes = mdoc.getMaterialNodes(); + let shaderList = []; + let renderableItems = []; + + for (let i = 0; i < materialNodes.length; ++i) { + let materialNode = materialNodes[i]; + if (materialNode) { + //console.log('Scan material: ', materialNode.getNamePath()); + let shaderNodes = ne_mx.getShaderNodes(materialNode) + if (shaderNodes.length > 0) { + let shaderNodePath = shaderNodes[0].getNamePath() + if (!shaderList.includes(shaderNodePath)) { + //console.log('-- add shader: ', shaderNodePath); + shaderList.push(shaderNodePath); + renderableItems.push(shaderNodePath); + } + } + } + } + const nodeGraphs = mdoc.getNodeGraphs(); + for (let i = 0; i < nodeGraphs.length; ++i) { + let nodeGraph = nodeGraphs[i]; + if (nodeGraph) { + if (nodeGraph.hasAttribute('nodedef') || nodeGraph.hasSourceUri()) { + continue; + } + // Skip any nodegraph that is connected to something downstream + if (nodeGraph.getDownstreamPorts().length > 0) { + continue + } + let outputs = nodeGraph.getOutputs(); + for (let j = 0; j < outputs.length; ++j) { + let output = outputs[j]; + { + //let newMat = new MaterialAssign(output, assignment, null); + renderableItems.push(output.getNamePath()); + } + } + } + } + const outputs = mdoc.getOutputs(); + for (let i = 0; i < outputs.length; ++i) { + let output = outputs[i]; + if (output) { + renderableItems.push(output.getNamePath()); + } + } + + /* + const allNodes = mdoc.getNodes(); + console.log('All Nodes:', allNodes.length, allNodes); + for (let i = 0; i < allNodes.length; ++i) { + let node = allNodes[i]; + if (node) { + if (node.getType() == 'surfaceshader') { + let shaderNodePath = node.getNamePath() + if (!shaderList.includes(shaderNodePath)) { + console.log('========================= Node:', node.getNamePath(), node.getCategory(), node.getType()); + let assignment = NO_GEOMETRY_SPECIFIER; + if (foundRenderable == false) { + assignment = ALL_GEOMETRY_SPECIFIER; + foundRenderable = true; + } + shaderList.push(shaderNodePath); + // Create a dummy surface material + let surfaceMaterial = mdoc.addChildOfCategory('surfacematerial', shaderNodePath + '_material'); + let sm_input = surfaceMaterial.addInput('surfaceshader', 'surfaceshader'); + sm_input.setValueString(shaderNodePath, 'surfaceshader'); + renderableItems.push(shaderNodePath); + console.log('Add dummy material:', ne_mx.prettyPrint(surfaceMaterial)); + } + } + } + + } */ + + return renderableItems; + } + + + buildMetaData(colorSpace, unit, unitType, uiname, uimin, uimax, uifolder, _type) + { + // Create a struct with the metadata names as key and value + var metaData = {}; + metaData['colorspace'] = colorSpace; + metaData['unit'] = unit; + metaData['unittype'] = unitType; + metaData['uiname'] = uiname; + if (_type == 'vector2' || _type == 'vector3' || _type == 'vector4' || _type == 'matrix33' || _type == 'matrix44') { + if (uimin) { + uimin = uimin.split(',').map(Number); + } + if (uimax) + { + uimax = uimax.split(',').map(Number); + } + } + metaData['uimin'] = uimin; + metaData['uimax'] = uimax; + metaData['uifolder'] = uifolder; + + // Return struct in an array + return metaData; + } + + createLiteGraphDefinitions(doc, debug, addInputOutputs, definitionsList, libraryPrefix='mtlx', + editor, icon='') + { + //var ctor_code = "function loadMaterialXDefinitions(){\n"; + + var ctor_code = "" + + console.log('Creating LiteGraph definitions from MaterialX document:', doc); + + // Get the node definitions from the MaterialX document + var nodeDefs = doc.getNodeDefs(); + + if (debug) + ctor_code += "console.log('Loading MaterialX Definitions...');\n"; + + var TMAP = {} + TMAP['float'] = 'float'; + TMAP['color3'] = 'color3'; + TMAP['color4'] = 'color4'; + TMAP['vector2'] = 'vector2'; + TMAP['vector3'] = 'vector3'; + TMAP['vector4'] = 'vector4'; + TMAP['matrix33'] = 'matrix33'; + TMAP['matrix44'] = 'matrix44'; + TMAP['integer'] = 'integer'; + TMAP['string'] = 'string'; + TMAP['boolean'] = 'boolean'; + TMAP['filename'] = 'filename'; + TMAP['BSDF'] = 'BSDF'; + TMAP['EDF'] = 'EDF'; + TMAP['VDF'] = 'VDF'; + TMAP['surfaceshader'] = 'surfaceshader'; + TMAP['volumeshader'] = 'volumeshader'; + TMAP['displacementshader'] = 'displacementshader'; + TMAP['lightshader'] = 'lightshader'; + TMAP['material'] = 'material'; + TMAP['vector2array'] = 'vector2array'; + + var CMAP = {} + CMAP['integer'] = "#A32"; + CMAP['float'] = "#161"; + CMAP['vector2'] = "#265"; + CMAP['vector3'] = "#465"; + CMAP['vector4'] = "#275"; + CMAP['color3'] = "#37A"; + CMAP['color4'] = "#69A"; + CMAP['matrix33'] = "#333"; + CMAP['matrix44'] = "#444"; + CMAP['string'] = "#395"; + CMAP['filename'] = "#888"; + CMAP['boolean'] = "#060"; + /* + CMAP['float'] = "#753"; + CMAP['color3'] = "#679"; + CMAP['color4'] = "#899"; + CMAP['vector2'] = "#A32"; + CMAP['vector3'] = "#A76"; + CMAP['vector4'] = "#A98"; + CMAP['matrix33'] = "#333"; + CMAP['matrix44'] = "#444"; + CMAP['integer'] = "#A32"; + CMAP['string'] = "#888"; + CMAP['boolean'] = "#48A"; + CMAP['filename'] = "#58E"; + */ + /* + float: "#753", + vector2: "#A32", + vector3: "#A76", + vector4: "#A98", + color3: "#679", + color4: "#899", + matrix33: "#333", + matrix44: "#444", + string: "#888", + filename: "#58E", + boolean: "#48A", */ + + var inputTypes = ['float', 'color3', 'color4', 'vector2', 'vector3', 'vector4', 'matrix33', 'matrix44', 'integer', 'string', 'boolean', 'filename', 'BSDF', 'EDF', 'VDF', 'surfaceshader', 'volumeshader', 'displacementshader', 'lightshader', 'material', 'vector2array']; + var outputTypes = ['float', 'color3', 'color4', 'vector2', 'vector3', 'vector4', 'matrix33', 'matrix44', 'integer', 'string', 'boolean', 'filename', 'BSDF', 'EDF', 'VDF', 'surfaceshader', 'volumeshader', 'displacementshader', 'lightshader', 'material', 'vector2array']; + + // TODO: Support tokens + var supporTokens = false; + if (supporTokens) + { + inputTypes.push('token'); + TMAP['token'] = 'string'; + } + + const INPUT_ND = 'ND_input_'; + const OUTPUT_ND = 'ND_output_'; + const INPUT_NODE_STRING = 'input'; + const OUTPUT_NODE_STRING = 'output'; + const LIBRARY_ICON = editor.ui.icon_map['_default_']; + + // Register inputs (which have no nodedef) + if (addInputOutputs) + { + for (var _type of inputTypes) { + var id = libraryPrefix + '/input/input_' + _type; + var functionName = ne_mx.createValidName(id); + var titleName = 'input_' + _type; + ctor_code += "\n// MaterialX node type: " + id + "\n//\n"; + ctor_code += "function " + functionName + "() {\n"; + { + ctor_code += " this.nodedef_icon = '" + LIBRARY_ICON + "';\n"; + ctor_code += " this.nodedef_name = '" + INPUT_ND + _type + "';\n"; + ctor_code += " this.nodedef_node = '" + INPUT_NODE_STRING + "';\n"; + ctor_code += " this.nodedef_type = '" + _type + "';\n"; + ctor_code += " this.nodedef_group = '" + INPUT_NODE_STRING + "';\n"; + if (_type == 'token') + _type = 'string'; + ctor_code += " this.addInput('in', '" + TMAP[_type] + "');\n"; + var value = this.getDefaultValue('', _type); + var metaData = this.buildMetaData('', '', '', '', null, null, '', null); + metaData = JSON.stringify(metaData); + ctor_code += " this.addProperty('in', " + value + ", '" + _type + "'," + metaData + ");\n"; + ctor_code += " this.addOutput('out', '" + TMAP[_type] + "');\n"; + + ctor_code += " this.title = '" + titleName + "';\n" + var desc = '"MaterialX:' + id + '"'; + ctor_code += " this.desc = " + desc + ";\n"; + + var onNodeCreated = "function() {\n"; + onNodeCreated += " //console.log('Node created:', this);\n"; + onNodeCreated += " }"; + ctor_code += " this.onNodeCreated = " + onNodeCreated + "\n"; + var onRemoved = "function() {\n"; + onRemoved += " //console.log('Node removed:', this);\n"; + onRemoved += " }"; + ctor_code += " this.onRemoved = " + onRemoved + "\n"; + + ctor_code += " this.color = '#004C94';\n"; + ctor_code += " this.bgcolor = '#000';\n"; + if (_type in CMAP) + { + ctor_code += " this.boxcolor = '" + CMAP[_type] + "';\n"; + } + ctor_code += " this.shape = LiteGraph.ROUND_SHAPE;\n"; + + ctor_code += " this.onExecute = function() {\n"; + ctor_code += " console.log('Executing node: ', this);\n"; + ctor_code += " }\n"; + } + ctor_code += "}\n" + ctor_code += "LiteGraph.registerNodeType('" + id + "', " + functionName + ");\n"; + } + + // Register outputs (which have no nodedef) + for (var _type of outputTypes) { + var id = libraryPrefix + '/output/output_' + _type; + var functionName = ne_mx.createValidName(id); + var titleName = 'output_' + _type; + ctor_code += "\n// MaterialX node type: " + id + "\n//\n"; + ctor_code += "function " + functionName + "() {\n"; + { + ctor_code += " this.title = '" + titleName + "';\n" + var desc = '"MaterialX Node :' + id + '"'; + ctor_code += " this.desc = " + desc + ";\n"; + + ctor_code += " this.nodedef_icon = '" + LIBRARY_ICON + "';\n"; + ctor_code += " this.nodedef_name = '" + OUTPUT_ND + + _type + "';\n"; + ctor_code += " this.nodedef_node = '" + OUTPUT_NODE_STRING + "';\n"; + ctor_code += " this.nodedef_type = '" + _type + "';\n"; + ctor_code += " this.nodedef_group = '" + OUTPUT_NODE_STRING + "';\n"; + ctor_code += " this.addInput('in', '" + TMAP[_type] + "');\n"; + var value = this.getDefaultValue('', _type); + ctor_code += " this.addProperty('in', " + value + ", '" + _type + "');\n"; + ctor_code += " this.addOutput('out', '" + TMAP[_type] + "');\n"; + + var onNodeCreated = "function() {\n"; + onNodeCreated += " //console.log('Node created:', this);\n"; + onNodeCreated += " }"; + ctor_code += " this.onNodeCreated = " + onNodeCreated + "\n"; + var onRemoved = "function() {\n"; + onRemoved += " //console.log('Node removed:', this);\n"; + onRemoved += " }"; + ctor_code += " this.onRemoved = " + onRemoved + "\n"; + + ctor_code += " this.color = '#004C94';\n"; + ctor_code += " this.bgcolor = '#000';\n"; + if (_type in CMAP) + { + ctor_code += " this.boxcolor = '" + CMAP[_type] + "';\n"; + } + ctor_code += " this.shape = LiteGraph.ROUND_SHAPE;\n"; + + ctor_code += " this.onExecute = function() {\n"; + ctor_code += " console.log('Executing node:', this);\n"; + ctor_code += " }\n"; + } + ctor_code += "}\n" + ctor_code += "LiteGraph.registerNodeType('" + id + "', " + functionName + ");\n"; + definitionsList.push(id); + } + } + + // Iterate over all node definitions + for (var nodeDef of nodeDefs) { + + var nodeDefName = nodeDef.getName(); + var id = libraryPrefix + '/' + nodeDef.getNodeGroup() + '/' + nodeDefName; + id = id.replace('ND_', ''); + var functionName = ne_mx.createValidName(id); + var nodeType = nodeDef.getType(); + var titleName = nodeDef.getNodeString() + "_" + nodeType; + var swatchLocation = 'https://materialx.nanmucreative.com/resources/mtlx/nodedef_materials/'; + var outputs = nodeDef.getActiveOutputs(); + var outputName = outputs[0].getName(); // TODO: Handle swatch for multiple outputs + var swatchId = swatchLocation + 'material_' + nodeDefName + '_' + outputName + '_genglsl.png'; + swatchId = swatchId.replace('ND_', ''); + if (debug) + console.log('\n--- Registering node type:', id, '----'); + + ctor_code += "\n// MaterialX node type: " + id + "\n//\n"; + ctor_code += "function " + functionName + "() {\n"; + { + var nodeGroup = nodeDef.getNodeGroup(); + var nodeString = nodeDef.getNodeString(); + var theIcon = icon; + if (theIcon.length == 0) + { + for (var key in editor.ui.icon_map) + { + if (nodeString.toLowerCase().startsWith(key.toLowerCase())) + { + theIcon = editor.ui.icon_map[key]; + //console.log('set icon:', theIcon, 'for:', key, nodeString); + break; + } + else if (nodeGroup.toLowerCase().startsWith(key.toLowerCase())) + { + theIcon = editor.ui.icon_map[key]; + //console.log('set icon:', theIcon, 'for:', key, nodeGroup); + break; + } + } + } + + ctor_code += " this.nodedef_icon = '" + theIcon + "';\n"; + ctor_code += " this.nodedef_name = '" + nodeDefName + "';\n"; + ctor_code += " this.nodedef_type = '" + nodeType + "';\n"; + ctor_code += " this.nodedef_node = '" + nodeString + "';\n"; + ctor_code += " this.nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/" + nodeString + ".html';\n"; + ctor_code += " this.nodedef_swatch = '" + swatchId + "';\n"; + ctor_code += " this.nodedef_group = '" + nodeGroup + "';\n"; + + for (var input of nodeDef.getActiveInputs()) { + var _name = input.getName(); + var _type = input.getType(); + if (_type in TMAP) + _type = TMAP[_type]; + else + console.log('Unmappable type:', _type) + ctor_code += " this.addInput('" + _name + "','" + _type + "');\n"; + + var value = input.getValueString(); + value = this.getDefaultValue(value, _type); + var uiname = input.getAttribute('uiname'); + var uimin = input.getAttribute('uimin'); + if (uimin.length == 0) + { + uimin = null; + } + var uimax = input.getAttribute('uimax'); + if (uimax.length == 0) + { + uimax = null; + } + var uifolder = input.getAttribute('uifolder'); + var metaData = this.buildMetaData('', '', '', uiname, uimin, uimax, uifolder, _type); + metaData = JSON.stringify(metaData); + ctor_code += " this.addProperty('" + _name + "', " + value + ", '" + _type + "'," + metaData + ");\n"; + } + for (var output of nodeDef.getActiveOutputs()) { + var _name = output.getName(); + var _type = output.getType(); + if (_type in TMAP) + _type = TMAP[_type]; + else + console.log('Unmappable type:', _type) + //if(_type && _type.constructor === String) + // _type = '"'+_type+'"'; + ctor_code += " this.addOutput('" + _name + "','" + _type + "');\n"; + } + + ctor_code += " this.title = '" + titleName + "';\n" + var desc = '"MaterialX:' + id + '"'; + ctor_code += " this.desc = " + desc + ";\n"; + + var onNodeCreated = "function() {\n"; + onNodeCreated += " //console.log('Node created:', this);\n"; + onNodeCreated += "}"; + ctor_code += " this.onNodeCreated = " + onNodeCreated + "\n"; + var onRemoved = "function() {\n"; + onRemoved += " //console.log('Node removed:', this);\n"; + onRemoved += " }"; + ctor_code += " this.onRemoved = " + onRemoved + "\n"; + + // Set the background color to slate grey + ctor_code += " this.bgcolor = '#111';\n"; + //console.log('Node group:', nodeGroup, nodeDefName); + if (nodeGroup == 'conditional') + { + //console.log('Cond Node group:', nodeGroup) + ctor_code += " this.color = '#532200';\n"; + ctor_code += " this.title_text_color = '#000';\n"; + ctor_code += " this.shape = LiteGraph.CARD_SHAPE;\n"; + } + + else if (nodeString != 'convert' && + (nodeGroup == 'shader' || nodeType == 'surfaceshader' || nodeType == 'volumshader' || nodeType == 'displacementshader')) + { + ctor_code += " this.color = '#232';\n"; + ctor_code += " this.shape = LiteGraph.ROUND_SHAPE;\n"; + } + else if (nodeGroup == 'material') + { + ctor_code += " this.color = '#151';\n"; + ctor_code += " this.shape = LiteGraph.BOX_SHAPE;\n"; + } + else + { + ctor_code += " this.color = '#222';\n"; + ctor_code += " this.shape = LiteGraph.ROUND_SHAPE;\n"; + } + if (nodeType in CMAP) + { + ctor_code += " this.boxcolor = '" + CMAP[nodeType] + "';\n"; + } + } + ctor_code += "}\n" + + // Register the node type + ctor_code += functionName + ".nodedef_name = '" + nodeDefName + "';\n"; + ctor_code += functionName + ".nodedef_node = '" + nodeString + "';\n"; + ctor_code += functionName + ".nodedef_href = 'https://materialx.nanmucreative.com/documents/definitions/" + nodeString + ".html';\n"; + + ctor_code += "LiteGraph.registerNodeType(" + "'" + id + "'," + functionName + ");\n"; + definitionsList.push(id); + if (debug) + ctor_code += "console.log('Registered node type:', '" + id + "');\n"; + } + + //ctor_code += "}\n"; + return ctor_code; + } + + validateDocument(doc) + { + var errors = {}; + var valid = doc.validate(errors); + if (!valid) { + this.editor.debugOutput('Failed to validate document:\n' + errors.message, 2); + } + } + + saveGraphToDocument(graph, writeCustomLibs = true, saveNodePositions = false) + { + if (!ne_mx) { + this.editor.debugOutput("MaterialX is not initialized", 2); + return; + } + + var outputDoc = ne_mx.createDocument(); + + if (!stdlib) { + var generator = new ne_mx.EsslShaderGenerator(); + var genContext = new ne_mx.GenContext(generator); + stdlib = ne_mx.loadStandardLibraries(genContext); + } + + // Handle top level + this.writeGraphToDocument(outputDoc, graph, saveNodePositions); + + if (writeCustomLibs) + { + console.log('Write custom libraries:', customlibs.length); + for (var customlib of customlibs) + { + outputDoc.importLibrary(customlib[1]); + } + console.log('Write document custom definitions:', customDocLibs.length); + for (var customDocLib of customDocLibs) + { + outputDoc.importLibrary(customDocLib[1]); + } + } + + // TODO: Add in another other globals + outputDoc.setColorSpace(this.getActiveColorSpace()); + outputDoc.removeAttribute('fileprefix'); + + this.validateDocument(outputDoc); + + return outputDoc; + } + + saveGraphToString(graph, writeCustomLibs = true, saveNodePositions = false) { + if (!ne_mx) { + this.editor.debugOutput("MaterialX is not initialized", 2); + return; + } + + var outputDoc = this.saveGraphToDocument(graph, writeCustomLibs, saveNodePositions); + if (!outputDoc) { + this.editor.debugOutput("Failed to save graph to document", 2); + return; + } + + const writeOptions = new ne_mx.XmlWriteOptions(); + writeOptions.writeXIncludeEnable = false; + var data = ''; + try { + data = ne_mx.writeToXmlString(outputDoc, writeOptions); + } catch (e) { + this.editor.debugOutput("Failed to write graph:" + e, 2); + } + return data; + } + + saveGraphToFile(graph, saveCustomLibs = true, saveNodePositions = false) { + var data = this.saveGraphToString(graph, saveCustomLibs, saveNodePositions); + if (!data) { + return; + } + + var blob = new Blob([data], { type: "text/plain" }); + var url = URL.createObjectURL(blob); + var a = document.createElement("a"); + a.href = url; + a.download = "output_graph.mtlx"; + a.click(); + } + + writeGraphToDocument(mltxgraph, graph, saveNodePositions = false) { + + var debug = false; + + if (debug) + console.log('***** START Scan Graph:', graph.title); + for (var node of graph._nodes) { + if (node.type == 'graph/subgraph') { + var subgraph = node.subgraph; + //var subgraphNode = mltxgraph.addNodeGraph(node.title); + var subgraphNode = mltxgraph.addChildOfCategory('nodegraph', node.title); + if (debug) + console.log('---->>> Scan NodeGraph:', node.title); + this.writeGraphToDocument(subgraphNode, subgraph, saveNodePositions); + continue; + } + + if (debug) + console.log('---->>> Scan Node:', node.title); + + var nodeDefName = node.nodedef_name; + /* if (!nodeDefName) + { + this.editor.debugOutput('Failed to find nodeDef for:' + node.title, 1); + continue; + } */ + + //var nodeTypes = LiteGraph.registered_node_types; + //var nodeType = nodeTypes[node.type]; + var nodedefName = node.nodedef_name; + var nodedef = null; + var nodeElement = null; + //if (nodeType) { + // nodedefName = nodeType.nodedef_name; + // nodedef = stdlib.getNodeDef(nodedefName); + //} + + //if (nodedef) { + // nodeElement = mltxgraph.addNodeInstance(nodedef, name) + // nodeElement.setName(node.title); + //} + //else + { + if (nodedefName) { + nodeElement = mltxgraph.addChildOfCategory(node.nodedef_node, node.nodedef_type); + nodeElement.setType(node.nodedef_type); + if (saveNodePositions) + { + // TODO: Get properly remapping for xpos, ypos. + nodeElement.setAttribute('xpos', JSON.stringify(node.pos[0])); + nodeElement.setAttribute('ypos', JSON.stringify(node.pos[1])); + } + if (debug) + console.log('** Create node:', nodeElement.getNamePath(), nodeElement.getType()); + nodeElement.setName(node.title); + } + } + + if (nodeElement) { + if (debug) + console.log('-> Write Node:', graph.title + '/' + node.title, ' --> ', nodeElement.getNamePath()); + } + else { + console.log('Skip writing :', node.title); + //this.editor.debugOutput('No nodedef for:' + node.title + 'Nodetype: ' + node.type, 0); + continue; + } + + // Add inputs + var properties = node.properties; + + var node_inputs = node.inputs; + var isInputNode = false; + var isOutputNode = false; + if (nodeElement.getCategory() == 'input') { + isInputNode = true; + node_inputs = [node]; + } + else if (nodeElement.getCategory() == 'output') { + isOutputNode = true; + node_inputs = [node]; + } + if (node_inputs) { + + var inputs = node_inputs; + for (var i in inputs) { + var input = inputs[i]; + if (debug) + console.log('---- Write port:', input); + + var inputName = input.name; + var inputType = input.type; + if (nodeElement.getCategory() == 'input' || + nodeElement.getCategory() == 'output') { + inputName = 'in'; + inputType = node.nodedef_type; + } + + //var inputType = input.type; + var inputElement = null; + var nodeToCheck = node; + var inputNode = null; + var inputLink = null; + if (isInputNode && node.graph._subgraph_node) + { + nodeToCheck = node.graph._subgraph_node; + for (var i=0; i 1 && inputLinkOutput) { + inputElement.setOutputString(inputLinkOutput.name); + } + } + else { + //var upstream_nodeType = nodeTypes[inputNode.type]; + //if (upstream_nodeType) + { + if (inputNode.nodedef_node == 'input') { + inputElement.setInterfaceName(inputNode.title); + } + else { + inputElement.setNodeName(inputNode.title); + // TODO: Need to check that upstream has > 1 output. + // Put up an issue that this is really annoying to + // disallow an explicit output in validation !!! + if (numInputOutputs > 1 && inputNode.nodedef_node != 'output') { + // Set output string if there was an output link. + if (inputLinkOutput) { + inputElement.setOutputString(inputLinkOutput.name); + } + } + } + } + } + } + else { + var inputValue = node.properties[inputName]; + if (inputValue == null) { + console.log('Cannot find property value for input:', inputName); + } + else { + var origValue = inputValue; + //var inputType = propInfo.type; + if (inputType in ['float', 'integer', 'vector2', 'vector3', 'vector4', + 'matrix33', 'matrix44', 'color3', 'color4']) { + inputValue = '"' + parseFloat(inputValue) + '"'; + } + else if (inputType === 'boolean') { + if (inputValue === 'true') + inputValue = 'true'; + else + inputValue = 'false'; + } + else { + inputValue = inputValue.toString(); + } + //console.log('Write input:', inputElement, node, inputName, origValue, inputValue, inputType); + if (nodeElement.getCategory() != 'input' && + nodeElement.getCategory() != 'output') { + inputElement = nodeElement.getInput(inputName); + if (!inputElement) + inputElement = nodeElement.addInput(inputName, inputType); + else { + // TODO: Seems that c+paste adds same input > once ??? + console.log('Error> Trying add input more than once:', inputName, ' to node: ', nodeElement.getNamePath()); + } + } + else { + inputElement = nodeElement; + } + inputElement.setValueString(inputValue, inputType); + } + } + + if (inputElement) + { + var propInfo = null; + var skip_attributes = []; + if (isInputNode || isOutputNode) { + if (input.properties_info) { + skip_attributes = ['name', 'type', 'value', 'default_value']; + propInfo = input.properties_info[0]; + } + } + else { + if (node.properties_info) { + skip_attributes = ['name', 'type', 'value', 'default_value', 'uimin', 'uimax', 'uiname', 'uifolder']; + propInfo = node.properties_info[i]; + } + } + if (propInfo) + { + //console.log('Scan propinfo:', propInfo, 'for input:', inputElement.getNamePath(), 'prop_info:', propInfo); + + // Write node_properties metadata to input + for (var propAttribute in propInfo) + { + if (skip_attributes.includes(propAttribute)) + continue; + + //console.log('-- scan attrib:', propAttribute); + var propAttributeValue = propInfo[propAttribute]; + if (propAttributeValue && propAttributeValue.length > 0) + { + //console.log('---- save attribute:', propAttribute, propAttributeValue, 'on input:', inputElement.getNamePath()); + inputElement.setAttribute(propAttribute, propAttributeValue); + } + } + } + } + } + + if (debug) + console.log('---- END Write inputs:', node.inputs); + } + + // Add outputs + if (node.outputs) { + /* + var outputs = node.outputs; + for (var i in outputs) + { + var output = outputs[i]; + var outputName = output.name; + var outputType = output.type; + var outputElement = nodeElement.addOutput(outputName, outputType); + } + */ + } + + if (debug) + console.log('---> End write node', node.title); + } + + if (debug) + console.log('***** END Scan Graph:', graph.title); + } + + isArray(_type) { + var ARRAY_TYPES = ['color3', 'color4', 'vector2', 'vector3', 'vector4', 'matrix33', 'matrix44']; + if (ARRAY_TYPES.includes(_type)) { + return true; + } + return false; + } + + buildConnections(editor, node, lg_node, explicitInputs, graph, parentGraph) { + + var nodeInputs = []; + var isOutput = (node.getCategory() == 'output'); + var isInput = (node.getCategory() == 'input'); + if (isOutput || isInput) { + nodeInputs = [node]; + } + else { + nodeInputs = node.getInputs(); + } + for (var input of nodeInputs) { + + var _name = '' + + if (!isOutput && !isInput) { + _name = input.getName(); + explicitInputs.push(_name); + } + + var nodeName = input.getNodeName(); + var nodeGraphName = input.getNodeGraphString(); + var inputInterfaceName = input.getInterfaceName(); + var outputName = input.getOutputString(); + + if (nodeName.length || + nodeGraphName.length || + inputInterfaceName.length || + outputName.length) { + + //console.log('Test connection on input:', input.getNamePath(), 'nodeName:[ ', nodeName, + // '] nodeGraphName:[', nodeGraphName, + // '] inputInterfaceName:[', inputInterfaceName, + // ']outputName:[', outputName, ']'); + + var target_node = lg_node; + var target_slot = null; + if (!isOutput && !isInput) + target_slot = target_node.findInputSlot(_name); + else + target_slot = 0; + var source_node = null; + var source_slot = 0; + var source_name = nodeName; + if (nodeGraphName.length) { + source_name = nodeGraphName; + } + if (inputInterfaceName.length) { + source_name = inputInterfaceName; + } + + var graphToCheck = graph; + if (isInput && graph._subgraph_node) + { + target_node = graph._subgraph_node; + target_slot = target_node.findInputSlot(lg_node.title); + // Go up to parent graph + graphToCheck = parentGraph; + //console.log(' go up to parent graph:', graphToCheck, + // 'from:', graph, 'subgraph:', graph._subgraph_node, + //'target_node:', target_node.title, 'target_slot:', target_slot); + + // Need to scan parent graph here if interfacename and input + /* for (var p = 0; p < parentGraph._nodes.length; ++p) { + console.log('local check graph node title', parentGraph._nodes[p].title, source_name); + if (parentGraph._nodes[p].title == source_name) { + source_node = parentGraph._nodes[p]; + break; + } + } */ + } + source_node = graphToCheck.findNodeByTitle(source_name); + if (source_node) { + if (outputName) { + var outputSlot = source_node.findOutputSlot(outputName); + if (outputSlot >= 0) { + source_slot = outputSlot; + } + else { + editor.debugOutput('Failed to find output slot:' + outputName, 1); + } + var linkInfo = source_node.connect(source_slot, target_node, target_slot); + if (!linkInfo) + { + editor.debugOutput('Failed to connect:' + source_node.title + '.' + outputName, '->', target_node.title + '.' + _name), 1, false; + } + } + //console.log('CONNECT START: source[', source_node.title, '.', source_slot, + // '] --> target[:', target_node.title, ".", target_slot); + var linkInfo = null; + if (source_slot == null || target_slot == null || target_node == null) + { + console.warning('Cannot connect!') + } + else + { + linkInfo = source_node.connect(source_slot, target_node, target_slot); + } + if (!linkInfo) + { + editor.debugOutput('Failed to connect:' + source_node.title + '.' + outputName, '->', target_node.title + '.' + _name, 1); + } + //console.log('CONNECT END: source[', source_node.title, '.', source_slot, + // '] --> target[:', target_node.title, ".", target_slot); + } + else { + console.log('Failed to find node ', source_name, 'in graph:', graphToCheck); + this.editor.debugOutput('Failed to find source node: ' + source_node + "." + + source_name, '->', lg_node.title + "." + _name, 2); + } + } + else { + var _value = input.getResolvedValueString(); // input.getValueString(); + if (_value.length > 0) { + if (this.isArray(input.getType())) { + // split by commas or spaces + let valueArray = _value.split(/[\s,]+/); + _value = valueArray; + } + + //console.log('-- Value Input:', + //lg_node.title + "." + _name, 'value:', _value); + lg_node.setProperty(_name, _value); + } + } + + var property_info = lg_node.getPropertyInfo(_name); + this.loadInputMetaData(input, property_info); + } + } + + loadInputMetaData(input, property_info) + { + if (input && property_info) { + + // Load in basic meta-data + var colorspace = input.getColorSpace(); + if (colorspace.length > 0) + property_info['colorspace'] = colorspace; + + var unit = input.getUnit(); + if (unit.length > 0) + property_info['unit'] = unit; + + var uiname = input.getAttribute('uiname'); + if (uiname.length > 0) + property_info['uiname'] = uiname; + + var uimin = input.getAttribute('uimin'); + if (uimin.length > 0) + property_info['uimin'] = uimin; + + var uimax = input.getAttribute('uimax'); + if (uimax.length > 0) + property_info['uimax'] = uimax; + + var uifolder = input.getAttribute('uifolder'); + if (uifolder.length > 0) + property_info['uifolder'] = uifolder; + + var basicMetaData = ['colorspace', 'unit', 'uiname', 'uimin', 'uimax', 'uifolder', 'name', 'type', 'output', 'nodename', 'nodegraph']; + for (var attrName of input.getAttributeNames()) + { + if (!basicMetaData.includes(attrName)) { + property_info[attrName] = input.getAttribute(attrName); + } + } + + //console.log('load input metadata for:', input.getNamePath(), property_info); + } + } + + buildGraphFromDoc(doc, editor, auto_arrange) { + var debug = false; + + //console.log('Build graph from doc. auto_arrange: ', auto_arrange); + if (!ne_mx) { + editor.debugOutput("MaterialX is not initialized", 2); + return; + } + + editor.clearGraph(); + + // Don't try and update the graph while building it + editor.monitorGraph(graph, false); + + // Index here is index into litegraph nodes + var mtlxNodes = []; + var mtlxNodeDefs = []; + + for (var interfaceInput of doc.getInputs()) { + var _type = interfaceInput.getType(); + var id = 'mtlx/input/input_' + _type; + + var lg_node = LiteGraph.createNode(id); + if (lg_node) { + lg_node.title = interfaceInput.getName(); + if (debug) + console.log('Add top level input:', lg_node.title, 'to graph', graph); + + var _value = interfaceInput.getValueString(); + if (_value && _value.length > 0) { + if (this.isArray(interfaceInput.getType())) { + _value = "[" + _value + "]" + _value = JSON.parse(_value); + } + lg_node.setProperty('in', _value); + } + + var xpos = interfaceInput.getAttribute('xpos'); + var ypos = interfaceInput.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + { + ;//lg_node.pos[0] = xpos; + ;//lg_node.pos[1] = ypos; + } + //lg_node.flags.collapsed = false; + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + graph.add(lg_node); + + //mtlxNodes.push([interfaceInput, lg_node, graph]); + } + } + + for (var interfaceOutput of doc.getOutputs()) { + var _type = interfaceOutput.getType() + var id = 'mtlx/output/output_' + _type; + + var lg_node = LiteGraph.createNode(id); + if (lg_node) { + lg_node.title = interfaceOutput.getName(); + graph.add(lg_node); + if (debug) + { + console.log('Add graph output:', lg_node.title); + } + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + var xpos = interfaceOutput.getAttribute('xpos'); + var ypos = interfaceOutput.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + ;//lg_node.pos = [xpos, ypos]; + + mtlxNodes.push([interfaceOutput, lg_node, graph]); + } + } + + for (var node of doc.getNodes()) { + var nodeDef = node.getNodeDef(); + if (!nodeDef) { + editor.debugOutput('Skip node w/o nodedef:' + node.getName(), 1) + continue; + } + + // mtlx/pbr/gltf_pbr_surfaceshader + var id = 'mtlx/' + nodeDef.getNodeGroup() + '/' + nodeDef.getName(); + id = id.replace('ND_', ''); + if (debug) + console.log('Load node:', node.getName(), ' -> ', id); + + var lg_node = LiteGraph.createNode(id); + if (lg_node) { + //console.log('LiteGraph node:', lg_node); + lg_node.title = node.getName(); + + graph.add(lg_node); + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + var xpos = node.getAttribute('xpos'); + var ypos = node.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + ;//lg_node.pos = [xpos, ypos]; + + mtlxNodes.push([node, lg_node, graph]); + mtlxNodeDefs.push(nodeDef); + } + else { + editor.debugOutput('Failed to create node:' + node.getName(), 2); + } + } + + for (var nodegraph of doc.getNodeGraphs()) { + if (nodegraph.hasSourceUri()) { + continue; + } + var nodedefAttrib = nodegraph.getAttribute('nodedef'); + if (nodedefAttrib && nodedefAttrib.length > 0) + { + console.log('Skip loading in functional graph:', nodegraph.getName(), 'nodedef:', nodedefAttrib); + continue; + } + if (debug) + console.log('Create nodegraph:', nodegraph.getName()); + + var title = nodegraph.getName(); + var subgraphNode = LiteGraph.createNode("graph/subgraph", title); + //var subgraph = new LiteGraph.LGraph(); + //subgraphNode._subgraph_node = subgraph; + //subgraphNode.bgcolor = "#112"; + subgraphNode.bgImageUrl = "./Images/nodegraph.png"; + + var mtlxSubGraphNodes = []; + for (var interfaceInput of nodegraph.getInputs()) { + var _type = interfaceInput.getType(); + var id = 'mtlx/input/input_' + _type; + + var lg_node = LiteGraph.createNode(id); + if (lg_node) { + lg_node.title = interfaceInput.getName(); + this.loadInputMetaData(interfaceInput, lg_node.properties_info[0]); + subgraphNode.subgraph.add(lg_node); + + if (debug) + console.log('-------- Add subgraph input:', lg_node.title, lg_node); + + subgraphNode.addInput(interfaceInput.getName(), _type); + subgraphNode.subgraph.addInput(interfaceInput.getName(), _type); + + var _value = interfaceInput.getValueString(); + if (_value && _value.length > 0) { + if (this.isArray(interfaceInput.getType())) { + _value = "[" + _value + "]" + _value = JSON.parse(_value); + } + lg_node.setProperty('in', _value); + } + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + var xpos = nodegraph.getAttribute('xpos'); + var ypos = nodegraph.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + ; // lg_node.pos = [xpos, ypos]; + + mtlxSubGraphNodes.push([interfaceInput, lg_node, graph]); + } + } + + for (var interfaceOutput of nodegraph.getOutputs()) { + var _type = interfaceOutput.getType() + var id = 'mtlx/output/output_' + _type; + + var lg_node = LiteGraph.createNode(id); + if (lg_node) { + lg_node.title = interfaceOutput.getName(); + subgraphNode.subgraph.add(lg_node); + if (debug) + console.log('Add subgraph output:', lg_node.title); + + subgraphNode.addOutput(interfaceOutput.getName(), _type); + subgraphNode.subgraph.addOutput(interfaceOutput.getName(), _type); + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + var xpos = interfaceOutput.getAttribute('xpos'); + var ypos = interfaceOutput.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + ; // lg_node.pos = [xpos, ypos]; + + mtlxSubGraphNodes.push([interfaceOutput, lg_node, graph]); + } + } + + + for (var node of nodegraph.getNodes()) { + var nodeDef = node.getNodeDef(); + if (!nodeDef) { + editor.debugOutput('Skip node w/o nodedef:' + node.getName(), 1) + continue; + } + + // mtlx/pbr/gltf_pbr_surfaceshader + var id = 'mtlx/' + nodeDef.getNodeGroup() + '/' + nodeDef.getName(); + id = id.replace('ND_', ''); + + var lg_node = LiteGraph.createNode(id); + lg_node.title = node.getName(); + subgraphNode.subgraph.add(lg_node); + if (debug) + console.log('Add subgraph node:', lg_node.title); + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + var xpos = node.getAttribute('xpos'); + var ypos = node.getAttribute('ypos'); + if (xpos.length > 0 && ypos.length > 0) + ; // lg_node.pos = [xpos, ypos]; + + mtlxSubGraphNodes.push([node, lg_node, graph]); + } + + for (var item of mtlxSubGraphNodes) { + var node = item[0]; + var lg_node = item[1]; + var parentGraph = item[2]; + var explicitInputs = []; + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + + //console.log('Build connections for subgraog node:', lg_node.title); + this.buildConnections(editor, node, lg_node, explicitInputs, subgraphNode.subgraph, parentGraph); + } + + if (debug) + console.log('Add subgraph:', subgraphNode.title); + + if (auto_arrange > 0) + { + subgraphNode.subgraph.arrange(auto_arrange); + } + + graph.add(subgraphNode); + + } + + // Build top level connections last after top level nodes + // and nodegraph have been added. + var itemCount = 0; + for (var item of mtlxNodes) { + var node = item[0]; + var lg_node = item[1]; + + // Keep track of explicit inputs + var explicitInputs = []; + //console.log('Build connections for:', lg_node.title); + this.buildConnections(editor, node, lg_node, explicitInputs, graph, null); + + if (lg_node.nodedef_node == 'input' || lg_node.nodedef_node == 'output') + { + continue; + } + + var removeInputs = []; + var nodeDef = mtlxNodeDefs[itemCount]; + if (nodeDef) + { + for (var nodeDefInput of nodeDef.getActiveInputs()) { + var _name = nodeDefInput.getName(); + if (!explicitInputs.includes(_name)) { + removeInputs.push(_name); + } + } + for (var _name of removeInputs) { + var slot = lg_node.findInputSlot(_name); + //console.log('Remove input:', _name, ' on: ', lg_node); + lg_node.removeInput(slot); + } + + // Make sure size is updated + lg_node.setSize(lg_node.computeSize()); + } + itemCount++; + } + + editor.monitorGraph(graph, true); + + if (auto_arrange > 0) + { + graph.arrange(auto_arrange); + } + + graph.setDirtyCanvas(true, true); + graphcanvas.setDirty(true, true); + } + + loadDefinitionsFromFile() + { + var that = this; + + // Load mtlx document from disk + var input = document.createElement("input"); + input.type = "file"; + input.accept = ".mtlx"; + input.onchange = function (e) { + var file = e.target.files[0]; + console.log('Loading definitions from file: ' + file.name); + + if (ne_mx) { + // Load the content from the specified file (replace this with actual loading logic) + + const reader = new FileReader(); + reader.readAsText(file, 'UTF-8'); + + reader.onload = function (e) { + // Display the contents of the file in the output div + let fileContents = e.target.result; + //console.log(fileContents); + + (async () => { + try { + const readOptions = new ne_mx.XmlReadOptions(); + readOptions.readXIncludes = false; + var customLib = ne_mx.createDocument(); + + await ne_mx.readFromXmlString(customLib, fileContents, '', readOptions); + + // Create JS from custom library + try { + console.log('Create custom library definitions') + var iconName = ''; + var scanForIcon = false; + if (scanForIcon) + { + // Icon name is filename with webp as extension + var iconName = file.name.replace(/\.[^/.]+$/, ".webp"); + // Check if iconName file exists + var iconExists = await that.editor.uriExists(iconName); + if (!iconExists) { + iconName = ''; + } + } + var definitionsList = []; + var result = that.createLiteGraphDefinitions(customLib, false, false, definitionsList , 'mtlx', that.editor, iconName); + if (result) + { + eval(result); + var definitionsListString = definitionsList.join(', '); + that.editor.debugOutput("Registered custom node types: [" + definitionsListString + "]", 0, false); + that.editor.displayNodeTypes(); + } + } catch (e) { + console.log('Error evaluating source:', e); + } + + + // Keep track of libraries loaded by filename. + customlibs.push([file.name, customLib]); + + } catch (error) { + that.editor.debugOutput('Error reading definitions:' + error, 2, false); + } + })(); + + }; + + } else { + that.editor.debugOutput("MaterialX is not initialized", 2); + } + + //customlibs + }; + input.click(); + } + + loadFromString(fileContents, fileName, auto_arrange) + { + if (!ne_mx) { + console.log('MaterialX is not initialized'); + return; + } + + (async () => { + try { + const readOptions = new ne_mx.XmlReadOptions(); + readOptions.readXIncludes = false; + + doc.clearContent(); + + doc.importLibrary(stdlib); + for (var item of customlibs) { + console.log('Import custom library:', item[0]); + doc.importLibrary(item[1]); + } + var loadDoc = ne_mx.createDocument(); + await ne_mx.readFromXmlString(loadDoc, fileContents, '', readOptions); + + // Check if nodedef is not in existingDefs + // + var customLib = ne_mx.createDocument(); + customLib.copyContentFrom(loadDoc); + var keepChildren = []; + var existingDefs = [] + var saveCustomLib = false; + doc.getNodeDefs().forEach(def => { existingDefs.push(def.getName()); }); + for (var nodedef of loadDoc.getNodeDefs()) { + var nodedefName = nodedef.getName(); + if (!existingDefs.includes(nodedefName)) { + keepChildren.push(nodedef.getName()); + saveCustomLib = true; + } + } + for (var ng of loadDoc.getNodeGraphs()) { + if (ng.getAttribute('nodedef') && ng.getAttribute('nodedef').length > 0) { + saveCustomLib = true; + keepChildren.push(ng.getName()); + } + } + + if (saveCustomLib) { + + for (var child of customLib.getChildren()) { + if (!keepChildren.includes(child.getName())) { + console.log('Remove child:', child.getName()); + customLib.removeChild(child.getName()); + } + } + + var additionDefs = []; + var result = this.createLiteGraphDefinitions(customLib, true, false, additionDefs, 'mtlx', MxShadingGraphEditor.theEditor); + try { + eval(result); + console.log('Loaded local definitions: ', additionDefs); + } catch (e) { + console.log('Error evaluating source:', e); + } + } + + doc.copyContentFrom(loadDoc); + this.validateDocument(doc); + this.buildGraphFromDoc(doc, MxShadingGraphEditor.theEditor, auto_arrange); + + // Must do this after build as build will clear customDocLibs array + if (saveCustomLib) { + customDocLibs.push([fileName, customLib]); + } + + var documentColorSace = doc.getColorSpace(); + this.setActiveColorSpace(documentColorSace); + documentColorSace = this.getActiveColorSpace(); + //console.log('Document colorspace:', documentColorSace); + var csArea = MxShadingGraphEditor.theEditor.ui.mtlxdoc_colorspace; + if (csArea) + csArea.innerHTML = documentColorSace; + MxShadingGraphEditor.theEditor.updatePropertyPanel(null); + + // Cleanup document, and get up-to-date contents after any possible upgrade. + loadDoc.removeAttribute('fileprefix'); + fileContents = ne_mx.writeToXmlString(loadDoc); + + this.validateDocument(loadDoc); + + MxShadingGraphEditor.theEditor.debugOutput('Loaded document: "' + fileName + '"', 0, false); + + // Update mtlx text area + let textArea = MxShadingGraphEditor.theEditor.ui.mtlxdoc; + if (!textArea) { + MxShadingGraphEditor.theEditor.debugOutput('Failed to find text area for mtlxdoc', 2, false); + } + else { + textArea.setValue(fileContents); + } + + // Update render items in UI + let renderableItemUpdater = MxShadingGraphEditor.theEditor.ui.renderableItemUpdater; + if (renderableItemUpdater) { + let renderableItems = this.findRenderableItemsInDoc(doc); + if (!renderableItems || renderableItems.length == 0) { + MxShadingGraphEditor.theEditor.debugOutput('No renderable items found in graph: ' + fileName, 1, false); + } + renderableItemUpdater(renderableItems); + } + + } catch (error) { + MxShadingGraphEditor.theEditor.debugOutput('Error reading document: ' + fileName + '. Error: ' + error, 2, false); + } + })(); + } + + loadFromFile(file, fileName, editor, auto_arrange) { + var debug = false; + + if (ne_mx) + { + if (!this.loadMaterialXLibraries()) + return; + + // Load the content from the specified file (replace this with actual loading logic) + + const reader = new FileReader(); + reader.readAsText(file, 'UTF-8'); + reader.accept = '.mtlx'; + + var that = this; + reader.onload = function (e) { + // Display the contents of the file in the output div + let fileContents = e.target.result; + + that.loadFromString(fileContents, fileName, auto_arrange); + }; + + } else { + editor.debugOutput("MaterialX is not initialized", 2, false); + } + } + + loadMaterialXLibraries() { + if (stdlib) + return stdlib; + + if (!ne_mx) { + MxShadingGraphEditor.theEditor.debugOutput("MaterialX is not initialized", 2); + return null; + } + + var generator = new ne_mx.EsslShaderGenerator(); + var genContext = new ne_mx.GenContext(generator); + { + stdlib = ne_mx.loadStandardLibraries(genContext); + console.log('Loaded standard libraries:', stdlib.getNodeDefs().length); + } + + return stdlib; + } + + // Create a valid MaterialX name + createValidName(name, msg=null) + { + if (name.length == 0) { + if (msg) + { + msg = 'Setting empty name as "blank"'; + } + name = "blank"; + } + + // Get list of all names in graph. + var graph = graphcanvas.graph; + var nodes = graph._nodes; + var nodenames = []; + for (var node of nodes) { + nodenames.push(node.title); + } + //console.log('Current graph nodes:', nodenames); + + name = ne_mx.createValidName(name); + + if (!nodenames.includes(name)) { + return name; + } + + // Get starting number and root name + var rootName = name; + var i = 1; + var number = name.match(/\d+$/); + if (number) { + i = (parseInt(number) + 1) + rootName = name.slice(0, -number[0].length); + } + + var valid_name = rootName + i.toString(); + while (nodenames.includes(valid_name)) { + i++; + valid_name = rootName + i.toString(); + } + return valid_name; + } +}; + +class MxShadingGraphEditor { + // + // This class is a wrapper around the LiteGraph library to provide a MaterialX node editor. + // It is designed to work with the MaterialX JavaScript API. + // + // List of methods: + // - constructor + // - setUI + // - setDirty + // - debugOutput + // - arrangeGraph + // - resetView + // - clearGraph + // - saveSerialization + // - loadSerialization + // - saveGraph + // - saveGraphToString + // - ladDefinitions + // - loadGraph + // - loadGraphFromString + // - rgbToHex + // - createButtonWithImageAndText + // - openImageDialog + // - updatePropertyPanel + // + constructor() { + if (!MxShadingGraphEditor.theEditor) + { + MxShadingGraphEditor.theEditor = this; + this.handler = new MxMaterialXHandler('MaterialX Handler', 'mtlx'); + console.log('Create new editor', MxShadingGraphEditor.theEditor, ' and handler: ', this.handler); + } + return MxShadingGraphEditor.theEditor; + } + + setUI(ui) { + this.ui = ui; + } + + setDirty() + { + if (graphcanvas) + { + graphcanvas.setDirty(true, true); + //graphcanvas.resize(); + } + } + + debugOutput(text, severity, clear = null) { + var console_area = MxShadingGraphEditor.theEditor.ui.console_area; + if (!console_area) { + console.error('No console area found!'); + return; + } + if (severity === 2) { + text = '> Error: ' + text + } + else if (severity === 1) { + text = '> Warning: ' + text + } + else { + if (text.length) + text = '> ' + text; + } + + //if (clear) { + // console_area.value = text + '\n'; + //} + //else + { + console_area.value = console_area.value + text + '\n'; + } + // Scroll to latest entry. + console_area.scrollTop = console_area.scrollHeight; + } + + arrangeGraph() { + // This does not track the current subgraph. + if (graphcanvas) { + graphcanvas.graph.arrange(80); + } + } + + openSubgraph() + { + var selected = graphcanvas.selected_nodes; + for (var s in selected) { + var node = selected[s]; + if (node.type == 'graph/subgraph') { + console.log('Open subgraph', node.title ); + graphcanvas.openSubgraph(node.subgraph); + break; + } + } + } + + closeSubgraph() + { + if (graphcanvas) { + graphcanvas.closeSubgraph(); + } + } + + resetView() { + if (graphcanvas) { + graphcanvas.ds.reset(); + graphcanvas.setDirty(true, true); + } + } + + clearGraph() { + //localStorage.setItem( + // "litegrapheditor_clipboard", "" + //); + + this.handler.activeColorSpace = this.handler.DEFAULT_COLOR_SPACE; + this.handler.activeUnits = this.handler.DEFAULT_UNITS; + MxShadingGraphEditor.theEditor.updatePropertyPanel(null); + MxShadingGraphEditor.theEditor.debugOutput('', 0, false); + this.updatePropertyPanel(null); + if (graphcanvas) { + // Set back to top graph + graphcanvas.setGraph(graph); + graphcanvas.graph.clear(); + graphcanvas.ds.reset(); + graphcanvas.setDirty(true, true); + } + //console.log('Clear graph', customDocLibs); + customDocLibs = []; + } + + saveSerialization() { + var data = JSON.stringify(graph.serialize(), null, 2); + var blob = new Blob([data], { type: "text/plain" }); + var url = URL.createObjectURL(blob); + var a = document.createElement("a"); + a.href = url; + a.download = "my_lite_graph.json"; + a.click(); + } + + loadSerialization() { + MxShadingGraphEditor.theEditor.clearGraph(); + + var input = document.createElement("input"); + input.type = "file"; + input.accept = ".json"; + input.onchange = function (e) { + var file = e.target.files[0]; + var reader = new FileReader(); + reader.onload = function (event) { + var data = JSON.parse(event.target.result); + graph.configure(data); + }; + reader.readAsText(file); + }; + input.click(); + } + + saveGraphToFile(extension, saveCustomLibs, saveNodePositions) + { + if (extension == 'mtlx') + this.handler.saveGraphToFile(graph, saveCustomLibs, saveNodePositions); + } + + saveGraphToString(extension, saveCustomLibs, saveNodePositions) + { + if (extension == 'mtlx') + return this.handler.saveGraphToString(graph, saveCustomLibs, saveNodePositions); + return ''; + } + + loadDefinitionsFromFile(extension) + { + if (extension == 'mtlx') + { + this.handler.loadDefinitionsFromFile(); + } + } + + loadGraphFromFile(extension, auto_arrange) { + + if (extension != this.handler.getExtension()) + { + this.debugOutput('Unsupported extension for loading graph', 2, false); + return; + } + + // Load document from disk. TODO: handle other extensions + var input = document.createElement("input"); + input.type = "file"; + input.accept = "." + this.handler.getExtension(); + console.log('Accept:', input.accept); + input.onchange = function (e) { + var file = e.target.files[0]; + console.log('Loading file: ' + file.name); + MxShadingGraphEditor.theEditor.handler.loadFromFile(file, file.name, MxShadingGraphEditor.theEditor, auto_arrange); + }; + input.click(); + } + + findRenderableItems() { + return this.handler.findRenderableItems(graph); + } + + loadGraphFromString(extension, content, fileName, auto_arrange) + { + if (extension != this.handler.getExtension()) + { + this.debugOutput('Unsupported extension for loading graph', 2, false); + return; + } + + // TODO: handle other extensions + if (content.length > 0) + this.handler.loadFromString(content, fileName, auto_arrange); + else + MxShadingGraphEditor.theEditor.debugOutput('No content to load', 2, false); + } + + rgbToHex(rgb) { + if (!rgb) { + console.log('rgbToHex empty !', rgb); + return "#000000"; + } + return '#' + rgb.map(x => { + var hex = Math.round(x * 255).toString(16); + return hex.length === 1 ? '0' + hex : hex; + }).join(''); + } + + createButtonWithImageAndText(imageSrc, text, id) { + // Create image element + var img = document.createElement("img"); + img.id = id + "_img"; + img.src = imageSrc; + img.classList.add("img-fluid"); + + // Create text element + var span = document.createElement("span"); + span.id = id + "_text"; + span.textContent = " " + text; + + // Create button element + var button = document.createElement("button"); + button.id = id; + button.classList.add("btn", "btn-sm", "btn-outline-secondary", "form-control", "form-control-sm"); + button.appendChild(img); + button.appendChild(span); + + return button; + } + + + openImageDialog(theNode, updateProp, wantURI) { + //console.log('updateImageDialog', theNode, updateProp, wantURI); + + // Dynamically create a file input element + var fileInput = document.createElement('input'); + fileInput.type = 'file'; + fileInput.accept = 'image/*'; // Accept any image file + fileInput.style.display = 'none'; + document.body.appendChild(fileInput); + + fileInput.click(); + + // TODO : Cache the fileURI on the node so can display without loading... + fileInput.addEventListener('change', function () { + var fileURI = fileInput.value.split('\\').pop(); // Get the filename without the full path + var file = fileInput.files[0]; + //if (wantURI) + fileURI = URL.createObjectURL(file); + + var updateElementId = '__pp:' + updateProp; + var textInput = document.getElementById(updateElementId); + //console.log('New filename:', fileURI, 'updateElementId:', updateElementId, 'updateProp:', updateProp); + textInput.value = fileURI; + theNode.properties[updateProp] = fileURI; + + var propertypanel_preview = document.getElementById('propertypanel_preview'); + if (propertypanel_preview) + { + propertypanel_preview.src = URL.createObjectURL(file); + propertypanel_preview.style.display = "block"; + } + + var previewImage = false; + if (previewImage) { + if (propertypanel_preview) { + var reader = new FileReader(); + reader.onload = function (event) { + propertypanel_preview.src = event.target.result; + }; + + // Read the file as a data URL (base64 encoded string) + reader.readAsDataURL(file); + + propertypanel_preview.style.display = "block"; + } + } + + document.body.removeChild(fileInput); + }); + } + + uriExists(uri) { + // Add try / catch block to handle network errors + return fetch(uri) + .then(response => { + if (response.ok) { + return Promise.resolve(true); + } else { + return Promise.resolve(false); + } + }) + .catch(error => { + console.log('Error checking URI:', error); + return Promise.resolve(false); + }); + } + + updatePropertyPanel(node) { + //console.log('Update Panel For:', node); + var propertypanelcontent = MxShadingGraphEditor.theEditor.ui.propertypanel_content; + if (!propertypanelcontent) { + console.error('No property panel content widget found!'); + return; + } + // Delete all children + while (propertypanelcontent.firstChild) { + propertypanelcontent.removeChild(propertypanelcontent.firstChild); + } + + // Update icon + var panelIcon = MxShadingGraphEditor.theEditor.ui.propertypanel_icon; + if (node && node.nodedef_icon) { + //if (panelIcon.src != node.nodedef_icon) + panelIcon.src = node.nodedef_icon; + } + else { + if (!node) + panelIcon.src = this.ui.icon_map['_default_graph_']; + else + panelIcon.src = this.ui.icon_map['_default_']; + } + + propertypanelcontent.innerHTML = ""; + + if (!node && graphcanvas.graph._subgraph_node) + { + node = graphcanvas.graph._subgraph_node; + console.log('In subgraph but no node deleted. Select subgram node', node) + } + else if (!node && !graphcanvas.graph._is_subgraph) { + var docInfo = [ ['Colorspace', this.handler.activeColorSpace], + ['Units', this.handler.activeUnit ]]; + + for (var item of docInfo) { + + var elem = document.createElement("div"); + elem.className = "row px-1 py-0"; + var label = document.createElement("div"); + label.className = "col py-0 col-form-label-sm text-left"; + label.innerHTML = "" + item[0] + ""; + elem.appendChild(label); + + var inputCol = document.createElement("div"); + inputCol.className = "col text-left"; + var nameInput = document.createElement("input"); + nameInput.type = "text"; + nameInput.value = item[1]; + nameInput.className = "form-control form-control-sm"; + nameInput.disabled = true; + elem.appendChild(inputCol); + inputCol.appendChild(nameInput); + + propertypanelcontent.appendChild(elem); + } + return; + } + + var _category = node.nodedef_node; + var _type = node.nodedef_type; + + var isNodeGraph = node.type == 'graph/subgraph'; + if (isNodeGraph) { + _category = 'nodegraph'; + if (node.outputs) { + if (node.outputs.length > 1) { + _type = 'multi'; + } + else if (node.outputs.length > 0) { + _type = node.outputs[0].type; + } + } + else { + _type = ''; + } + } + else { + if (_category == 'surfacematerial') { + _type = ''; + } + } + + var elem = document.createElement("div"); + elem.className = "row px-1 py-0"; + var label = document.createElement("div"); + label.className = "col-4 py-0 col-form-label-sm text-left"; + label.innerHTML = "" + _category; + if (_type.length > 0) { + label.innerHTML += '
    ' + _type; + } + label.innerHTML += "
    "; + + var inputCol = document.createElement("div"); + inputCol.className = "col text-left"; + var nameInput = document.createElement("input"); + nameInput.type = "text"; + nameInput.value = node.title; + nameInput.className = "form-control form-control-sm"; + nameInput.onchange = function (e) { + var oldTitle = node.title; + node.title = MxShadingGraphEditor.theEditor.handler.createValidName(e.target.value); + e.target.value = node.title; + //console.log('node.graph._is_subgraph:', node) + if (node.graph._is_subgraph) { + if (node.nodedef_node == 'input') { + //console.log('Rename subgraph input:'); + node.graph.renameInput(oldTitle, node.title); + } + else if (node.nodedef_node == 'output') { + //console.log('Rename subgraph output:'); + node.graph.renameOutput(oldTitle, node.title); + } + } + + // Note: there is a custom size fo subgraphs. + node.setSize(node.computeSize()); + node.setDirtyCanvas(true, true); + } + inputCol.appendChild(nameInput); + + // TODO: Preview image + if (node.nodedef_node != 'input' && node.nodedef_node != 'output' + && node.type != 'graph/subgraph') { + var imagePreview = document.createElement("img"); + imagePreview.src = "./Images/no_image.png"; + var previewSet = false; + //console.log('Check for preview:', node.nodedef_swatch, 'category:', _category) + imagePreview.style.display = "none"; + imagePreview.src = "./Images/no_image.png"; + /* if (node.nodedef_swatch && + (_type == 'BSDF' || _type == 'EDF' || _type == 'surfaceshader')) + { + this.uriExists(node.nodedef_swatch) + .then(exists => { + if (exists) { + previewSet = true; + imagePreview.style.display = "block"; + imagePreview.src = node.nodedef_swatch; + } + }); + } */ + imagePreview.id = "propertypanel_preview"; + imagePreview.className = "img-fluid form-control form-control-sm"; + inputCol.appendChild(imagePreview); + } + + elem.appendChild(label); + elem.appendChild(inputCol); + propertypanelcontent.appendChild(elem); + + // TODO: Add toggle for showing/hiding all inputs + var addShow = false; + if (addShow) { + var elem = document.createElement("div"); + elem.className = "row px-1 py-0"; + + var label = document.createElement("div"); + label.className = "col-12 col-form-label-sm"; + label.innerHTML = "All Inputs: "; + elem.appendChild(label); + var input = document.createElement("input"); + input.type = "checkbox"; + label.appendChild(input); + + var showAll = false; + if (node.showAllInputs) { + showAll = node.showAllInputs; + } + input.checked = showAll; + input.onclick = function (e) { + var show = e.target.checked; + node.showAllInputs = show; + + // Need to keep all old + new inputs in order. Easiest + // is to keep a list of all inputs, remove old and add new. + for (var index in node.properties_info) { + var propInfo = node.properties_info[index]; + var found = false; + for (var i = 0; i < node.inputs.length; ++i) { + if (node.inputs[i].name == propInfo.name) { + found = true; + break; + } + } + if (!found) { + console.log('Add missing input:', propInfo.name, propInfo.default_value, propInfo.type); + //node.addInput(propInfo.name, propInfo.type); + //node.addProperty(propInfo.name, propInfo.value, propInfo.type); + } + } + } + + if (current_details) + current_details.appendChild(elem); + else + propertypanelcontent.appendChild(elem); + } + + var hr = document.createElement("hr"); + hr.classList.add("my-1"); + propertypanelcontent.appendChild(hr); + + var current_details = null; + var first_details = true; + var nodeInputs = node.inputs + + var targetNodes = []; + for (var i in nodeInputs) { + var nodeInput = nodeInputs[i]; + var inputName = nodeInput.name; + var nodeInputLink = nodeInput.link; + var uiName = inputName; + var uimin = null; + var uimax = null; + var colorspace = ''; + var units = ''; + + //console.log('Scan input:', inputName, ' on node: ', node.graph); + + var property_info = node.getPropertyInfo(inputName); + //console.log('1. get property info for i: ', inputName, 'info: ', property_info) + + var skipInterorConnectedInput = false; + if (node.graph._is_subgraph) + { + // Find input on subgraph node + //console.log('Check subgraph for link:', node.graph) + var sg_node = node.graph._subgraph_node; + if (sg_node) + { + //console.log('Check for input on sg node', sg_node, node.title); + var slot = sg_node.findInputSlot(node.title); + if (slot != null) + { + if (sg_node.inputs) + { + //property_info = sg_node.properties_info[slot]; + var slotInput = sg_node.inputs[slot]; + //console.log('check slot: ', slotInput.link); + if (slotInput != null && slotInput.link != null) + { + skipInterorConnectedInput = true; + } + } + else + { + console.log('Error: no subgraph node inputs for subgraph input!', sg_node, node.title); + } + } + } + } + + if (skipInterorConnectedInput) + { + console.log('Skip interior connected input: ', nodeInput); + continue; + } + + //console.log('Property info:', property_info, ' for input:', inputName); + if (property_info) + { + if (property_info.colorspace) + { + colorspace = property_info.colorspace; + } + if (property_info.unit) + { + units = property_info.unit; + } + if (property_info.uiname) + { + uiName = property_info.uiname; + } + if (property_info.uimin) + { + uimin = property_info.uimin; + } + if (property_info.uimax) + { + uimax = property_info.uimax; + } + if (property_info.uifolder && property_info.uifolder.length > 0) + { + // Create a details element + if (current_details == null || current_details.id != property_info.uifolder) + { + //console.log('Create new details:', property_info.uifolder); + current_details = document.createElement("details"); + current_details.id = property_info.uifolder; + current_details.open = first_details; + current_details.classList.add('w-100', 'p-1', 'border', 'border-secondary', 'rounded', 'my-1'); + first_details = false; + var summary = document.createElement('summary') + summary.innerHTML = property_info.uifolder; + //summary.classList.add('btn', 'btn-sm', 'btn-outline-secondary', 'btn-block'); + current_details.appendChild(summary); + + propertypanelcontent.appendChild(current_details); + } + else + { + //current_details = null; + } + } + else { + current_details = null; + } + //console.log('2. uiName:', uiName, 'uimin:', uimin, 'uimax:', uimax, 'uiFolder:', property_info.uifolder); + } + else { + current_details = null; + } + + var elem = null; + + // Check if there is a link + if (nodeInputLink) { + let upstreamLink = null; + + let nodegraph = node.graph; + let link = nodegraph.links[nodeInputLink]; + //console.log('link:', link); + let linkId = link && link.origin_id; + let linkNode = linkId && nodegraph.getNodeById(linkId); + if (linkNode) { + + + //console.log('linkNode:', linkNode); + let linkSlot = link.origin_slot; + //console.log('linkSlot:', linkSlot); + let linkOutput = linkNode.outputs[linkSlot]; + //console.log('linkOutput:', linkOutput); + upstreamLink = linkNode.title + '.' + linkOutput.name; + //console.log('upstreamLink:', upstreamLink); + + let id = "__pp:" + inputName; + let buttonText = upstreamLink; + // Truncate long names + if (buttonText.length > 15) { + buttonText = buttonText.substring(0, 15) + "..."; + } + let input = this.createButtonWithImageAndText("./Images/arrow_up_white.svg", buttonText, id); + + //var input = document.createElement("div"); + //input.id = "__pp:" + inputName; + //input.type = "text"; + //input.value = upstreamLink; + //input.disabled = true; + //input.className = "btn form-control form-control-sm"; + //input.style = "background-color: #252"; + input.onclick = function (e) { + + var inputName = e.target.id; + inputName = inputName.replace('__pp:', ''); + inputName = inputName.replace('_text', ''); + inputName = inputName.replace('_img', ''); + console.log('Clicked traversal button:', inputName); + + console.log('Jump to node:', linkNode.title); + graphcanvas.selectNodes([linkNode]); + //node.setDirtyCanvas(true, true); + MxShadingGraphEditor.theEditor.updatePropertyPanel(linkNode); + node.setDirtyCanvas(true, true); + } + + // Add new row + elem = document.createElement("div"); + elem.className = "row px-1 py-0"; + + input.id = "__pp:" + inputName; + + var label = document.createElement("div"); + label.className = "col-4 p-0 col-form-label-sm text-end"; + label.innerHTML = uiName; + label.for = input.id; + elem.appendChild(label); + + // form-control + if (useFormControl) { + input.classList.add("form-control"); + } + input.classList.add("form-control-sm"); + // Disable if don't want interaction. + if (!graphcanvas.allow_interaction) + input.disabled = true; + + var propvalue = document.createElement("div"); + propvalue.className = "col p-1"; + propvalue.appendChild(input); + + elem.appendChild(propvalue); + } + } + + else { + + targetNodes[i] = node; + let targetNode = targetNodes[i]; + var propertyKey = inputName; + + var property = targetNode.properties[inputName]; + if (property == null) { + if (isNodeGraph) + { + var subgraph = targetNode.subgraph; + if (subgraph) + { + //console.log('Find node by title', inputName, ' in subgraph', subgraph._nodes); + var subNode = subgraph.findNodeByTitle(inputName); + if (subNode) + { + targetNodes[i] = subNode; + propertyKey = 'in'; + property = targetNodes[i].properties['in']; + //console.log('Route to subgraph target node:', targetNode, targetNode.title, '. ', inputName, ' = ', JSON.stringify(property), 'propkey=', propertyKey); + } + } + } + if (property == null) + { + console.log('Update: Cannot find property value for input:', inputName); + continue; + } + } + else { + //console.log('handle propery value: ', property, 'for input', input); + } + + // Add new row + elem = document.createElement("div"); + elem.className = "row px-1 py-0"; + + var input = null; + var input_btn = null; + var colorspace_unit_btn = null; + var useFormControl = true; + + // TODO: Clean this up to be a drop-down and only apply to numbers / colors + if (colorspace.length > 0) { + /* + // Create drop-down menu + /* + colorspace_unit_btn = document.createElement("div"); + colorspace_unit_btn.classList.add("dropdown"); + var dropdownButton = document.createElement("button"); + dropdownButton.classList.add("btn", "btn-sm", "btn-outline-secondary", "dropdown-toggle"); + dropdownButton.type = "button"; + dropdownButton.id = "dropdownMenuButton"; + dropdownButton.setAttribute("data-bs-toggle", "dropdown"); + dropdownButton.setAttribute("aria-expanded", "false"); + dropdownButton.innerHTML = "+"; + var dropdownMenu = document.createElement("ul"); + dropdownMenu.classList.add("dropdown-menu"); + dropdownMenu.setAttribute("aria-labelledby", "dropdownMenuButton"); + var dropdownItem = document.createElement("li"); + dropdownItem.classList.add("dropdown-item"); + dropdownItem.innerHTML = colorspace; + dropdownMenu.appendChild(dropdownItem); + colorspace_unit_btn.appendChild(dropdownMenu); + */ + colorspace_unit_btn = document.createElement("button"); + colorspace_unit_btn.classList.add("btn", "py-0", "btn-sm", "btn-outline-secondary"); + colorspace_unit_btn.innerHTML = colorspace; + + console.log('Show MetaData Colorspace:', colorspace, ' for input:', inputName, ' on node:', node.title) + } + else if (units.length > 0) { + colorspace_unit_btn = document.createElement("button"); + colorspace_unit_btn.classList.add("btn", "py-0", "btn-sm", "btn-outline-secondary"); + colorspace_unit_btn.innerHTML = units; + console.log('Show MetaData Units:', units, ' for input:', inputName, ' on node:', node.title) + } + + var proptype = nodeInput.type; + if (proptype == 'float' || proptype == 'integer') { + var isFloat = proptype == 'float'; + input = document.createElement("input"); + input.type = 'number'; + input.value = property; + if (uimin) + { + input.min = uimin; + } + if (uimax) + { + input.max = uimax; + } + if (input.min && input.max && isFloat) + { + input.step = uimax - uimin / 100.0; + } + input.setAttribute('propertyKey', propertyKey); + let theNode = targetNodes[i]; + input.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + var val = parseFloat(e.target.value); + theNode.properties[pi] = val; + console.log('Update scalar property:', pi, parseFloat(e.target.value), theNode.title, theNode.properties) + } + } + else if (proptype == 'string' || proptype == 'filename') { + input = document.createElement("input"); + input.type = "text"; + if (proptype == 'filename') { + var propertypanel_preview = document.getElementById('propertypanel_preview'); + var curImage = property; + if (curImage && propertypanel_preview) { + this.uriExists(curImage) + .then(exists => { + if (exists) { + propertypanel_preview.src = curImage; + propertypanel_preview.style.display = "block"; + } else { + //propertypanel_preview.style.display = "none"; + propertypanel_preview.src = "./Images/no_image.png"; + propertypanel_preview.style.display = "block"; + MxShadingGraphEditor.theEditor.debugOutput('Image does not exist: ' + curImage, 1); + } + }); + } + + input_btn = document.createElement("button"); + input_btn.classList.add("btn", "btn-sm", "btn-outline-secondary"); + input_btn.innerHTML = "+"; + input_btn.setAttribute('propertyKey', propertyKey); + var fileId = "__pp:" + inputName; + let theNode = targetNodes[i]; + input_btn.onclick = function (e) { + var pi = e.target.getAttribute('propertyKey'); + console.log('pi:', pi); + MxShadingGraphEditor.theEditor.openImageDialog(theNode, pi, false); + } + } + input.value = property; + input.setAttribute('propertyKey', propertyKey); + let theNode = targetNodes[i]; + input.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + theNode.properties[pi] = e.target.value; + console.log('Update string property:', pi, theNode.properties[pi]) + } + } + else if (proptype == 'boolean') { + //console.log('Add Boolean property:', property); + input = document.createElement("input"); + input.type = "checkbox"; + input.classList = "form-check-input"; + //input.style.width = "10%"; + //input.style.height = "50%"; + useFormControl = false; + input.checked = property; + input.setAttribute('propertyKey', propertyKey); + let theNode = targetNodes[i]; + input.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + theNode.properties[pi] = e.target.checked; + console.log('Update boolean property:', pi, theNode.properties[pi]); + } + } + + else if (proptype == 'vector2' || proptype == 'vector3' || proptype == 'vector4') { + // Find index of proptype in ['vector2', 'vector3', 'vector4' ] + var vector_size = ['vector2', 'vector3', 'vector4'].indexOf(proptype) + 2; + var input = document.createElement("div"); + useFormControl = false; + + input.className = "row py-1 ps-2"; + { + //console.log('Vector property:[', 0, '] = ', property[0], proptype) + var subinput = document.createElement("input"); + subinput.type = 'number'; + subinput.classList.add("form-control"); + subinput.classList.add("form-control-sm"); + subinput.value = property[0]; + if (uimin) { + subinput.min = uimin[0]; + } + if (uimax) { + subinput.max = uimax[0]; + } + if (uimin && uimax) { + subinput.step = (uimax[0] - uimin[0]) / 100.0; + } + subinput.setAttribute('propertyKey', propertyKey); + let theNode = targetNodes[i]; + subinput.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + var value = parseFloat(e.target.value); + theNode.properties[pi][0] = value; + } + input.appendChild(subinput); + } + { + //console.log('Vector property:[', 1, '] = ', property[0], proptype) + var subinput = document.createElement("input"); + subinput.type = 'number'; + subinput.value = property[1]; + if (uimin) { + subinput.min = uimin[1]; + } + if (uimax) { + subinput.max = uimax[1]; + } + if (uimin && uimax) { + subinput.step = (uimax[1] - uimin[1]) / 100.0; + } + subinput.setAttribute('propertyKey', propertyKey); + subinput.classList.add("form-control"); + subinput.classList.add("form-control-sm"); + let theNode = targetNodes[i]; + subinput.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + var value = parseFloat(e.target.value); + theNode.properties[pi][1] = value; + console.log('Update Vector property:"', pi, '"', 1, parseFloat(e.target.value), theNode.properties[pi]) + } + input.appendChild(subinput); + } + if (vector_size > 2) { + //console.log('Vector property:[', 2, '] = ', property[0], proptype) + var subinput = document.createElement("input"); + subinput.type = 'number'; + if (uimin) { + subinput.min = uimin[2]; + } + if (uimax) { + subinput.max = uimax[2]; + } + if (uimin && uimax) { + subinput.step = (uimax[2] - uimin[2]) / 100.0; + } + subinput.value = property[2]; + subinput.setAttribute('propertyKey', propertyKey); + subinput.classList.add("form-control"); + subinput.classList.add("form-control-sm"); + let theNode = targetNodes[i]; + subinput.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + var value = parseFloat(e.target.value); + theNode.properties[pi][2] = value; + console.log('Update Vector property:"', pi, '"', 2, parseFloat(e.target.value), theNode.properties[pi]) + } + input.appendChild(subinput); + } + if (vector_size > 3) { + //console.log('Vector property:[', 3, '] = ', property[0], proptype) + var subinput = document.createElement("input"); + subinput.type = 'number'; + if (uimin) { + subinput.min = uimin[3]; + } + if (uimax) { + subinput.max = uimax[3]; + } + if (uimin && uimax) { + subinput.step = (uimax[3] - uimin[3]) / 100.0; + } + subinput.value = property[3]; + subinput.setAttribute('propertyKey', propertyKey); + subinput.classList.add("form-control"); + subinput.classList.add("form-control-sm"); + let theNode = targetNodes[i]; + subinput.onchange = function (e) { + var pi = e.target.getAttribute('propertyKey'); + var value = parseFloat(e.target.value); + theNode.properties[pi][3] = value; + console.log('Update Vector property:"', pi, '"', 3, parseFloat(e.target.value), theNode.properties[pi]) + } + input.appendChild(subinput); + } + } + else if (proptype == 'color3' || proptype == 'color4') { + input = document.createElement("input"); + input.type = "color"; + //console.log('set color property:', rgbToHex(property)); + input.value = this.rgbToHex(property); + input.setAttribute('propertyKey', propertyKey); + let theNode = targetNodes[i]; + input.onchange = function (e) { + // Convert hex to rgb in 0..1 range + var hex = e.target.value; + var rgb = [0, 0, 0]; + rgb[0] = parseInt(hex.substring(1, 3), 16) / 255.0; + rgb[1] = parseInt(hex.substring(3, 5), 16) / 255.0; + rgb[2] = parseInt(hex.substring(5, 7), 16) / 255.0; + + var pi = e.target.getAttribute('propertyKey'); + theNode.properties[pi] = rgb; + console.log('set color property:', theNode.title, theNode.properties[pi], 'key=', pi, rgb, e.target.value); + } + } + else { + input = document.createElement("input"); + input.type = "text"; + input.value = property; + var propertyKey = inputName; + let theNode = targetNodes[i]; + input.onchange = function (e) { + theNode.properties[propertyKey] = e.target.value; + } + } + /* + TODO: Handle enumerations + else if (proptype == 'enum') { + var input = document.createElement("select"); + for (var j in nodes.inputs[i].values) { + var option = document.createElement("option"); + option.value = j; + option.innerHTML = nodes.inputs[i].values[j]; + input.appendChild(option); + } + input.value = property; + input.onchange = function (e) { + targetNode.properties[i] = e.target.value; + } + } */ + + if (input) { + input.id = "__pp:" + inputName; + //console.log('> Add input:', input.id); + + var label = document.createElement("div"); + label.className = "col-4 p-0 col-form-label-sm text-end font-small"; + label.innerHTML = uiName; + label.for = input.id; + elem.appendChild(label); + + // form-control + if (useFormControl) { + input.classList.add("form-control"); + } + input.classList.add("form-control-sm"); + // Disable if don't want interaction. + if (!graphcanvas.allow_interaction) + input.disabled = true; + + var propvalue = document.createElement("div"); + propvalue.className = "col py-0"; + propvalue.appendChild(input); + + if (input_btn) { + var propbutton = document.createElement("div"); + propbutton.className = "col-1 py-0"; + //console.log('Add input button:', input_btn); + propbutton.appendChild(input_btn); + elem.appendChild(propbutton); + } + if (colorspace_unit_btn) { + //console.log('Add cs / unit button:', input_btn); + var propbutton = document.createElement("div"); + propbutton.className = "col col-form-label-sm font-small"; + var details = document.createElement("details"); + var summary = document.createElement('summary') + if (colorspace.length > 0) + summary.innerHTML = "Colorspace"; + else if (units.length > 0) + summary.innerHTML = "Units"; + details.appendChild(summary); + details.appendChild(colorspace_unit_btn); + propbutton.appendChild(details); + propvalue.appendChild(propbutton); + } + elem.appendChild(propvalue); + } + } + //elem.innerHTML = "" + i + " : " + property; + if (elem) { + if (current_details) { + //console.log('3a. append child to details:', current_details.id, elem, inputName); + current_details.appendChild(elem); + } + else { + propertypanelcontent.appendChild(elem); + //console.log('3b. append child to parent content:', elem, inputName); + } + } + } + } + + onConnectOutput(slot, input_type, input, target_node, target_slot) + { + console.log('**** Connect output'); + console.log(' - slot:', slot); + console.log(' - input type: ', input_type) + console.log(' - input:', input); + console.log(' - target_node', target_node); + console.log(' - target slot', target_slot); + } + + onConnectInput(target_slot, output_type, output, source, slot) + { + console.log('**** Node connection changed'); + console.log(' - target_slot:', target_slot); + console.log(' - output_type: ', output_type) + console.log(' - output:', output); + console.log(' - source', source); + console.log(' - source slot', slot); + } + + monitorGraph(theGraph, monitor) { + if (!theGraph) + return; + + theGraph.onConnectionChange = null; + theGraph.onNodeAdded = null; + theGraph.onNodeRemoved = null; + + if (monitor) { + + var that = this; + //console.log('Monitor connection change:', theGraph.title); + theGraph.onConnectionChange = function (node) + { + //console.log('On connection change:', node.title, node); + var selected = graphcanvas.selected_nodes; + for (var s in selected) { + console.log('update selected node:', selected[s].title); + that.updatePropertyPanel(selected[s]); + break; + } + } + + //console.log('Monitor graph add:', theGraph.title); + theGraph.onNodeAdded = function (node) { + + node.onConnectOutput = MxShadingGraphEditor.theEditor.onConnectOutput; + + if (node.type == 'graph/subgraph') { + // Use MaterialX naming for subgraphs + //node.title = 'nodegraph'; + //console.log('Monitor new subgraph node for connection change:', node.title, node); + node.onConnectInput = MxShadingGraphEditor.theEditor.onConnectInput; + //node.onConnectionChange = function (node) { + // console.log('**** Subgraph connection changed'); + //} + + //MxShadingGraphEditor.theEditor.monitorGraph(node.subgraph, monitor); + + // Scan the subgraph for any nodes which are not in the node inputs list. + var node_subgraph = node.subgraph; + var node_graph = node.graph; + if (node_subgraph) + { + //console.log('** Scan subgraph: ', node_subgraph) + for (var i in node_subgraph._nodes) + { + let theNode = node_subgraph._nodes[i]; + //console.log('*** scan subgrapn node: ', theNode.title) + if (!node_graph.findNodeByTitle(theNode.title)) + { + if (theNode.nodedef_node == 'input') { + console.log('-0-0-0 add input', theNode.title) + node.addInput(theNode.title, theNode.nodedef_type); + console.log('--> Promote input node to subgraph node.', theNode.title); + } + else if (theNode.nodedef_node == 'output') { + console.log('--> Promote output node to subgraph node.', theNode.title); + node.addOutput(theNode.title, theNode.nodedef_type); + } + } + } + } + } + + node.title = MxShadingGraphEditor.theEditor.handler.createValidName(node.title) + node.setSize(node.computeSize()); + //console.log('-> Node Added:', node, '. Type:', node.type, '. Graph:', node.graph._2458graph); + + // Expose node as an input or output on the subgraph + var is_subgraph = node.graph._is_subgraph;; + if (is_subgraph) { + + if (node.nodedef_node == 'input') { + console.log('Adding input node to subgraph.', node.title, node.graph); + node.graph.addInput(node.title, node.nodedef_type); + } + else if (node.nodedef_node == 'output') { + console.log('Adding output node to subgraph.'); + node.graph.addOutput(node.title, node.nodedef_type); + } + } + + if (node.type == 'graph/subgraph') { + MxShadingGraphEditor.theEditor.monitorGraph(node.subgraph, monitor); + } + } + + //console.log('Monitor graph remove:', theGraph.title); + theGraph.onNodeRemoved = function (node) { + //console.log('-> Node Removed:', node, '. Type:', node.type, '. Graph:', graphcanvas.graph); + /* This is too late the graph reference has already been removed */ + var is_subgraph = graphcanvas.graph._is_subgraph; + if (is_subgraph) { + if (node.nodedef_node == 'input') { + console.log('Removing input node from subgraph.'); + graphcanvas.graph.removeInput(node.title); + } + else if (node.nodedef_node == 'output') { + console.log('Removing output node from subgraph.'); + graphcanvas.graph.removeOutput(node.title); + } + } + } + } + + + for (var i in theGraph._nodes) { + var node = theGraph._nodes[i]; + if (node.type == 'graph/subgraph') { + //console.log('Monitor node:', node.title); + this.monitorGraph(node.subgraph, monitor); + node.onConnectInput = MxShadingGraphEditor.theEditor.onConnectInput; + //node.onConnectionChange = function (node) { + // console.log('**** Subgraph connection changed'); + //} + } + } + } + + initializeLiteGraph(canvas) + { + // Initialize Litegraph + graph = new LiteGraph.LGraph(); + graphcanvas = new LiteGraph.LGraphCanvas(canvas, graph); + graphcanvas.onShowNodePanel = function (node) { + ; // Making this a no-op as will not use the default panel + } + graphcanvas.onNodeSelected = function (node) { + console.log('Selected node:', node.title, node); + MxShadingGraphEditor.theEditor.updatePropertyPanel(node); + } + graphcanvas.onNodeDeselected = function (node) { + //console.log('Node Deselected:', node); + MxShadingGraphEditor.theEditor.updatePropertyPanel(null); + } + + // Todo: Move this to application site and expose settings to use. + graphcanvas.default_connection_color_byTypeOff = { + integer: "#A32", + float: "#161", + vector2: "#265", + vector3: "#465", + vector4: "#275", + color3: "#37A", + color4: "#69A", + matrix33: "#555", + matrix44: "#666", + string: "#395", + filename: "#888", + boolean: "#060", + }; + + graphcanvas.default_connection_color_byType = { + integer: "#D52", + float: "#1D1", + vector2: "#4D4", + vector3: "#7D7", + vector4: "#9D9", + color3: "#4AF", + color4: "#6CF", + matrix33: "#AAA", + matrix44: "#BBB", + string: "#3F4", + filename: "#FFF", + boolean: "#0F0", + }; + /* float: "#666", + vector3: "#888", + color3: "#89A", + vector4: "#99B", + color4: "#9AC", + matrix33: "#9BD", + matrix44: "#9CE", + string: "#9DF", + filename: "#9EF", + boolean: "#AF0", + }; */ + + //console.log('Setup graph canvas:', graphcanvas); + + graphcanvas.resize(); + + this.monitorGraph(graph, true); + graph.arrange(80); + + // Run the graph + //graph.runStep(); + + // Enable interaction + //graphcanvas.hide_unconnected = false; + graphcanvas.allow_interaction = true; + graphcanvas.allow_dragnodes = true; + graphcanvas.allow_searchbox = true; + graphcanvas.render_connections_arrows = true; + graphcanvas.clear_background_color = "#222223"; + graphcanvas.max_zoom = 0.25; + graphcanvas.connections_width = 2; + graphcanvas.render_canvas_border = false; + graphcanvas.align_to_grid = false; + graphcanvas.render_connection_arrows = false; + graphcanvas.render_curved_connections = true; + //graphcanvas.background_image = null; + + // Turn off HUD + graphcanvas.show_info = false; + + // Ad event handler to call centerOnNode with f key press within the canvas area + canvas.addEventListener("keydown", function (e) { + if (e.key === "f") { + MxShadingGraphEditor.theEditor.centerNode(); + } + }); + + // Ad event handler to call array with l key press within the canvas area + canvas.addEventListener("keydown", function (e) { + if (e.key === "l") { + MxShadingGraphEditor.theEditor.arrangeGraph(); + } + }); + + } + + centerNode() { + var selected = graphcanvas.selected_nodes; + for (var s in selected) { + //console.log('Focus on', selected[s]); + graphcanvas.centerOnNode(selected[s]); + break; + } + } + + clearNodeTypes() { + LiteGraph.searchbox_extras = []; + var nodeTypes = LiteGraph.registered_node_types; + for (var typeName in nodeTypes) { + if (typeName !== "graph/subgraph") { + console.log('Removing node type:', LiteGraph.getNodeType(typeName)); + LiteGraph.unregisterNodeType(typeName); + } + } + } + + collapseNode(node, collapse) { + if (node.constructor.collapsable === false) { + return false; + } + if (node.flags.collapsed != collapse) { + node.flags.collapsed = collapse; + return true; + } + return false; + } + + collapseExpandNodes(collapse) { + var curGraph = graphcanvas.graph; + + var selected_nodes = graphcanvas.selected_nodes; + console.log('Selected nodes:', selected_nodes); + var modified = false; + if (selected_nodes) { + for (var i in selected_nodes) { + var node = selected_nodes[i]; + console.log('Collapse/Expand:', node.title, collapse); + if (this.collapseNode(node, collapse)) + modified = true; + } + } + if (!modified) + { + var nodes = curGraph._nodes; + for (var i in nodes) { + var node = nodes[i]; + if (this.collapseNode(node, collapse)) + modified = true; + } + } + + if (modified) + { + graph._version++; + graph.setDirtyCanvas(true, true); + } + } + + copyToClipboard() { + graphcanvas.copyToClipboard(); + } + + pasteFromClipboard() { + graphcanvas.pasteFromClipboard(); + } + + extractNodeGraph() { + var selected = graphcanvas.selected_nodes; + if (selected.length == 0) { + console.log('No nodes selected.'); + return; + } + + var subgraphsSelected = [] + for (var i in selected) { + var node = selected[i]; + if (node.type == 'graph/subgraph') { + subgraphsSelected.push(node); + } + } + if (subgraphsSelected.length == 0) { + console.log('No subgraphs selected.'); + return; + } + + // Select subgraph nodes + var subGraph = subgraphsSelected[0]; + var subGraphNodes = subGraph.subgraph._nodes; + for (var i in subGraphNodes) { + var node = subGraphNodes[i]; + console.log('Select subgraph node:', node.title); + } + + graphcanvas.openSubgraph(subGraph.subgraph); + graphcanvas.selectNodes(subGraphNodes); + // Copy the selected nodes to the clipboard + graphcanvas.copyToClipboard(); + + // Paste the copied nodes into the graph + graphcanvas.closeSubgraph(); + graphcanvas.pasteFromClipboard(); + } + + createNodeGraph() { + // Disallow testing for now. + if (graphcanvas.graph._is_subgraph) + { + this.debugOutput('Cannot create nest subgraphs.', 1); + return; + } + + // Check for selected nodes + var selected = graphcanvas.selected_nodes; + if (selected.length == 0) { + console.log('No nodes selected.'); + return; + } + + // Copy the selected nodes to the clipboard + graphcanvas.copyToClipboard(); + + // Create a new graph/subgraph node + var node = LiteGraph.createNode('graph/subgraph'); + graph.add(node); + node.title = MxShadingGraphEditor.theEditor.handler.createValidName('group'); + // Open subgraph + graphcanvas.openSubgraph(node.subgraph); + // Paste the copied nodes into the subgraph + graphcanvas.pasteFromClipboard(); + + node.subgraph.arrange(80); + graphcanvas.ds.reset(); + graphcanvas.setDirty(true, true); + } + + displayNodeTypes() { + // Get the list of available node types + var nodeTypes = LiteGraph.registered_node_types; + + // Get the list container + var nodeList = this.ui.nodeTypesList; + if (!nodeList) { + return; + } + + // Clear all children of nodeList + while (nodeList.firstChild) { + nodeList.removeChild(nodeList.firstChild); + } + + // Iterate over the node types and add them to the list + for (var typeName in nodeTypes) { + + var rowItem = document.createElement("tr"); + + var cellItem = document.createElement("td"); + cellItem.textContent = typeName; + rowItem.appendChild(cellItem); + + cellItem = document.createElement("td"); + var nodeDefString = ''; + var nodeDefName = nodeTypes[typeName].nodedef_name; + var nodeDefNode = nodeTypes[typeName].nodedef_node + var nodeDefHref = nodeTypes[typeName].nodedef_href; + if (nodeDefName) { + if (nodeDefNode) + { + var link = document.createElement("a"); + link.target = "_blank"; + link.href = nodeDefHref; + link.textContent = nodeDefNode + " ( " + nodeDefName + " )"; + cellItem.appendChild(link); + } + else + { + cellItem.textContent = nodeDefName; + } + } + else { + cellItem.textContent = nodeDefString; + } + rowItem.appendChild(cellItem); + + nodeList.appendChild(rowItem); + } + } + + + initialize(createMode, canvas, ui, materialFilename) { + + this.setUI(ui); + this.initializeLiteGraph(canvas); + this.handler.initialize(MxShadingGraphEditor.theEditor, materialFilename); + } +} + +/* +document.addEventListener('DOMContentLoaded', () { + console.log('Setup property panel event handlers...') + var panel1 = document.getElementById('propertypanelcontent'); + //var panel2 = document.getElementById('panel2'); + var isDraggingPanel1 = false; + //var isDraggingPanel2 = false; + var offsetX1, offsetY1, offsetX2, offsetY2; + + panel1.addEventListener('mousedown', (e) { + console.log('mousedown:', e.target.id); + isDraggingPanel1 = true; + var rect = panel1.getBoundingClientRect(); + offsetX1 = e.clientX - rect.left; + offsetY1 = e.clientY - rect.top; + e.stopPropagation(); + }); + + + document.addEventListener('mousemove', (e) { + if (isDraggingPanel1) { + handleDragging(panel1, offsetX1, offsetY1, e); + } + }); + + document.addEventListener('mouseup', () { + isDraggingPanel1 = false; + //isDraggingPanel2 = false; + }); + + handleDragging(panel, offsetX, offsetY, e) { + var canvas = document.getElementById('graphcanvas'); + var canvasRect = canvas.getBoundingClientRect(); + var canvasLeft = canvasRect.left + window.pageXOffset; + var canvasTop = canvasRect.top + window.pageYOffset; + var canvasRight = canvasLeft + canvas.width; + var canvasBottom = canvasTop + canvas.height; + + var x = e.clientX - offsetX; + var y = e.clientY - offsetY; + + x = Math.min(Math.max(canvasLeft, x), canvasRight - panel.offsetWidth); + y = Math.min(Math.max(canvasTop, y), canvasBottom - panel.offsetHeight); + + panel.style.left = x - canvasLeft + 'px'; + panel.style.top = y - canvasTop + 'px'; + } +}); */ diff --git a/javascript/viewer/dist/Lights/environment_map.mtlx b/javascript/shader_utilities/dist/Lights/environment_map.mtlx similarity index 100% rename from javascript/viewer/dist/Lights/environment_map.mtlx rename to javascript/shader_utilities/dist/Lights/environment_map.mtlx diff --git a/javascript/viewer/dist/Lights/irradiance/san_giuseppe_bridge.hdr b/javascript/shader_utilities/dist/Lights/irradiance/san_giuseppe_bridge.hdr similarity index 100% rename from javascript/viewer/dist/Lights/irradiance/san_giuseppe_bridge.hdr rename to javascript/shader_utilities/dist/Lights/irradiance/san_giuseppe_bridge.hdr diff --git a/javascript/viewer/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr b/javascript/shader_utilities/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr similarity index 100% rename from javascript/viewer/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr rename to javascript/shader_utilities/dist/Lights/irradiance/san_giuseppe_bridge_split.hdr diff --git a/javascript/viewer/dist/Lights/san_giuseppe_bridge.hdr b/javascript/shader_utilities/dist/Lights/san_giuseppe_bridge.hdr similarity index 100% rename from javascript/viewer/dist/Lights/san_giuseppe_bridge.hdr rename to javascript/shader_utilities/dist/Lights/san_giuseppe_bridge.hdr diff --git a/javascript/viewer/dist/Lights/san_giuseppe_bridge_split.hdr b/javascript/shader_utilities/dist/Lights/san_giuseppe_bridge_split.hdr similarity index 100% rename from javascript/viewer/dist/Lights/san_giuseppe_bridge_split.hdr rename to javascript/shader_utilities/dist/Lights/san_giuseppe_bridge_split.hdr diff --git a/javascript/viewer/dist/Lights/san_giuseppe_bridge_split.mtlx b/javascript/shader_utilities/dist/Lights/san_giuseppe_bridge_split.mtlx similarity index 100% rename from javascript/viewer/dist/Lights/san_giuseppe_bridge_split.mtlx rename to javascript/shader_utilities/dist/Lights/san_giuseppe_bridge_split.mtlx diff --git a/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png new file mode 100644 index 00000000..992429df Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_baseColor.png differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png new file mode 100644 index 00000000..315a4994 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_emissive.png differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png new file mode 100644 index 00000000..19d7afbe Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_normal.png differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png new file mode 100644 index 00000000..4370d609 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png differ diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.md diff --git a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx similarity index 94% rename from javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx index 72d23a8c..34052699 100644 --- a/javascript/materialxnode/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_boombox_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_carpaint_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_default_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_glass_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_gold_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.md diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json b/javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/GltfPbr/gltf_pbr_plastic_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_aluminum_brushed.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_carpaint.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_default.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_glass.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_honey.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_ketchup.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_lightbulb.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_pearl.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_soapbubble.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx b/javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/OpenPBR/open_pbr_velvet.mtlx diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg new file mode 100644 index 00000000..b74cbc50 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg new file mode 100644 index 00000000..f205522e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg new file mode 100644 index 00000000..b6fafcf2 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_black_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg new file mode 100644 index 00000000..d58c8a9d Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_shared_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg new file mode 100644 index 00000000..bdd10f05 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg new file mode 100644 index 00000000..e7e825fe Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg new file mode 100644 index 00000000..91ff237e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/bishop_white_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg new file mode 100644 index 00000000..101fb07f Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg new file mode 100644 index 00000000..98ebcb2b Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg new file mode 100644 index 00000000..4e6e5a93 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg new file mode 100644 index 00000000..6d67f883 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_shared_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg new file mode 100644 index 00000000..92cccfdf Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/castle_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg new file mode 100644 index 00000000..73ad4112 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg new file mode 100644 index 00000000..8e54561e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg new file mode 100644 index 00000000..d02f3dc1 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg new file mode 100644 index 00000000..9639d245 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/chessboard_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg new file mode 100644 index 00000000..5b0cd472 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg new file mode 100644 index 00000000..61983b3b Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg new file mode 100644 index 00000000..3a81b206 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_black_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg new file mode 100644 index 00000000..9fc424a6 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg new file mode 100644 index 00000000..be5468f4 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_shared_scattering.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg new file mode 100644 index 00000000..abe33ebe Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg new file mode 100644 index 00000000..65e868d4 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg new file mode 100644 index 00000000..5bbace7f Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/king_white_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg new file mode 100644 index 00000000..68b9d920 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg new file mode 100644 index 00000000..223a038b Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg new file mode 100644 index 00000000..111fccf6 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_black_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg new file mode 100644 index 00000000..e7d34b23 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg new file mode 100644 index 00000000..be398eea Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg new file mode 100644 index 00000000..2201a35e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/knight_white_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg new file mode 100644 index 00000000..f4280f07 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg new file mode 100644 index 00000000..cd0d5a67 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg new file mode 100644 index 00000000..26448089 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg new file mode 100644 index 00000000..fd964619 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_shared_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg new file mode 100644 index 00000000..d9908093 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/pawn_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg new file mode 100644 index 00000000..3e4207c5 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg new file mode 100644 index 00000000..76158911 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg new file mode 100644 index 00000000..8c146f05 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_black_roughness.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg new file mode 100644 index 00000000..5f82821e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_metallic.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg new file mode 100644 index 00000000..efecb700 Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_shared_scattering.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg new file mode 100644 index 00000000..89d6825e Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_base_color.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg new file mode 100644 index 00000000..54238c0b Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_normal.jpg differ diff --git a/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg new file mode 100644 index 00000000..f8a981ed Binary files /dev/null and b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/chess_set/queen_white_roughness.jpg differ diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/gooch_shade_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/gooch_shade_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx similarity index 94% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx index bc59bf17..89abdf3a 100644 --- a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_graph.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_graph.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_graph.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brass_tiled_graph.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx similarity index 98% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx index 1d6f6da6..27476f42 100644 --- a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_brick_procedural_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_carpaint_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_carpaint_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx similarity index 99% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx index 96e8a658..7fb96c37 100644 --- a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chess_set_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chess_set_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_chrome_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_chrome_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_copper_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_copper_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_default_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_default_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_glass_tinted_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_gold_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_gold_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.md diff --git a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx similarity index 94% rename from javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx index 9e3ada7c..79e39088 100644 --- a/javascript/materialxnode/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration.mtlx @@ -1,5 +1,5 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_calibration_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_greysphere_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_jade_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_jade_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_look_brass_tiled.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_look_wood_tiled.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_marble_solid_graph.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_metal_brushed_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_plastic_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_plastic_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_thin_film_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_thin_film_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_velvet_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_velvet_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx similarity index 95% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx index c030aa94..339f2147 100644 --- a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled.mtlx @@ -1,6 +1,6 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/standard_surface_wood_tiled_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/toon_shade_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/toon_shade_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon2_graph.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unity_polygon_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unity_polygon_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default.md b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default.md rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default.md diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default_connections.json b/javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/StandardSurface/unlitshader_default_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/StandardSurface/unlitshader_default_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.md diff --git a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx similarity index 94% rename from javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx index 59562e4a..e108eb80 100644 --- a/javascript/materialxnode/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx +++ b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled.mtlx @@ -1,6 +1,6 @@ - + diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_brass_tiled_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_carpaint_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_glass_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_gold_connections.json diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.md diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic.mtlx diff --git a/javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json b/javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json similarity index 100% rename from javascript/viewer/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json rename to javascript/shader_utilities/dist/Materials/Examples/UsdPreviewSurface/usd_preview_surface_plastic_connections.json diff --git a/javascript/viewer/dist/index.html b/javascript/shader_utilities/dist/index.html similarity index 98% rename from javascript/viewer/dist/index.html rename to javascript/shader_utilities/dist/index.html index 65011257..b0e2cd5b 100644 --- a/javascript/viewer/dist/index.html +++ b/javascript/shader_utilities/dist/index.html @@ -384,7 +384,7 @@

    Document Visualization

    for (let i = 0; i < materialNodes.length; ++i) { let materialNode = materialNodes[i]; if (materialNode) { - console.log('Scan material: ', materialNode.getNamePath()); + //console.log('Scan material: ', materialNode.getNamePath()); let shaderNodes = mmx.getShaderNodes(materialNode) if (shaderNodes.length > 0) { let shaderNodePath = shaderNodes[0].getNamePath() @@ -471,16 +471,19 @@

    Document Visualization

    //console.log('----------- Renderable Items:', renderableItems); // Update selection for renderables let renderableItemSelect = document.getElementById('renderableItem'); - // Remove any previous children - while (renderableItemSelect.firstChild) { - renderableItemSelect.removeChild(renderableItemSelect.firstChild); - } - for (let i = 0; i < renderableItems.length; i++) { - let item = renderableItems[i]; - let option = document.createElement('option'); - option.value = i; - option.text = item; // item.getNamePath(); - renderableItemSelect.appendChild(option); + if (renderableItemSelect) + { + // Remove any previous children + while (renderableItemSelect.firstChild) { + renderableItemSelect.removeChild(renderableItemSelect.firstChild); + } + for (let i = 0; i < renderableItems.length; i++) { + let item = renderableItems[i]; + let option = document.createElement('option'); + option.value = i; + option.text = item; // item.getNamePath(); + renderableItemSelect.appendChild(option); + } } return renderableItems; diff --git a/javascript/viewer/dist/index_out.html b/javascript/shader_utilities/dist/index_out.html similarity index 97% rename from javascript/viewer/dist/index_out.html rename to javascript/shader_utilities/dist/index_out.html index 3f8478b1..f48dd467 100644 --- a/javascript/viewer/dist/index_out.html +++ b/javascript/shader_utilities/dist/index_out.html @@ -226,11 +226,13 @@
    Utilities @@ -582,7 +584,7 @@

    Document Visualization

    for (let i = 0; i < materialNodes.length; ++i) { let materialNode = materialNodes[i]; if (materialNode) { - console.log('Scan material: ', materialNode.getNamePath()); + //console.log('Scan material: ', materialNode.getNamePath()); let shaderNodes = mmx.getShaderNodes(materialNode) if (shaderNodes.length > 0) { let shaderNodePath = shaderNodes[0].getNamePath() @@ -669,16 +671,19 @@

    Document Visualization

    //console.log('----------- Renderable Items:', renderableItems); // Update selection for renderables let renderableItemSelect = document.getElementById('renderableItem'); - // Remove any previous children - while (renderableItemSelect.firstChild) { - renderableItemSelect.removeChild(renderableItemSelect.firstChild); - } - for (let i = 0; i < renderableItems.length; i++) { - let item = renderableItems[i]; - let option = document.createElement('option'); - option.value = i; - option.text = item; // item.getNamePath(); - renderableItemSelect.appendChild(option); + if (renderableItemSelect) + { + // Remove any previous children + while (renderableItemSelect.firstChild) { + renderableItemSelect.removeChild(renderableItemSelect.firstChild); + } + for (let i = 0; i < renderableItems.length; i++) { + let item = renderableItems[i]; + let option = document.createElement('option'); + option.value = i; + option.text = item; // item.getNamePath(); + renderableItemSelect.appendChild(option); + } } return renderableItems; diff --git a/javascript/viewer/dist/main.js b/javascript/shader_utilities/dist/main.js similarity index 96% rename from javascript/viewer/dist/main.js rename to javascript/shader_utilities/dist/main.js index 062e8aaf..ab135700 100644 --- a/javascript/viewer/dist/main.js +++ b/javascript/shader_utilities/dist/main.js @@ -26,7 +26,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ findLights: () => (/* binding */ findLights),\n/* harmony export */ getLightRotation: () => (/* binding */ getLightRotation),\n/* harmony export */ getUniformValues: () => (/* binding */ getUniformValues),\n/* harmony export */ prepareEnvTexture: () => (/* binding */ prepareEnvTexture),\n/* harmony export */ registerLights: () => (/* binding */ registerLights)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n//import { getBufferFromFile } from './dropHandling.js';\r\n\r\nconst IMAGE_PROPERTY_SEPARATOR = \"_\";\r\nconst UADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"uaddressmode\";\r\nconst VADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"vaddressmode\";\r\nconst FILTER_TYPE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"filtertype\";\r\nconst IMAGE_PATH_SEPARATOR = \"/\";\r\n\r\n/**\r\n * Initialized the environment texture as MaterialX expects it\r\n * @param {THREE.Texture} texture\r\n * @param {Object} capabilities\r\n * @returns {THREE.Texture}\r\n */\r\nfunction prepareEnvTexture(texture, capabilities)\r\n{\r\n let newTexture = new three__WEBPACK_IMPORTED_MODULE_0__.DataTexture(texture.image.data, texture.image.width, texture.image.height, texture.format, texture.type);\r\n newTexture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n newTexture.anisotropy = capabilities.getMaxAnisotropy();\r\n newTexture.minFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearMipmapLinearFilter;\r\n newTexture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n newTexture.generateMipmaps = true;\r\n newTexture.needsUpdate = true;\r\n\r\n return newTexture;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX vector\r\n * @param {any} value\r\n * @param {any} dimension\r\n * @returns {THREE.Uniform}\r\n */\r\nfunction fromVector(value, dimension)\r\n{\r\n let outValue;\r\n if (value)\r\n {\r\n outValue = value.data();\r\n }\r\n else\r\n {\r\n outValue = [];\r\n for (let i = 0; i < dimension; ++i)\r\n outValue.push(0.0);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX matrix\r\n * @param {mx.matrix} matrix\r\n * @param {mx.matrix.size} dimension\r\n */\r\nfunction fromMatrix(matrix, dimension)\r\n{\r\n let vec = [];\r\n if (matrix)\r\n {\r\n for (let i = 0; i < matrix.numRows(); ++i)\r\n {\r\n for (let k = 0; k < matrix.numColumns(); ++k)\r\n {\r\n vec.push(matrix.getItem(i, k));\r\n }\r\n }\r\n } else\r\n {\r\n for (let i = 0; i < dimension; ++i)\r\n vec.push(0.0);\r\n }\r\n\r\n return vec;\r\n}\r\n\r\nfunction loadTextureFile(uri, loader)\r\n{\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load image file: \", uri); \r\n loader.load(\r\n uri,\r\n function (texture) {\r\n console.log('- Resolve texture:', texture);\r\n resolve(texture);\r\n },\r\n function (xhr) {\r\n // This function will be called while the texture is loading\r\n console.log((xhr.loaded / xhr.total) * 100 + '% loaded');\r\n },\r\n function (error) {\r\n resolve(null);\r\n // This function will be called if there is an error loading the texture\r\n //reject(new Error('Error loading texture: ' + error));\r\n }\r\n ); \r\n }\r\n });\r\n}\r\n\r\n// Function to load an image file and return a buffer using FileReader.readAsArrayBuffer()\r\nfunction getTextureBufferFromFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n //fileReader.addEventListener('load', function (event) {\r\n fileReader.onloadend = function (e)\r\n {\r\n // Get the result of the FileReader as an ArrayBuffer\r\n const buffer = event.target.result;\r\n\r\n // Convert the ArrayBuffer to a Uint8Array for examination\r\n //const uint8Array = new Uint8Array(buffer);\r\n\r\n console.log('--------- Loaded Buffer:', buffer, filePath, '---------');\r\n\r\n // Handle the obtained buffer\r\n console.log('Add texture buffer to cache:', filePath, ', ', buffer);\r\n\r\n const texture = loadTextureFile(URL.createObjectURL(new Blob([buffer])), textureLoader);\r\n //const texture = textureLoader.load(URL.createObjectURL(new Blob([buffer])));\r\n\r\n //const dataURL = 'data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, uint8Array));\r\n //console.log('dataURL:', dataURL)\r\n //const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n // console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n //}); \r\n\r\n //const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture) {\r\n //THREE.Cache.add(filePath, texture);\r\n //setTextureParameters(texture, name, uniforms, flipY);\r\n //outValue = texture;\r\n console.log('Success: texture cached:', filePath, three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(filePath));\r\n //let blah = THREE.Cache.get(texturePath);\r\n //if (blah)\r\n // console.log('blah.image.width:', blah.image.width, ', blah.image.height:', blah.image.height, ', blah.image.data:', blah.image.data, ', blah.image.data.length:', blah.image.data.length, ', blah.image.data.byteLength:', blah.image.data.byteLength, ', blah.image.data.buffer.byteLength:', blah.image.data.buffer.byteLength, ', blah.image.data.buffer:', blah.image.data.buffer);\r\n }\r\n else {\r\n console.error('Error: texture not found in cache:', filePath);\r\n }\r\n\r\n // Resolve the Promise with the obtained buffer\r\n resolve(texture);\r\n };\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n result(null); // reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as an ArrayBuffer\r\n fileReader.readAsArrayBuffer(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n// Function to load an image file and examine the dimensions of the loaded texture\r\nfunction examineImageFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n fileReader.addEventListener('load', function (event) {\r\n // Get the result of the FileReader as a data URL\r\n const dataURL = event.target.result;\r\n console.log('Load URL:', dataURL, filePath, '---------')\r\n\r\n // Create a texture using the data URL\r\n const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n\r\n // Resolve the Promise with the loaded texture\r\n resolve(texture);\r\n });\r\n });\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as a data URL\r\n fileReader.readAsDataURL(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n\r\n/**\r\n * Get Three uniform from MaterialX value\r\n * @param {mx.Uniform.type} type\r\n * @param {mx.Uniform.value} value\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {THREE.textureLoader} textureLoader\r\n */\r\nfunction toThreeUniform(type, value, name, uniforms, textureLoader, searchPath, flipY)\r\n{\r\n let outValue;\r\n switch (type)\r\n {\r\n case 'float':\r\n case 'integer':\r\n case 'boolean':\r\n outValue = value;\r\n break;\r\n case 'vector2':\r\n outValue = fromVector(value, 2);\r\n break;\r\n case 'vector3':\r\n case 'color3':\r\n outValue = fromVector(value, 3);\r\n break;\r\n case 'vector4':\r\n case 'color4':\r\n outValue = fromVector(value, 4);\r\n break;\r\n case 'matrix33':\r\n outValue = fromMatrix(value, 9);\r\n break;\r\n case 'matrix44':\r\n outValue = fromMatrix(value, 16);\r\n break;\r\n case 'filename':\r\n if (value)\r\n {\r\n let texturePath = searchPath + IMAGE_PATH_SEPARATOR + value;\r\n const textureExists = three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(texturePath);\r\n if (!textureExists)\r\n {\r\n \r\n // Call the function to examine the image file\r\n /* examineImageFile(texturePath, textureLoader)\r\n .then(texture => {\r\n console.log('Add texture to cache:', texturePath, texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture; \r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n // Call the function to get a buffer from the file\r\n /*\r\n getTextureBufferFromFile(texturePath, textureLoader)\r\n .then(texture => {\r\n if (texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture;\r\n console.log('-- FINISHED loading: ' + texturePath)\r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n console.log('Image file not loaded: ', texturePath);\r\n }\r\n //else\r\n {\r\n const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture)\r\n {\r\n console.log('Loaded texture: ' + texturePath, ' searchPath: ' + searchPath + ' texture: ', texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n }\r\n else\r\n {\r\n console.error('Error: texture not found in cache:', texturePath);\r\n }\r\n outValue = texture;\r\n }\r\n }\r\n break;\r\n case 'samplerCube':\r\n case 'string':\r\n break;\r\n default:\r\n console.log('Value type not supported: ' + type);\r\n // struct\r\n outValue = null;//toThreeUniform(value);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three wrapping mode\r\n * @param {mx.TextureFilter.wrap} mode\r\n * @returns {THREE.Wrapping}\r\n */\r\nfunction getWrapping(mode)\r\n{\r\n let wrap;\r\n switch (mode)\r\n {\r\n case 1:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.ClampToEdgeWrapping;\r\n break;\r\n case 2:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n case 3:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.MirroredRepeatWrapping;\r\n break;\r\n default:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n }\r\n return wrap;\r\n}\r\n\r\n/**\r\n * Get Three minification filter\r\n * @param {mx.TextureFilter.minFilter} type\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction getMinFilter(type, generateMipmaps)\r\n{\r\n const filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.LinearMipMapLinearFilter : three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n if (type === 0)\r\n {\r\n filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.NearestMipMapNearestFilter : three__WEBPACK_IMPORTED_MODULE_0__.NearestFilter;\r\n }\r\n return filterType;\r\n}\r\n\r\n/**\r\n * Set Three texture parameters\r\n * @param {THREE.Texture} texture\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction setTextureParameters(texture, name, uniforms, flipY = true, generateMipmaps = true)\r\n{\r\n const idx = name.lastIndexOf(IMAGE_PROPERTY_SEPARATOR);\r\n const base = name.substring(0, idx) || name;\r\n\r\n texture.generateMipmaps = generateMipmaps;\r\n texture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.wrapT = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n texture.flipY = flipY;\r\n\r\n if (uniforms.find(base + UADDRESS_MODE_SUFFIX))\r\n {\r\n const uaddressmode = uniforms.find(base + UADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapS = getWrapping(uaddressmode);\r\n }\r\n\r\n if (uniforms.find(base + VADDRESS_MODE_SUFFIX))\r\n {\r\n const vaddressmode = uniforms.find(base + VADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapT = getWrapping(vaddressmode);\r\n }\r\n\r\n const filterType = uniforms.find(base + FILTER_TYPE_SUFFIX) ? uniforms.get(base + FILTER_TYPE_SUFFIX).value : -1;\r\n texture.minFilter = getMinFilter(filterType, generateMipmaps);\r\n}\r\n\r\n/**\r\n * Return the global light rotation matrix\r\n */\r\nfunction getLightRotation()\r\n{\r\n return new three__WEBPACK_IMPORTED_MODULE_0__.Matrix4().makeRotationY(Math.PI / 2);\r\n}\r\n\r\n/**\r\n * Returns all lights nodes in a MaterialX document\r\n * @param {mx.Document} doc \r\n * @returns {Array.}\r\n */\r\nfunction findLights(doc)\r\n{\r\n let lights = [];\r\n for (let node of doc.getNodes())\r\n {\r\n if (node.getType() === \"lightshader\")\r\n lights.push(node);\r\n }\r\n return lights;\r\n}\r\n\r\n/**\r\n * Register lights in shader generation context\r\n * @param {Object} mx MaterialX Module\r\n * @param {Array.} lights Light nodes\r\n * @param {mx.GenContext} genContext Shader generation context\r\n * @returns {Array.}\r\n */\r\nfunction registerLights(mx, lights, genContext)\r\n{\r\n mx.HwShaderGenerator.unbindLightShaders(genContext);\r\n\r\n const lightTypesBound = {};\r\n const lightData = [];\r\n let lightId = 1;\r\n for (let light of lights)\r\n {\r\n let nodeDef = light.getNodeDef();\r\n let nodeName = nodeDef.getName();\r\n if (!lightTypesBound[nodeName])\r\n {\r\n lightTypesBound[nodeName] = lightId;\r\n mx.HwShaderGenerator.bindLightShader(nodeDef, lightId++, genContext);\r\n }\r\n\r\n const lightDirection = light.getValueElement(\"direction\").getValue().getData().data();\r\n const lightColor = light.getValueElement(\"color\").getValue().getData().data();\r\n const lightIntensity = light.getValueElement(\"intensity\").getValue().getData();\r\n\r\n let rotatedLightDirection = new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightDirection)\r\n rotatedLightDirection.transformDirection(getLightRotation())\r\n\r\n lightData.push({\r\n type: lightTypesBound[nodeName],\r\n direction: rotatedLightDirection,\r\n color: new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightColor),\r\n intensity: lightIntensity\r\n });\r\n }\r\n\r\n // Make sure max light count is large enough\r\n genContext.getOptions().hwMaxActiveLightSources = Math.max(genContext.getOptions().hwMaxActiveLightSources, lights.length);\r\n\r\n return lightData;\r\n}\r\n\r\n/**\r\n * Get uniform values for a shader\r\n * @param {mx.shaderStage} shaderStage\r\n * @param {THREE.TextureLoader} textureLoader\r\n */\r\nfunction getUniformValues(shaderStage, textureLoader, searchPath, flipY)\r\n{\r\n let threeUniforms = {};\r\n\r\n const uniformBlocks = Object.values(shaderStage.getUniformBlocks());\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n const name = variable.getVariable();\r\n threeUniforms[name] = new three__WEBPACK_IMPORTED_MODULE_0__.Uniform(toThreeUniform(variable.getType().getName(), value, name, uniforms,\r\n textureLoader, searchPath, flipY));\r\n }\r\n }\r\n });\r\n\r\n return threeUniforms;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Swatch-Viewer/./source/helper.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ findLights: () => (/* binding */ findLights),\n/* harmony export */ getLightRotation: () => (/* binding */ getLightRotation),\n/* harmony export */ getUniformValues: () => (/* binding */ getUniformValues),\n/* harmony export */ prepareEnvTexture: () => (/* binding */ prepareEnvTexture),\n/* harmony export */ registerLights: () => (/* binding */ registerLights)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n//import { getBufferFromFile } from './dropHandling.js';\r\n\r\nconst IMAGE_PROPERTY_SEPARATOR = \"_\";\r\nconst UADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"uaddressmode\";\r\nconst VADDRESS_MODE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"vaddressmode\";\r\nconst FILTER_TYPE_SUFFIX = IMAGE_PROPERTY_SEPARATOR + \"filtertype\";\r\nconst IMAGE_PATH_SEPARATOR = \"/\";\r\n\r\n/**\r\n * Initialized the environment texture as MaterialX expects it\r\n * @param {THREE.Texture} texture\r\n * @param {Object} capabilities\r\n * @returns {THREE.Texture}\r\n */\r\nfunction prepareEnvTexture(texture, capabilities)\r\n{\r\n let newTexture = new three__WEBPACK_IMPORTED_MODULE_0__.DataTexture(texture.image.data, texture.image.width, texture.image.height, texture.format, texture.type);\r\n newTexture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n newTexture.anisotropy = capabilities.getMaxAnisotropy();\r\n newTexture.minFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearMipmapLinearFilter;\r\n newTexture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n newTexture.generateMipmaps = true;\r\n newTexture.needsUpdate = true;\r\n\r\n return newTexture;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX vector\r\n * @param {any} value\r\n * @param {any} dimension\r\n * @returns {THREE.Uniform}\r\n */\r\nfunction fromVector(value, dimension)\r\n{\r\n let outValue;\r\n if (value)\r\n {\r\n outValue = value.data();\r\n }\r\n else\r\n {\r\n outValue = [];\r\n for (let i = 0; i < dimension; ++i)\r\n outValue.push(0.0);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three uniform from MaterialX matrix\r\n * @param {mx.matrix} matrix\r\n * @param {mx.matrix.size} dimension\r\n */\r\nfunction fromMatrix(matrix, dimension)\r\n{\r\n let vec = [];\r\n if (matrix)\r\n {\r\n for (let i = 0; i < matrix.numRows(); ++i)\r\n {\r\n for (let k = 0; k < matrix.numColumns(); ++k)\r\n {\r\n vec.push(matrix.getItem(i, k));\r\n }\r\n }\r\n } else\r\n {\r\n for (let i = 0; i < dimension; ++i)\r\n vec.push(0.0);\r\n }\r\n\r\n return vec;\r\n}\r\n\r\nfunction loadTextureFile(uri, loader)\r\n{\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load image file: \", uri); \r\n loader.load(\r\n uri,\r\n function (texture) {\r\n console.log('- Resolve texture:', texture);\r\n resolve(texture);\r\n },\r\n function (xhr) {\r\n // This function will be called while the texture is loading\r\n console.log((xhr.loaded / xhr.total) * 100 + '% loaded');\r\n },\r\n function (error) {\r\n resolve(null);\r\n // This function will be called if there is an error loading the texture\r\n //reject(new Error('Error loading texture: ' + error));\r\n }\r\n ); \r\n }\r\n });\r\n}\r\n\r\n// Function to load an image file and return a buffer using FileReader.readAsArrayBuffer()\r\nfunction getTextureBufferFromFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n //fileReader.addEventListener('load', function (event) {\r\n fileReader.onloadend = function (e)\r\n {\r\n // Get the result of the FileReader as an ArrayBuffer\r\n const buffer = e.target.result;\r\n\r\n // Convert the ArrayBuffer to a Uint8Array for examination\r\n //const uint8Array = new Uint8Array(buffer);\r\n\r\n console.log('--------- Loaded Buffer:', buffer, filePath, '---------');\r\n\r\n // Handle the obtained buffer\r\n console.log('Add texture buffer to cache:', filePath, ', ', buffer);\r\n\r\n const texture = loadTextureFile(URL.createObjectURL(new Blob([buffer])), textureLoader);\r\n //const texture = textureLoader.load(URL.createObjectURL(new Blob([buffer])));\r\n\r\n //const dataURL = 'data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, uint8Array));\r\n //console.log('dataURL:', dataURL)\r\n //const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n // console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n //}); \r\n\r\n //const texture = textureLoader.load(texturePath);\r\n // Set address & filtering mode\r\n if (texture) {\r\n //THREE.Cache.add(filePath, texture);\r\n //setTextureParameters(texture, name, uniforms, flipY);\r\n //outValue = texture;\r\n console.log('Success: texture cached:', filePath, three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(filePath));\r\n //let blah = THREE.Cache.get(texturePath);\r\n //if (blah)\r\n // console.log('blah.image.width:', blah.image.width, ', blah.image.height:', blah.image.height, ', blah.image.data:', blah.image.data, ', blah.image.data.length:', blah.image.data.length, ', blah.image.data.byteLength:', blah.image.data.byteLength, ', blah.image.data.buffer.byteLength:', blah.image.data.buffer.byteLength, ', blah.image.data.buffer:', blah.image.data.buffer);\r\n }\r\n else {\r\n console.error('Error: texture not found in cache:', filePath);\r\n }\r\n\r\n // Resolve the Promise with the obtained buffer\r\n resolve(texture);\r\n };\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n result(null); // reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as an ArrayBuffer\r\n fileReader.readAsArrayBuffer(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n// Function to load an image file and examine the dimensions of the loaded texture\r\nfunction examineImageFile(filePath, textureLoader) {\r\n return new Promise((resolve, reject) => {\r\n // Create a FileReader\r\n const fileReader = new FileReader();\r\n\r\n // Event listener for the FileReader's load event\r\n fileReader.addEventListener('load', function (event) {\r\n // Get the result of the FileReader as a data URL\r\n const dataURL = event.target.result;\r\n console.log('Load URL:', dataURL, filePath, '---------')\r\n\r\n // Create a texture using the data URL\r\n const texture = textureLoader.load(dataURL, function () {\r\n // Log the dimensions of the resulting texture\r\n console.log('Texture dimensions:', texture.image.width, 'x', texture.image.height);\r\n\r\n // Resolve the Promise with the loaded texture\r\n resolve(texture);\r\n });\r\n });\r\n\r\n // Event listener for errors during file reading\r\n fileReader.addEventListener('error', function (event) {\r\n reject(new Error('Error reading file: ' + event.target.error));\r\n });\r\n\r\n // Read the content of the file as a data URL\r\n fileReader.readAsDataURL(new Blob([filePath]));\r\n });\r\n}\r\n\r\n\r\n\r\n/**\r\n * Get Three uniform from MaterialX value\r\n * @param {mx.Uniform.type} type\r\n * @param {mx.Uniform.value} value\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {THREE.textureLoader} textureLoader\r\n */\r\nfunction toThreeUniform(type, value, name, uniforms, textureLoader, searchPath, flipY)\r\n{\r\n let outValue = null;\r\n switch (type)\r\n {\r\n case 'float':\r\n case 'integer':\r\n case 'boolean':\r\n outValue = value;\r\n break;\r\n case 'vector2':\r\n outValue = fromVector(value, 2);\r\n break;\r\n case 'vector3':\r\n case 'color3':\r\n outValue = fromVector(value, 3);\r\n break;\r\n case 'vector4':\r\n case 'color4':\r\n outValue = fromVector(value, 4);\r\n break;\r\n case 'matrix33':\r\n outValue = fromMatrix(value, 9);\r\n break;\r\n case 'matrix44':\r\n outValue = fromMatrix(value, 16);\r\n break;\r\n case 'filename':\r\n if (value)\r\n {\r\n let texturePath = searchPath + IMAGE_PATH_SEPARATOR + value;\r\n if (value.startsWith('blob:')) \r\n {\r\n texturePath = value;\r\n console.log('Load blob URL:', texturePath);\r\n }\r\n else if (value.startsWith('http'))\r\n {\r\n texturePath = value;\r\n console.log('Load HTTP URL:', texturePath);\r\n }\r\n else if (value.startsWith('data:'))\r\n {\r\n texturePath = value;\r\n console.log('Load data URL:', texturePath);\r\n }\r\n else\r\n {\r\n console.log('Load image file:', texturePath);\r\n }\r\n const textureExists = three__WEBPACK_IMPORTED_MODULE_0__.Cache.get(texturePath);\r\n if (!textureExists)\r\n {\r\n \r\n // Call the function to examine the image file\r\n /* examineImageFile(texturePath, textureLoader)\r\n .then(texture => {\r\n console.log('Add texture to cache:', texturePath, texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture; \r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n // Call the function to get a buffer from the file\r\n /*\r\n getTextureBufferFromFile(texturePath, textureLoader)\r\n .then(texture => {\r\n if (texture)\r\n setTextureParameters(texture, name, uniforms, flipY);\r\n outValue = texture;\r\n console.log('-- FINISHED loading: ' + texturePath)\r\n })\r\n .catch(error => {\r\n // Handle errors\r\n console.error('Error:', error);\r\n });\r\n */\r\n //console.log('Image file not loaded: ', texturePath);\r\n }\r\n //else\r\n {\r\n outValue = textureLoader.load(\r\n texturePath, \r\n function (texture) {\r\n console.log('Loaded texture: ' + texturePath, texture);\r\n /* console.log('Texture image properties:');\r\n console.log('Width:', texture.image.width);\r\n console.log('Height:', texture.image.height);\r\n console.log('Format:', texture.image.format);\r\n console.log('Is Data Loaded:', texture.image.complete); // */ \r\n outValue = texture;\r\n },\r\n undefined,\r\n function (error) {\r\n console.error('Error loading texture: ', error);\r\n }); \r\n\r\n // Set address & filtering mode\r\n if (outValue)\r\n setTextureParameters(outValue, name, uniforms, flipY);\r\n }\r\n }\r\n break;\r\n case 'samplerCube':\r\n case 'string':\r\n break;\r\n default:\r\n console.log('Value type not supported: ' + type);\r\n // struct\r\n outValue = null;//toThreeUniform(value);\r\n }\r\n\r\n return outValue;\r\n}\r\n\r\n/**\r\n * Get Three wrapping mode\r\n * @param {mx.TextureFilter.wrap} mode\r\n * @returns {THREE.Wrapping}\r\n */\r\nfunction getWrapping(mode)\r\n{\r\n let wrap;\r\n switch (mode)\r\n {\r\n case 1:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.ClampToEdgeWrapping;\r\n break;\r\n case 2:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n case 3:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.MirroredRepeatWrapping;\r\n break;\r\n default:\r\n wrap = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n break;\r\n }\r\n return wrap;\r\n}\r\n\r\n/**\r\n * Get Three minification filter\r\n * @param {mx.TextureFilter.minFilter} type\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction getMinFilter(type, generateMipmaps)\r\n{\r\n const filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.LinearMipMapLinearFilter : three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n if (type === 0)\r\n {\r\n filterType = generateMipmaps ? three__WEBPACK_IMPORTED_MODULE_0__.NearestMipMapNearestFilter : three__WEBPACK_IMPORTED_MODULE_0__.NearestFilter;\r\n }\r\n return filterType;\r\n}\r\n\r\n/**\r\n * Set Three texture parameters\r\n * @param {THREE.Texture} texture\r\n * @param {mx.Uniform.name} name\r\n * @param {mx.Uniforms} uniforms\r\n * @param {mx.TextureFilter.generateMipmaps} generateMipmaps\r\n */\r\nfunction setTextureParameters(texture, name, uniforms, flipY = true, generateMipmaps = true)\r\n{\r\n const idx = name.lastIndexOf(IMAGE_PROPERTY_SEPARATOR);\r\n const base = name.substring(0, idx) || name;\r\n\r\n texture.generateMipmaps = generateMipmaps;\r\n texture.wrapS = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.wrapT = three__WEBPACK_IMPORTED_MODULE_0__.RepeatWrapping;\r\n texture.magFilter = three__WEBPACK_IMPORTED_MODULE_0__.LinearFilter;\r\n texture.flipY = flipY;\r\n\r\n if (uniforms.find(base + UADDRESS_MODE_SUFFIX))\r\n {\r\n const uaddressmode = uniforms.find(base + UADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapS = getWrapping(uaddressmode);\r\n }\r\n\r\n if (uniforms.find(base + VADDRESS_MODE_SUFFIX))\r\n {\r\n const vaddressmode = uniforms.find(base + VADDRESS_MODE_SUFFIX).getValue().getData();\r\n texture.wrapT = getWrapping(vaddressmode);\r\n }\r\n\r\n const filterType = uniforms.find(base + FILTER_TYPE_SUFFIX) ? uniforms.get(base + FILTER_TYPE_SUFFIX).value : -1;\r\n texture.minFilter = getMinFilter(filterType, generateMipmaps);\r\n}\r\n\r\n/**\r\n * Return the global light rotation matrix\r\n */\r\nfunction getLightRotation()\r\n{\r\n return new three__WEBPACK_IMPORTED_MODULE_0__.Matrix4().makeRotationY(Math.PI / 2);\r\n}\r\n\r\n/**\r\n * Returns all lights nodes in a MaterialX document\r\n * @param {mx.Document} doc \r\n * @returns {Array.}\r\n */\r\nfunction findLights(doc)\r\n{\r\n let lights = [];\r\n for (let node of doc.getNodes())\r\n {\r\n if (node.getType() === \"lightshader\")\r\n lights.push(node);\r\n }\r\n return lights;\r\n}\r\n\r\n/**\r\n * Register lights in shader generation context\r\n * @param {Object} mx MaterialX Module\r\n * @param {Array.} lights Light nodes\r\n * @param {mx.GenContext} genContext Shader generation context\r\n * @returns {Array.}\r\n */\r\nfunction registerLights(mx, lights, genContext)\r\n{\r\n mx.HwShaderGenerator.unbindLightShaders(genContext);\r\n\r\n const lightTypesBound = {};\r\n const lightData = [];\r\n let lightId = 1;\r\n for (let light of lights)\r\n {\r\n let nodeDef = light.getNodeDef();\r\n let nodeName = nodeDef.getName();\r\n if (!lightTypesBound[nodeName])\r\n {\r\n lightTypesBound[nodeName] = lightId;\r\n mx.HwShaderGenerator.bindLightShader(nodeDef, lightId++, genContext);\r\n }\r\n\r\n const lightDirection = light.getValueElement(\"direction\").getValue().getData().data();\r\n const lightColor = light.getValueElement(\"color\").getValue().getData().data();\r\n const lightIntensity = light.getValueElement(\"intensity\").getValue().getData();\r\n\r\n let rotatedLightDirection = new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightDirection)\r\n rotatedLightDirection.transformDirection(getLightRotation())\r\n\r\n lightData.push({\r\n type: lightTypesBound[nodeName],\r\n direction: rotatedLightDirection,\r\n color: new three__WEBPACK_IMPORTED_MODULE_0__.Vector3(...lightColor),\r\n intensity: lightIntensity\r\n });\r\n }\r\n\r\n // Make sure max light count is large enough\r\n genContext.getOptions().hwMaxActiveLightSources = Math.max(genContext.getOptions().hwMaxActiveLightSources, lights.length);\r\n\r\n return lightData;\r\n}\r\n\r\n/**\r\n * Get uniform values for a shader\r\n * @param {mx.shaderStage} shaderStage\r\n * @param {THREE.TextureLoader} textureLoader\r\n */\r\nfunction getUniformValues(shaderStage, textureLoader, searchPath, flipY)\r\n{\r\n let threeUniforms = {};\r\n\r\n const uniformBlocks = Object.values(shaderStage.getUniformBlocks());\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n const name = variable.getVariable();\r\n //console.log('fill uniform, name:', name, ', value:', value);\r\n threeUniforms[name] = new three__WEBPACK_IMPORTED_MODULE_0__.Uniform(toThreeUniform(variable.getType().getName(), value, name, uniforms,\r\n textureLoader, searchPath, flipY));\r\n }\r\n }\r\n });\r\n\r\n return threeUniforms;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Swatch-Viewer/./source/helper.js?"); /***/ }), @@ -46,7 +46,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var thre \**************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* binding */ Editor),\n/* harmony export */ Material: () => (/* binding */ Material),\n/* harmony export */ Scene: () => (/* binding */ Scene),\n/* harmony export */ Viewer: () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n/* harmony import */ var three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! three/examples/jsm/loaders/GLTFLoader */ \"./node_modules/three/examples/jsm/loaders/GLTFLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! three/examples/jsm/loaders/ObjLoader */ \"./node_modules/three/examples/jsm/loaders/ObjLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! three/examples/jsm/loaders/RGBELoader.js */ \"./node_modules/three/examples/jsm/loaders/RGBELoader.js\");\n/* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ \"./source/helper.js\");\n/* harmony import */ var lil_gui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lil-gui */ \"./node_modules/lil-gui/dist/lil-gui.esm.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst ALL_GEOMETRY_SPECIFIER = \"*\";\r\nconst NO_GEOMETRY_SPECIFIER = \"\";\r\nconst DAG_PATH_SEPERATOR = \"/\";\r\n\r\n// Logging toggle\r\nvar logDetailedTime = false;\r\n\r\n/*\r\n Scene management\r\n*/\r\nclass Scene\r\n{\r\n constructor()\r\n {\r\n this._geometryURL = new URLSearchParams(document.location.search).get(\"geom\");\r\n if (!this._geometryURL)\r\n {\r\n this._geometryURL = 'Geometry/teapot.glb';\r\n }\r\n }\r\n\r\n initialize()\r\n {\r\n this._scene = new three__WEBPACK_IMPORTED_MODULE_1__.Scene();\r\n this._scene.background = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n this._scene.background.convertSRGBToLinear();\r\n\r\n let cc = document.getElementById('webglcanvas');\r\n console.log('cc: ', cc)\r\n const aspectRatio = cc.width / cc.height;\r\n const cameraNearDist = 0.01;\r\n const cameraFarDist = 1000.0;\r\n const cameraFOV = 60.0;\r\n this._camera = new three__WEBPACK_IMPORTED_MODULE_1__.PerspectiveCamera(cameraFOV, aspectRatio, cameraNearDist, cameraFarDist);\r\n\r\n this.#_gltfLoader = new three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__.GLTFLoader();\r\n this.#_objLoader = new three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__.OBJLoader();\r\n\r\n this.#_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n this.#_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n this.#_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n }\r\n\r\n // Set whether to flip UVs in V for loaded geometry\r\n setFlipGeometryV(val)\r\n {\r\n this.#_flipV = val;\r\n }\r\n\r\n // Get whether to flip UVs in V for loaded geometry\r\n getFlipGeometryV()\r\n {\r\n return this.#_flipV;\r\n }\r\n\r\n // Utility to perform geometry file load\r\n loadGeometryFile(geometryFilename, loader)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load geometry: \", geometryFilename); \r\n loader.load(geometryFilename, data => resolve(data), null, reject);\r\n }\r\n });\r\n }\r\n\r\n //\r\n // Load in geometry specified by a given file name,\r\n // then update the scene geometry and camera.\r\n //\r\n async loadGeometry(viewer, orbitControls)\r\n {\r\n var startTime = performance.now();\r\n var geomLoadTime = startTime;\r\n\r\n var gltfData = null;\r\n if (this.getGeometryURL().endsWith('glb'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n else if (this.getGeometryURL().endsWith('obj'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_objLoader);\r\n else \r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n\r\n if (gltfData == null)\r\n {\r\n console.log(\"Failed to load geometry: \", this.getGeometryURL());\r\n return;\r\n }\r\n\r\n const scene = this.getScene();\r\n while (scene.children.length > 0)\r\n {\r\n scene.remove(scene.children[0]);\r\n }\r\n\r\n this.#_rootNode = null;\r\n const model = gltfData.scene;\r\n if (!model)\r\n {\r\n const geometry = new three__WEBPACK_IMPORTED_MODULE_1__.BoxGeometry(1, 1, 1);\r\n const material = new three__WEBPACK_IMPORTED_MODULE_1__.MeshBasicMaterial({ color: 0xdddddd });\r\n const cube = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(geometry, material);\r\n obj = new three__WEBPACK_IMPORTED_MODULE_1__.Group();\r\n obj.add(geometry);\r\n }\r\n else\r\n {\r\n this.#_rootNode = model;\r\n }\r\n scene.add(model);\r\n\r\n // Always reset controls based on camera for each load. \r\n orbitControls.reset();\r\n console.log(\"- Scene load time: \", performance.now() - geomLoadTime, \"ms\");\r\n\r\n console.log(\"Total geometry load time: \", performance.now() - startTime, \" ms.\");\r\n\r\n viewer.getMaterial().clearSoloMaterialUI();\r\n viewer.getMaterial().updateMaterialAssignments(viewer, viewer.getMaterial().getSoloMaterial());\r\n this.setUpdateTransforms();\r\n\r\n this.updateScene(viewer, orbitControls);\r\n }\r\n\r\n //\r\n // Update the geometry buffer, assigned materials, and camera controls.\r\n //\r\n updateScene(viewer, orbitControls)\r\n {\r\n var startUpdateSceneTime = performance.now();\r\n var uvTime = 0;\r\n var normalTime = 0;\r\n var tangentTime = 0;\r\n var streamTime = 0;\r\n var bboxTime = 0;\r\n\r\n var startBboxTime = performance.now();\r\n const bbox = new three__WEBPACK_IMPORTED_MODULE_1__.Box3().setFromObject(this._scene);\r\n const bsphere = new three__WEBPACK_IMPORTED_MODULE_1__.Sphere();\r\n bbox.getBoundingSphere(bsphere);\r\n bboxTime = performance.now() - startBboxTime;\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n\r\n\r\n this._scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n var startUVTime = performance.now();\r\n if (!child.geometry.attributes.uv)\r\n {\r\n const posCount = child.geometry.attributes.position.count;\r\n const uvs = [];\r\n const pos = child.geometry.attributes.position.array;\r\n\r\n for (let i = 0; i < posCount; i++)\r\n {\r\n uvs.push((pos[i * 3] - bsphere.center.x) / bsphere.radius);\r\n uvs.push((pos[i * 3 + 1] - bsphere.center.y) / bsphere.radius);\r\n }\r\n\r\n child.geometry.setAttribute('uv', new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(new Float32Array(uvs), 2));\r\n }\r\n else if (flipV)\r\n {\r\n const uvCount = child.geometry.attributes.position.count;\r\n const uvs = child.geometry.attributes.uv.array;\r\n for (let i = 0; i < uvCount; i++)\r\n {\r\n let v = 1.0 - (uvs[i * 2 + 1]);\r\n uvs[i * 2 + 1] = v;\r\n }\r\n }\r\n uvTime += performance.now() - startUVTime;\r\n\r\n if (!child.geometry.attributes.normal)\r\n {\r\n var startNormalTime = performance.new();\r\n child.geometry.computeVertexNormals();\r\n normalTime += performance.now() - startNormalTime;\r\n }\r\n\r\n if (child.geometry.getIndex())\r\n {\r\n if (!child.geometry.attributes.tangent)\r\n {\r\n var startTangentTime = performance.now();\r\n child.geometry.computeTangents();\r\n tangentTime += performance.now() - startTangentTime;\r\n }\r\n }\r\n\r\n // Use default MaterialX naming convention.\r\n var startStreamTime = performance.now();\r\n child.geometry.attributes.i_position = child.geometry.attributes.position;\r\n child.geometry.attributes.i_normal = child.geometry.attributes.normal;\r\n child.geometry.attributes.i_tangent = child.geometry.attributes.tangent;\r\n child.geometry.attributes.i_texcoord_0 = child.geometry.attributes.uv;\r\n streamTime += performance.now() - startStreamTime;\r\n }\r\n });\r\n\r\n console.log(\"- Stream update time: \", performance.now() - startUpdateSceneTime, \"ms\");\r\n if (logDetailedTime)\r\n {\r\n console.log(' - UV time: ', uvTime);\r\n console.log(' - Normal time: ', normalTime);\r\n console.log(' - Tangent time: ', tangentTime);\r\n console.log(' - Stream Update time: ', streamTime);\r\n console.log(' - Bounds compute time: ', bboxTime);\r\n }\r\n\r\n // Update the background\r\n this._scene.background = this.getBackground();\r\n\r\n //console.log('bounding sphere:', bsphere.center, bsphere.radius);\r\n\r\n // Fit camera to model\r\n const camera = this.getCamera();\r\n camera.position.y = bsphere.center.y;\r\n camera.position.z = bsphere.radius * 2.0;\r\n camera.updateProjectionMatrix();\r\n\r\n orbitControls.target = bsphere.center;\r\n orbitControls.update();\r\n }\r\n\r\n setUpdateTransforms()\r\n {\r\n this.#_updateTransforms = true;\r\n }\r\n\r\n updateTransforms()\r\n {\r\n // Only update on demand versus continuously.\r\n // Call setUpdateTransforms() to trigger an update here.\r\n // Required for: scene geometry, camera change and viewport resize. \r\n if (!this.#_updateTransforms)\r\n {\r\n return;\r\n }\r\n this.#_updateTransforms = false;\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const uniforms = child.material.uniforms;\r\n if (uniforms)\r\n {\r\n uniforms.u_worldMatrix.value = child.matrixWorld;\r\n uniforms.u_viewProjectionMatrix.value = this.#_viewProjMat.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);\r\n\r\n if (uniforms.u_viewPosition)\r\n uniforms.u_viewPosition.value = camera.getWorldPosition(this.#_worldViewPos);\r\n\r\n if (uniforms.u_worldInverseTransposeMatrix)\r\n uniforms.u_worldInverseTransposeMatrix.value =\r\n new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4().setFromMatrix3(this.#_normalMat.getNormalMatrix(child.matrixWorld));\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Determine string DAG path based on individual node names.\r\n getDagPath(node)\r\n {\r\n const rootNode = this.#_rootNode;\r\n\r\n let path = [node.name];\r\n while (node.parent)\r\n {\r\n node = node.parent;\r\n if (node)\r\n {\r\n // Stop at the root of the scene read in.\r\n if (node == rootNode)\r\n {\r\n break;\r\n }\r\n path.unshift(node.name);\r\n }\r\n }\r\n return path;\r\n }\r\n\r\n // Assign material shader to associated geometry\r\n updateMaterial(matassign)\r\n {\r\n let assigned = 0;\r\n\r\n const shader = matassign.getShader();\r\n const material = matassign.getMaterial().getName();\r\n const geometry = matassign.getGeometry();\r\n const collection = matassign.getCollection();\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const dagPath = this.getDagPath(child).join('/');\r\n\r\n // Note that this is a very simplistic\r\n // assignment resolve and assumes basic\r\n // regular expression name match.\r\n let matches = (geometry == ALL_GEOMETRY_SPECIFIER);\r\n if (!matches)\r\n {\r\n if (collection)\r\n {\r\n if (collection.matchesGeomString(dagPath))\r\n {\r\n matches = true;\r\n }\r\n }\r\n else\r\n {\r\n if (geometry != NO_GEOMETRY_SPECIFIER)\r\n {\r\n const paths = geometry.split(',');\r\n for (let path of paths)\r\n {\r\n if (dagPath.match(path))\r\n {\r\n matches = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (matches)\r\n {\r\n child.material = shader;\r\n assigned++;\r\n }\r\n }\r\n });\r\n\r\n return assigned;\r\n }\r\n\r\n updateCamera()\r\n {\r\n const camera = this.getCamera();\r\n let container = document.getElementById('canvasContainer');\r\n var maxWidth = 4086;\r\n var maxHeight = 1024;\r\n var width = Math.min(container.clientWidth, maxWidth);\r\n var height = Math.min(container.clientHeight, maxHeight); \r\n\r\n camera.aspect = width / height;\r\n camera.updateProjectionMatrix();\r\n }\r\n\r\n getScene()\r\n {\r\n return this._scene;\r\n }\r\n\r\n getCamera()\r\n {\r\n return this._camera;\r\n }\r\n\r\n getGeometryURL()\r\n {\r\n return this._geometryURL;\r\n }\r\n\r\n setGeometryURL(url)\r\n {\r\n this._geometryURL = url;\r\n }\r\n\r\n setBackgroundTexture(texture)\r\n {\r\n this.#_backgroundTexture = texture;\r\n }\r\n\r\n getShowBackgroundTexture()\r\n {\r\n return this.#_showBackgroundTexture;\r\n }\r\n\r\n setShowBackgroundTexture(enable)\r\n {\r\n this.#_showBackgroundTexture = enable;\r\n }\r\n\r\n getBackground()\r\n {\r\n if (this.#_backgroundTexture && this.#_showBackgroundTexture)\r\n {\r\n return this.#_backgroundTexture;\r\n }\r\n var color = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n color.convertSRGBToLinear();\r\n return color;\r\n }\r\n\r\n toggleBackgroundTexture()\r\n {\r\n this.#_showBackgroundTexture = !this.#_showBackgroundTexture;\r\n this._scene.background = this.getBackground();\r\n }\r\n\r\n // Geometry file\r\n #_geometryURL = '';\r\n // Geometry loaders\r\n #_gltfLoader = null;\r\n #_objLoader = null;\r\n // Flip V coordinate of texture coordinates.\r\n // Set to true to be consistent with desktop viewer.\r\n #_flipV = true;\r\n\r\n // Scene\r\n #_scene = null;\r\n\r\n // Camera\r\n #_camera = null;\r\n\r\n // Background color\r\n #_backgroundColor = 0xAcAdBB;\r\n\r\n // Background texture\r\n #_backgroundTexture = null;\r\n #_showBackgroundTexture = false;\r\n\r\n // Transform matrices\r\n #_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n #_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n #_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n #_updateTransforms = true;\r\n\r\n // Root node of imported scene\r\n #_rootNode = null;\r\n}\r\n\r\n/* \r\n Property editor\r\n*/\r\nclass Editor\r\n{\r\n // Initialize the editor, clearing any elements from previous materials.\r\n initialize()\r\n {\r\n Array.from(document.getElementsByClassName('lil-gui')).forEach(\r\n function (element, index, array)\r\n {\r\n if (element.className)\r\n {\r\n element.remove();\r\n }\r\n }\r\n );\r\n\r\n let parent = document.getElementById( 'webglcanvas' );\r\n //console.log('parent:', parent);\r\n this._gui = new lil_gui__WEBPACK_IMPORTED_MODULE_4__[\"default\"]( { title: \"Properties\" }, { container: parent } );\r\n //parent = this._gui.domElement;\r\n //console.log('gui parent:', parent);\r\n // Parent parent under webglcanvas\r\n //document.getElementById( 'webglcanvas' ).appendChild( parent );\r\n\r\n //this._gui = new GUI({ title: \"Property Editor\" });\r\n this._gui.close();\r\n this._gui.hide();\r\n }\r\n\r\n // Update ui properties\r\n // - Hide close button\r\n // - Update transparency so scene shows through if overlapping\r\n updateProperties(targetOpacity = 1)\r\n {\r\n // Set opacity\r\n Array.from(document.getElementsByClassName('dg')).forEach(\r\n function (element, index, array)\r\n {\r\n element.style.opacity = targetOpacity;\r\n }\r\n );\r\n }\r\n\r\n getGUI()\r\n {\r\n return this._gui;\r\n }\r\n\r\n _gui = null;\r\n}\r\n\r\nclass MaterialAssign\r\n{\r\n constructor(material, geometry, collection)\r\n {\r\n this._material = material;\r\n this._geometry = geometry;\r\n this._collection = collection;\r\n this._shader = null;\r\n this._materialUI = null;\r\n }\r\n\r\n setMaterialUI(value)\r\n {\r\n this._materialUI = value;\r\n }\r\n\r\n getMaterialUI()\r\n {\r\n return this._materialUI;\r\n }\r\n\r\n setShader(shader)\r\n {\r\n this._shader = shader;\r\n }\r\n\r\n getShader()\r\n {\r\n return this._shader;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this._material;\r\n }\r\n\r\n getGeometry()\r\n {\r\n return this._geometry;\r\n }\r\n\r\n setGeometry(value)\r\n {\r\n this._geometry = value;\r\n }\r\n\r\n getCollection()\r\n {\r\n return this._collection;\r\n }\r\n\r\n // MaterialX material node name\r\n _material;\r\n\r\n // MaterialX assignment geometry string\r\n _geometry;\r\n\r\n // MaterialX assignment collection\r\n _collection;\r\n\r\n // THREE.JS shader\r\n _shader;\r\n}\r\n\r\nclass Material\r\n{\r\n constructor()\r\n {\r\n this._materials = [];\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n this._shaderInterfaceType = 0;\r\n }\r\n\r\n clearMaterials()\r\n {\r\n this._materials.length = 0;\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n }\r\n\r\n setSoloMaterial(value)\r\n {\r\n this._soloMaterial = value;\r\n }\r\n\r\n getSoloMaterial()\r\n {\r\n return this._soloMaterial;\r\n }\r\n\r\n // If no material file is selected, we programmatically create a default material as a fallback\r\n static createFallbackMaterial(doc)\r\n {\r\n let ssNode = doc.getChild('Generated_Default_Shader');\r\n if (ssNode)\r\n {\r\n return ssNode;\r\n }\r\n const ssName = 'Generated_Default_Shader';\r\n ssNode = doc.addChildOfCategory('standard_surface', ssName);\r\n ssNode.setType('surfaceshader');\r\n const smNode = doc.addChildOfCategory('surfacematerial', 'Default');\r\n smNode.setType('material');\r\n const shaderElement = smNode.addInput('surfaceshader');\r\n shaderElement.setType('surfaceshader');\r\n shaderElement.setNodeName(ssName);\r\n\r\n return ssNode;\r\n }\r\n\r\n async loadMaterialFile(loader, materialFilename)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n loader.load(materialFilename, data => resolve(data), null, reject);\r\n });\r\n }\r\n\r\n async loadMaterials(viewer, materialFilename)\r\n {\r\n const fileloader = viewer.getFileLoader();\r\n\r\n let mtlxMaterial = await viewer.getMaterial().loadMaterialFile(fileloader, materialFilename);\r\n\r\n this.loadMaterialFromString(viewer, mtlxMaterial, materialFilename);\r\n }\r\n\r\n async loadMaterialFromString(viewer, mtlxMaterial, materialFilename)\r\n {\r\n var startTime = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n\r\n // Re-initialize document\r\n var startDocTime = performance.now();\r\n var doc = mx.createDocument();\r\n doc.importLibrary(viewer.getLibrary());\r\n if (!doc.validate())\r\n {\r\n console.log(\"MaterialX document validation failed.\");\r\n return;\r\n }\r\n\r\n viewer.setDocument(doc);\r\n\r\n // Load lighting setup into document\r\n doc.importLibrary(viewer.getLightRig());\r\n\r\n console.log(\"- Material document load time: \", performance.now() - startDocTime, \"ms.\");\r\n\r\n // Set search path. Assumes images are relative to current file\r\n // location.\r\n if (!materialFilename) materialFilename = \"/\";\r\n const paths = materialFilename.split('/');\r\n paths.pop();\r\n const searchPath = paths.join('/');\r\n\r\n // Load material\r\n if (mtlxMaterial)\r\n try { \r\n await mx.readFromXmlString(doc, mtlxMaterial, searchPath);\r\n }\r\n catch (error) {\r\n console.error('Error loading material file: ', error);\r\n }\r\n else\r\n Material.createFallbackMaterial(doc);\r\n\r\n // Check if there are any looks defined in the document\r\n // If so then traverse the looks for all material assignments.\r\n // Generate code and compile for any associated surface shader\r\n // and assign to the associated geometry. If there are no looks\r\n // then the first material is found and assignment to all the\r\n // geometry.\r\n this.clearMaterials();\r\n var looks = doc.getLooks();\r\n if (looks.length)\r\n {\r\n for (let look of looks)\r\n {\r\n const materialAssigns = look.getMaterialAssigns();\r\n for (let materialAssign of materialAssigns)\r\n {\r\n let matName = materialAssign.getMaterial();\r\n if (matName)\r\n {\r\n let mat = doc.getChild(matName);\r\n var shader;\r\n if (mat)\r\n {\r\n var shaders = mx.getShaderNodes(mat);\r\n if (shaders.length)\r\n {\r\n shader = shaders[0];\r\n }\r\n }\r\n let collection = materialAssign.getCollection();\r\n let geom = materialAssign.getGeom();\r\n let newAssignment;\r\n if (collection || geom)\r\n {\r\n // Remove leading \"/\" from collection and geom for \r\n // later assignment comparison checking\r\n if (collection && collection.charAt(0) == \"/\")\r\n {\r\n collection = collection.slice(1);\r\n }\r\n if (geom && geom.charAt(0) == \"/\")\r\n {\r\n geom = geom.slice(1);\r\n }\r\n newAssignment = new MaterialAssign(shader, geom, collection);\r\n }\r\n else\r\n {\r\n newAssignment = new MaterialAssign(shader, NO_GEOMETRY_SPECIFIER, null);\r\n }\r\n\r\n if (newAssignment)\r\n {\r\n this._materials.push(newAssignment);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // Search for any surface shaders. The first found\r\n // is assumed to be assigned to the entire scene\r\n // The identifier used is \"*\" to mean the entire scene. \r\n const materialNodes = doc.getMaterialNodes();\r\n let shaderList = [];\r\n let foundRenderable = false;\r\n for (let i = 0; i < materialNodes.length; ++i)\r\n {\r\n let materialNode = materialNodes[i];\r\n if (materialNode)\r\n {\r\n console.log('Scan material: ', materialNode.getNamePath());\r\n let shaderNodes = mx.getShaderNodes(materialNode)\r\n if (shaderNodes.length > 0)\r\n {\r\n let shaderNodePath = shaderNodes[0].getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n console.log('-- add shader: ', shaderNodePath);\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNodes[0], assignment));\r\n }\r\n }\r\n }\r\n }\r\n const nodeGraphs = doc.getNodeGraphs();\r\n for (let i = 0; i < nodeGraphs.length; ++i)\r\n {\r\n let nodeGraph = nodeGraphs[i];\r\n if (nodeGraph)\r\n {\r\n if (nodeGraph.hasAttribute('nodedef') || nodeGraph.hasSourceUri())\r\n {\r\n continue;\r\n }\r\n // Skip any nodegraph that is connected to something downstream\r\n if (nodeGraph.getDownstreamPorts().length > 0)\r\n {\r\n continue\r\n }\r\n let outputs = nodeGraph.getOutputs();\r\n for (let j = 0; j < outputs.length; ++j)\r\n {\r\n let output = outputs[j];\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n let newMat = new MaterialAssign(output, assignment, null);\r\n this._materials.push(newMat);\r\n }\r\n }\r\n }\r\n }\r\n const outputs = doc.getOutputs();\r\n for (let i = 0; i < outputs.length; ++i)\r\n {\r\n let output = outputs[i];\r\n if (output)\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n this._materials.push(new MaterialAssign(output, assignment));\r\n }\r\n }\r\n\r\n const shaderNodes = [];\r\n for (let i = 0; i < shaderNodes.length; ++i)\r\n {\r\n let shaderNode = shaderNodes[i];\r\n let shaderNodePath = shaderNode.getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNode, assignment));\r\n }\r\n }\r\n }\r\n\r\n // Assign to default material if none found\r\n if (this._materials.length == 0)\r\n {\r\n const defaultNode = Material.createFallbackMaterial(doc);\r\n this._materials.push(new MaterialAssign(defaultNode, ALL_GEOMETRY_SPECIFIER));\r\n }\r\n\r\n // Create a new shader for each material node.\r\n // Only create the shader once even if assigned more than once.\r\n var startGenTime = performance.now();\r\n let shaderMap = new Map();\r\n let closeUI = false;\r\n for (let matassign of this._materials)\r\n {\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n let shader = shaderMap[materialName];\r\n if (!shader)\r\n {\r\n shader = viewer.getMaterial().generateMaterial(matassign, viewer, searchPath, closeUI);\r\n shaderMap[materialName] = shader;\r\n }\r\n matassign.setShader(shader);\r\n closeUI = true;\r\n }\r\n console.log(\"- Generate (\", this._materials.length, \") shader(s) time: \", performance.now() - startGenTime, \" ms.\",);\r\n\r\n // Update scene shader assignments\r\n this.updateMaterialAssignments(viewer, this._soloMaterial);\r\n\r\n // Mark transform update\r\n viewer.getScene().setUpdateTransforms();\r\n\r\n console.log(\"Total material time: \", (performance.now() - startTime), \"ms\");\r\n }\r\n\r\n //\r\n // Update the assignments for scene objects based on the\r\n // material assignment information stored in the viewer.\r\n // Note: If none of the MaterialX assignments match the geometry\r\n // in the scene, then the first material assignment shader is assigned\r\n // to the entire scene.\r\n //\r\n async updateMaterialAssignments(viewer, soloMaterial)\r\n {\r\n console.log(\"Update material assignments. Solo=\", soloMaterial);\r\n var startTime = performance.now();\r\n\r\n let assigned = 0;\r\n let assignedSolo = false;\r\n for (let matassign of this._materials)\r\n {\r\n if (matassign.getShader())\r\n {\r\n if (soloMaterial.length)\r\n {\r\n if (matassign.getMaterial().getNamePath() == soloMaterial)\r\n {\r\n let temp = matassign.getGeometry();\r\n matassign.setGeometry(ALL_GEOMETRY_SPECIFIER);\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n matassign.setGeometry(temp);\r\n assignedSolo = true;\r\n break\r\n }\r\n }\r\n else\r\n {\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n }\r\n }\r\n }\r\n if (assigned == 0 && this._materials.length)\r\n {\r\n this._defaultMaterial = new MaterialAssign(this._materials[0].getMaterial(), ALL_GEOMETRY_SPECIFIER);\r\n this._defaultMaterial.setShader(this._materials[0].getShader());\r\n viewer.getScene().updateMaterial(this._defaultMaterial);\r\n }\r\n\r\n if (assigned > 0)\r\n {\r\n console.log('Material assignment time: ', performance.now() - startTime, \" ms.\");\r\n }\r\n }\r\n\r\n // \r\n // Generate a new material for a given element\r\n //\r\n generateMaterial(matassign, viewer, searchPath, closeUI)\r\n {\r\n var elem = matassign.getMaterial();\r\n\r\n var startGenerateMat = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n const textureLoader = new three__WEBPACK_IMPORTED_MODULE_1__.TextureLoader();\r\n\r\n const lights = viewer.getLights();\r\n const lightData = viewer.getLightData();\r\n const radianceTexture = viewer.getRadianceTexture();\r\n const irradianceTexture = viewer.getIrradianceTexture();\r\n const gen = viewer.getGenerator();\r\n const genContext = viewer.getGenContext();\r\n\r\n // Perform transparency check on renderable item\r\n var startTranspCheckTime = performance.now();\r\n const isTransparent = mx.isTransparentSurface(elem, gen.getTarget());\r\n genContext.getOptions().hwTransparency = isTransparent;\r\n // Always set to complete. \r\n // Can consider option to set to reduced as the parsing of large numbers of uniforms (e.g. on shading models)\r\n // can be quite expensive.\r\n if (this._shaderInterfaceType == 0)\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_REDUCED;\r\n else\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_COMPLETE;\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Transparency check time: \", performance.now() - startTranspCheckTime, \"ms\");\r\n\r\n // Generate GLES code\r\n var startMTLXGenTime = performance.now();\r\n let shader = gen.generate(elem.getNamePath(), elem, genContext);\r\n if (logDetailedTime)\r\n console.log(\" - MaterialX gen time: \", performance.now() - startMTLXGenTime, \"ms\");\r\n\r\n var startUniformUpdate = performance.now();\r\n\r\n // Get shaders and uniform values\r\n let vShader = shader.getSourceCode(\"vertex\");\r\n let fShader = shader.getSourceCode(\"pixel\");\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n let uniforms = {\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('vertex'), textureLoader, searchPath, flipV),\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('pixel'), textureLoader, searchPath, flipV),\r\n }\r\n\r\n Object.assign(uniforms, {\r\n u_numActiveLightSources: { value: lights.length}, //value: lights.length },\r\n u_lightData: { value: lightData },\r\n u_envMatrix: { value: (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getLightRotation)() },\r\n u_envRadiance: { value: radianceTexture },\r\n u_envRadianceMips: { value: Math.trunc(Math.log2(Math.max(radianceTexture.image.width, radianceTexture.image.height))) + 1 },\r\n u_envRadianceSamples: { value: 2 },\r\n u_envIrradiance: { value: irradianceTexture },\r\n u_refractionEnv: { value: false }\r\n });\r\n\r\n // Create Three JS Material\r\n let newMaterial = new three__WEBPACK_IMPORTED_MODULE_1__.RawShaderMaterial({\r\n uniforms: uniforms,\r\n vertexShader: vShader,\r\n fragmentShader: fShader,\r\n transparent: isTransparent,\r\n blendEquation: three__WEBPACK_IMPORTED_MODULE_1__.AddEquation,\r\n blendSrc: three__WEBPACK_IMPORTED_MODULE_1__.OneMinusSrcAlphaFactor,\r\n blendDst: three__WEBPACK_IMPORTED_MODULE_1__.SrcAlphaFactor,\r\n side: three__WEBPACK_IMPORTED_MODULE_1__.DoubleSide\r\n });\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Three material update time: \", performance.now() - startUniformUpdate, \"ms\");\r\n\r\n // Update property editor\r\n const gui = viewer.getEditor().getGUI();\r\n this.updateEditor(matassign, shader, newMaterial, gui, closeUI, viewer);\r\n\r\n if (logDetailedTime)\r\n console.log(\"- Per material generate time: \", performance.now() - startGenerateMat, \"ms\");\r\n\r\n return newMaterial;\r\n }\r\n\r\n clearSoloMaterialUI()\r\n {\r\n for (let i = 0; i < this._materials.length; ++i)\r\n {\r\n let matassign = this._materials[i];\r\n let matUI = matassign.getMaterialUI();\r\n if (matUI)\r\n {\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n matTitle.classList.remove('peditor_material_assigned');\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n img.src = 'public/shader_ball.svg';\r\n //matTitle.classList.remove('peditor_material_unassigned');\r\n }\r\n }\r\n }\r\n\r\n static updateSoloMaterial(viewer, elemPath, materials, event)\r\n {\r\n // Prevent the event from being passed to parent folder\r\n event.stopPropagation();\r\n\r\n for (let i = 0; i < materials.length; ++i)\r\n {\r\n let matassign = materials[i];\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n var matUI = matassign.getMaterialUI();\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (materialName == elemPath)\r\n {\r\n if (this._soloMaterial == elemPath)\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n this._soloMaterial = \"\";\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball2.svg';\r\n matTitle.classList.add('peditor_material_assigned');\r\n this._soloMaterial = elemPath;\r\n }\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n }\r\n }\r\n viewer.getMaterial().updateMaterialAssignments(viewer, \"\");\r\n viewer.getScene().setUpdateTransforms();\r\n }\r\n\r\n //\r\n // Update property editor for a given MaterialX element, it's shader, and\r\n // Three material\r\n //\r\n updateEditor(matassign, shader, material, gui, closeUI, viewer)\r\n {\r\n var elem = matassign.getMaterial();\r\n var materials = this._materials;\r\n\r\n const DEFAULT_MIN = 0;\r\n const DEFAULT_MAX = 100;\r\n\r\n var startTime = performance.now();\r\n\r\n const elemPath = elem.getNamePath();\r\n\r\n // Create and cache associated UI\r\n var matUI = gui.addFolder(elemPath);\r\n matassign.setMaterialUI(matUI);\r\n\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n // Add a icon to the title to allow for assigning the material to geometry\r\n // Clicking on the icon will \"solo\" the material to the geometry.\r\n // Clicking on the title will open/close the material folder.\r\n matTitle.innerHTML = \"\" + elem.getNamePath();\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (img)\r\n {\r\n // Add event listener to icon to call updateSoloMaterial function\r\n img.addEventListener('click', function (event)\r\n {\r\n Material.updateSoloMaterial(viewer, elemPath, materials, event);\r\n });\r\n }\r\n\r\n if (closeUI)\r\n {\r\n matUI.close();\r\n }\r\n const uniformBlocks = Object.values(shader.getStage('pixel').getUniformBlocks());\r\n var uniformToUpdate;\r\n const ignoreList = ['u_envRadianceMips', 'u_envRadianceSamples', 'u_alphaThreshold'];\r\n\r\n var folderList = new Map();\r\n folderList[elemPath] = matUI;\r\n\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n let name = variable.getVariable();\r\n\r\n if (ignoreList.includes(name))\r\n {\r\n continue;\r\n }\r\n\r\n let currentFolder = matUI;\r\n let currentElemPath = variable.getPath();\r\n if (!currentElemPath || currentElemPath.length == 0)\r\n {\r\n continue;\r\n }\r\n let currentElem = elem.getDocument().getDescendant(currentElemPath);\r\n if (!currentElem)\r\n {\r\n continue;\r\n }\r\n\r\n let currentNode = null;\r\n if (currentElem.getParent() && currentElem.getParent().getNamePath() != \"\")\r\n {\r\n currentNode = currentElem.getParent();\r\n }\r\n let uiname = \"\";\r\n let nodeDefInput = null;\r\n if (currentNode)\r\n {\r\n\r\n let currentNodePath = currentNode.getNamePath();\r\n var pathSplit = currentNodePath.split('/');\r\n if (pathSplit.length)\r\n {\r\n currentNodePath = pathSplit[0];\r\n }\r\n currentFolder = folderList[currentNodePath];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(currentNodePath);\r\n folderList[currentNodePath] = currentFolder;\r\n }\r\n\r\n // Check for ui attributes\r\n var nodeDef = currentNode.getNodeDef();\r\n if (nodeDef)\r\n {\r\n // Remove node name from shader uniform name for non root nodes\r\n let lookup_name = name.replace(currentNode.getName() + '_', '');\r\n nodeDefInput = nodeDef.getActiveInput(lookup_name);\r\n if (nodeDefInput)\r\n {\r\n uiname = nodeDefInput.getAttribute('uiname');\r\n let uifolderName = nodeDefInput.getAttribute('uifolder');\r\n if (uifolderName && uifolderName.length)\r\n {\r\n let newFolderName = currentNodePath + '/' + uifolderName;\r\n currentFolder = folderList[newFolderName];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(uifolderName);\r\n currentFolder.domElement.classList.add('peditorfolder');\r\n folderList[newFolderName] = currentFolder;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Determine UI name to use\r\n let path = name;\r\n let interfaceName = currentElem.getAttribute(\"interfacename\");\r\n if (interfaceName && interfaceName.length)\r\n {\r\n const graph = currentNode.getParent();\r\n if (graph)\r\n {\r\n const graphInput = graph.getInput(interfaceName);\r\n if (graphInput)\r\n {\r\n let uiname = graphInput.getAttribute('uiname');\r\n if (uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n else\r\n {\r\n path = graphInput.getName();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n path = interfaceName;\r\n }\r\n }\r\n else\r\n {\r\n if (!uiname)\r\n {\r\n uiname = currentElem.getAttribute('uiname');\r\n }\r\n if (uiname && uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n }\r\n\r\n switch (variable.getType().getName())\r\n {\r\n case 'float':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseFloat(nodeDefInput.getAttribute('uistep'));\r\n }\r\n if (step == 0)\r\n {\r\n step = (maxValue - minValue) / 1000.0;\r\n }\r\n const w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'integer':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n var enumList = []\r\n var enumValues = []\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('enum'))\r\n {\r\n // Get enum and enum values attributes (if present)\r\n enumList = nodeDefInput.getAttribute('enum').split(',');\r\n if (nodeDefInput.hasAttribute('enumvalues'))\r\n {\r\n enumValues = nodeDefInput.getAttribute('enumvalues').split(',').map(Number);\r\n }\r\n }\r\n else\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseInt(nodeDefInput.getAttribute('uistep'));\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n if (step == 0)\r\n {\r\n step = 1 / (maxValue - minValue);\r\n step = Math.ceil(step);\r\n if (step == 0)\r\n {\r\n step = 1;\r\n }\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n else\r\n {\r\n // Map enumList strings to values\r\n // Map to 0..N if no values are specified via enumvalues attribute\r\n if (enumValues.length == 0)\r\n {\r\n for (let i = 0; i < enumList.length; ++i)\r\n {\r\n enumValues.push(i);\r\n }\r\n }\r\n const enumeration = {};\r\n enumList.forEach((str, index) =>\r\n {\r\n enumeration[str] = enumValues[index];\r\n });\r\n\r\n // Function to handle enum drop-down\r\n function handleDropdownChange(value)\r\n {\r\n if (material.uniforms[name])\r\n {\r\n material.uniforms[name].value = value;\r\n }\r\n }\r\n const defaultOption = enumList[value]; // Set the default selected option\r\n const dropdownController = currentFolder.add(enumeration, defaultOption, enumeration).name(path);\r\n dropdownController.onChange(handleDropdownChange);\r\n dropdownController.domElement.classList.add('peditoritem');\r\n }\r\n }\r\n break;\r\n\r\n case 'boolean':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value').name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'vector2':\r\n case 'vector3':\r\n case 'vector4':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = [DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN];\r\n var maxValue = [DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX];\r\n var step = [0, 0, 0, 0];\r\n\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = nodeDefInput.getAttribute('uisoftmin').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = nodeDefInput.getAttribute('uimin').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = nodeDefInput.getAttribute('uisoftmax').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = nodeDefInput.getAttribute('uimax').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = nodeDefInput.getAttribute('uistep').split(',').map(Number);\r\n }\r\n for (let i = 0; i < 4; ++i)\r\n {\r\n if (step[i] == 0)\r\n {\r\n step[i] = 1 / (maxValue[i] - minValue[i]);\r\n }\r\n }\r\n\r\n const keyString = [\"x\", \"y\", \"z\", \"w\"];\r\n let vecFolder = currentFolder.addFolder(path);\r\n Object.keys(material.uniforms[name].value).forEach((key) =>\r\n {\r\n let w = vecFolder.add(material.uniforms[name].value,\r\n key, minValue[key], maxValue[key], step[key]).name(keyString[key]);\r\n w.domElement.classList.add('peditoritem');\r\n })\r\n }\r\n break;\r\n\r\n case 'color3':\r\n // Irksome way to map arrays to colors and back\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var dummy =\r\n {\r\n color: 0xFF0000\r\n };\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(dummy.color);\r\n color3.fromArray(material.uniforms[name].value);\r\n dummy.color = color3.getHex();\r\n let w = currentFolder.addColor(dummy, 'color').name(path)\r\n .onChange(function (value)\r\n {\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(value);\r\n material.uniforms[name].value.set(color3.toArray());\r\n });\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'color4':\r\n break;\r\n\r\n case 'matrix33':\r\n case 'matrix44':\r\n case 'samplerCube':\r\n case 'filename':\r\n break;\r\n case 'string':\r\n console.log('String: ', name);\r\n if (value != null)\r\n {\r\n var dummy =\r\n {\r\n thevalue: value\r\n }\r\n let item = currentFolder.add(dummy, 'thevalue');\r\n item.name(path);\r\n item.disable(true);\r\n item.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n\r\n if (logDetailedTime)\r\n {\r\n console.log(\" - Editor update time: \", performance.now() - startTime, \"ms\");\r\n }\r\n }\r\n\r\n // List of material assignments: { MaterialX node, geometry assignment string, and hardware shader }\r\n _materials;\r\n\r\n // Fallback material if nothing was assigned explicitly\r\n _defaultMaterial;\r\n}\r\n\r\n/*\r\n Viewer class\r\n\r\n Keeps track of local scene, and property editor as well as current MaterialX document \r\n and assocaited material, shader and lighting information.\r\n*/\r\nclass Viewer\r\n{\r\n static create()\r\n {\r\n return new Viewer();\r\n }\r\n\r\n constructor()\r\n {\r\n this.scene = new Scene();\r\n this.editor = new Editor();\r\n this.materials.push(new Material());\r\n\r\n this.fileLoader = new three__WEBPACK_IMPORTED_MODULE_1__.FileLoader();\r\n this.hdrLoader = new three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__.RGBELoader();\r\n }\r\n\r\n //\r\n // Create shader generator, generation context and \"base\" document which\r\n // contains the standard definition libraries and lighting elements.\r\n //\r\n async initialize(mtlxIn, renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n this.mx = mtlxIn;\r\n\r\n // Initialize base document\r\n this.generator = new this.mx.EsslShaderGenerator();\r\n this.genContext = new this.mx.GenContext(this.generator);\r\n\r\n this.document = this.mx.createDocument();\r\n this.stdlib = this.mx.loadStandardLibraries(this.genContext);\r\n this.document.importLibrary(this.stdlib);\r\n\r\n this.initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml);\r\n\r\n radianceTexture.mapping = three__WEBPACK_IMPORTED_MODULE_1__.EquirectangularReflectionMapping;\r\n this.getScene().setBackgroundTexture(radianceTexture);\r\n }\r\n\r\n //\r\n // Load in lighting rig document and register lights with generation context\r\n // Initialize environment lighting (IBLs).\r\n //\r\n async initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n // Load lighting setup into document\r\n const mx = this.getMx();\r\n this.lightRigDoc = mx.createDocument();\r\n await mx.readFromXmlString(this.lightRigDoc, lightRigXml);\r\n this.document.importLibrary(this.lightRigDoc);\r\n\r\n // Register lights with generation context\r\n this.lights = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.findLights)(this.document);\r\n this.lightData = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.registerLights)(mx, this.lights, this.genContext);\r\n\r\n this.radianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(radianceTexture, renderer.capabilities);\r\n this.irradianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(irradianceTexture, renderer.capabilities);\r\n }\r\n\r\n getEditor()\r\n {\r\n return this.editor;\r\n }\r\n\r\n getScene()\r\n {\r\n return this.scene;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this.materials[0];\r\n }\r\n\r\n getFileLoader()\r\n {\r\n return this.fileLoader;\r\n }\r\n\r\n getHdrLoader()\r\n {\r\n return this.hdrLoader;\r\n }\r\n\r\n setDocument(doc)\r\n {\r\n this.doc = doc;\r\n }\r\n getDocument()\r\n {\r\n return this.doc;\r\n }\r\n\r\n getLibrary()\r\n {\r\n return this.stdlib;\r\n }\r\n\r\n getLightRig()\r\n {\r\n return this.lightRigDoc;\r\n }\r\n\r\n getMx()\r\n {\r\n return this.mx;\r\n }\r\n\r\n getGenerator()\r\n {\r\n return this.generator;\r\n }\r\n\r\n getGenContext()\r\n {\r\n return this.genContext;\r\n }\r\n\r\n getLights()\r\n {\r\n return this.lights;\r\n }\r\n\r\n getLightData()\r\n {\r\n return this.lightData;\r\n }\r\n\r\n getRadianceTexture()\r\n {\r\n return this.radianceTexture;\r\n }\r\n\r\n getIrradianceTexture()\r\n {\r\n return this.irradianceTexture;\r\n }\r\n\r\n // Three scene and materials. \r\n scene = null;\r\n materials = [];\r\n\r\n // Property editor\r\n editor = null;\r\n\r\n // Utility loaders\r\n fileloader = null;\r\n hdrLoader = null;\r\n\r\n // MaterialX module, current document and support documents.\r\n mx = null;\r\n doc = null;\r\n stdlib = null;\r\n lightRigDoc = null;\r\n\r\n // MaterialX code generator and context\r\n generator = null;\r\n genContext = null;\r\n\r\n // Lighting information\r\n lights = null;\r\n lightData = null;\r\n radianceTexture = null;\r\n irradianceTexture = null;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Swatch-Viewer/./source/viewer.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* binding */ Editor),\n/* harmony export */ Material: () => (/* binding */ Material),\n/* harmony export */ Scene: () => (/* binding */ Scene),\n/* harmony export */ Viewer: () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n/* harmony import */ var three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! three/examples/jsm/loaders/GLTFLoader */ \"./node_modules/three/examples/jsm/loaders/GLTFLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! three/examples/jsm/loaders/ObjLoader */ \"./node_modules/three/examples/jsm/loaders/ObjLoader.js\");\n/* harmony import */ var three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! three/examples/jsm/loaders/RGBELoader.js */ \"./node_modules/three/examples/jsm/loaders/RGBELoader.js\");\n/* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ \"./source/helper.js\");\n/* harmony import */ var lil_gui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lil-gui */ \"./node_modules/lil-gui/dist/lil-gui.esm.js\");\n//\r\n// Copyright Contributors to the MaterialX Project\r\n// SPDX-License-Identifier: Apache-2.0\r\n//\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst ALL_GEOMETRY_SPECIFIER = \"*\";\r\nconst NO_GEOMETRY_SPECIFIER = \"\";\r\nconst DAG_PATH_SEPERATOR = \"/\";\r\n\r\n// Logging toggle\r\nvar logDetailedTime = false;\r\n\r\n/*\r\n Scene management\r\n*/\r\nclass Scene\r\n{\r\n constructor()\r\n {\r\n this._geometryURL = new URLSearchParams(document.location.search).get(\"geom\");\r\n if (!this._geometryURL)\r\n {\r\n this._geometryURL = 'Geometry/teapot.glb';\r\n }\r\n }\r\n\r\n initialize()\r\n {\r\n this._scene = new three__WEBPACK_IMPORTED_MODULE_1__.Scene();\r\n this._scene.background = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n this._scene.background.convertSRGBToLinear();\r\n\r\n let cc = document.getElementById('webglcanvas');\r\n console.log('cc: ', cc)\r\n const aspectRatio = cc.width / cc.height;\r\n const cameraNearDist = 0.01;\r\n const cameraFarDist = 1000.0;\r\n const cameraFOV = 60.0;\r\n this._camera = new three__WEBPACK_IMPORTED_MODULE_1__.PerspectiveCamera(cameraFOV, aspectRatio, cameraNearDist, cameraFarDist);\r\n\r\n this.#_gltfLoader = new three_examples_jsm_loaders_GLTFLoader__WEBPACK_IMPORTED_MODULE_2__.GLTFLoader();\r\n this.#_objLoader = new three_examples_jsm_loaders_ObjLoader__WEBPACK_IMPORTED_MODULE_3__.OBJLoader();\r\n\r\n this.#_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n this.#_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n this.#_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n }\r\n\r\n // Set whether to flip UVs in V for loaded geometry\r\n setFlipGeometryV(val)\r\n {\r\n this.#_flipV = val;\r\n }\r\n\r\n // Get whether to flip UVs in V for loaded geometry\r\n getFlipGeometryV()\r\n {\r\n return this.#_flipV;\r\n }\r\n\r\n // Utility to perform geometry file load\r\n loadGeometryFile(geometryFilename, loader)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n if (loader) \r\n {\r\n console.log(\"Load geometry: \", geometryFilename); \r\n loader.load(geometryFilename, data => resolve(data), null, reject);\r\n }\r\n });\r\n }\r\n\r\n //\r\n // Load in geometry specified by a given file name,\r\n // then update the scene geometry and camera.\r\n //\r\n async loadGeometry(viewer, orbitControls)\r\n {\r\n var startTime = performance.now();\r\n var geomLoadTime = startTime;\r\n\r\n var gltfData = null;\r\n if (this.getGeometryURL().endsWith('glb'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n else if (this.getGeometryURL().endsWith('obj'))\r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_objLoader);\r\n else \r\n gltfData = await this.loadGeometryFile(this.getGeometryURL(), this.#_gltfLoader);\r\n\r\n if (gltfData == null)\r\n {\r\n console.log(\"Failed to load geometry: \", this.getGeometryURL());\r\n return;\r\n }\r\n\r\n const scene = this.getScene();\r\n while (scene.children.length > 0)\r\n {\r\n scene.remove(scene.children[0]);\r\n }\r\n\r\n this.#_rootNode = null;\r\n const model = gltfData.scene;\r\n if (!model)\r\n {\r\n const geometry = new three__WEBPACK_IMPORTED_MODULE_1__.BoxGeometry(1, 1, 1);\r\n const material = new three__WEBPACK_IMPORTED_MODULE_1__.MeshBasicMaterial({ color: 0xdddddd });\r\n const cube = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(geometry, material);\r\n obj = new three__WEBPACK_IMPORTED_MODULE_1__.Group();\r\n obj.add(geometry);\r\n }\r\n else\r\n {\r\n this.#_rootNode = model;\r\n }\r\n scene.add(model);\r\n\r\n // Always reset controls based on camera for each load. \r\n orbitControls.reset();\r\n console.log(\"- Scene load time: \", performance.now() - geomLoadTime, \"ms\");\r\n\r\n console.log(\"Total geometry load time: \", performance.now() - startTime, \" ms.\");\r\n\r\n viewer.getMaterial().clearSoloMaterialUI();\r\n viewer.getMaterial().updateMaterialAssignments(viewer, viewer.getMaterial().getSoloMaterial());\r\n this.setUpdateTransforms();\r\n\r\n this.updateScene(viewer, orbitControls);\r\n }\r\n\r\n //\r\n // Update the geometry buffer, assigned materials, and camera controls.\r\n //\r\n updateScene(viewer, orbitControls)\r\n {\r\n var startUpdateSceneTime = performance.now();\r\n var uvTime = 0;\r\n var normalTime = 0;\r\n var tangentTime = 0;\r\n var streamTime = 0;\r\n var bboxTime = 0;\r\n\r\n var startBboxTime = performance.now();\r\n const bbox = new three__WEBPACK_IMPORTED_MODULE_1__.Box3().setFromObject(this._scene);\r\n const bsphere = new three__WEBPACK_IMPORTED_MODULE_1__.Sphere();\r\n bbox.getBoundingSphere(bsphere);\r\n bboxTime = performance.now() - startBboxTime;\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n\r\n\r\n this._scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n var startUVTime = performance.now();\r\n if (!child.geometry.attributes.uv)\r\n {\r\n const posCount = child.geometry.attributes.position.count;\r\n const uvs = [];\r\n const pos = child.geometry.attributes.position.array;\r\n\r\n for (let i = 0; i < posCount; i++)\r\n {\r\n uvs.push((pos[i * 3] - bsphere.center.x) / bsphere.radius);\r\n uvs.push((pos[i * 3 + 1] - bsphere.center.y) / bsphere.radius);\r\n }\r\n\r\n child.geometry.setAttribute('uv', new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(new Float32Array(uvs), 2));\r\n }\r\n else if (flipV)\r\n {\r\n const uvCount = child.geometry.attributes.position.count;\r\n const uvs = child.geometry.attributes.uv.array;\r\n for (let i = 0; i < uvCount; i++)\r\n {\r\n let v = 1.0 - (uvs[i * 2 + 1]);\r\n uvs[i * 2 + 1] = v;\r\n }\r\n }\r\n uvTime += performance.now() - startUVTime;\r\n\r\n if (!child.geometry.attributes.normal)\r\n {\r\n var startNormalTime = performance.new();\r\n child.geometry.computeVertexNormals();\r\n normalTime += performance.now() - startNormalTime;\r\n }\r\n\r\n if (child.geometry.getIndex())\r\n {\r\n if (!child.geometry.attributes.tangent)\r\n {\r\n var startTangentTime = performance.now();\r\n child.geometry.computeTangents();\r\n tangentTime += performance.now() - startTangentTime;\r\n }\r\n }\r\n\r\n // Use default MaterialX naming convention.\r\n var startStreamTime = performance.now();\r\n child.geometry.attributes.i_position = child.geometry.attributes.position;\r\n child.geometry.attributes.i_normal = child.geometry.attributes.normal;\r\n child.geometry.attributes.i_tangent = child.geometry.attributes.tangent;\r\n child.geometry.attributes.i_texcoord_0 = child.geometry.attributes.uv;\r\n streamTime += performance.now() - startStreamTime;\r\n }\r\n });\r\n\r\n console.log(\"- Stream update time: \", performance.now() - startUpdateSceneTime, \"ms\");\r\n if (logDetailedTime)\r\n {\r\n console.log(' - UV time: ', uvTime);\r\n console.log(' - Normal time: ', normalTime);\r\n console.log(' - Tangent time: ', tangentTime);\r\n console.log(' - Stream Update time: ', streamTime);\r\n console.log(' - Bounds compute time: ', bboxTime);\r\n }\r\n\r\n // Update the background\r\n this._scene.background = this.getBackground();\r\n\r\n //console.log('bounding sphere:', bsphere.center, bsphere.radius);\r\n\r\n // Fit camera to model\r\n const camera = this.getCamera();\r\n camera.position.y = bsphere.center.y;\r\n camera.position.z = bsphere.radius * 2.0;\r\n camera.updateProjectionMatrix();\r\n\r\n orbitControls.target = bsphere.center;\r\n orbitControls.update();\r\n }\r\n\r\n setUpdateTransforms()\r\n {\r\n this.#_updateTransforms = true;\r\n }\r\n\r\n updateTransforms()\r\n {\r\n // Only update on demand versus continuously.\r\n // Call setUpdateTransforms() to trigger an update here.\r\n // Required for: scene geometry, camera change and viewport resize. \r\n if (!this.#_updateTransforms)\r\n {\r\n return;\r\n }\r\n this.#_updateTransforms = false;\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const uniforms = child.material.uniforms;\r\n if (uniforms)\r\n {\r\n uniforms.u_worldMatrix.value = child.matrixWorld;\r\n uniforms.u_viewProjectionMatrix.value = this.#_viewProjMat.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);\r\n\r\n if (uniforms.u_viewPosition)\r\n uniforms.u_viewPosition.value = camera.getWorldPosition(this.#_worldViewPos);\r\n\r\n if (uniforms.u_worldInverseTransposeMatrix)\r\n uniforms.u_worldInverseTransposeMatrix.value =\r\n new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4().setFromMatrix3(this.#_normalMat.getNormalMatrix(child.matrixWorld));\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Determine string DAG path based on individual node names.\r\n getDagPath(node)\r\n {\r\n const rootNode = this.#_rootNode;\r\n\r\n let path = [node.name];\r\n while (node.parent)\r\n {\r\n node = node.parent;\r\n if (node)\r\n {\r\n // Stop at the root of the scene read in.\r\n if (node == rootNode)\r\n {\r\n break;\r\n }\r\n path.unshift(node.name);\r\n }\r\n }\r\n return path;\r\n }\r\n\r\n // Assign material shader to associated geometry\r\n updateMaterial(matassign)\r\n {\r\n let assigned = 0;\r\n\r\n const shader = matassign.getShader();\r\n const material = matassign.getMaterial().getName();\r\n const geometry = matassign.getGeometry();\r\n const collection = matassign.getCollection();\r\n\r\n const scene = this.getScene();\r\n const camera = this.getCamera();\r\n scene.traverse((child) =>\r\n {\r\n if (child.isMesh)\r\n {\r\n const dagPath = this.getDagPath(child).join('/');\r\n\r\n // Note that this is a very simplistic\r\n // assignment resolve and assumes basic\r\n // regular expression name match.\r\n let matches = (geometry == ALL_GEOMETRY_SPECIFIER);\r\n if (!matches)\r\n {\r\n if (collection)\r\n {\r\n if (collection.matchesGeomString(dagPath))\r\n {\r\n matches = true;\r\n }\r\n }\r\n else\r\n {\r\n if (geometry != NO_GEOMETRY_SPECIFIER)\r\n {\r\n const paths = geometry.split(',');\r\n for (let path of paths)\r\n {\r\n if (dagPath.match(path))\r\n {\r\n matches = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (matches)\r\n {\r\n child.material = shader;\r\n assigned++;\r\n }\r\n }\r\n });\r\n\r\n return assigned;\r\n }\r\n\r\n updateCamera()\r\n {\r\n const camera = this.getCamera();\r\n let container = document.getElementById('canvasContainer');\r\n var maxWidth = 4086;\r\n var maxHeight = 1024;\r\n var width = Math.min(container.clientWidth, maxWidth);\r\n var height = Math.min(container.clientHeight, maxHeight); \r\n\r\n camera.aspect = width / height;\r\n camera.updateProjectionMatrix();\r\n }\r\n\r\n getScene()\r\n {\r\n return this._scene;\r\n }\r\n\r\n getCamera()\r\n {\r\n return this._camera;\r\n }\r\n\r\n getGeometryURL()\r\n {\r\n return this._geometryURL;\r\n }\r\n\r\n setGeometryURL(url)\r\n {\r\n this._geometryURL = url;\r\n }\r\n\r\n setBackgroundTexture(texture)\r\n {\r\n this.#_backgroundTexture = texture;\r\n }\r\n\r\n getShowBackgroundTexture()\r\n {\r\n return this.#_showBackgroundTexture;\r\n }\r\n\r\n setShowBackgroundTexture(enable)\r\n {\r\n this.#_showBackgroundTexture = enable;\r\n }\r\n\r\n getBackground()\r\n {\r\n if (this.#_backgroundTexture && this.#_showBackgroundTexture)\r\n {\r\n return this.#_backgroundTexture;\r\n }\r\n var color = new three__WEBPACK_IMPORTED_MODULE_1__.Color(this.#_backgroundColor);\r\n color.convertSRGBToLinear();\r\n return color;\r\n }\r\n\r\n toggleBackgroundTexture()\r\n {\r\n this.#_showBackgroundTexture = !this.#_showBackgroundTexture;\r\n this._scene.background = this.getBackground();\r\n }\r\n\r\n // Geometry file\r\n #_geometryURL = '';\r\n // Geometry loaders\r\n #_gltfLoader = null;\r\n #_objLoader = null;\r\n // Flip V coordinate of texture coordinates.\r\n // Set to true to be consistent with desktop viewer.\r\n #_flipV = true;\r\n\r\n // Scene\r\n #_scene = null;\r\n\r\n // Camera\r\n #_camera = null;\r\n\r\n // Background color\r\n #_backgroundColor = 0xAcAdBB;\r\n\r\n // Background texture\r\n #_backgroundTexture = null;\r\n #_showBackgroundTexture = false;\r\n\r\n // Transform matrices\r\n #_normalMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix3();\r\n #_viewProjMat = new three__WEBPACK_IMPORTED_MODULE_1__.Matrix4();\r\n #_worldViewPos = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3();\r\n #_updateTransforms = true;\r\n\r\n // Root node of imported scene\r\n #_rootNode = null;\r\n}\r\n\r\n/* \r\n Property editor\r\n*/\r\nclass Editor\r\n{\r\n // Initialize the editor, clearing any elements from previous materials.\r\n initialize()\r\n {\r\n Array.from(document.getElementsByClassName('lil-gui')).forEach(\r\n function (element, index, array)\r\n {\r\n if (element.className)\r\n {\r\n element.remove();\r\n }\r\n }\r\n );\r\n\r\n let parent = document.getElementById( 'webglcanvas' );\r\n //console.log('parent:', parent);\r\n this._gui = new lil_gui__WEBPACK_IMPORTED_MODULE_4__[\"default\"]( { title: \"Properties\" }, { container: parent } );\r\n //parent = this._gui.domElement;\r\n //console.log('gui parent:', parent);\r\n // Parent parent under webglcanvas\r\n //document.getElementById( 'webglcanvas' ).appendChild( parent );\r\n\r\n //this._gui = new GUI({ title: \"Property Editor\" });\r\n this._gui.close();\r\n this._gui.hide();\r\n }\r\n\r\n // Update ui properties\r\n // - Hide close button\r\n // - Update transparency so scene shows through if overlapping\r\n updateProperties(targetOpacity = 1)\r\n {\r\n // Set opacity\r\n Array.from(document.getElementsByClassName('dg')).forEach(\r\n function (element, index, array)\r\n {\r\n element.style.opacity = targetOpacity;\r\n }\r\n );\r\n }\r\n\r\n getGUI()\r\n {\r\n return this._gui;\r\n }\r\n\r\n _gui = null;\r\n}\r\n\r\nclass MaterialAssign\r\n{\r\n constructor(material, geometry, collection)\r\n {\r\n this._material = material;\r\n this._geometry = geometry;\r\n this._collection = collection;\r\n this._shader = null;\r\n this._materialUI = null;\r\n }\r\n\r\n setMaterialUI(value)\r\n {\r\n this._materialUI = value;\r\n }\r\n\r\n getMaterialUI()\r\n {\r\n return this._materialUI;\r\n }\r\n\r\n setShader(shader)\r\n {\r\n this._shader = shader;\r\n }\r\n\r\n getShader()\r\n {\r\n return this._shader;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this._material;\r\n }\r\n\r\n getGeometry()\r\n {\r\n return this._geometry;\r\n }\r\n\r\n setGeometry(value)\r\n {\r\n this._geometry = value;\r\n }\r\n\r\n getCollection()\r\n {\r\n return this._collection;\r\n }\r\n\r\n // MaterialX material node name\r\n _material;\r\n\r\n // MaterialX assignment geometry string\r\n _geometry;\r\n\r\n // MaterialX assignment collection\r\n _collection;\r\n\r\n // THREE.JS shader\r\n _shader;\r\n}\r\n\r\nclass Material\r\n{\r\n constructor()\r\n {\r\n this._materials = [];\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n this._shaderInterfaceType = 0;\r\n }\r\n\r\n clearMaterials()\r\n {\r\n this._materials.length = 0;\r\n this._defaultMaterial = null;\r\n this._soloMaterial = \"\";\r\n }\r\n\r\n setSoloMaterial(value)\r\n {\r\n this._soloMaterial = value;\r\n }\r\n\r\n getSoloMaterial()\r\n {\r\n return this._soloMaterial;\r\n }\r\n\r\n // If no material file is selected, we programmatically create a default material as a fallback\r\n static createFallbackMaterial(doc)\r\n {\r\n let ssNode = doc.getChild('Generated_Default_Shader');\r\n if (ssNode)\r\n {\r\n return ssNode;\r\n }\r\n const ssName = 'Generated_Default_Shader';\r\n ssNode = doc.addChildOfCategory('standard_surface', ssName);\r\n ssNode.setType('surfaceshader');\r\n const smNode = doc.addChildOfCategory('surfacematerial', 'Default');\r\n smNode.setType('material');\r\n const shaderElement = smNode.addInput('surfaceshader');\r\n shaderElement.setType('surfaceshader');\r\n shaderElement.setNodeName(ssName);\r\n\r\n return ssNode;\r\n }\r\n\r\n async loadMaterialFile(loader, materialFilename)\r\n {\r\n return new Promise((resolve, reject) =>\r\n {\r\n loader.load(materialFilename, data => resolve(data), null, reject);\r\n });\r\n }\r\n\r\n async loadMaterials(viewer, materialFilename)\r\n {\r\n const fileloader = viewer.getFileLoader();\r\n\r\n let mtlxMaterial = await viewer.getMaterial().loadMaterialFile(fileloader, materialFilename);\r\n\r\n this.loadMaterialFromString(viewer, mtlxMaterial, materialFilename);\r\n }\r\n\r\n async loadMaterialFromString(viewer, mtlxMaterial, materialFilename, searchPath)\r\n {\r\n var startTime = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n\r\n // Re-initialize document\r\n var startDocTime = performance.now();\r\n var doc = mx.createDocument();\r\n doc.importLibrary(viewer.getLibrary());\r\n if (!doc.validate())\r\n {\r\n console.log(\"MaterialX document validation failed.\");\r\n return;\r\n }\r\n\r\n viewer.setDocument(doc);\r\n\r\n // Load lighting setup into document\r\n doc.importLibrary(viewer.getLightRig());\r\n\r\n console.log(\"- Material document load time: \", performance.now() - startDocTime, \"ms.\");\r\n\r\n // Set search path. Assumes images are relative to current file\r\n // location.\r\n if (!materialFilename) materialFilename = \"/\";\r\n const paths = materialFilename.split('/');\r\n paths.pop();\r\n searchPath = '/javascript/shader_utilities/dist';\r\n console.log('Global search path: ', searchPath);\r\n\r\n // Load material\r\n if (mtlxMaterial)\r\n try { \r\n await mx.readFromXmlString(doc, mtlxMaterial, searchPath);\r\n }\r\n catch (error) {\r\n console.error('Error loading material file: ', error);\r\n }\r\n else\r\n Material.createFallbackMaterial(doc);\r\n\r\n // Check if there are any looks defined in the document\r\n // If so then traverse the looks for all material assignments.\r\n // Generate code and compile for any associated surface shader\r\n // and assign to the associated geometry. If there are no looks\r\n // then the first material is found and assignment to all the\r\n // geometry.\r\n this.clearMaterials();\r\n var looks = doc.getLooks();\r\n if (looks.length)\r\n {\r\n for (let look of looks)\r\n {\r\n const materialAssigns = look.getMaterialAssigns();\r\n for (let materialAssign of materialAssigns)\r\n {\r\n let matName = materialAssign.getMaterial();\r\n if (matName)\r\n {\r\n let mat = doc.getChild(matName);\r\n var shader;\r\n if (mat)\r\n {\r\n var shaders = mx.getShaderNodes(mat);\r\n if (shaders.length)\r\n {\r\n shader = shaders[0];\r\n }\r\n }\r\n let collection = materialAssign.getCollection();\r\n let geom = materialAssign.getGeom();\r\n let newAssignment;\r\n if (collection || geom)\r\n {\r\n // Remove leading \"/\" from collection and geom for \r\n // later assignment comparison checking\r\n if (collection && collection.charAt(0) == \"/\")\r\n {\r\n collection = collection.slice(1);\r\n }\r\n if (geom && geom.charAt(0) == \"/\")\r\n {\r\n geom = geom.slice(1);\r\n }\r\n newAssignment = new MaterialAssign(shader, geom, collection);\r\n }\r\n else\r\n {\r\n newAssignment = new MaterialAssign(shader, NO_GEOMETRY_SPECIFIER, null);\r\n }\r\n\r\n if (newAssignment)\r\n {\r\n this._materials.push(newAssignment);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // Search for any surface shaders. The first found\r\n // is assumed to be assigned to the entire scene\r\n // The identifier used is \"*\" to mean the entire scene. \r\n const materialNodes = doc.getMaterialNodes();\r\n let shaderList = [];\r\n let foundRenderable = false;\r\n for (let i = 0; i < materialNodes.length; ++i)\r\n {\r\n let materialNode = materialNodes[i];\r\n if (materialNode)\r\n {\r\n //console.log('Scan material: ', materialNode.getNamePath());\r\n let shaderNodes = mx.getShaderNodes(materialNode)\r\n if (shaderNodes.length > 0)\r\n {\r\n let shaderNodePath = shaderNodes[0].getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n //console.log('-- add shader: ', shaderNodePath);\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNodes[0], assignment));\r\n }\r\n }\r\n }\r\n }\r\n const nodeGraphs = doc.getNodeGraphs();\r\n for (let i = 0; i < nodeGraphs.length; ++i)\r\n {\r\n let nodeGraph = nodeGraphs[i];\r\n if (nodeGraph)\r\n {\r\n if (nodeGraph.hasAttribute('nodedef') || nodeGraph.hasSourceUri())\r\n {\r\n continue;\r\n }\r\n // Skip any nodegraph that is connected to something downstream\r\n if (nodeGraph.getDownstreamPorts().length > 0)\r\n {\r\n continue\r\n }\r\n let outputs = nodeGraph.getOutputs();\r\n for (let j = 0; j < outputs.length; ++j)\r\n {\r\n let output = outputs[j];\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n let newMat = new MaterialAssign(output, assignment, null);\r\n this._materials.push(newMat);\r\n }\r\n }\r\n }\r\n }\r\n const outputs = doc.getOutputs();\r\n for (let i = 0; i < outputs.length; ++i)\r\n {\r\n let output = outputs[i];\r\n if (output)\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n this._materials.push(new MaterialAssign(output, assignment));\r\n }\r\n }\r\n\r\n const shaderNodes = [];\r\n for (let i = 0; i < shaderNodes.length; ++i)\r\n {\r\n let shaderNode = shaderNodes[i];\r\n let shaderNodePath = shaderNode.getNamePath()\r\n if (!shaderList.includes(shaderNodePath))\r\n {\r\n let assignment = NO_GEOMETRY_SPECIFIER;\r\n if (foundRenderable == false)\r\n {\r\n assignment = ALL_GEOMETRY_SPECIFIER;\r\n foundRenderable = true;\r\n }\r\n shaderList.push(shaderNodePath);\r\n this._materials.push(new MaterialAssign(shaderNode, assignment));\r\n }\r\n }\r\n }\r\n\r\n // Assign to default material if none found\r\n if (this._materials.length == 0)\r\n {\r\n const defaultNode = Material.createFallbackMaterial(doc);\r\n this._materials.push(new MaterialAssign(defaultNode, ALL_GEOMETRY_SPECIFIER));\r\n }\r\n\r\n // Create a new shader for each material node.\r\n // Only create the shader once even if assigned more than once.\r\n var startGenTime = performance.now();\r\n let shaderMap = new Map();\r\n let closeUI = false;\r\n for (let matassign of this._materials)\r\n {\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n let shader = shaderMap[materialName];\r\n if (!shader)\r\n {\r\n shader = viewer.getMaterial().generateMaterial(matassign, viewer, searchPath, closeUI);\r\n shaderMap[materialName] = shader;\r\n }\r\n matassign.setShader(shader);\r\n closeUI = true;\r\n }\r\n console.log(\"- Generate (\", this._materials.length, \") shader(s) time: \", performance.now() - startGenTime, \" ms.\",);\r\n\r\n // Update scene shader assignments\r\n this.updateMaterialAssignments(viewer, this._soloMaterial);\r\n\r\n // Mark transform update\r\n viewer.getScene().setUpdateTransforms();\r\n\r\n console.log(\"Total material time: \", (performance.now() - startTime), \"ms\");\r\n }\r\n\r\n //\r\n // Update the assignments for scene objects based on the\r\n // material assignment information stored in the viewer.\r\n // Note: If none of the MaterialX assignments match the geometry\r\n // in the scene, then the first material assignment shader is assigned\r\n // to the entire scene.\r\n //\r\n async updateMaterialAssignments(viewer, soloMaterial)\r\n {\r\n console.log(\"Update material assignments. Solo=\", soloMaterial);\r\n var startTime = performance.now();\r\n\r\n let assigned = 0;\r\n let assignedSolo = false;\r\n for (let matassign of this._materials)\r\n {\r\n if (matassign.getShader())\r\n {\r\n if (soloMaterial.length)\r\n {\r\n if (matassign.getMaterial().getNamePath() == soloMaterial)\r\n {\r\n let temp = matassign.getGeometry();\r\n matassign.setGeometry(ALL_GEOMETRY_SPECIFIER);\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n matassign.setGeometry(temp);\r\n assignedSolo = true;\r\n break\r\n }\r\n }\r\n else\r\n {\r\n assigned += viewer.getScene().updateMaterial(matassign);\r\n }\r\n }\r\n }\r\n if (assigned == 0 && this._materials.length)\r\n {\r\n this._defaultMaterial = new MaterialAssign(this._materials[0].getMaterial(), ALL_GEOMETRY_SPECIFIER);\r\n this._defaultMaterial.setShader(this._materials[0].getShader());\r\n viewer.getScene().updateMaterial(this._defaultMaterial);\r\n }\r\n\r\n if (assigned > 0)\r\n {\r\n console.log('Material assignment time: ', performance.now() - startTime, \" ms.\");\r\n }\r\n }\r\n\r\n // \r\n // Generate a new material for a given element\r\n //\r\n generateMaterial(matassign, viewer, searchPath, closeUI)\r\n {\r\n var elem = matassign.getMaterial();\r\n\r\n var startGenerateMat = performance.now();\r\n\r\n const mx = viewer.getMx();\r\n const textureLoader = new three__WEBPACK_IMPORTED_MODULE_1__.TextureLoader();\r\n\r\n const lights = viewer.getLights();\r\n const lightData = viewer.getLightData();\r\n const radianceTexture = viewer.getRadianceTexture();\r\n const irradianceTexture = viewer.getIrradianceTexture();\r\n const gen = viewer.getGenerator();\r\n const genContext = viewer.getGenContext();\r\n\r\n // Perform transparency check on renderable item\r\n var startTranspCheckTime = performance.now();\r\n const isTransparent = mx.isTransparentSurface(elem, gen.getTarget());\r\n genContext.getOptions().hwTransparency = isTransparent;\r\n // Always set to complete. \r\n // Can consider option to set to reduced as the parsing of large numbers of uniforms (e.g. on shading models)\r\n // can be quite expensive.\r\n if (this._shaderInterfaceType == 0)\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_REDUCED;\r\n else\r\n genContext.getOptions().shaderInterfaceType = mx.ShaderInterfaceType.SHADER_INTERFACE_COMPLETE;\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Transparency check time: \", performance.now() - startTranspCheckTime, \"ms\");\r\n\r\n // Generate GLES code\r\n var startMTLXGenTime = performance.now();\r\n let shader = gen.generate(elem.getNamePath(), elem, genContext);\r\n if (logDetailedTime)\r\n console.log(\" - MaterialX gen time: \", performance.now() - startMTLXGenTime, \"ms\");\r\n\r\n var startUniformUpdate = performance.now();\r\n\r\n // Get shaders and uniform values\r\n let vShader = shader.getSourceCode(\"vertex\");\r\n let fShader = shader.getSourceCode(\"pixel\");\r\n\r\n let theScene = viewer.getScene();\r\n let flipV = theScene.getFlipGeometryV();\r\n let uniforms = {\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('vertex'), textureLoader, searchPath, flipV),\r\n ...(0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getUniformValues)(shader.getStage('pixel'), textureLoader, searchPath, flipV),\r\n }\r\n\r\n Object.assign(uniforms, {\r\n u_numActiveLightSources: { value: lights.length}, //value: lights.length },\r\n u_lightData: { value: lightData },\r\n u_envMatrix: { value: (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.getLightRotation)() },\r\n u_envRadiance: { value: radianceTexture },\r\n u_envRadianceMips: { value: Math.trunc(Math.log2(Math.max(radianceTexture.image.width, radianceTexture.image.height))) + 1 },\r\n u_envRadianceSamples: { value: 2 },\r\n u_envIrradiance: { value: irradianceTexture },\r\n u_refractionEnv: { value: false }\r\n });\r\n\r\n // Create Three JS Material\r\n let newMaterial = new three__WEBPACK_IMPORTED_MODULE_1__.RawShaderMaterial({\r\n uniforms: uniforms,\r\n vertexShader: vShader,\r\n fragmentShader: fShader,\r\n transparent: isTransparent,\r\n blendEquation: three__WEBPACK_IMPORTED_MODULE_1__.AddEquation,\r\n blendSrc: three__WEBPACK_IMPORTED_MODULE_1__.OneMinusSrcAlphaFactor,\r\n blendDst: three__WEBPACK_IMPORTED_MODULE_1__.SrcAlphaFactor,\r\n side: three__WEBPACK_IMPORTED_MODULE_1__.DoubleSide\r\n });\r\n\r\n if (logDetailedTime)\r\n console.log(\" - Three material update time: \", performance.now() - startUniformUpdate, \"ms\");\r\n\r\n // Update property editor\r\n const gui = viewer.getEditor().getGUI();\r\n this.updateEditor(matassign, shader, newMaterial, gui, closeUI, viewer);\r\n\r\n if (logDetailedTime)\r\n console.log(\"- Per material generate time: \", performance.now() - startGenerateMat, \"ms\");\r\n\r\n return newMaterial;\r\n }\r\n\r\n clearSoloMaterialUI()\r\n {\r\n for (let i = 0; i < this._materials.length; ++i)\r\n {\r\n let matassign = this._materials[i];\r\n let matUI = matassign.getMaterialUI();\r\n if (matUI)\r\n {\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n matTitle.classList.remove('peditor_material_assigned');\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n img.src = 'public/shader_ball.svg';\r\n //matTitle.classList.remove('peditor_material_unassigned');\r\n }\r\n }\r\n }\r\n\r\n static updateSoloMaterial(viewer, elemPath, materials, event)\r\n {\r\n // Prevent the event from being passed to parent folder\r\n event.stopPropagation();\r\n\r\n for (let i = 0; i < materials.length; ++i)\r\n {\r\n let matassign = materials[i];\r\n // Need to use path vs name to get a unique key.\r\n let materialName = matassign.getMaterial().getNamePath();\r\n var matUI = matassign.getMaterialUI();\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (materialName == elemPath)\r\n {\r\n if (this._soloMaterial == elemPath)\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n this._soloMaterial = \"\";\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball2.svg';\r\n matTitle.classList.add('peditor_material_assigned');\r\n this._soloMaterial = elemPath;\r\n }\r\n }\r\n else\r\n {\r\n img.src = 'public/shader_ball.svg';\r\n matTitle.classList.remove('peditor_material_assigned');\r\n }\r\n }\r\n viewer.getMaterial().updateMaterialAssignments(viewer, \"\");\r\n viewer.getScene().setUpdateTransforms();\r\n }\r\n\r\n //\r\n // Update property editor for a given MaterialX element, it's shader, and\r\n // Three material\r\n //\r\n updateEditor(matassign, shader, material, gui, closeUI, viewer)\r\n {\r\n return;\r\n\r\n var elem = matassign.getMaterial();\r\n var materials = this._materials;\r\n\r\n const DEFAULT_MIN = 0;\r\n const DEFAULT_MAX = 100;\r\n\r\n var startTime = performance.now();\r\n\r\n const elemPath = elem.getNamePath();\r\n\r\n // Create and cache associated UI\r\n var matUI = gui.addFolder(elemPath);\r\n matassign.setMaterialUI(matUI);\r\n\r\n let matTitle = matUI.domElement.getElementsByClassName('title')[0];\r\n // Add a icon to the title to allow for assigning the material to geometry\r\n // Clicking on the icon will \"solo\" the material to the geometry.\r\n // Clicking on the title will open/close the material folder.\r\n matTitle.innerHTML = \"\" + elem.getNamePath();\r\n let img = matTitle.getElementsByTagName('img')[0];\r\n if (img)\r\n {\r\n // Add event listener to icon to call updateSoloMaterial function\r\n img.addEventListener('click', function (event)\r\n {\r\n Material.updateSoloMaterial(viewer, elemPath, materials, event);\r\n });\r\n }\r\n\r\n if (closeUI)\r\n {\r\n matUI.close();\r\n }\r\n const uniformBlocks = Object.values(shader.getStage('pixel').getUniformBlocks());\r\n var uniformToUpdate;\r\n const ignoreList = ['u_envRadianceMips', 'u_envRadianceSamples', 'u_alphaThreshold'];\r\n\r\n var folderList = new Map();\r\n folderList[elemPath] = matUI;\r\n\r\n uniformBlocks.forEach(uniforms =>\r\n {\r\n if (!uniforms.empty())\r\n {\r\n for (let i = 0; i < uniforms.size(); ++i)\r\n {\r\n const variable = uniforms.get(i);\r\n const value = variable.getValue()?.getData();\r\n let name = variable.getVariable();\r\n\r\n if (ignoreList.includes(name))\r\n {\r\n continue;\r\n }\r\n\r\n let currentFolder = matUI;\r\n let currentElemPath = variable.getPath();\r\n if (!currentElemPath || currentElemPath.length == 0)\r\n {\r\n continue;\r\n }\r\n let currentElem = elem.getDocument().getDescendant(currentElemPath);\r\n if (!currentElem)\r\n {\r\n continue;\r\n }\r\n\r\n let currentNode = null;\r\n if (currentElem.getParent() && currentElem.getParent().getNamePath() != \"\")\r\n {\r\n currentNode = currentElem.getParent();\r\n }\r\n let uiname = \"\";\r\n let nodeDefInput = null;\r\n if (currentNode)\r\n {\r\n\r\n let currentNodePath = currentNode.getNamePath();\r\n var pathSplit = currentNodePath.split('/');\r\n if (pathSplit.length)\r\n {\r\n currentNodePath = pathSplit[0];\r\n }\r\n currentFolder = folderList[currentNodePath];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(currentNodePath);\r\n folderList[currentNodePath] = currentFolder;\r\n }\r\n\r\n // Check for ui attributes\r\n var nodeDef = currentNode.getNodeDef();\r\n if (nodeDef)\r\n {\r\n // Remove node name from shader uniform name for non root nodes\r\n let lookup_name = name.replace(currentNode.getName() + '_', '');\r\n nodeDefInput = nodeDef.getActiveInput(lookup_name);\r\n if (nodeDefInput)\r\n {\r\n uiname = nodeDefInput.getAttribute('uiname');\r\n let uifolderName = nodeDefInput.getAttribute('uifolder');\r\n if (uifolderName && uifolderName.length)\r\n {\r\n let newFolderName = currentNodePath + '/' + uifolderName;\r\n currentFolder = folderList[newFolderName];\r\n if (!currentFolder)\r\n {\r\n currentFolder = matUI.addFolder(uifolderName);\r\n currentFolder.domElement.classList.add('peditorfolder');\r\n folderList[newFolderName] = currentFolder;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Determine UI name to use\r\n let path = name;\r\n let interfaceName = currentElem.getAttribute(\"interfacename\");\r\n if (interfaceName && interfaceName.length)\r\n {\r\n const graph = currentNode.getParent();\r\n if (graph)\r\n {\r\n const graphInput = graph.getInput(interfaceName);\r\n if (graphInput)\r\n {\r\n let uiname = graphInput.getAttribute('uiname');\r\n if (uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n else\r\n {\r\n path = graphInput.getName();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n path = interfaceName;\r\n }\r\n }\r\n else\r\n {\r\n if (!uiname)\r\n {\r\n uiname = currentElem.getAttribute('uiname');\r\n }\r\n if (uiname && uiname.length)\r\n {\r\n path = uiname;\r\n }\r\n }\r\n\r\n switch (variable.getType().getName())\r\n {\r\n case 'float':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseFloat(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseFloat(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseFloat(nodeDefInput.getAttribute('uistep'));\r\n }\r\n if (step == 0)\r\n {\r\n step = (maxValue - minValue) / 1000.0;\r\n }\r\n const w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'integer':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = DEFAULT_MIN;\r\n if (value < minValue)\r\n {\r\n minValue = value;\r\n }\r\n var maxValue = DEFAULT_MAX;\r\n if (value > maxValue)\r\n {\r\n maxValue = value;\r\n }\r\n var step = 0;\r\n var enumList = []\r\n var enumValues = []\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('enum'))\r\n {\r\n // Get enum and enum values attributes (if present)\r\n enumList = nodeDefInput.getAttribute('enum').split(',');\r\n if (nodeDefInput.hasAttribute('enumvalues'))\r\n {\r\n enumValues = nodeDefInput.getAttribute('enumvalues').split(',').map(Number);\r\n }\r\n }\r\n else\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uisoftmin'));\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = parseInt(nodeDefInput.getAttribute('uimin'));\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uisoftmax'));\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = parseInt(nodeDefInput.getAttribute('uimax'));\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = parseInt(nodeDefInput.getAttribute('uistep'));\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n if (step == 0)\r\n {\r\n step = 1 / (maxValue - minValue);\r\n step = Math.ceil(step);\r\n if (step == 0)\r\n {\r\n step = 1;\r\n }\r\n }\r\n }\r\n if (enumList.length == 0)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value', minValue, maxValue, step).name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n else\r\n {\r\n // Map enumList strings to values\r\n // Map to 0..N if no values are specified via enumvalues attribute\r\n if (enumValues.length == 0)\r\n {\r\n for (let i = 0; i < enumList.length; ++i)\r\n {\r\n enumValues.push(i);\r\n }\r\n }\r\n const enumeration = {};\r\n enumList.forEach((str, index) =>\r\n {\r\n enumeration[str] = enumValues[index];\r\n });\r\n\r\n // Function to handle enum drop-down\r\n function handleDropdownChange(value)\r\n {\r\n if (material.uniforms[name])\r\n {\r\n material.uniforms[name].value = value;\r\n }\r\n }\r\n const defaultOption = enumList[value]; // Set the default selected option\r\n const dropdownController = currentFolder.add(enumeration, defaultOption, enumeration).name(path);\r\n dropdownController.onChange(handleDropdownChange);\r\n dropdownController.domElement.classList.add('peditoritem');\r\n }\r\n }\r\n break;\r\n\r\n case 'boolean':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n let w = currentFolder.add(material.uniforms[name], 'value').name(path);\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'vector2':\r\n case 'vector3':\r\n case 'vector4':\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var minValue = [DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN, DEFAULT_MIN];\r\n var maxValue = [DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX, DEFAULT_MAX];\r\n var step = [0, 0, 0, 0];\r\n\r\n if (nodeDefInput)\r\n {\r\n if (nodeDefInput.hasAttribute('uisoftmin'))\r\n minValue = nodeDefInput.getAttribute('uisoftmin').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimin'))\r\n minValue = nodeDefInput.getAttribute('uimin').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uisoftmax'))\r\n maxValue = nodeDefInput.getAttribute('uisoftmax').split(',').map(Number);\r\n else if (nodeDefInput.hasAttribute('uimax'))\r\n maxValue = nodeDefInput.getAttribute('uimax').split(',').map(Number);\r\n\r\n if (nodeDefInput.hasAttribute('uistep'))\r\n step = nodeDefInput.getAttribute('uistep').split(',').map(Number);\r\n }\r\n for (let i = 0; i < 4; ++i)\r\n {\r\n if (step[i] == 0)\r\n {\r\n step[i] = 1 / (maxValue[i] - minValue[i]);\r\n }\r\n }\r\n\r\n const keyString = [\"x\", \"y\", \"z\", \"w\"];\r\n let vecFolder = currentFolder.addFolder(path);\r\n Object.keys(material.uniforms[name].value).forEach((key) =>\r\n {\r\n let w = vecFolder.add(material.uniforms[name].value,\r\n key, minValue[key], maxValue[key], step[key]).name(keyString[key]);\r\n w.domElement.classList.add('peditoritem');\r\n })\r\n }\r\n break;\r\n\r\n case 'color3':\r\n // Irksome way to map arrays to colors and back\r\n uniformToUpdate = material.uniforms[name];\r\n if (uniformToUpdate && value != null)\r\n {\r\n var dummy =\r\n {\r\n color: 0xFF0000\r\n };\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(dummy.color);\r\n color3.fromArray(material.uniforms[name].value);\r\n dummy.color = color3.getHex();\r\n let w = currentFolder.addColor(dummy, 'color').name(path)\r\n .onChange(function (value)\r\n {\r\n const color3 = new three__WEBPACK_IMPORTED_MODULE_1__.Color(value);\r\n material.uniforms[name].value.set(color3.toArray());\r\n });\r\n w.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n\r\n case 'color4':\r\n break;\r\n\r\n case 'matrix33':\r\n case 'matrix44':\r\n case 'samplerCube':\r\n case 'filename':\r\n break;\r\n case 'string':\r\n console.log('String: ', name);\r\n if (value != null)\r\n {\r\n var dummy =\r\n {\r\n thevalue: value\r\n }\r\n let item = currentFolder.add(dummy, 'thevalue');\r\n item.name(path);\r\n item.disable(true);\r\n item.domElement.classList.add('peditoritem');\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n\r\n if (logDetailedTime)\r\n {\r\n console.log(\" - Editor update time: \", performance.now() - startTime, \"ms\");\r\n }\r\n }\r\n\r\n // List of material assignments: { MaterialX node, geometry assignment string, and hardware shader }\r\n _materials;\r\n\r\n // Fallback material if nothing was assigned explicitly\r\n _defaultMaterial;\r\n}\r\n\r\n/*\r\n Viewer class\r\n\r\n Keeps track of local scene, and property editor as well as current MaterialX document \r\n and assocaited material, shader and lighting information.\r\n*/\r\nclass Viewer\r\n{\r\n static create()\r\n {\r\n return new Viewer();\r\n }\r\n\r\n constructor()\r\n {\r\n this.scene = new Scene();\r\n this.editor = new Editor();\r\n this.materials.push(new Material());\r\n\r\n this.fileLoader = new three__WEBPACK_IMPORTED_MODULE_1__.FileLoader();\r\n this.hdrLoader = new three_examples_jsm_loaders_RGBELoader_js__WEBPACK_IMPORTED_MODULE_5__.RGBELoader();\r\n }\r\n\r\n setStopRendering(value)\r\n {\r\n this.stopRendering = value;\r\n }\r\n\r\n getStopRendering(value)\r\n {\r\n return this.stopRendering;\r\n }\r\n\r\n //\r\n // Create shader generator, generation context and \"base\" document which\r\n // contains the standard definition libraries and lighting elements.\r\n //\r\n async initialize(mtlxIn, renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n this.mx = mtlxIn;\r\n\r\n // Initialize base document\r\n this.generator = new this.mx.EsslShaderGenerator();\r\n this.genContext = new this.mx.GenContext(this.generator);\r\n\r\n this.document = this.mx.createDocument();\r\n this.stdlib = this.mx.loadStandardLibraries(this.genContext);\r\n this.document.importLibrary(this.stdlib);\r\n\r\n this.initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml);\r\n\r\n radianceTexture.mapping = three__WEBPACK_IMPORTED_MODULE_1__.EquirectangularReflectionMapping;\r\n this.getScene().setBackgroundTexture(radianceTexture);\r\n\r\n this.stopRendering = false;\r\n }\r\n\r\n //\r\n // Load in lighting rig document and register lights with generation context\r\n // Initialize environment lighting (IBLs).\r\n //\r\n async initializeLighting(renderer, radianceTexture, irradianceTexture, lightRigXml)\r\n {\r\n // Load lighting setup into document\r\n const mx = this.getMx();\r\n this.lightRigDoc = mx.createDocument();\r\n await mx.readFromXmlString(this.lightRigDoc, lightRigXml);\r\n this.document.importLibrary(this.lightRigDoc);\r\n\r\n // Register lights with generation context\r\n this.lights = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.findLights)(this.document);\r\n this.lightData = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.registerLights)(mx, this.lights, this.genContext);\r\n\r\n this.radianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(radianceTexture, renderer.capabilities);\r\n this.irradianceTexture = (0,_helper_js__WEBPACK_IMPORTED_MODULE_0__.prepareEnvTexture)(irradianceTexture, renderer.capabilities);\r\n }\r\n\r\n getEditor()\r\n {\r\n return this.editor;\r\n }\r\n\r\n getScene()\r\n {\r\n return this.scene;\r\n }\r\n\r\n getMaterial()\r\n {\r\n return this.materials[0];\r\n }\r\n\r\n getFileLoader()\r\n {\r\n return this.fileLoader;\r\n }\r\n\r\n getHdrLoader()\r\n {\r\n return this.hdrLoader;\r\n }\r\n\r\n setDocument(doc)\r\n {\r\n this.doc = doc;\r\n }\r\n getDocument()\r\n {\r\n return this.doc;\r\n }\r\n\r\n getLibrary()\r\n {\r\n return this.stdlib;\r\n }\r\n\r\n getLightRig()\r\n {\r\n return this.lightRigDoc;\r\n }\r\n\r\n getMx()\r\n {\r\n return this.mx;\r\n }\r\n\r\n getGenerator()\r\n {\r\n return this.generator;\r\n }\r\n\r\n getGenContext()\r\n {\r\n return this.genContext;\r\n }\r\n\r\n getLights()\r\n {\r\n return this.lights;\r\n }\r\n\r\n getLightData()\r\n {\r\n return this.lightData;\r\n }\r\n\r\n getRadianceTexture()\r\n {\r\n return this.radianceTexture;\r\n }\r\n\r\n getIrradianceTexture()\r\n {\r\n return this.irradianceTexture;\r\n }\r\n\r\n // Three scene and materials. \r\n scene = null;\r\n materials = [];\r\n\r\n // Property editor\r\n editor = null;\r\n\r\n // Utility loaders\r\n fileloader = null;\r\n hdrLoader = null;\r\n\r\n // MaterialX module, current document and support documents.\r\n mx = null;\r\n doc = null;\r\n stdlib = null;\r\n lightRigDoc = null;\r\n\r\n // MaterialX code generator and context\r\n generator = null;\r\n genContext = null;\r\n\r\n // Lighting information\r\n lights = null;\r\n lightData = null;\r\n radianceTexture = null;\r\n irradianceTexture = null;\r\n}\r\n\n\n//# sourceURL=webpack://MaterialX-Swatch-Viewer/./source/viewer.js?"); /***/ }), diff --git a/javascript/viewer/dist/public/favicon.ico b/javascript/shader_utilities/dist/public/favicon.ico similarity index 100% rename from javascript/viewer/dist/public/favicon.ico rename to javascript/shader_utilities/dist/public/favicon.ico diff --git a/javascript/viewer/dist/public/shader_ball.svg b/javascript/shader_utilities/dist/public/shader_ball.svg similarity index 100% rename from javascript/viewer/dist/public/shader_ball.svg rename to javascript/shader_utilities/dist/public/shader_ball.svg diff --git a/javascript/viewer/dist/public/shader_ball2.svg b/javascript/shader_utilities/dist/public/shader_ball2.svg similarity index 100% rename from javascript/viewer/dist/public/shader_ball2.svg rename to javascript/shader_utilities/dist/public/shader_ball2.svg diff --git a/javascript/viewer/dist/Images/brass_color.jpg b/javascript/viewer/dist/Images/brass_color.jpg deleted file mode 100644 index 047f1619..00000000 Binary files a/javascript/viewer/dist/Images/brass_color.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brass_roughness.jpg b/javascript/viewer/dist/Images/brass_roughness.jpg deleted file mode 100644 index 2f005401..00000000 Binary files a/javascript/viewer/dist/Images/brass_roughness.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_base_gray.jpg b/javascript/viewer/dist/Images/brick_base_gray.jpg deleted file mode 100644 index 0b77aff1..00000000 Binary files a/javascript/viewer/dist/Images/brick_base_gray.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_dirt_mask.jpg b/javascript/viewer/dist/Images/brick_dirt_mask.jpg deleted file mode 100644 index b3745644..00000000 Binary files a/javascript/viewer/dist/Images/brick_dirt_mask.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_mask.jpg b/javascript/viewer/dist/Images/brick_mask.jpg deleted file mode 100644 index 66d5439c..00000000 Binary files a/javascript/viewer/dist/Images/brick_mask.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_normal.jpg b/javascript/viewer/dist/Images/brick_normal.jpg deleted file mode 100644 index 0f672d82..00000000 Binary files a/javascript/viewer/dist/Images/brick_normal.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_roughness.jpg b/javascript/viewer/dist/Images/brick_roughness.jpg deleted file mode 100644 index bcf49203..00000000 Binary files a/javascript/viewer/dist/Images/brick_roughness.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/brick_variation_mask.jpg b/javascript/viewer/dist/Images/brick_variation_mask.jpg deleted file mode 100644 index 3ad359b9..00000000 Binary files a/javascript/viewer/dist/Images/brick_variation_mask.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/cloth.bmp b/javascript/viewer/dist/Images/cloth.bmp deleted file mode 100644 index b6191de9..00000000 Binary files a/javascript/viewer/dist/Images/cloth.bmp and /dev/null differ diff --git a/javascript/viewer/dist/Images/cloth.gif b/javascript/viewer/dist/Images/cloth.gif deleted file mode 100644 index d9cd2b48..00000000 Binary files a/javascript/viewer/dist/Images/cloth.gif and /dev/null differ diff --git a/javascript/viewer/dist/Images/cloth.jpg b/javascript/viewer/dist/Images/cloth.jpg deleted file mode 100644 index 53f55c39..00000000 Binary files a/javascript/viewer/dist/Images/cloth.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/cloth.png b/javascript/viewer/dist/Images/cloth.png deleted file mode 100644 index c4e3459b..00000000 Binary files a/javascript/viewer/dist/Images/cloth.png and /dev/null differ diff --git a/javascript/viewer/dist/Images/cloth.tga b/javascript/viewer/dist/Images/cloth.tga deleted file mode 100644 index bd38dd95..00000000 Binary files a/javascript/viewer/dist/Images/cloth.tga and /dev/null differ diff --git a/javascript/viewer/dist/Images/greysphere_calibration.png b/javascript/viewer/dist/Images/greysphere_calibration.png deleted file mode 100644 index 76bff27d..00000000 Binary files a/javascript/viewer/dist/Images/greysphere_calibration.png and /dev/null differ diff --git a/javascript/viewer/dist/Images/grid.png b/javascript/viewer/dist/Images/grid.png deleted file mode 100644 index 9af2fba9..00000000 Binary files a/javascript/viewer/dist/Images/grid.png and /dev/null differ diff --git a/javascript/viewer/dist/Images/mesh_wire_norm.png b/javascript/viewer/dist/Images/mesh_wire_norm.png deleted file mode 100644 index 75dc2ccf..00000000 Binary files a/javascript/viewer/dist/Images/mesh_wire_norm.png and /dev/null differ diff --git a/javascript/viewer/dist/Images/plain_heightmap.png b/javascript/viewer/dist/Images/plain_heightmap.png deleted file mode 100644 index 763685fb..00000000 Binary files a/javascript/viewer/dist/Images/plain_heightmap.png and /dev/null differ diff --git a/javascript/viewer/dist/Images/wood_color.jpg b/javascript/viewer/dist/Images/wood_color.jpg deleted file mode 100644 index c61b13a0..00000000 Binary files a/javascript/viewer/dist/Images/wood_color.jpg and /dev/null differ diff --git a/javascript/viewer/dist/Images/wood_roughness.jpg b/javascript/viewer/dist/Images/wood_roughness.jpg deleted file mode 100644 index af292bdd..00000000 Binary files a/javascript/viewer/dist/Images/wood_roughness.jpg and /dev/null differ diff --git a/pymaterialx/mtlx_connectivity_notebook.html b/pymaterialx/mtlx_connectivity_notebook.html index 806070c7..db953cff 100644 --- a/pymaterialx/mtlx_connectivity_notebook.html +++ b/pymaterialx/mtlx_connectivity_notebook.html @@ -15129,7 +15129,7 @@

    Graph ConnectivityGraph Editing page. +
  • The Javascript module JsMaterialGraph is used for interactive graph generation on the Graph Editing page.
  • diff --git a/pymaterialx/mtlx_connectivity_notebook.ipynb b/pymaterialx/mtlx_connectivity_notebook.ipynb index a8fbaa7f..aedea418 100644 --- a/pymaterialx/mtlx_connectivity_notebook.ipynb +++ b/pymaterialx/mtlx_connectivity_notebook.ipynb @@ -23,7 +23,7 @@ "- The utilities (including Mermaid generation) in this tutorial are collected in the `mtlxutils` file: `mxtraversal.py`.\n", "- The command `mxgraphio.py` found in the `pymaterialx` folder wraps up these utilities. \n", "- All Mermaid diagrams on this site are generated using the `mxgraphio.py` command line utility or the `mtlxutils` library.\n", - "- The Javascript module `JsMaterialGraph` is used for interactive graph generation on the Graph Editing page." + "- The Javascript module `JsMaterialGraph` is used for interactive graph generation on the Graph Editing page." ] }, { diff --git a/pymaterialx/mtlx_connectivity_notebook.py b/pymaterialx/mtlx_connectivity_notebook.py index 25ad4ff4..e65ae914 100644 --- a/pymaterialx/mtlx_connectivity_notebook.py +++ b/pymaterialx/mtlx_connectivity_notebook.py @@ -18,7 +18,7 @@ # - The utilities (including Mermaid generation) in this tutorial are collected in the `mtlxutils` file: `mxtraversal.py`. # - The command `mxgraphio.py` found in the `pymaterialx` folder wraps up these utilities. # - All Mermaid diagrams on this site are generated using the `mxgraphio.py` command line utility or the `mtlxutils` library. -# - The Javascript module `JsMaterialGraph` is used for interactive graph generation on the Graph Editing page. +# - The Javascript module `JsMaterialGraph` is used for interactive graph generation on the Graph Editing page. # %% [markdown] # ### Setup diff --git a/pymaterialx/mtlx_graphs_notebook.html b/pymaterialx/mtlx_graphs_notebook.html index 9b34650e..dde29ede 100644 --- a/pymaterialx/mtlx_graphs_notebook.html +++ b/pymaterialx/mtlx_graphs_notebook.html @@ -15173,6 +15173,14 @@

    Setup

    The f # Write predicate def skipLibraryElement(elem): return not elem.hasSourceUri() + +def validateDocument(doc): + valid, errors = doc.validate() + if not valid: + print('> Document is not valid') + print('> ' + errors) + else: + print('> Document is valid')

    @@ -16270,7 +16278,7 @@

    Material Graph Result
    +