MaterialXLab API  0.0.1
APIs For MaterialXLab Libraries
Loading...
Searching...
No Matches
mtlx_stdlib.js File Reference

Go to the source code of this file.

Functions

function mtlx_input_input_float ()
 mtlx_input_input_float
 
function mtlx_input_input_color3 ()
 mtlx_input_input_color3
 
function mtlx_input_input_color4 ()
 mtlx_input_input_color4
 
function mtlx_input_input_vector2 ()
 mtlx_input_input_vector2
 
function mtlx_input_input_vector3 ()
 mtlx_input_input_vector3
 
function mtlx_input_input_vector4 ()
 mtlx_input_input_vector4
 
function mtlx_input_input_matrix33 ()
 mtlx_input_input_matrix33
 
function mtlx_input_input_matrix44 ()
 mtlx_input_input_matrix44
 
function mtlx_input_input_integer ()
 mtlx_input_input_integer
 
function mtlx_input_input_string ()
 mtlx_input_input_string
 
function mtlx_input_input_boolean ()
 mtlx_input_input_boolean
 
function mtlx_input_input_filename ()
 mtlx_input_input_filename
 
function mtlx_input_input_BSDF ()
 mtlx_input_input_BSDF
 
function mtlx_input_input_EDF ()
 mtlx_input_input_EDF
 
function mtlx_input_input_VDF ()
 mtlx_input_input_VDF
 
function mtlx_input_input_surfaceshader ()
 mtlx_input_input_surfaceshader
 
function mtlx_input_input_volumeshader ()
 mtlx_input_input_volumeshader
 
function mtlx_input_input_displacementshader ()
 mtlx_input_input_displacementshader
 
function mtlx_input_input_lightshader ()
 mtlx_input_input_lightshader
 
function mtlx_input_input_material ()
 mtlx_input_input_material
 
function mtlx_input_input_vector2array ()
 mtlx_input_input_vector2array
 
function mtlx_output_output_float ()
 mtlx_output_output_float
 
function mtlx_output_output_color3 ()
 mtlx_output_output_color3
 
function mtlx_output_output_color4 ()
 mtlx_output_output_color4
 
function mtlx_output_output_vector2 ()
 mtlx_output_output_vector2
 
function mtlx_output_output_vector3 ()
 mtlx_output_output_vector3
 
function mtlx_output_output_vector4 ()
 mtlx_output_output_vector4
 
function mtlx_output_output_matrix33 ()
 mtlx_output_output_matrix33
 
function mtlx_output_output_matrix44 ()
 mtlx_output_output_matrix44
 
function mtlx_output_output_integer ()
 mtlx_output_output_integer
 
function mtlx_output_output_string ()
 mtlx_output_output_string
 
function mtlx_output_output_boolean ()
 mtlx_output_output_boolean
 
function mtlx_output_output_filename ()
 mtlx_output_output_filename
 
function mtlx_output_output_BSDF ()
 mtlx_output_output_BSDF
 
function mtlx_output_output_EDF ()
 mtlx_output_output_EDF
 
function mtlx_output_output_VDF ()
 mtlx_output_output_VDF
 
function mtlx_output_output_surfaceshader ()
 mtlx_output_output_surfaceshader
 
function mtlx_output_output_volumeshader ()
 mtlx_output_output_volumeshader
 
function mtlx_output_output_displacementshader ()
 mtlx_output_output_displacementshader
 
function mtlx_output_output_lightshader ()
 mtlx_output_output_lightshader
 
function mtlx_output_output_material ()
 mtlx_output_output_material
 
function mtlx_output_output_vector2array ()
 mtlx_output_output_vector2array
 
function mtlx_material_surfacematerial ()
 mtlx_material_surfacematerial
 
function mtlx_material_volumematerial ()
 mtlx_material_volumematerial
 
function mtlx_shader_surface_unlit ()
 mtlx_shader_surface_unlit
 
function mtlx_texture2d_image_float ()
 mtlx_texture2d_image_float
 
function mtlx_texture2d_image_color3 ()
 mtlx_texture2d_image_color3
 
function mtlx_texture2d_image_color4 ()
 mtlx_texture2d_image_color4
 
function mtlx_texture2d_image_vector2 ()
 mtlx_texture2d_image_vector2
 
function mtlx_texture2d_image_vector3 ()
 mtlx_texture2d_image_vector3
 
function mtlx_texture2d_image_vector4 ()
 mtlx_texture2d_image_vector4
 
function mtlx_texture2d_tiledimage_float ()
 mtlx_texture2d_tiledimage_float
 
function mtlx_texture2d_tiledimage_color3 ()
 mtlx_texture2d_tiledimage_color3
 
function mtlx_texture2d_tiledimage_color4 ()
 mtlx_texture2d_tiledimage_color4
 
function mtlx_texture2d_tiledimage_vector2 ()
 mtlx_texture2d_tiledimage_vector2
 
function mtlx_texture2d_tiledimage_vector3 ()
 mtlx_texture2d_tiledimage_vector3
 
function mtlx_texture2d_tiledimage_vector4 ()
 mtlx_texture2d_tiledimage_vector4
 
function mtlx_texture3d_triplanarprojection_float ()
 mtlx_texture3d_triplanarprojection_float
 
function mtlx_texture3d_triplanarprojection_color3 ()
 mtlx_texture3d_triplanarprojection_color3
 
function mtlx_texture3d_triplanarprojection_color4 ()
 mtlx_texture3d_triplanarprojection_color4
 
function mtlx_texture3d_triplanarprojection_vector2 ()
 mtlx_texture3d_triplanarprojection_vector2
 
function mtlx_texture3d_triplanarprojection_vector3 ()
 mtlx_texture3d_triplanarprojection_vector3
 
function mtlx_texture3d_triplanarprojection_vector4 ()
 mtlx_texture3d_triplanarprojection_vector4
 
function mtlx_procedural_constant_float ()
 mtlx_procedural_constant_float
 
function mtlx_procedural_constant_color3 ()
 mtlx_procedural_constant_color3
 
function mtlx_procedural_constant_color4 ()
 mtlx_procedural_constant_color4
 
function mtlx_procedural_constant_vector2 ()
 mtlx_procedural_constant_vector2
 
function mtlx_procedural_constant_vector3 ()
 mtlx_procedural_constant_vector3
 
function mtlx_procedural_constant_vector4 ()
 mtlx_procedural_constant_vector4
 
function mtlx_procedural_constant_boolean ()
 mtlx_procedural_constant_boolean
 
function mtlx_procedural_constant_integer ()
 mtlx_procedural_constant_integer
 
function mtlx_procedural_constant_matrix33 ()
 mtlx_procedural_constant_matrix33
 
function mtlx_procedural_constant_matrix44 ()
 mtlx_procedural_constant_matrix44
 
function mtlx_procedural_constant_string ()
 mtlx_procedural_constant_string
 
function mtlx_procedural_constant_filename ()
 mtlx_procedural_constant_filename
 
function mtlx_procedural2d_ramplr_float ()
 mtlx_procedural2d_ramplr_float
 
function mtlx_procedural2d_ramplr_color3 ()
 mtlx_procedural2d_ramplr_color3
 
function mtlx_procedural2d_ramplr_color4 ()
 mtlx_procedural2d_ramplr_color4
 
function mtlx_procedural2d_ramplr_vector2 ()
 mtlx_procedural2d_ramplr_vector2
 
function mtlx_procedural2d_ramplr_vector3 ()
 mtlx_procedural2d_ramplr_vector3
 
function mtlx_procedural2d_ramplr_vector4 ()
 mtlx_procedural2d_ramplr_vector4
 
function mtlx_procedural2d_ramptb_float ()
 mtlx_procedural2d_ramptb_float
 
function mtlx_procedural2d_ramptb_color3 ()
 mtlx_procedural2d_ramptb_color3
 
function mtlx_procedural2d_ramptb_color4 ()
 mtlx_procedural2d_ramptb_color4
 
function mtlx_procedural2d_ramptb_vector2 ()
 mtlx_procedural2d_ramptb_vector2
 
function mtlx_procedural2d_ramptb_vector3 ()
 mtlx_procedural2d_ramptb_vector3
 
function mtlx_procedural2d_ramptb_vector4 ()
 mtlx_procedural2d_ramptb_vector4
 
function mtlx_procedural2d_ramp4_float ()
 mtlx_procedural2d_ramp4_float
 
function mtlx_procedural2d_ramp4_color3 ()
 mtlx_procedural2d_ramp4_color3
 
function mtlx_procedural2d_ramp4_color4 ()
 mtlx_procedural2d_ramp4_color4
 
function mtlx_procedural2d_ramp4_vector2 ()
 mtlx_procedural2d_ramp4_vector2
 
function mtlx_procedural2d_ramp4_vector3 ()
 mtlx_procedural2d_ramp4_vector3
 
function mtlx_procedural2d_ramp4_vector4 ()
 mtlx_procedural2d_ramp4_vector4
 
function mtlx_procedural2d_splitlr_float ()
 mtlx_procedural2d_splitlr_float
 
function mtlx_procedural2d_splitlr_color3 ()
 mtlx_procedural2d_splitlr_color3
 
function mtlx_procedural2d_splitlr_color4 ()
 mtlx_procedural2d_splitlr_color4
 
function mtlx_procedural2d_splitlr_vector2 ()
 mtlx_procedural2d_splitlr_vector2
 
function mtlx_procedural2d_splitlr_vector3 ()
 mtlx_procedural2d_splitlr_vector3
 
function mtlx_procedural2d_splitlr_vector4 ()
 mtlx_procedural2d_splitlr_vector4
 
function mtlx_procedural2d_splittb_float ()
 mtlx_procedural2d_splittb_float
 
function mtlx_procedural2d_splittb_color3 ()
 mtlx_procedural2d_splittb_color3
 
function mtlx_procedural2d_splittb_color4 ()
 mtlx_procedural2d_splittb_color4
 
function mtlx_procedural2d_splittb_vector2 ()
 mtlx_procedural2d_splittb_vector2
 
function mtlx_procedural2d_splittb_vector3 ()
 mtlx_procedural2d_splittb_vector3
 
function mtlx_procedural2d_splittb_vector4 ()
 mtlx_procedural2d_splittb_vector4
 
function mtlx_procedural2d_noise2d_float ()
 mtlx_procedural2d_noise2d_float
 
function mtlx_procedural2d_noise2d_color3 ()
 mtlx_procedural2d_noise2d_color3
 
function mtlx_procedural2d_noise2d_color4 ()
 mtlx_procedural2d_noise2d_color4
 
function mtlx_procedural2d_noise2d_vector2 ()
 mtlx_procedural2d_noise2d_vector2
 
function mtlx_procedural2d_noise2d_vector3 ()
 mtlx_procedural2d_noise2d_vector3
 
function mtlx_procedural2d_noise2d_vector4 ()
 mtlx_procedural2d_noise2d_vector4
 
function mtlx_procedural2d_noise2d_color3FA ()
 mtlx_procedural2d_noise2d_color3FA
 
function mtlx_procedural2d_noise2d_color4FA ()
 mtlx_procedural2d_noise2d_color4FA
 
function mtlx_procedural2d_noise2d_vector2FA ()
 mtlx_procedural2d_noise2d_vector2FA
 
function mtlx_procedural2d_noise2d_vector3FA ()
 mtlx_procedural2d_noise2d_vector3FA
 
function mtlx_procedural2d_noise2d_vector4FA ()
 mtlx_procedural2d_noise2d_vector4FA
 
function mtlx_procedural3d_noise3d_float ()
 mtlx_procedural3d_noise3d_float
 
function mtlx_procedural3d_noise3d_color3 ()
 mtlx_procedural3d_noise3d_color3
 
function mtlx_procedural3d_noise3d_color4 ()
 mtlx_procedural3d_noise3d_color4
 
function mtlx_procedural3d_noise3d_vector2 ()
 mtlx_procedural3d_noise3d_vector2
 
function mtlx_procedural3d_noise3d_vector3 ()
 mtlx_procedural3d_noise3d_vector3
 
function mtlx_procedural3d_noise3d_vector4 ()
 mtlx_procedural3d_noise3d_vector4
 
function mtlx_procedural3d_noise3d_color3FA ()
 mtlx_procedural3d_noise3d_color3FA
 
function mtlx_procedural3d_noise3d_color4FA ()
 mtlx_procedural3d_noise3d_color4FA
 
function mtlx_procedural3d_noise3d_vector2FA ()
 mtlx_procedural3d_noise3d_vector2FA
 
function mtlx_procedural3d_noise3d_vector3FA ()
 mtlx_procedural3d_noise3d_vector3FA
 
function mtlx_procedural3d_noise3d_vector4FA ()
 mtlx_procedural3d_noise3d_vector4FA
 
function mtlx_procedural3d_fractal3d_float ()
 mtlx_procedural3d_fractal3d_float
 
function mtlx_procedural3d_fractal3d_color3 ()
 mtlx_procedural3d_fractal3d_color3
 
function mtlx_procedural3d_fractal3d_color4 ()
 mtlx_procedural3d_fractal3d_color4
 
function mtlx_procedural3d_fractal3d_vector2 ()
 mtlx_procedural3d_fractal3d_vector2
 
function mtlx_procedural3d_fractal3d_vector3 ()
 mtlx_procedural3d_fractal3d_vector3
 
function mtlx_procedural3d_fractal3d_vector4 ()
 mtlx_procedural3d_fractal3d_vector4
 
function mtlx_procedural3d_fractal3d_color3FA ()
 mtlx_procedural3d_fractal3d_color3FA
 
function mtlx_procedural3d_fractal3d_color4FA ()
 mtlx_procedural3d_fractal3d_color4FA
 
function mtlx_procedural3d_fractal3d_vector2FA ()
 mtlx_procedural3d_fractal3d_vector2FA
 
function mtlx_procedural3d_fractal3d_vector3FA ()
 mtlx_procedural3d_fractal3d_vector3FA
 
function mtlx_procedural3d_fractal3d_vector4FA ()
 mtlx_procedural3d_fractal3d_vector4FA
 
function mtlx_procedural2d_cellnoise2d_float ()
 mtlx_procedural2d_cellnoise2d_float
 
function mtlx_procedural3d_cellnoise3d_float ()
 mtlx_procedural3d_cellnoise3d_float
 
function mtlx_procedural2d_worleynoise2d_float ()
 mtlx_procedural2d_worleynoise2d_float
 
function mtlx_procedural2d_worleynoise2d_vector2 ()
 mtlx_procedural2d_worleynoise2d_vector2
 
function mtlx_procedural2d_worleynoise2d_vector3 ()
 mtlx_procedural2d_worleynoise2d_vector3
 
function mtlx_procedural3d_worleynoise3d_float ()
 mtlx_procedural3d_worleynoise3d_float
 
function mtlx_procedural3d_worleynoise3d_vector2 ()
 mtlx_procedural3d_worleynoise3d_vector2
 
function mtlx_procedural3d_worleynoise3d_vector3 ()
 mtlx_procedural3d_worleynoise3d_vector3
 
function mtlx_procedural2d_unifiednoise2d_float ()
 mtlx_procedural2d_unifiednoise2d_float
 
function mtlx_procedural3d_unifiednoise3d_float ()
 mtlx_procedural3d_unifiednoise3d_float
 
function mtlx_procedural_randomfloat_float ()
 mtlx_procedural_randomfloat_float
 
function mtlx_procedural_randomfloat_integer ()
 mtlx_procedural_randomfloat_integer
 
function mtlx_procedural3d_randomcolor_float ()
 mtlx_procedural3d_randomcolor_float
 
function mtlx_procedural3d_randomcolor_integer ()
 mtlx_procedural3d_randomcolor_integer
 
function mtlx_procedural2d_checkerboard_color3 ()
 mtlx_procedural2d_checkerboard_color3
 
function mtlx_procedural2d_line_float ()
 mtlx_procedural2d_line_float
 
function mtlx_procedural2d_circle_float ()
 mtlx_procedural2d_circle_float
 
function mtlx_procedural2d_cloverleaf_float ()
 mtlx_procedural2d_cloverleaf_float
 
function mtlx_procedural2d_hexagon_float ()
 mtlx_procedural2d_hexagon_float
 
function mtlx_procedural2d_grid_color3 ()
 mtlx_procedural2d_grid_color3
 
function mtlx_procedural2d_crosshatch_color3 ()
 mtlx_procedural2d_crosshatch_color3
 
function mtlx_procedural2d_tiledcircles_color3 ()
 mtlx_procedural2d_tiledcircles_color3
 
function mtlx_procedural2d_tiledcloverleafs_color3 ()
 mtlx_procedural2d_tiledcloverleafs_color3
 
function mtlx_procedural2d_tiledhexagons_color3 ()
 mtlx_procedural2d_tiledhexagons_color3
 
function mtlx_geometric_position_vector3 ()
 mtlx_geometric_position_vector3
 
function mtlx_geometric_normal_vector3 ()
 mtlx_geometric_normal_vector3
 
function mtlx_geometric_tangent_vector3 ()
 mtlx_geometric_tangent_vector3
 
function mtlx_geometric_bitangent_vector3 ()
 mtlx_geometric_bitangent_vector3
 
function mtlx_geometric_texcoord_vector2 ()
 mtlx_geometric_texcoord_vector2
 
function mtlx_geometric_texcoord_vector3 ()
 mtlx_geometric_texcoord_vector3
 
function mtlx_geometric_geomcolor_float ()
 mtlx_geometric_geomcolor_float
 
function mtlx_geometric_geomcolor_color3 ()
 mtlx_geometric_geomcolor_color3
 
function mtlx_geometric_geomcolor_color4 ()
 mtlx_geometric_geomcolor_color4
 
function mtlx_geometric_geompropvalue_integer ()
 mtlx_geometric_geompropvalue_integer
 
function mtlx_geometric_geompropvalue_boolean ()
 mtlx_geometric_geompropvalue_boolean
 
function mtlx_geometric_geompropvalue_string ()
 mtlx_geometric_geompropvalue_string
 
function mtlx_geometric_geompropvalue_float ()
 mtlx_geometric_geompropvalue_float
 
function mtlx_geometric_geompropvalue_color3 ()
 mtlx_geometric_geompropvalue_color3
 
function mtlx_geometric_geompropvalue_color4 ()
 mtlx_geometric_geompropvalue_color4
 
function mtlx_geometric_geompropvalue_vector2 ()
 mtlx_geometric_geompropvalue_vector2
 
function mtlx_geometric_geompropvalue_vector3 ()
 mtlx_geometric_geompropvalue_vector3
 
function mtlx_geometric_geompropvalue_vector4 ()
 mtlx_geometric_geompropvalue_vector4
 
function mtlx_geometric_bump_vector3 ()
 mtlx_geometric_bump_vector3
 
function mtlx_global_ambientocclusion_float ()
 mtlx_global_ambientocclusion_float
 
function mtlx_application_frame_float ()
 mtlx_application_frame_float
 
function mtlx_application_time_float ()
 mtlx_application_time_float
 
function mtlx_math_add_float ()
 mtlx_math_add_float
 
function mtlx_math_add_integer ()
 mtlx_math_add_integer
 
function mtlx_math_add_color3 ()
 mtlx_math_add_color3
 
function mtlx_math_add_color4 ()
 mtlx_math_add_color4
 
function mtlx_math_add_vector2 ()
 mtlx_math_add_vector2
 
function mtlx_math_add_vector3 ()
 mtlx_math_add_vector3
 
function mtlx_math_add_vector4 ()
 mtlx_math_add_vector4
 
function mtlx_math_add_matrix33 ()
 mtlx_math_add_matrix33
 
function mtlx_math_add_matrix44 ()
 mtlx_math_add_matrix44
 
function mtlx_math_add_color3FA ()
 mtlx_math_add_color3FA
 
function mtlx_math_add_color4FA ()
 mtlx_math_add_color4FA
 
function mtlx_math_add_vector2FA ()
 mtlx_math_add_vector2FA
 
function mtlx_math_add_vector3FA ()
 mtlx_math_add_vector3FA
 
function mtlx_math_add_vector4FA ()
 mtlx_math_add_vector4FA
 
function mtlx_math_add_matrix33FA ()
 mtlx_math_add_matrix33FA
 
function mtlx_math_add_matrix44FA ()
 mtlx_math_add_matrix44FA
 
function mtlx_math_subtract_float ()
 mtlx_math_subtract_float
 
function mtlx_math_subtract_integer ()
 mtlx_math_subtract_integer
 
function mtlx_math_subtract_color3 ()
 mtlx_math_subtract_color3
 
function mtlx_math_subtract_color4 ()
 mtlx_math_subtract_color4
 
function mtlx_math_subtract_vector2 ()
 mtlx_math_subtract_vector2
 
function mtlx_math_subtract_vector3 ()
 mtlx_math_subtract_vector3
 
function mtlx_math_subtract_vector4 ()
 mtlx_math_subtract_vector4
 
function mtlx_math_subtract_matrix33 ()
 mtlx_math_subtract_matrix33
 
function mtlx_math_subtract_matrix44 ()
 mtlx_math_subtract_matrix44
 
function mtlx_math_subtract_color3FA ()
 mtlx_math_subtract_color3FA
 
function mtlx_math_subtract_color4FA ()
 mtlx_math_subtract_color4FA
 
function mtlx_math_subtract_vector2FA ()
 mtlx_math_subtract_vector2FA
 
function mtlx_math_subtract_vector3FA ()
 mtlx_math_subtract_vector3FA
 
function mtlx_math_subtract_vector4FA ()
 mtlx_math_subtract_vector4FA
 
function mtlx_math_subtract_matrix33FA ()
 mtlx_math_subtract_matrix33FA
 
function mtlx_math_subtract_matrix44FA ()
 mtlx_math_subtract_matrix44FA
 
function mtlx_math_multiply_float ()
 mtlx_math_multiply_float
 
function mtlx_math_multiply_color3 ()
 mtlx_math_multiply_color3
 
function mtlx_math_multiply_color4 ()
 mtlx_math_multiply_color4
 
function mtlx_math_multiply_vector2 ()
 mtlx_math_multiply_vector2
 
function mtlx_math_multiply_vector3 ()
 mtlx_math_multiply_vector3
 
function mtlx_math_multiply_vector4 ()
 mtlx_math_multiply_vector4
 
function mtlx_math_multiply_matrix33 ()
 mtlx_math_multiply_matrix33
 
function mtlx_math_multiply_matrix44 ()
 mtlx_math_multiply_matrix44
 
function mtlx_math_multiply_color3FA ()
 mtlx_math_multiply_color3FA
 
function mtlx_math_multiply_color4FA ()
 mtlx_math_multiply_color4FA
 
function mtlx_math_multiply_vector2FA ()
 mtlx_math_multiply_vector2FA
 
function mtlx_math_multiply_vector3FA ()
 mtlx_math_multiply_vector3FA
 
function mtlx_math_multiply_vector4FA ()
 mtlx_math_multiply_vector4FA
 
function mtlx_math_divide_float ()
 mtlx_math_divide_float
 
function mtlx_math_divide_color3 ()
 mtlx_math_divide_color3
 
function mtlx_math_divide_color4 ()
 mtlx_math_divide_color4
 
function mtlx_math_divide_vector2 ()
 mtlx_math_divide_vector2
 
function mtlx_math_divide_vector3 ()
 mtlx_math_divide_vector3
 
function mtlx_math_divide_vector4 ()
 mtlx_math_divide_vector4
 
function mtlx_math_divide_matrix33 ()
 mtlx_math_divide_matrix33
 
function mtlx_math_divide_matrix44 ()
 mtlx_math_divide_matrix44
 
function mtlx_math_divide_color3FA ()
 mtlx_math_divide_color3FA
 
function mtlx_math_divide_color4FA ()
 mtlx_math_divide_color4FA
 
function mtlx_math_divide_vector2FA ()
 mtlx_math_divide_vector2FA
 
function mtlx_math_divide_vector3FA ()
 mtlx_math_divide_vector3FA
 
function mtlx_math_divide_vector4FA ()
 mtlx_math_divide_vector4FA
 
function mtlx_math_modulo_float ()
 mtlx_math_modulo_float
 
function mtlx_math_modulo_color3 ()
 mtlx_math_modulo_color3
 
function mtlx_math_modulo_color4 ()
 mtlx_math_modulo_color4
 
function mtlx_math_modulo_vector2 ()
 mtlx_math_modulo_vector2
 
function mtlx_math_modulo_vector3 ()
 mtlx_math_modulo_vector3
 
function mtlx_math_modulo_vector4 ()
 mtlx_math_modulo_vector4
 
function mtlx_math_modulo_color3FA ()
 mtlx_math_modulo_color3FA
 
function mtlx_math_modulo_color4FA ()
 mtlx_math_modulo_color4FA
 
function mtlx_math_modulo_vector2FA ()
 mtlx_math_modulo_vector2FA
 
function mtlx_math_modulo_vector3FA ()
 mtlx_math_modulo_vector3FA
 
function mtlx_math_modulo_vector4FA ()
 mtlx_math_modulo_vector4FA
 
function mtlx_math_invert_float ()
 mtlx_math_invert_float
 
function mtlx_math_invert_color3 ()
 mtlx_math_invert_color3
 
function mtlx_math_invert_color4 ()
 mtlx_math_invert_color4
 
function mtlx_math_invert_vector2 ()
 mtlx_math_invert_vector2
 
function mtlx_math_invert_vector3 ()
 mtlx_math_invert_vector3
 
function mtlx_math_invert_vector4 ()
 mtlx_math_invert_vector4
 
function mtlx_math_invert_color3FA ()
 mtlx_math_invert_color3FA
 
function mtlx_math_invert_color4FA ()
 mtlx_math_invert_color4FA
 
function mtlx_math_invert_vector2FA ()
 mtlx_math_invert_vector2FA
 
function mtlx_math_invert_vector3FA ()
 mtlx_math_invert_vector3FA
 
function mtlx_math_invert_vector4FA ()
 mtlx_math_invert_vector4FA
 
function mtlx_math_absval_float ()
 mtlx_math_absval_float
 
function mtlx_math_absval_color3 ()
 mtlx_math_absval_color3
 
function mtlx_math_absval_color4 ()
 mtlx_math_absval_color4
 
function mtlx_math_absval_vector2 ()
 mtlx_math_absval_vector2
 
function mtlx_math_absval_vector3 ()
 mtlx_math_absval_vector3
 
function mtlx_math_absval_vector4 ()
 mtlx_math_absval_vector4
 
function mtlx_math_floor_float ()
 mtlx_math_floor_float
 
function mtlx_math_floor_color3 ()
 mtlx_math_floor_color3
 
function mtlx_math_floor_color4 ()
 mtlx_math_floor_color4
 
function mtlx_math_floor_vector2 ()
 mtlx_math_floor_vector2
 
function mtlx_math_floor_vector3 ()
 mtlx_math_floor_vector3
 
function mtlx_math_floor_vector4 ()
 mtlx_math_floor_vector4
 
function mtlx_math_floor_integer ()
 mtlx_math_floor_integer
 
function mtlx_math_ceil_float ()
 mtlx_math_ceil_float
 
function mtlx_math_ceil_color3 ()
 mtlx_math_ceil_color3
 
function mtlx_math_ceil_color4 ()
 mtlx_math_ceil_color4
 
function mtlx_math_ceil_vector2 ()
 mtlx_math_ceil_vector2
 
function mtlx_math_ceil_vector3 ()
 mtlx_math_ceil_vector3
 
function mtlx_math_ceil_vector4 ()
 mtlx_math_ceil_vector4
 
function mtlx_math_ceil_integer ()
 mtlx_math_ceil_integer
 
function mtlx_math_round_float ()
 mtlx_math_round_float
 
function mtlx_math_round_color3 ()
 mtlx_math_round_color3
 
function mtlx_math_round_color4 ()
 mtlx_math_round_color4
 
function mtlx_math_round_vector2 ()
 mtlx_math_round_vector2
 
function mtlx_math_round_vector3 ()
 mtlx_math_round_vector3
 
function mtlx_math_round_vector4 ()
 mtlx_math_round_vector4
 
function mtlx_math_round_integer ()
 mtlx_math_round_integer
 
function mtlx_math_power_float ()
 mtlx_math_power_float
 
function mtlx_math_power_color3 ()
 mtlx_math_power_color3
 
function mtlx_math_power_color4 ()
 mtlx_math_power_color4
 
function mtlx_math_power_vector2 ()
 mtlx_math_power_vector2
 
function mtlx_math_power_vector3 ()
 mtlx_math_power_vector3
 
function mtlx_math_power_vector4 ()
 mtlx_math_power_vector4
 
function mtlx_math_power_color3FA ()
 mtlx_math_power_color3FA
 
function mtlx_math_power_color4FA ()
 mtlx_math_power_color4FA
 
function mtlx_math_power_vector2FA ()
 mtlx_math_power_vector2FA
 
function mtlx_math_power_vector3FA ()
 mtlx_math_power_vector3FA
 
function mtlx_math_power_vector4FA ()
 mtlx_math_power_vector4FA
 
function mtlx_math_safepower_float ()
 mtlx_math_safepower_float
 
function mtlx_math_safepower_color3 ()
 mtlx_math_safepower_color3
 
function mtlx_math_safepower_color4 ()
 mtlx_math_safepower_color4
 
function mtlx_math_safepower_vector2 ()
 mtlx_math_safepower_vector2
 
function mtlx_math_safepower_vector3 ()
 mtlx_math_safepower_vector3
 
function mtlx_math_safepower_vector4 ()
 mtlx_math_safepower_vector4
 
function mtlx_math_safepower_color3FA ()
 mtlx_math_safepower_color3FA
 
function mtlx_math_safepower_color4FA ()
 mtlx_math_safepower_color4FA
 
function mtlx_math_safepower_vector2FA ()
 mtlx_math_safepower_vector2FA
 
function mtlx_math_safepower_vector3FA ()
 mtlx_math_safepower_vector3FA
 
function mtlx_math_safepower_vector4FA ()
 mtlx_math_safepower_vector4FA
 
function mtlx_math_sin_float ()
 mtlx_math_sin_float
 
function mtlx_math_cos_float ()
 mtlx_math_cos_float
 
function mtlx_math_tan_float ()
 mtlx_math_tan_float
 
function mtlx_math_asin_float ()
 mtlx_math_asin_float
 
function mtlx_math_acos_float ()
 mtlx_math_acos_float
 
function mtlx_math_atan2_float ()
 mtlx_math_atan2_float
 
function mtlx_math_sin_vector2 ()
 mtlx_math_sin_vector2
 
function mtlx_math_cos_vector2 ()
 mtlx_math_cos_vector2
 
function mtlx_math_tan_vector2 ()
 mtlx_math_tan_vector2
 
function mtlx_math_asin_vector2 ()
 mtlx_math_asin_vector2
 
function mtlx_math_acos_vector2 ()
 mtlx_math_acos_vector2
 
function mtlx_math_atan2_vector2 ()
 mtlx_math_atan2_vector2
 
function mtlx_math_sin_vector3 ()
 mtlx_math_sin_vector3
 
function mtlx_math_cos_vector3 ()
 mtlx_math_cos_vector3
 
function mtlx_math_tan_vector3 ()
 mtlx_math_tan_vector3
 
function mtlx_math_asin_vector3 ()
 mtlx_math_asin_vector3
 
function mtlx_math_acos_vector3 ()
 mtlx_math_acos_vector3
 
function mtlx_math_atan2_vector3 ()
 mtlx_math_atan2_vector3
 
function mtlx_math_sin_vector4 ()
 mtlx_math_sin_vector4
 
function mtlx_math_cos_vector4 ()
 mtlx_math_cos_vector4
 
function mtlx_math_tan_vector4 ()
 mtlx_math_tan_vector4
 
function mtlx_math_asin_vector4 ()
 mtlx_math_asin_vector4
 
function mtlx_math_acos_vector4 ()
 mtlx_math_acos_vector4
 
function mtlx_math_atan2_vector4 ()
 mtlx_math_atan2_vector4
 
function mtlx_math_sqrt_float ()
 mtlx_math_sqrt_float
 
function mtlx_math_ln_float ()
 mtlx_math_ln_float
 
function mtlx_math_exp_float ()
 mtlx_math_exp_float
 
function mtlx_math_sqrt_vector2 ()
 mtlx_math_sqrt_vector2
 
function mtlx_math_ln_vector2 ()
 mtlx_math_ln_vector2
 
function mtlx_math_exp_vector2 ()
 mtlx_math_exp_vector2
 
function mtlx_math_sqrt_vector3 ()
 mtlx_math_sqrt_vector3
 
function mtlx_math_ln_vector3 ()
 mtlx_math_ln_vector3
 
function mtlx_math_exp_vector3 ()
 mtlx_math_exp_vector3
 
function mtlx_math_sqrt_vector4 ()
 mtlx_math_sqrt_vector4
 
function mtlx_math_ln_vector4 ()
 mtlx_math_ln_vector4
 
function mtlx_math_exp_vector4 ()
 mtlx_math_exp_vector4
 
function mtlx_math_sign_float ()
 mtlx_math_sign_float
 
function mtlx_math_sign_color3 ()
 mtlx_math_sign_color3
 
function mtlx_math_sign_color4 ()
 mtlx_math_sign_color4
 
function mtlx_math_sign_vector2 ()
 mtlx_math_sign_vector2
 
function mtlx_math_sign_vector3 ()
 mtlx_math_sign_vector3
 
function mtlx_math_sign_vector4 ()
 mtlx_math_sign_vector4
 
function mtlx_math_clamp_float ()
 mtlx_math_clamp_float
 
function mtlx_math_clamp_color3 ()
 mtlx_math_clamp_color3
 
function mtlx_math_clamp_color4 ()
 mtlx_math_clamp_color4
 
function mtlx_math_clamp_vector2 ()
 mtlx_math_clamp_vector2
 
function mtlx_math_clamp_vector3 ()
 mtlx_math_clamp_vector3
 
function mtlx_math_clamp_vector4 ()
 mtlx_math_clamp_vector4
 
function mtlx_math_clamp_color3FA ()
 mtlx_math_clamp_color3FA
 
function mtlx_math_clamp_color4FA ()
 mtlx_math_clamp_color4FA
 
function mtlx_math_clamp_vector2FA ()
 mtlx_math_clamp_vector2FA
 
function mtlx_math_clamp_vector3FA ()
 mtlx_math_clamp_vector3FA
 
function mtlx_math_clamp_vector4FA ()
 mtlx_math_clamp_vector4FA
 
function mtlx_math_min_float ()
 mtlx_math_min_float
 
function mtlx_math_min_color3 ()
 mtlx_math_min_color3
 
function mtlx_math_min_color4 ()
 mtlx_math_min_color4
 
function mtlx_math_min_vector2 ()
 mtlx_math_min_vector2
 
function mtlx_math_min_vector3 ()
 mtlx_math_min_vector3
 
function mtlx_math_min_vector4 ()
 mtlx_math_min_vector4
 
function mtlx_math_min_color3FA ()
 mtlx_math_min_color3FA
 
function mtlx_math_min_color4FA ()
 mtlx_math_min_color4FA
 
function mtlx_math_min_vector2FA ()
 mtlx_math_min_vector2FA
 
function mtlx_math_min_vector3FA ()
 mtlx_math_min_vector3FA
 
function mtlx_math_min_vector4FA ()
 mtlx_math_min_vector4FA
 
function mtlx_math_max_float ()
 mtlx_math_max_float
 
function mtlx_math_max_color3 ()
 mtlx_math_max_color3
 
function mtlx_math_max_color4 ()
 mtlx_math_max_color4
 
function mtlx_math_max_vector2 ()
 mtlx_math_max_vector2
 
function mtlx_math_max_vector3 ()
 mtlx_math_max_vector3
 
function mtlx_math_max_vector4 ()
 mtlx_math_max_vector4
 
function mtlx_math_max_color3FA ()
 mtlx_math_max_color3FA
 
function mtlx_math_max_color4FA ()
 mtlx_math_max_color4FA
 
function mtlx_math_max_vector2FA ()
 mtlx_math_max_vector2FA
 
function mtlx_math_max_vector3FA ()
 mtlx_math_max_vector3FA
 
function mtlx_math_max_vector4FA ()
 mtlx_math_max_vector4FA
 
function mtlx_math_normalize_vector2 ()
 mtlx_math_normalize_vector2
 
function mtlx_math_normalize_vector3 ()
 mtlx_math_normalize_vector3
 
function mtlx_math_normalize_vector4 ()
 mtlx_math_normalize_vector4
 
function mtlx_math_magnitude_vector2 ()
 mtlx_math_magnitude_vector2
 
function mtlx_math_magnitude_vector3 ()
 mtlx_math_magnitude_vector3
 
function mtlx_math_magnitude_vector4 ()
 mtlx_math_magnitude_vector4
 
function mtlx_math_distance_vector2 ()
 mtlx_math_distance_vector2
 
function mtlx_math_distance_vector3 ()
 mtlx_math_distance_vector3
 
function mtlx_math_distance_vector4 ()
 mtlx_math_distance_vector4
 
function mtlx_math_dotproduct_vector2 ()
 mtlx_math_dotproduct_vector2
 
function mtlx_math_dotproduct_vector3 ()
 mtlx_math_dotproduct_vector3
 
function mtlx_math_dotproduct_vector4 ()
 mtlx_math_dotproduct_vector4
 
function mtlx_math_crossproduct_vector3 ()
 mtlx_math_crossproduct_vector3
 
function mtlx_math_transformpoint_vector3 ()
 mtlx_math_transformpoint_vector3
 
function mtlx_math_transformvector_vector3 ()
 mtlx_math_transformvector_vector3
 
function mtlx_math_transformnormal_vector3 ()
 mtlx_math_transformnormal_vector3
 
function mtlx_math_transformmatrix_vector2M3 ()
 mtlx_math_transformmatrix_vector2M3
 
function mtlx_math_transformmatrix_vector3 ()
 mtlx_math_transformmatrix_vector3
 
function mtlx_math_transformmatrix_vector3M4 ()
 mtlx_math_transformmatrix_vector3M4
 
function mtlx_math_transformmatrix_vector4 ()
 mtlx_math_transformmatrix_vector4
 
function mtlx_math_normalmap_float ()
 mtlx_math_normalmap_float
 
function mtlx_math_normalmap_vector2 ()
 mtlx_math_normalmap_vector2
 
function mtlx_math_transpose_matrix33 ()
 mtlx_math_transpose_matrix33
 
function mtlx_math_transpose_matrix44 ()
 mtlx_math_transpose_matrix44
 
function mtlx_math_determinant_matrix33 ()
 mtlx_math_determinant_matrix33
 
function mtlx_math_determinant_matrix44 ()
 mtlx_math_determinant_matrix44
 
function mtlx_math_invertmatrix_matrix33 ()
 mtlx_math_invertmatrix_matrix33
 
function mtlx_math_invertmatrix_matrix44 ()
 mtlx_math_invertmatrix_matrix44
 
function mtlx_math_rotate2d_vector2 ()
 mtlx_math_rotate2d_vector2
 
function mtlx_math_rotate3d_vector3 ()
 mtlx_math_rotate3d_vector3
 
function mtlx_math_place2d_vector2 ()
 mtlx_math_place2d_vector2
 
function mtlx_math_trianglewave_float ()
 mtlx_math_trianglewave_float
 
function mtlx_math_reflect_vector3 ()
 mtlx_math_reflect_vector3
 
function mtlx_math_refract_vector3 ()
 mtlx_math_refract_vector3
 
function mtlx_adjustment_remap_float ()
 mtlx_adjustment_remap_float
 
function mtlx_adjustment_remap_color3 ()
 mtlx_adjustment_remap_color3
 
function mtlx_adjustment_remap_color4 ()
 mtlx_adjustment_remap_color4
 
function mtlx_adjustment_remap_vector2 ()
 mtlx_adjustment_remap_vector2
 
function mtlx_adjustment_remap_vector3 ()
 mtlx_adjustment_remap_vector3
 
function mtlx_adjustment_remap_vector4 ()
 mtlx_adjustment_remap_vector4
 
function mtlx_adjustment_remap_color3FA ()
 mtlx_adjustment_remap_color3FA
 
function mtlx_adjustment_remap_color4FA ()
 mtlx_adjustment_remap_color4FA
 
function mtlx_adjustment_remap_vector2FA ()
 mtlx_adjustment_remap_vector2FA
 
function mtlx_adjustment_remap_vector3FA ()
 mtlx_adjustment_remap_vector3FA
 
function mtlx_adjustment_remap_vector4FA ()
 mtlx_adjustment_remap_vector4FA
 
function mtlx_adjustment_smoothstep_float ()
 mtlx_adjustment_smoothstep_float
 
function mtlx_adjustment_smoothstep_color3 ()
 mtlx_adjustment_smoothstep_color3
 
function mtlx_adjustment_smoothstep_color4 ()
 mtlx_adjustment_smoothstep_color4
 
function mtlx_adjustment_smoothstep_vector2 ()
 mtlx_adjustment_smoothstep_vector2
 
function mtlx_adjustment_smoothstep_vector3 ()
 mtlx_adjustment_smoothstep_vector3
 
function mtlx_adjustment_smoothstep_vector4 ()
 mtlx_adjustment_smoothstep_vector4
 
function mtlx_adjustment_smoothstep_color3FA ()
 mtlx_adjustment_smoothstep_color3FA
 
function mtlx_adjustment_smoothstep_color4FA ()
 mtlx_adjustment_smoothstep_color4FA
 
function mtlx_adjustment_smoothstep_vector2FA ()
 mtlx_adjustment_smoothstep_vector2FA
 
function mtlx_adjustment_smoothstep_vector3FA ()
 mtlx_adjustment_smoothstep_vector3FA
 
function mtlx_adjustment_smoothstep_vector4FA ()
 mtlx_adjustment_smoothstep_vector4FA
 
function mtlx_adjustment_curveadjust_float ()
 mtlx_adjustment_curveadjust_float
 
function mtlx_adjustment_curveadjust_color3 ()
 mtlx_adjustment_curveadjust_color3
 
function mtlx_adjustment_curveadjust_color4 ()
 mtlx_adjustment_curveadjust_color4
 
function mtlx_adjustment_curveadjust_vector2 ()
 mtlx_adjustment_curveadjust_vector2
 
function mtlx_adjustment_curveadjust_vector3 ()
 mtlx_adjustment_curveadjust_vector3
 
function mtlx_adjustment_curveadjust_vector4 ()
 mtlx_adjustment_curveadjust_vector4
 
function mtlx_adjustment_luminance_color3 ()
 mtlx_adjustment_luminance_color3
 
function mtlx_adjustment_luminance_color4 ()
 mtlx_adjustment_luminance_color4
 
function mtlx_adjustment_rgbtohsv_color3 ()
 mtlx_adjustment_rgbtohsv_color3
 
function mtlx_adjustment_rgbtohsv_color4 ()
 mtlx_adjustment_rgbtohsv_color4
 
function mtlx_adjustment_hsvtorgb_color3 ()
 mtlx_adjustment_hsvtorgb_color3
 
function mtlx_adjustment_hsvtorgb_color4 ()
 mtlx_adjustment_hsvtorgb_color4
 
function mtlx_adjustment_contrast_float ()
 mtlx_adjustment_contrast_float
 
function mtlx_adjustment_contrast_color3 ()
 mtlx_adjustment_contrast_color3
 
function mtlx_adjustment_contrast_color4 ()
 mtlx_adjustment_contrast_color4
 
function mtlx_adjustment_contrast_vector2 ()
 mtlx_adjustment_contrast_vector2
 
function mtlx_adjustment_contrast_vector3 ()
 mtlx_adjustment_contrast_vector3
 
function mtlx_adjustment_contrast_vector4 ()
 mtlx_adjustment_contrast_vector4
 
function mtlx_adjustment_contrast_color3FA ()
 mtlx_adjustment_contrast_color3FA
 
function mtlx_adjustment_contrast_color4FA ()
 mtlx_adjustment_contrast_color4FA
 
function mtlx_adjustment_contrast_vector2FA ()
 mtlx_adjustment_contrast_vector2FA
 
function mtlx_adjustment_contrast_vector3FA ()
 mtlx_adjustment_contrast_vector3FA
 
function mtlx_adjustment_contrast_vector4FA ()
 mtlx_adjustment_contrast_vector4FA
 
function mtlx_adjustment_range_float ()
 mtlx_adjustment_range_float
 
function mtlx_adjustment_range_color3 ()
 mtlx_adjustment_range_color3
 
function mtlx_adjustment_range_color4 ()
 mtlx_adjustment_range_color4
 
function mtlx_adjustment_range_vector2 ()
 mtlx_adjustment_range_vector2
 
function mtlx_adjustment_range_vector3 ()
 mtlx_adjustment_range_vector3
 
function mtlx_adjustment_range_vector4 ()
 mtlx_adjustment_range_vector4
 
function mtlx_adjustment_range_color3FA ()
 mtlx_adjustment_range_color3FA
 
function mtlx_adjustment_range_color4FA ()
 mtlx_adjustment_range_color4FA
 
function mtlx_adjustment_range_vector2FA ()
 mtlx_adjustment_range_vector2FA
 
function mtlx_adjustment_range_vector3FA ()
 mtlx_adjustment_range_vector3FA
 
function mtlx_adjustment_range_vector4FA ()
 mtlx_adjustment_range_vector4FA
 
function mtlx_adjustment_hsvadjust_color3 ()
 mtlx_adjustment_hsvadjust_color3
 
function mtlx_adjustment_hsvadjust_color4 ()
 mtlx_adjustment_hsvadjust_color4
 
function mtlx_adjustment_saturate_color3 ()
 mtlx_adjustment_saturate_color3
 
function mtlx_adjustment_saturate_color4 ()
 mtlx_adjustment_saturate_color4
 
function mtlx_adjustment_colorcorrect_color3 ()
 mtlx_adjustment_colorcorrect_color3
 
function mtlx_adjustment_colorcorrect_color4 ()
 mtlx_adjustment_colorcorrect_color4
 
function mtlx_compositing_premult_color4 ()
 mtlx_compositing_premult_color4
 
function mtlx_compositing_unpremult_color4 ()
 mtlx_compositing_unpremult_color4
 
function mtlx_compositing_plus_float ()
 mtlx_compositing_plus_float
 
function mtlx_compositing_plus_color3 ()
 mtlx_compositing_plus_color3
 
function mtlx_compositing_plus_color4 ()
 mtlx_compositing_plus_color4
 
function mtlx_compositing_minus_float ()
 mtlx_compositing_minus_float
 
function mtlx_compositing_minus_color3 ()
 mtlx_compositing_minus_color3
 
function mtlx_compositing_minus_color4 ()
 mtlx_compositing_minus_color4
 
function mtlx_compositing_difference_float ()
 mtlx_compositing_difference_float
 
function mtlx_compositing_difference_color3 ()
 mtlx_compositing_difference_color3
 
function mtlx_compositing_difference_color4 ()
 mtlx_compositing_difference_color4
 
function mtlx_compositing_burn_float ()
 mtlx_compositing_burn_float
 
function mtlx_compositing_burn_color3 ()
 mtlx_compositing_burn_color3
 
function mtlx_compositing_burn_color4 ()
 mtlx_compositing_burn_color4
 
function mtlx_compositing_dodge_float ()
 mtlx_compositing_dodge_float
 
function mtlx_compositing_dodge_color3 ()
 mtlx_compositing_dodge_color3
 
function mtlx_compositing_dodge_color4 ()
 mtlx_compositing_dodge_color4
 
function mtlx_compositing_screen_float ()
 mtlx_compositing_screen_float
 
function mtlx_compositing_screen_color3 ()
 mtlx_compositing_screen_color3
 
function mtlx_compositing_screen_color4 ()
 mtlx_compositing_screen_color4
 
function mtlx_compositing_overlay_float ()
 mtlx_compositing_overlay_float
 
function mtlx_compositing_overlay_color3 ()
 mtlx_compositing_overlay_color3
 
function mtlx_compositing_overlay_color4 ()
 mtlx_compositing_overlay_color4
 
function mtlx_compositing_disjointover_color4 ()
 mtlx_compositing_disjointover_color4
 
function mtlx_compositing_in_color4 ()
 mtlx_compositing_in_color4
 
function mtlx_compositing_mask_color4 ()
 mtlx_compositing_mask_color4
 
function mtlx_compositing_matte_color4 ()
 mtlx_compositing_matte_color4
 
function mtlx_compositing_out_color4 ()
 mtlx_compositing_out_color4
 
function mtlx_compositing_over_color4 ()
 mtlx_compositing_over_color4
 
function mtlx_compositing_inside_float ()
 mtlx_compositing_inside_float
 
function mtlx_compositing_inside_color3 ()
 mtlx_compositing_inside_color3
 
function mtlx_compositing_inside_color4 ()
 mtlx_compositing_inside_color4
 
function mtlx_compositing_outside_float ()
 mtlx_compositing_outside_float
 
function mtlx_compositing_outside_color3 ()
 mtlx_compositing_outside_color3
 
function mtlx_compositing_outside_color4 ()
 mtlx_compositing_outside_color4
 
function mtlx_compositing_mix_float ()
 mtlx_compositing_mix_float
 
function mtlx_compositing_mix_color3 ()
 mtlx_compositing_mix_color3
 
function mtlx_compositing_mix_color3_color3 ()
 mtlx_compositing_mix_color3_color3
 
function mtlx_compositing_mix_color4 ()
 mtlx_compositing_mix_color4
 
function mtlx_compositing_mix_color4_color4 ()
 mtlx_compositing_mix_color4_color4
 
function mtlx_compositing_mix_vector2 ()
 mtlx_compositing_mix_vector2
 
function mtlx_compositing_mix_vector2_vector2 ()
 mtlx_compositing_mix_vector2_vector2
 
function mtlx_compositing_mix_vector3 ()
 mtlx_compositing_mix_vector3
 
function mtlx_compositing_mix_vector3_vector3 ()
 mtlx_compositing_mix_vector3_vector3
 
function mtlx_compositing_mix_vector4 ()
 mtlx_compositing_mix_vector4
 
function mtlx_compositing_mix_vector4_vector4 ()
 mtlx_compositing_mix_vector4_vector4
 
function mtlx_compositing_mix_surfaceshader ()
 mtlx_compositing_mix_surfaceshader
 
function mtlx_compositing_mix_displacementshader ()
 mtlx_compositing_mix_displacementshader
 
function mtlx_compositing_mix_volumeshader ()
 mtlx_compositing_mix_volumeshader
 
function mtlx_conditional_ifgreater_float ()
 mtlx_conditional_ifgreater_float
 
function mtlx_conditional_ifgreater_integer ()
 mtlx_conditional_ifgreater_integer
 
function mtlx_conditional_ifgreater_color3 ()
 mtlx_conditional_ifgreater_color3
 
function mtlx_conditional_ifgreater_color4 ()
 mtlx_conditional_ifgreater_color4
 
function mtlx_conditional_ifgreater_vector2 ()
 mtlx_conditional_ifgreater_vector2
 
function mtlx_conditional_ifgreater_vector3 ()
 mtlx_conditional_ifgreater_vector3
 
function mtlx_conditional_ifgreater_vector4 ()
 mtlx_conditional_ifgreater_vector4
 
function mtlx_conditional_ifgreater_matrix33 ()
 mtlx_conditional_ifgreater_matrix33
 
function mtlx_conditional_ifgreater_matrix44 ()
 mtlx_conditional_ifgreater_matrix44
 
function mtlx_conditional_ifgreater_boolean ()
 mtlx_conditional_ifgreater_boolean
 
function mtlx_conditional_ifgreater_floatI ()
 mtlx_conditional_ifgreater_floatI
 
function mtlx_conditional_ifgreater_integerI ()
 mtlx_conditional_ifgreater_integerI
 
function mtlx_conditional_ifgreater_color3I ()
 mtlx_conditional_ifgreater_color3I
 
function mtlx_conditional_ifgreater_color4I ()
 mtlx_conditional_ifgreater_color4I
 
function mtlx_conditional_ifgreater_vector2I ()
 mtlx_conditional_ifgreater_vector2I
 
function mtlx_conditional_ifgreater_vector3I ()
 mtlx_conditional_ifgreater_vector3I
 
function mtlx_conditional_ifgreater_vector4I ()
 mtlx_conditional_ifgreater_vector4I
 
function mtlx_conditional_ifgreater_matrix33I ()
 mtlx_conditional_ifgreater_matrix33I
 
function mtlx_conditional_ifgreater_matrix44I ()
 mtlx_conditional_ifgreater_matrix44I
 
function mtlx_conditional_ifgreater_booleanI ()
 mtlx_conditional_ifgreater_booleanI
 
function mtlx_conditional_ifgreatereq_float ()
 mtlx_conditional_ifgreatereq_float
 
function mtlx_conditional_ifgreatereq_integer ()
 mtlx_conditional_ifgreatereq_integer
 
function mtlx_conditional_ifgreatereq_color3 ()
 mtlx_conditional_ifgreatereq_color3
 
function mtlx_conditional_ifgreatereq_color4 ()
 mtlx_conditional_ifgreatereq_color4
 
function mtlx_conditional_ifgreatereq_vector2 ()
 mtlx_conditional_ifgreatereq_vector2
 
function mtlx_conditional_ifgreatereq_vector3 ()
 mtlx_conditional_ifgreatereq_vector3
 
function mtlx_conditional_ifgreatereq_vector4 ()
 mtlx_conditional_ifgreatereq_vector4
 
function mtlx_conditional_ifgreatereq_matrix33 ()
 mtlx_conditional_ifgreatereq_matrix33
 
function mtlx_conditional_ifgreatereq_matrix44 ()
 mtlx_conditional_ifgreatereq_matrix44
 
function mtlx_conditional_ifgreatereq_boolean ()
 mtlx_conditional_ifgreatereq_boolean
 
function mtlx_conditional_ifgreatereq_floatI ()
 mtlx_conditional_ifgreatereq_floatI
 
function mtlx_conditional_ifgreatereq_integerI ()
 mtlx_conditional_ifgreatereq_integerI
 
function mtlx_conditional_ifgreatereq_color3I ()
 mtlx_conditional_ifgreatereq_color3I
 
function mtlx_conditional_ifgreatereq_color4I ()
 mtlx_conditional_ifgreatereq_color4I
 
function mtlx_conditional_ifgreatereq_vector2I ()
 mtlx_conditional_ifgreatereq_vector2I
 
function mtlx_conditional_ifgreatereq_vector3I ()
 mtlx_conditional_ifgreatereq_vector3I
 
function mtlx_conditional_ifgreatereq_vector4I ()
 mtlx_conditional_ifgreatereq_vector4I
 
function mtlx_conditional_ifgreatereq_matrix33I ()
 mtlx_conditional_ifgreatereq_matrix33I
 
function mtlx_conditional_ifgreatereq_matrix44I ()
 mtlx_conditional_ifgreatereq_matrix44I
 
function mtlx_conditional_ifgreatereq_booleanI ()
 mtlx_conditional_ifgreatereq_booleanI
 
function mtlx_conditional_ifequal_float ()
 mtlx_conditional_ifequal_float
 
function mtlx_conditional_ifequal_integer ()
 mtlx_conditional_ifequal_integer
 
function mtlx_conditional_ifequal_color3 ()
 mtlx_conditional_ifequal_color3
 
function mtlx_conditional_ifequal_color4 ()
 mtlx_conditional_ifequal_color4
 
function mtlx_conditional_ifequal_vector2 ()
 mtlx_conditional_ifequal_vector2
 
function mtlx_conditional_ifequal_vector3 ()
 mtlx_conditional_ifequal_vector3
 
function mtlx_conditional_ifequal_vector4 ()
 mtlx_conditional_ifequal_vector4
 
function mtlx_conditional_ifequal_matrix33 ()
 mtlx_conditional_ifequal_matrix33
 
function mtlx_conditional_ifequal_matrix44 ()
 mtlx_conditional_ifequal_matrix44
 
function mtlx_conditional_ifequal_boolean ()
 mtlx_conditional_ifequal_boolean
 
function mtlx_conditional_ifequal_floatI ()
 mtlx_conditional_ifequal_floatI
 
function mtlx_conditional_ifequal_integerI ()
 mtlx_conditional_ifequal_integerI
 
function mtlx_conditional_ifequal_color3I ()
 mtlx_conditional_ifequal_color3I
 
function mtlx_conditional_ifequal_color4I ()
 mtlx_conditional_ifequal_color4I
 
function mtlx_conditional_ifequal_vector2I ()
 mtlx_conditional_ifequal_vector2I
 
function mtlx_conditional_ifequal_vector3I ()
 mtlx_conditional_ifequal_vector3I
 
function mtlx_conditional_ifequal_vector4I ()
 mtlx_conditional_ifequal_vector4I
 
function mtlx_conditional_ifequal_matrix33I ()
 mtlx_conditional_ifequal_matrix33I
 
function mtlx_conditional_ifequal_matrix44I ()
 mtlx_conditional_ifequal_matrix44I
 
function mtlx_conditional_ifequal_booleanI ()
 mtlx_conditional_ifequal_booleanI
 
function mtlx_conditional_ifequal_floatB ()
 mtlx_conditional_ifequal_floatB
 
function mtlx_conditional_ifequal_integerB ()
 mtlx_conditional_ifequal_integerB
 
function mtlx_conditional_ifequal_color3B ()
 mtlx_conditional_ifequal_color3B
 
function mtlx_conditional_ifequal_color4B ()
 mtlx_conditional_ifequal_color4B
 
function mtlx_conditional_ifequal_vector2B ()
 mtlx_conditional_ifequal_vector2B
 
function mtlx_conditional_ifequal_vector3B ()
 mtlx_conditional_ifequal_vector3B
 
function mtlx_conditional_ifequal_vector4B ()
 mtlx_conditional_ifequal_vector4B
 
function mtlx_conditional_ifequal_matrix33B ()
 mtlx_conditional_ifequal_matrix33B
 
function mtlx_conditional_ifequal_matrix44B ()
 mtlx_conditional_ifequal_matrix44B
 
function mtlx_conditional_ifequal_booleanB ()
 mtlx_conditional_ifequal_booleanB
 
function mtlx_conditional_switch_float ()
 mtlx_conditional_switch_float
 
function mtlx_conditional_switch_color3 ()
 mtlx_conditional_switch_color3
 
function mtlx_conditional_switch_color4 ()
 mtlx_conditional_switch_color4
 
function mtlx_conditional_switch_vector2 ()
 mtlx_conditional_switch_vector2
 
function mtlx_conditional_switch_vector3 ()
 mtlx_conditional_switch_vector3
 
function mtlx_conditional_switch_vector4 ()
 mtlx_conditional_switch_vector4
 
function mtlx_conditional_switch_matrix33 ()
 mtlx_conditional_switch_matrix33
 
function mtlx_conditional_switch_matrix44 ()
 mtlx_conditional_switch_matrix44
 
function mtlx_conditional_switch_floatI ()
 mtlx_conditional_switch_floatI
 
function mtlx_conditional_switch_color3I ()
 mtlx_conditional_switch_color3I
 
function mtlx_conditional_switch_color4I ()
 mtlx_conditional_switch_color4I
 
function mtlx_conditional_switch_vector2I ()
 mtlx_conditional_switch_vector2I
 
function mtlx_conditional_switch_vector3I ()
 mtlx_conditional_switch_vector3I
 
function mtlx_conditional_switch_vector4I ()
 mtlx_conditional_switch_vector4I
 
function mtlx_conditional_switch_matrix33I ()
 mtlx_conditional_switch_matrix33I
 
function mtlx_conditional_switch_matrix44I ()
 mtlx_conditional_switch_matrix44I
 
function mtlx_channel_convert_float_color3 ()
 mtlx_channel_convert_float_color3
 
function mtlx_channel_convert_float_color4 ()
 mtlx_channel_convert_float_color4
 
function mtlx_channel_convert_float_vector2 ()
 mtlx_channel_convert_float_vector2
 
function mtlx_channel_convert_float_vector3 ()
 mtlx_channel_convert_float_vector3
 
function mtlx_channel_convert_float_vector4 ()
 mtlx_channel_convert_float_vector4
 
function mtlx_channel_convert_color3_color4 ()
 mtlx_channel_convert_color3_color4
 
function mtlx_channel_convert_color3_vector2 ()
 mtlx_channel_convert_color3_vector2
 
function mtlx_channel_convert_color3_vector3 ()
 mtlx_channel_convert_color3_vector3
 
function mtlx_channel_convert_color3_vector4 ()
 mtlx_channel_convert_color3_vector4
 
function mtlx_channel_convert_color4_color3 ()
 mtlx_channel_convert_color4_color3
 
function mtlx_channel_convert_color4_vector2 ()
 mtlx_channel_convert_color4_vector2
 
function mtlx_channel_convert_color4_vector3 ()
 mtlx_channel_convert_color4_vector3
 
function mtlx_channel_convert_color4_vector4 ()
 mtlx_channel_convert_color4_vector4
 
function mtlx_channel_convert_vector2_color3 ()
 mtlx_channel_convert_vector2_color3
 
function mtlx_channel_convert_vector2_color4 ()
 mtlx_channel_convert_vector2_color4
 
function mtlx_channel_convert_vector2_vector3 ()
 mtlx_channel_convert_vector2_vector3
 
function mtlx_channel_convert_vector2_vector4 ()
 mtlx_channel_convert_vector2_vector4
 
function mtlx_channel_convert_vector3_color3 ()
 mtlx_channel_convert_vector3_color3
 
function mtlx_channel_convert_vector3_color4 ()
 mtlx_channel_convert_vector3_color4
 
function mtlx_channel_convert_vector3_vector2 ()
 mtlx_channel_convert_vector3_vector2
 
function mtlx_channel_convert_vector3_vector4 ()
 mtlx_channel_convert_vector3_vector4
 
function mtlx_channel_convert_vector4_color3 ()
 mtlx_channel_convert_vector4_color3
 
function mtlx_channel_convert_vector4_color4 ()
 mtlx_channel_convert_vector4_color4
 
function mtlx_channel_convert_vector4_vector2 ()
 mtlx_channel_convert_vector4_vector2
 
function mtlx_channel_convert_vector4_vector3 ()
 mtlx_channel_convert_vector4_vector3
 
function mtlx_channel_convert_boolean_float ()
 mtlx_channel_convert_boolean_float
 
function mtlx_channel_convert_boolean_color3 ()
 mtlx_channel_convert_boolean_color3
 
function mtlx_channel_convert_boolean_color4 ()
 mtlx_channel_convert_boolean_color4
 
function mtlx_channel_convert_boolean_vector2 ()
 mtlx_channel_convert_boolean_vector2
 
function mtlx_channel_convert_boolean_vector3 ()
 mtlx_channel_convert_boolean_vector3
 
function mtlx_channel_convert_boolean_vector4 ()
 mtlx_channel_convert_boolean_vector4
 
function mtlx_channel_convert_boolean_integer ()
 mtlx_channel_convert_boolean_integer
 
function mtlx_channel_convert_integer_float ()
 mtlx_channel_convert_integer_float
 
function mtlx_channel_convert_integer_color3 ()
 mtlx_channel_convert_integer_color3
 
function mtlx_channel_convert_integer_color4 ()
 mtlx_channel_convert_integer_color4
 
function mtlx_channel_convert_integer_vector2 ()
 mtlx_channel_convert_integer_vector2
 
function mtlx_channel_convert_integer_vector3 ()
 mtlx_channel_convert_integer_vector3
 
function mtlx_channel_convert_integer_vector4 ()
 mtlx_channel_convert_integer_vector4
 
function mtlx_channel_convert_integer_boolean ()
 mtlx_channel_convert_integer_boolean
 
function mtlx_shader_convert_color3_surfaceshader ()
 mtlx_shader_convert_color3_surfaceshader
 
function mtlx_shader_convert_color4_surfaceshader ()
 mtlx_shader_convert_color4_surfaceshader
 
function mtlx_shader_convert_float_surfaceshader ()
 mtlx_shader_convert_float_surfaceshader
 
function mtlx_shader_convert_vector2_surfaceshader ()
 mtlx_shader_convert_vector2_surfaceshader
 
function mtlx_shader_convert_vector3_surfaceshader ()
 mtlx_shader_convert_vector3_surfaceshader
 
function mtlx_shader_convert_vector4_surfaceshader ()
 mtlx_shader_convert_vector4_surfaceshader
 
function mtlx_shader_convert_integer_surfaceshader ()
 mtlx_shader_convert_integer_surfaceshader
 
function mtlx_shader_convert_boolean_surfaceshader ()
 mtlx_shader_convert_boolean_surfaceshader
 
function mtlx_channel_combine2_vector2 ()
 mtlx_channel_combine2_vector2
 
function mtlx_channel_combine2_color4CF ()
 mtlx_channel_combine2_color4CF
 
function mtlx_channel_combine2_vector4VF ()
 mtlx_channel_combine2_vector4VF
 
function mtlx_channel_combine2_vector4VV ()
 mtlx_channel_combine2_vector4VV
 
function mtlx_channel_combine3_color3 ()
 mtlx_channel_combine3_color3
 
function mtlx_channel_combine3_vector3 ()
 mtlx_channel_combine3_vector3
 
function mtlx_channel_combine4_color4 ()
 mtlx_channel_combine4_color4
 
function mtlx_channel_combine4_vector4 ()
 mtlx_channel_combine4_vector4
 
function mtlx_math_creatematrix_vector3_matrix33 ()
 mtlx_math_creatematrix_vector3_matrix33
 
function mtlx_math_creatematrix_vector3_matrix44 ()
 mtlx_math_creatematrix_vector3_matrix44
 
function mtlx_math_creatematrix_vector4_matrix44 ()
 mtlx_math_creatematrix_vector4_matrix44
 
function mtlx_channel_extract_color3 ()
 mtlx_channel_extract_color3
 
function mtlx_channel_extract_color4 ()
 mtlx_channel_extract_color4
 
function mtlx_channel_extract_vector2 ()
 mtlx_channel_extract_vector2
 
function mtlx_channel_extract_vector3 ()
 mtlx_channel_extract_vector3
 
function mtlx_channel_extract_vector4 ()
 mtlx_channel_extract_vector4
 
function mtlx_channel_separate2_vector2 ()
 mtlx_channel_separate2_vector2
 
function mtlx_channel_separate3_color3 ()
 mtlx_channel_separate3_color3
 
function mtlx_channel_separate3_vector3 ()
 mtlx_channel_separate3_vector3
 
function mtlx_channel_separate4_color4 ()
 mtlx_channel_separate4_color4
 
function mtlx_channel_separate4_vector4 ()
 mtlx_channel_separate4_vector4
 
function mtlx_convolution2d_blur_float ()
 mtlx_convolution2d_blur_float
 
function mtlx_convolution2d_blur_color3 ()
 mtlx_convolution2d_blur_color3
 
function mtlx_convolution2d_blur_color4 ()
 mtlx_convolution2d_blur_color4
 
function mtlx_convolution2d_blur_vector2 ()
 mtlx_convolution2d_blur_vector2
 
function mtlx_convolution2d_blur_vector3 ()
 mtlx_convolution2d_blur_vector3
 
function mtlx_convolution2d_blur_vector4 ()
 mtlx_convolution2d_blur_vector4
 
function mtlx_convolution2d_heighttonormal_vector3 ()
 mtlx_convolution2d_heighttonormal_vector3
 
function mtlx_conditional_logical_and ()
 mtlx_conditional_logical_and
 
function mtlx_conditional_logical_or ()
 mtlx_conditional_logical_or
 
function mtlx_conditional_logical_xor ()
 mtlx_conditional_logical_xor
 
function mtlx_conditional_logical_not ()
 mtlx_conditional_logical_not
 
function mtlx_organization_dot_float ()
 mtlx_organization_dot_float
 
function mtlx_organization_dot_color3 ()
 mtlx_organization_dot_color3
 
function mtlx_organization_dot_color4 ()
 mtlx_organization_dot_color4
 
function mtlx_organization_dot_vector2 ()
 mtlx_organization_dot_vector2
 
function mtlx_organization_dot_vector3 ()
 mtlx_organization_dot_vector3
 
function mtlx_organization_dot_vector4 ()
 mtlx_organization_dot_vector4
 
function mtlx_organization_dot_boolean ()
 mtlx_organization_dot_boolean
 
function mtlx_organization_dot_integer ()
 mtlx_organization_dot_integer
 
function mtlx_organization_dot_matrix33 ()
 mtlx_organization_dot_matrix33
 
function mtlx_organization_dot_matrix44 ()
 mtlx_organization_dot_matrix44
 
function mtlx_organization_dot_string ()
 mtlx_organization_dot_string
 
function mtlx_organization_dot_filename ()
 mtlx_organization_dot_filename
 
function mtlx_organization_dot_surfaceshader ()
 mtlx_organization_dot_surfaceshader
 
function mtlx_organization_dot_displacementshader ()
 mtlx_organization_dot_displacementshader
 
function mtlx_organization_dot_volumeshader ()
 mtlx_organization_dot_volumeshader
 
function mtlx_organization_dot_lightshader ()
 mtlx_organization_dot_lightshader
 
function mtlx_pbr_oren_nayar_diffuse_bsdf ()
 mtlx_pbr_oren_nayar_diffuse_bsdf
 
function mtlx_pbr_burley_diffuse_bsdf ()
 mtlx_pbr_burley_diffuse_bsdf
 
function mtlx_pbr_translucent_bsdf ()
 mtlx_pbr_translucent_bsdf
 
function mtlx_pbr_dielectric_bsdf ()
 mtlx_pbr_dielectric_bsdf
 
function mtlx_pbr_conductor_bsdf ()
 mtlx_pbr_conductor_bsdf
 
function mtlx_pbr_generalized_schlick_bsdf ()
 mtlx_pbr_generalized_schlick_bsdf
 
function mtlx_pbr_subsurface_bsdf ()
 mtlx_pbr_subsurface_bsdf
 
function mtlx_pbr_sheen_bsdf ()
 mtlx_pbr_sheen_bsdf
 
function mtlx_pbr_uniform_edf ()
 mtlx_pbr_uniform_edf
 
function mtlx_pbr_conical_edf ()
 mtlx_pbr_conical_edf
 
function mtlx_pbr_measured_edf ()
 mtlx_pbr_measured_edf
 
function mtlx_pbr_generalized_schlick_edf ()
 mtlx_pbr_generalized_schlick_edf
 
function mtlx_pbr_absorption_vdf ()
 mtlx_pbr_absorption_vdf
 
function mtlx_pbr_anisotropic_vdf ()
 mtlx_pbr_anisotropic_vdf
 
function mtlx_pbr_surface ()
 mtlx_pbr_surface
 
function mtlx_pbr_volume ()
 mtlx_pbr_volume
 
function mtlx_pbr_light ()
 mtlx_pbr_light
 
function mtlx_pbr_displacement_float ()
 mtlx_pbr_displacement_float
 
function mtlx_pbr_displacement_vector3 ()
 mtlx_pbr_displacement_vector3
 
function mtlx_pbr_layer_bsdf ()
 mtlx_pbr_layer_bsdf
 
function mtlx_pbr_layer_vdf ()
 mtlx_pbr_layer_vdf
 
function mtlx_pbr_mix_bsdf ()
 mtlx_pbr_mix_bsdf
 
function mtlx_pbr_mix_edf ()
 mtlx_pbr_mix_edf
 
function mtlx_pbr_mix_vdf ()
 mtlx_pbr_mix_vdf
 
function mtlx_pbr_add_bsdf ()
 mtlx_pbr_add_bsdf
 
function mtlx_pbr_add_edf ()
 mtlx_pbr_add_edf
 
function mtlx_pbr_add_vdf ()
 mtlx_pbr_add_vdf
 
function mtlx_pbr_multiply_bsdfC ()
 mtlx_pbr_multiply_bsdfC
 
function mtlx_pbr_multiply_bsdfF ()
 mtlx_pbr_multiply_bsdfF
 
function mtlx_pbr_multiply_edfC ()
 mtlx_pbr_multiply_edfC
 
function mtlx_pbr_multiply_edfF ()
 mtlx_pbr_multiply_edfF
 
function mtlx_pbr_multiply_vdfC ()
 mtlx_pbr_multiply_vdfC
 
function mtlx_pbr_multiply_vdfF ()
 mtlx_pbr_multiply_vdfF
 
function mtlx_pbr_roughness_anisotropy ()
 mtlx_pbr_roughness_anisotropy
 
function mtlx_pbr_roughness_dual ()
 mtlx_pbr_roughness_dual
 
function mtlx_pbr_glossiness_anisotropy ()
 mtlx_pbr_glossiness_anisotropy
 
function mtlx_pbr_blackbody ()
 mtlx_pbr_blackbody
 
function mtlx_pbr_artistic_ior ()
 mtlx_pbr_artistic_ior
 
function mtlx_npr_viewdirection_vector3 ()
 mtlx_npr_viewdirection_vector3
 
function mtlx_npr_facingratio_float ()
 mtlx_npr_facingratio_float
 
function mtlx_npr_gooch_shade ()
 mtlx_npr_gooch_shade
 
function mtlx_pbr_open_pbr_surface_surfaceshader ()
 mtlx_pbr_open_pbr_surface_surfaceshader
 
function mtlx_pbr_open_pbr_anisotropy ()
 mtlx_pbr_open_pbr_anisotropy
 
function mtlx_pbr_gltf_pbr_surfaceshader ()
 mtlx_pbr_gltf_pbr_surfaceshader
 
function mtlx_texture2d_gltf_colorimage ()
 mtlx_texture2d_gltf_colorimage
 
function mtlx_texture2d_gltf_image_color3_color3_1_0 ()
 mtlx_texture2d_gltf_image_color3_color3_1_0
 
function mtlx_texture2d_gltf_image_color4_color4_1_0 ()
 mtlx_texture2d_gltf_image_color4_color4_1_0
 
function mtlx_texture2d_gltf_image_float_float_1_0 ()
 mtlx_texture2d_gltf_image_float_float_1_0
 
function mtlx_texture2d_gltf_image_vector3_vector3_1_0 ()
 mtlx_texture2d_gltf_image_vector3_vector3_1_0
 
function mtlx_texture2d_gltf_normalmap_vector3_1_0 ()
 mtlx_texture2d_gltf_normalmap_vector3_1_0
 
function mtlx_texture2d_gltf_iridescence_thickness_float_1_0 ()
 mtlx_texture2d_gltf_iridescence_thickness_float_1_0
 
function mtlx_pbr_UsdPreviewSurface_surfaceshader ()
 mtlx_pbr_UsdPreviewSurface_surfaceshader
 
function mtlx_texture2d_UsdUVTexture ()
 mtlx_texture2d_UsdUVTexture
 
function mtlx_texture2d_UsdUVTexture_23 ()
 mtlx_texture2d_UsdUVTexture_23
 
function mtlx_geometric_UsdPrimvarReader_integer ()
 mtlx_geometric_UsdPrimvarReader_integer
 
function mtlx_geometric_UsdPrimvarReader_boolean ()
 mtlx_geometric_UsdPrimvarReader_boolean
 
function mtlx_geometric_UsdPrimvarReader_string ()
 mtlx_geometric_UsdPrimvarReader_string
 
function mtlx_geometric_UsdPrimvarReader_float ()
 mtlx_geometric_UsdPrimvarReader_float
 
function mtlx_geometric_UsdPrimvarReader_vector2 ()
 mtlx_geometric_UsdPrimvarReader_vector2
 
function mtlx_geometric_UsdPrimvarReader_vector3 ()
 mtlx_geometric_UsdPrimvarReader_vector3
 
function mtlx_geometric_UsdPrimvarReader_vector4 ()
 mtlx_geometric_UsdPrimvarReader_vector4
 
function mtlx_math_UsdTransform2d ()
 mtlx_math_UsdTransform2d
 
function mtlx_pbr_disney_brdf_2012_surface ()
 mtlx_pbr_disney_brdf_2012_surface
 
function mtlx_pbr_disney_bsdf_2015_surface ()
 mtlx_pbr_disney_bsdf_2015_surface
 
function mtlx_pbr_standard_surface_surfaceshader ()
 mtlx_pbr_standard_surface_surfaceshader
 
function mtlx_pbr_standard_surface_surfaceshader_100 ()
 mtlx_pbr_standard_surface_surfaceshader_100
 
function mtlx_pbr_lama_conductor ()
 mtlx_pbr_lama_conductor
 
function mtlx_pbr_lama_iridescence ()
 mtlx_pbr_lama_iridescence
 
function mtlx_pbr_lama_diffuse ()
 mtlx_pbr_lama_diffuse
 
function mtlx_pbr_lama_emission ()
 mtlx_pbr_lama_emission
 
function mtlx_pbr_lama_layer_bsdf ()
 mtlx_pbr_lama_layer_bsdf
 
function mtlx_pbr_lama_sheen ()
 mtlx_pbr_lama_sheen
 
function mtlx_pbr_lama_add_bsdf ()
 mtlx_pbr_lama_add_bsdf
 
function mtlx_pbr_lama_add_edf ()
 mtlx_pbr_lama_add_edf
 
function mtlx_pbr_lama_dielectric ()
 mtlx_pbr_lama_dielectric
 
function mtlx_pbr_lama_generalized_schlick ()
 mtlx_pbr_lama_generalized_schlick
 
function mtlx_pbr_lama_surface ()
 mtlx_pbr_lama_surface
 
function mtlx_pbr_lama_mix_bsdf ()
 mtlx_pbr_lama_mix_bsdf
 
function mtlx_pbr_lama_mix_edf ()
 mtlx_pbr_lama_mix_edf
 
function mtlx_pbr_lama_sss ()
 mtlx_pbr_lama_sss
 
function mtlx_pbr_lama_translucent ()
 mtlx_pbr_lama_translucent
 
function mtlx_translation_standard_surface_to_gltf_pbr ()
 mtlx_translation_standard_surface_to_gltf_pbr
 
function mtlx_translation_standard_surface_to_UsdPreviewSurface ()
 mtlx_translation_standard_surface_to_UsdPreviewSurface
 
function mtlx_colortransform_g18_rec709_to_lin_rec709_color3 ()
 mtlx_colortransform_g18_rec709_to_lin_rec709_color3
 
function mtlx_colortransform_g18_rec709_to_lin_rec709_color4 ()
 mtlx_colortransform_g18_rec709_to_lin_rec709_color4
 
function mtlx_colortransform_g22_rec709_to_lin_rec709_color3 ()
 mtlx_colortransform_g22_rec709_to_lin_rec709_color3
 
function mtlx_colortransform_g22_rec709_to_lin_rec709_color4 ()
 mtlx_colortransform_g22_rec709_to_lin_rec709_color4
 
function mtlx_colortransform_rec709_display_to_lin_rec709_color3 ()
 mtlx_colortransform_rec709_display_to_lin_rec709_color3
 
function mtlx_colortransform_rec709_display_to_lin_rec709_color4 ()
 mtlx_colortransform_rec709_display_to_lin_rec709_color4
 
function mtlx_colortransform_acescg_to_lin_rec709_color3 ()
 mtlx_colortransform_acescg_to_lin_rec709_color3
 
function mtlx_colortransform_acescg_to_lin_rec709_color4 ()
 mtlx_colortransform_acescg_to_lin_rec709_color4
 
function mtlx_colortransform_g22_ap1_to_lin_rec709_color3 ()
 mtlx_colortransform_g22_ap1_to_lin_rec709_color3
 
function mtlx_colortransform_g22_ap1_to_lin_rec709_color4 ()
 mtlx_colortransform_g22_ap1_to_lin_rec709_color4
 
function mtlx_colortransform_srgb_texture_to_lin_rec709_color3 ()
 mtlx_colortransform_srgb_texture_to_lin_rec709_color3
 
function mtlx_colortransform_srgb_texture_to_lin_rec709_color4 ()
 mtlx_colortransform_srgb_texture_to_lin_rec709_color4
 
function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3 ()
 mtlx_colortransform_lin_adobergb_to_lin_rec709_color3
 
function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4 ()
 mtlx_colortransform_lin_adobergb_to_lin_rec709_color4
 
function mtlx_colortransform_adobergb_to_lin_rec709_color3 ()
 mtlx_colortransform_adobergb_to_lin_rec709_color3
 
function mtlx_colortransform_adobergb_to_lin_rec709_color4 ()
 mtlx_colortransform_adobergb_to_lin_rec709_color4
 
function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3 ()
 mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3
 
function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4 ()
 mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4
 
function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3 ()
 mtlx_colortransform_lin_displayp3_to_lin_rec709_color3
 
function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4 ()
 mtlx_colortransform_lin_displayp3_to_lin_rec709_color4
 
function mtlx_light_point_light ()
 mtlx_light_point_light
 
function mtlx_light_directional_light ()
 mtlx_light_directional_light
 
function mtlx_light_spot_light ()
 mtlx_light_spot_light
 

Variables

mtlx_material_surfacematerial nodedef_name = 'ND_surfacematerial'
 
mtlx_material_surfacematerial nodedef_node = 'surfacematerial'
 
mtlx_material_surfacematerial nodedef_href
 

Function Documentation

◆ mtlx_adjustment_colorcorrect_color3()

function mtlx_adjustment_colorcorrect_color3 ( )

mtlx_adjustment_colorcorrect_color3

Library: mtlx. Category: saturate. Type: color3 LiteGraph id: mtlx/adjustment/colorcorrect_color3

Definition at line 23727 of file mtlx_stdlib.js.

23727 {
23728 this.nodedef_icon = '';
23729 this.nodedef_name = 'ND_colorcorrect_color3';
23730 this.nodedef_type = 'color3';
23731 this.nodedef_node = 'colorcorrect';
23732 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/colorcorrect.html';
23733 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_colorcorrect_color3_out_genglsl.png';
23734 this.nodedef_group = 'adjustment';
23735 this.addInput('in','color3');
23736 this.addProperty('in', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23737 this.addInput('hue','float');
23738 this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23739 this.addInput('saturation','float');
23740 this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23741 this.addInput('gamma','float');
23742 this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":"0.0","uimax":"3.0","uifolder":"","defaultgeomprop":""});
23743 this.addInput('lift','float');
23744 this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23745 this.addInput('gain','float');
23746 this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23747 this.addInput('contrast','float');
23748 this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23749 this.addInput('contrastpivot','float');
23750 this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23751 this.addInput('exposure','float');
23752 this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":"-1.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23753 this.addOutput('out','color3');
23754 this.title = 'colorcorrect_color3';
23755 this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color3";
23756 this.onNodeCreated = function() {
23757 //console.log('Node created:', this);
23758}
23759 this.onRemoved = function() {
23760 //console.log('Node removed:', this);
23761 }
23762 this.onPropertyChanged = function(name, value, prev_value) {
23763 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23764 }
23765 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23766 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23767 }
23768 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23769 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23770 }
23771 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23772 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23773 }
23774 this.bgcolor = '#111';
23775 this.color = '#222';
23776 this.shape = LiteGraph.ROUND_SHAPE;
23777 this.boxcolor = '#37A';
23778}
This class is a wrapper around the LiteGraph library to provide a MaterialX node editor.
mtlx_material_surfacematerial nodedef_name
mtlx_material_surfacematerial nodedef_href
mtlx_material_surfacematerial nodedef_node

◆ mtlx_adjustment_colorcorrect_color4()

function mtlx_adjustment_colorcorrect_color4 ( )

mtlx_adjustment_colorcorrect_color4

Library: mtlx. Category: colorcorrect. Type: color4 LiteGraph id: mtlx/adjustment/colorcorrect_color4

Definition at line 23789 of file mtlx_stdlib.js.

23789 {
23790 this.nodedef_icon = '';
23791 this.nodedef_name = 'ND_colorcorrect_color4';
23792 this.nodedef_type = 'color4';
23793 this.nodedef_node = 'colorcorrect';
23794 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/colorcorrect.html';
23795 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_colorcorrect_color4_out_genglsl.png';
23796 this.nodedef_group = 'adjustment';
23797 this.addInput('in','color4');
23798 this.addProperty('in', [1, 1, 1, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Input Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23799 this.addInput('hue','float');
23800 this.addProperty('hue', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23801 this.addInput('saturation','float');
23802 this.addProperty('saturation', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23803 this.addInput('gamma','float');
23804 this.addProperty('gamma', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gamma","uimin":"0.0","uimax":"3.0","uifolder":"","defaultgeomprop":""});
23805 this.addInput('lift','float');
23806 this.addProperty('lift', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lift","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23807 this.addInput('gain','float');
23808 this.addProperty('gain', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Gain","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23809 this.addInput('contrast','float');
23810 this.addProperty('contrast', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23811 this.addInput('contrastpivot','float');
23812 this.addProperty('contrastpivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Contrast Pivot","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23813 this.addInput('exposure','float');
23814 this.addProperty('exposure', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Exposure","uimin":"-1.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
23815 this.addOutput('out','color4');
23816 this.title = 'colorcorrect_color4';
23817 this.desc = "MaterialX:mtlx/adjustment/colorcorrect_color4";
23818 this.onNodeCreated = function() {
23819 //console.log('Node created:', this);
23820}
23821 this.onRemoved = function() {
23822 //console.log('Node removed:', this);
23823 }
23824 this.onPropertyChanged = function(name, value, prev_value) {
23825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23826 }
23827 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23829 }
23830 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23832 }
23833 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23835 }
23836 this.bgcolor = '#111';
23837 this.color = '#222';
23838 this.shape = LiteGraph.ROUND_SHAPE;
23839 this.boxcolor = '#69A';
23840}

◆ mtlx_adjustment_contrast_color3()

function mtlx_adjustment_contrast_color3 ( )

mtlx_adjustment_contrast_color3

Library: mtlx. Category: contrast. Type: color3 LiteGraph id: mtlx/adjustment/contrast_color3

Definition at line 22393 of file mtlx_stdlib.js.

22393 {
22394 this.nodedef_icon = '';
22395 this.nodedef_name = 'ND_contrast_color3';
22396 this.nodedef_type = 'color3';
22397 this.nodedef_node = 'contrast';
22398 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22399 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color3_out_genglsl.png';
22400 this.nodedef_group = 'adjustment';
22401 this.addInput('in','color3');
22402 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22403 this.addInput('amount','color3');
22404 this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22405 this.addInput('pivot','color3');
22406 this.addProperty('pivot', [0.5, 0.5, 0.5], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22407 this.addOutput('out','color3');
22408 this.title = 'contrast_color3';
22409 this.desc = "MaterialX:mtlx/adjustment/contrast_color3";
22410 this.onNodeCreated = function() {
22411 //console.log('Node created:', this);
22412}
22413 this.onRemoved = function() {
22414 //console.log('Node removed:', this);
22415 }
22416 this.onPropertyChanged = function(name, value, prev_value) {
22417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22418 }
22419 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22421 }
22422 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22424 }
22425 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22427 }
22428 this.bgcolor = '#111';
22429 this.color = '#222';
22430 this.shape = LiteGraph.ROUND_SHAPE;
22431 this.boxcolor = '#37A';
22432}

◆ mtlx_adjustment_contrast_color3FA()

function mtlx_adjustment_contrast_color3FA ( )

mtlx_adjustment_contrast_color3FA

Library: mtlx. Category: contrast. Type: color3 LiteGraph id: mtlx/adjustment/contrast_color3FA

Definition at line 22643 of file mtlx_stdlib.js.

22643 {
22644 this.nodedef_icon = '';
22645 this.nodedef_name = 'ND_contrast_color3FA';
22646 this.nodedef_type = 'color3';
22647 this.nodedef_node = 'contrast';
22648 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22649 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color3FA_out_genglsl.png';
22650 this.nodedef_group = 'adjustment';
22651 this.addInput('in','color3');
22652 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22653 this.addInput('amount','float');
22654 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22655 this.addInput('pivot','float');
22656 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22657 this.addOutput('out','color3');
22658 this.title = 'contrast_color3';
22659 this.desc = "MaterialX:mtlx/adjustment/contrast_color3FA";
22660 this.onNodeCreated = function() {
22661 //console.log('Node created:', this);
22662}
22663 this.onRemoved = function() {
22664 //console.log('Node removed:', this);
22665 }
22666 this.onPropertyChanged = function(name, value, prev_value) {
22667 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22668 }
22669 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22670 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22671 }
22672 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22673 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22674 }
22675 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22676 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22677 }
22678 this.bgcolor = '#111';
22679 this.color = '#222';
22680 this.shape = LiteGraph.ROUND_SHAPE;
22681 this.boxcolor = '#37A';
22682}

◆ mtlx_adjustment_contrast_color4()

function mtlx_adjustment_contrast_color4 ( )

mtlx_adjustment_contrast_color4

Library: mtlx. Category: contrast. Type: color4 LiteGraph id: mtlx/adjustment/contrast_color4

Definition at line 22443 of file mtlx_stdlib.js.

22443 {
22444 this.nodedef_icon = '';
22445 this.nodedef_name = 'ND_contrast_color4';
22446 this.nodedef_type = 'color4';
22447 this.nodedef_node = 'contrast';
22448 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22449 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color4_out_genglsl.png';
22450 this.nodedef_group = 'adjustment';
22451 this.addInput('in','color4');
22452 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22453 this.addInput('amount','color4');
22454 this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22455 this.addInput('pivot','color4');
22456 this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22457 this.addOutput('out','color4');
22458 this.title = 'contrast_color4';
22459 this.desc = "MaterialX:mtlx/adjustment/contrast_color4";
22460 this.onNodeCreated = function() {
22461 //console.log('Node created:', this);
22462}
22463 this.onRemoved = function() {
22464 //console.log('Node removed:', this);
22465 }
22466 this.onPropertyChanged = function(name, value, prev_value) {
22467 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22468 }
22469 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22470 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22471 }
22472 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22473 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22474 }
22475 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22476 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22477 }
22478 this.bgcolor = '#111';
22479 this.color = '#222';
22480 this.shape = LiteGraph.ROUND_SHAPE;
22481 this.boxcolor = '#69A';
22482}

◆ mtlx_adjustment_contrast_color4FA()

function mtlx_adjustment_contrast_color4FA ( )

mtlx_adjustment_contrast_color4FA

Library: mtlx. Category: contrast. Type: color4 LiteGraph id: mtlx/adjustment/contrast_color4FA

Definition at line 22693 of file mtlx_stdlib.js.

22693 {
22694 this.nodedef_icon = '';
22695 this.nodedef_name = 'ND_contrast_color4FA';
22696 this.nodedef_type = 'color4';
22697 this.nodedef_node = 'contrast';
22698 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22699 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color4FA_out_genglsl.png';
22700 this.nodedef_group = 'adjustment';
22701 this.addInput('in','color4');
22702 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22703 this.addInput('amount','float');
22704 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22705 this.addInput('pivot','float');
22706 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22707 this.addOutput('out','color4');
22708 this.title = 'contrast_color4';
22709 this.desc = "MaterialX:mtlx/adjustment/contrast_color4FA";
22710 this.onNodeCreated = function() {
22711 //console.log('Node created:', this);
22712}
22713 this.onRemoved = function() {
22714 //console.log('Node removed:', this);
22715 }
22716 this.onPropertyChanged = function(name, value, prev_value) {
22717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22718 }
22719 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22721 }
22722 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22724 }
22725 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22727 }
22728 this.bgcolor = '#111';
22729 this.color = '#222';
22730 this.shape = LiteGraph.ROUND_SHAPE;
22731 this.boxcolor = '#69A';
22732}

◆ mtlx_adjustment_contrast_float()

function mtlx_adjustment_contrast_float ( )

mtlx_adjustment_contrast_float

Library: mtlx. Category: hsvtorgb. Type: float LiteGraph id: mtlx/adjustment/contrast_float

Definition at line 22343 of file mtlx_stdlib.js.

22343 {
22344 this.nodedef_icon = '';
22345 this.nodedef_name = 'ND_contrast_float';
22346 this.nodedef_type = 'float';
22347 this.nodedef_node = 'contrast';
22348 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22349 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_float_out_genglsl.png';
22350 this.nodedef_group = 'adjustment';
22351 this.addInput('in','float');
22352 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22353 this.addInput('amount','float');
22354 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22355 this.addInput('pivot','float');
22356 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22357 this.addOutput('out','float');
22358 this.title = 'contrast_float';
22359 this.desc = "MaterialX:mtlx/adjustment/contrast_float";
22360 this.onNodeCreated = function() {
22361 //console.log('Node created:', this);
22362}
22363 this.onRemoved = function() {
22364 //console.log('Node removed:', this);
22365 }
22366 this.onPropertyChanged = function(name, value, prev_value) {
22367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22368 }
22369 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22371 }
22372 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22374 }
22375 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22377 }
22378 this.bgcolor = '#111';
22379 this.color = '#222';
22380 this.shape = LiteGraph.ROUND_SHAPE;
22381 this.boxcolor = '#161';
22382}

◆ mtlx_adjustment_contrast_vector2()

function mtlx_adjustment_contrast_vector2 ( )

mtlx_adjustment_contrast_vector2

Library: mtlx. Category: contrast. Type: vector2 LiteGraph id: mtlx/adjustment/contrast_vector2

Definition at line 22493 of file mtlx_stdlib.js.

22493 {
22494 this.nodedef_icon = '';
22495 this.nodedef_name = 'ND_contrast_vector2';
22496 this.nodedef_type = 'vector2';
22497 this.nodedef_node = 'contrast';
22498 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22499 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector2_out_genglsl.png';
22500 this.nodedef_group = 'adjustment';
22501 this.addInput('in','vector2');
22502 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22503 this.addInput('amount','vector2');
22504 this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22505 this.addInput('pivot','vector2');
22506 this.addProperty('pivot', [0.5, 0.5], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22507 this.addOutput('out','vector2');
22508 this.title = 'contrast_vector2';
22509 this.desc = "MaterialX:mtlx/adjustment/contrast_vector2";
22510 this.onNodeCreated = function() {
22511 //console.log('Node created:', this);
22512}
22513 this.onRemoved = function() {
22514 //console.log('Node removed:', this);
22515 }
22516 this.onPropertyChanged = function(name, value, prev_value) {
22517 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22518 }
22519 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22520 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22521 }
22522 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22523 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22524 }
22525 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22526 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22527 }
22528 this.bgcolor = '#111';
22529 this.color = '#222';
22530 this.shape = LiteGraph.ROUND_SHAPE;
22531 this.boxcolor = '#265';
22532}

◆ mtlx_adjustment_contrast_vector2FA()

function mtlx_adjustment_contrast_vector2FA ( )

mtlx_adjustment_contrast_vector2FA

Library: mtlx. Category: contrast. Type: vector2 LiteGraph id: mtlx/adjustment/contrast_vector2FA

Definition at line 22743 of file mtlx_stdlib.js.

22743 {
22744 this.nodedef_icon = '';
22745 this.nodedef_name = 'ND_contrast_vector2FA';
22746 this.nodedef_type = 'vector2';
22747 this.nodedef_node = 'contrast';
22748 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22749 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector2FA_out_genglsl.png';
22750 this.nodedef_group = 'adjustment';
22751 this.addInput('in','vector2');
22752 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22753 this.addInput('amount','float');
22754 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22755 this.addInput('pivot','float');
22756 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22757 this.addOutput('out','vector2');
22758 this.title = 'contrast_vector2';
22759 this.desc = "MaterialX:mtlx/adjustment/contrast_vector2FA";
22760 this.onNodeCreated = function() {
22761 //console.log('Node created:', this);
22762}
22763 this.onRemoved = function() {
22764 //console.log('Node removed:', this);
22765 }
22766 this.onPropertyChanged = function(name, value, prev_value) {
22767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22768 }
22769 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22771 }
22772 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22774 }
22775 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22777 }
22778 this.bgcolor = '#111';
22779 this.color = '#222';
22780 this.shape = LiteGraph.ROUND_SHAPE;
22781 this.boxcolor = '#265';
22782}

◆ mtlx_adjustment_contrast_vector3()

function mtlx_adjustment_contrast_vector3 ( )

mtlx_adjustment_contrast_vector3

Library: mtlx. Category: contrast. Type: vector3 LiteGraph id: mtlx/adjustment/contrast_vector3

Definition at line 22543 of file mtlx_stdlib.js.

22543 {
22544 this.nodedef_icon = '';
22545 this.nodedef_name = 'ND_contrast_vector3';
22546 this.nodedef_type = 'vector3';
22547 this.nodedef_node = 'contrast';
22548 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22549 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector3_out_genglsl.png';
22550 this.nodedef_group = 'adjustment';
22551 this.addInput('in','vector3');
22552 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22553 this.addInput('amount','vector3');
22554 this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22555 this.addInput('pivot','vector3');
22556 this.addProperty('pivot', [0.5, 0.5, 0.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22557 this.addOutput('out','vector3');
22558 this.title = 'contrast_vector3';
22559 this.desc = "MaterialX:mtlx/adjustment/contrast_vector3";
22560 this.onNodeCreated = function() {
22561 //console.log('Node created:', this);
22562}
22563 this.onRemoved = function() {
22564 //console.log('Node removed:', this);
22565 }
22566 this.onPropertyChanged = function(name, value, prev_value) {
22567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22568 }
22569 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22571 }
22572 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22574 }
22575 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22577 }
22578 this.bgcolor = '#111';
22579 this.color = '#222';
22580 this.shape = LiteGraph.ROUND_SHAPE;
22581 this.boxcolor = '#465';
22582}

◆ mtlx_adjustment_contrast_vector3FA()

function mtlx_adjustment_contrast_vector3FA ( )

mtlx_adjustment_contrast_vector3FA

Library: mtlx. Category: contrast. Type: vector3 LiteGraph id: mtlx/adjustment/contrast_vector3FA

Definition at line 22793 of file mtlx_stdlib.js.

22793 {
22794 this.nodedef_icon = '';
22795 this.nodedef_name = 'ND_contrast_vector3FA';
22796 this.nodedef_type = 'vector3';
22797 this.nodedef_node = 'contrast';
22798 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22799 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector3FA_out_genglsl.png';
22800 this.nodedef_group = 'adjustment';
22801 this.addInput('in','vector3');
22802 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22803 this.addInput('amount','float');
22804 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22805 this.addInput('pivot','float');
22806 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22807 this.addOutput('out','vector3');
22808 this.title = 'contrast_vector3';
22809 this.desc = "MaterialX:mtlx/adjustment/contrast_vector3FA";
22810 this.onNodeCreated = function() {
22811 //console.log('Node created:', this);
22812}
22813 this.onRemoved = function() {
22814 //console.log('Node removed:', this);
22815 }
22816 this.onPropertyChanged = function(name, value, prev_value) {
22817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22818 }
22819 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22821 }
22822 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22824 }
22825 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22827 }
22828 this.bgcolor = '#111';
22829 this.color = '#222';
22830 this.shape = LiteGraph.ROUND_SHAPE;
22831 this.boxcolor = '#465';
22832}

◆ mtlx_adjustment_contrast_vector4()

function mtlx_adjustment_contrast_vector4 ( )

mtlx_adjustment_contrast_vector4

Library: mtlx. Category: contrast. Type: vector4 LiteGraph id: mtlx/adjustment/contrast_vector4

Definition at line 22593 of file mtlx_stdlib.js.

22593 {
22594 this.nodedef_icon = '';
22595 this.nodedef_name = 'ND_contrast_vector4';
22596 this.nodedef_type = 'vector4';
22597 this.nodedef_node = 'contrast';
22598 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22599 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector4_out_genglsl.png';
22600 this.nodedef_group = 'adjustment';
22601 this.addInput('in','vector4');
22602 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22603 this.addInput('amount','vector4');
22604 this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22605 this.addInput('pivot','vector4');
22606 this.addProperty('pivot', [0.5, 0.5, 0.5, 0.5], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22607 this.addOutput('out','vector4');
22608 this.title = 'contrast_vector4';
22609 this.desc = "MaterialX:mtlx/adjustment/contrast_vector4";
22610 this.onNodeCreated = function() {
22611 //console.log('Node created:', this);
22612}
22613 this.onRemoved = function() {
22614 //console.log('Node removed:', this);
22615 }
22616 this.onPropertyChanged = function(name, value, prev_value) {
22617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22618 }
22619 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22621 }
22622 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22624 }
22625 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22627 }
22628 this.bgcolor = '#111';
22629 this.color = '#222';
22630 this.shape = LiteGraph.ROUND_SHAPE;
22631 this.boxcolor = '#275';
22632}

◆ mtlx_adjustment_contrast_vector4FA()

function mtlx_adjustment_contrast_vector4FA ( )

mtlx_adjustment_contrast_vector4FA

Library: mtlx. Category: contrast. Type: vector4 LiteGraph id: mtlx/adjustment/contrast_vector4FA

Definition at line 22843 of file mtlx_stdlib.js.

22843 {
22844 this.nodedef_icon = '';
22845 this.nodedef_name = 'ND_contrast_vector4FA';
22846 this.nodedef_type = 'vector4';
22847 this.nodedef_node = 'contrast';
22848 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22849 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector4FA_out_genglsl.png';
22850 this.nodedef_group = 'adjustment';
22851 this.addInput('in','vector4');
22852 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22853 this.addInput('amount','float');
22854 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22855 this.addInput('pivot','float');
22856 this.addProperty('pivot', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22857 this.addOutput('out','vector4');
22858 this.title = 'contrast_vector4';
22859 this.desc = "MaterialX:mtlx/adjustment/contrast_vector4FA";
22860 this.onNodeCreated = function() {
22861 //console.log('Node created:', this);
22862}
22863 this.onRemoved = function() {
22864 //console.log('Node removed:', this);
22865 }
22866 this.onPropertyChanged = function(name, value, prev_value) {
22867 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22868 }
22869 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22870 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22871 }
22872 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22873 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22874 }
22875 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22876 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22877 }
22878 this.bgcolor = '#111';
22879 this.color = '#222';
22880 this.shape = LiteGraph.ROUND_SHAPE;
22881 this.boxcolor = '#275';
22882}

◆ mtlx_adjustment_curveadjust_color3()

function mtlx_adjustment_curveadjust_color3 ( )

mtlx_adjustment_curveadjust_color3

Library: mtlx. Category: curveadjust. Type: color3 LiteGraph id: mtlx/adjustment/curveadjust_color3

Definition at line 21823 of file mtlx_stdlib.js.

21823 {
21824 this.nodedef_icon = '';
21825 this.nodedef_name = 'ND_curveadjust_color3';
21826 this.nodedef_type = 'color3';
21827 this.nodedef_node = 'curveadjust';
21828 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21829 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_color3_out_genglsl.png';
21830 this.nodedef_group = 'adjustment';
21831 this.addInput('in','color3');
21832 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21833 this.addInput('knots','vector2array');
21834 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21835 this.addOutput('out','color3');
21836 this.title = 'curveadjust_color3';
21837 this.desc = "MaterialX:mtlx/adjustment/curveadjust_color3";
21838 this.onNodeCreated = function() {
21839 //console.log('Node created:', this);
21840}
21841 this.onRemoved = function() {
21842 //console.log('Node removed:', this);
21843 }
21844 this.onPropertyChanged = function(name, value, prev_value) {
21845 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21846 }
21847 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21848 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21849 }
21850 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21851 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21852 }
21853 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21854 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21855 }
21856 this.bgcolor = '#111';
21857 this.color = '#222';
21858 this.shape = LiteGraph.ROUND_SHAPE;
21859 this.boxcolor = '#37A';
21860}

◆ mtlx_adjustment_curveadjust_color4()

function mtlx_adjustment_curveadjust_color4 ( )

mtlx_adjustment_curveadjust_color4

Library: mtlx. Category: curveadjust. Type: color4 LiteGraph id: mtlx/adjustment/curveadjust_color4

Definition at line 21871 of file mtlx_stdlib.js.

21871 {
21872 this.nodedef_icon = '';
21873 this.nodedef_name = 'ND_curveadjust_color4';
21874 this.nodedef_type = 'color4';
21875 this.nodedef_node = 'curveadjust';
21876 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21877 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_color4_out_genglsl.png';
21878 this.nodedef_group = 'adjustment';
21879 this.addInput('in','color4');
21880 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21881 this.addInput('knots','vector2array');
21882 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21883 this.addOutput('out','color4');
21884 this.title = 'curveadjust_color4';
21885 this.desc = "MaterialX:mtlx/adjustment/curveadjust_color4";
21886 this.onNodeCreated = function() {
21887 //console.log('Node created:', this);
21888}
21889 this.onRemoved = function() {
21890 //console.log('Node removed:', this);
21891 }
21892 this.onPropertyChanged = function(name, value, prev_value) {
21893 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21894 }
21895 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21896 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21897 }
21898 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21899 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21900 }
21901 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21902 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21903 }
21904 this.bgcolor = '#111';
21905 this.color = '#222';
21906 this.shape = LiteGraph.ROUND_SHAPE;
21907 this.boxcolor = '#69A';
21908}

◆ mtlx_adjustment_curveadjust_float()

function mtlx_adjustment_curveadjust_float ( )

mtlx_adjustment_curveadjust_float

Library: mtlx. Category: smoothstep. Type: float LiteGraph id: mtlx/adjustment/curveadjust_float

Definition at line 21775 of file mtlx_stdlib.js.

21775 {
21776 this.nodedef_icon = '';
21777 this.nodedef_name = 'ND_curveadjust_float';
21778 this.nodedef_type = 'float';
21779 this.nodedef_node = 'curveadjust';
21780 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21781 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_float_out_genglsl.png';
21782 this.nodedef_group = 'adjustment';
21783 this.addInput('in','float');
21784 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21785 this.addInput('knots','vector2array');
21786 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21787 this.addOutput('out','float');
21788 this.title = 'curveadjust_float';
21789 this.desc = "MaterialX:mtlx/adjustment/curveadjust_float";
21790 this.onNodeCreated = function() {
21791 //console.log('Node created:', this);
21792}
21793 this.onRemoved = function() {
21794 //console.log('Node removed:', this);
21795 }
21796 this.onPropertyChanged = function(name, value, prev_value) {
21797 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21798 }
21799 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21800 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21801 }
21802 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21803 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21804 }
21805 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21806 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21807 }
21808 this.bgcolor = '#111';
21809 this.color = '#222';
21810 this.shape = LiteGraph.ROUND_SHAPE;
21811 this.boxcolor = '#161';
21812}

◆ mtlx_adjustment_curveadjust_vector2()

function mtlx_adjustment_curveadjust_vector2 ( )

mtlx_adjustment_curveadjust_vector2

Library: mtlx. Category: curveadjust. Type: vector2 LiteGraph id: mtlx/adjustment/curveadjust_vector2

Definition at line 21919 of file mtlx_stdlib.js.

21919 {
21920 this.nodedef_icon = '';
21921 this.nodedef_name = 'ND_curveadjust_vector2';
21922 this.nodedef_type = 'vector2';
21923 this.nodedef_node = 'curveadjust';
21924 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21925 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector2_out_genglsl.png';
21926 this.nodedef_group = 'adjustment';
21927 this.addInput('in','vector2');
21928 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21929 this.addInput('knots','vector2array');
21930 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21931 this.addOutput('out','vector2');
21932 this.title = 'curveadjust_vector2';
21933 this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector2";
21934 this.onNodeCreated = function() {
21935 //console.log('Node created:', this);
21936}
21937 this.onRemoved = function() {
21938 //console.log('Node removed:', this);
21939 }
21940 this.onPropertyChanged = function(name, value, prev_value) {
21941 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21942 }
21943 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21944 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21945 }
21946 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21947 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21948 }
21949 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21950 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21951 }
21952 this.bgcolor = '#111';
21953 this.color = '#222';
21954 this.shape = LiteGraph.ROUND_SHAPE;
21955 this.boxcolor = '#265';
21956}

◆ mtlx_adjustment_curveadjust_vector3()

function mtlx_adjustment_curveadjust_vector3 ( )

mtlx_adjustment_curveadjust_vector3

Library: mtlx. Category: curveadjust. Type: vector3 LiteGraph id: mtlx/adjustment/curveadjust_vector3

Definition at line 21967 of file mtlx_stdlib.js.

21967 {
21968 this.nodedef_icon = '';
21969 this.nodedef_name = 'ND_curveadjust_vector3';
21970 this.nodedef_type = 'vector3';
21971 this.nodedef_node = 'curveadjust';
21972 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21973 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector3_out_genglsl.png';
21974 this.nodedef_group = 'adjustment';
21975 this.addInput('in','vector3');
21976 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21977 this.addInput('knots','vector2array');
21978 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21979 this.addOutput('out','vector3');
21980 this.title = 'curveadjust_vector3';
21981 this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector3";
21982 this.onNodeCreated = function() {
21983 //console.log('Node created:', this);
21984}
21985 this.onRemoved = function() {
21986 //console.log('Node removed:', this);
21987 }
21988 this.onPropertyChanged = function(name, value, prev_value) {
21989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21990 }
21991 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21993 }
21994 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21996 }
21997 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21999 }
22000 this.bgcolor = '#111';
22001 this.color = '#222';
22002 this.shape = LiteGraph.ROUND_SHAPE;
22003 this.boxcolor = '#465';
22004}

◆ mtlx_adjustment_curveadjust_vector4()

function mtlx_adjustment_curveadjust_vector4 ( )

mtlx_adjustment_curveadjust_vector4

Library: mtlx. Category: curveadjust. Type: vector4 LiteGraph id: mtlx/adjustment/curveadjust_vector4

Definition at line 22015 of file mtlx_stdlib.js.

22015 {
22016 this.nodedef_icon = '';
22017 this.nodedef_name = 'ND_curveadjust_vector4';
22018 this.nodedef_type = 'vector4';
22019 this.nodedef_node = 'curveadjust';
22020 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
22021 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector4_out_genglsl.png';
22022 this.nodedef_group = 'adjustment';
22023 this.addInput('in','vector4');
22024 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22025 this.addInput('knots','vector2array');
22026 this.addProperty('knots', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22027 this.addOutput('out','vector4');
22028 this.title = 'curveadjust_vector4';
22029 this.desc = "MaterialX:mtlx/adjustment/curveadjust_vector4";
22030 this.onNodeCreated = function() {
22031 //console.log('Node created:', this);
22032}
22033 this.onRemoved = function() {
22034 //console.log('Node removed:', this);
22035 }
22036 this.onPropertyChanged = function(name, value, prev_value) {
22037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22038 }
22039 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22041 }
22042 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22044 }
22045 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22047 }
22048 this.bgcolor = '#111';
22049 this.color = '#222';
22050 this.shape = LiteGraph.ROUND_SHAPE;
22051 this.boxcolor = '#275';
22052}

◆ mtlx_adjustment_hsvadjust_color3()

function mtlx_adjustment_hsvadjust_color3 ( )

mtlx_adjustment_hsvadjust_color3

Library: mtlx. Category: range. Type: color3 LiteGraph id: mtlx/adjustment/hsvadjust_color3

Definition at line 23531 of file mtlx_stdlib.js.

23531 {
23532 this.nodedef_icon = '';
23533 this.nodedef_name = 'ND_hsvadjust_color3';
23534 this.nodedef_type = 'color3';
23535 this.nodedef_node = 'hsvadjust';
23536 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvadjust.html';
23537 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvadjust_color3_out_genglsl.png';
23538 this.nodedef_group = 'adjustment';
23539 this.addInput('in','color3');
23540 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23541 this.addInput('amount','vector3');
23542 this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23543 this.addOutput('out','color3');
23544 this.title = 'hsvadjust_color3';
23545 this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color3";
23546 this.onNodeCreated = function() {
23547 //console.log('Node created:', this);
23548}
23549 this.onRemoved = function() {
23550 //console.log('Node removed:', this);
23551 }
23552 this.onPropertyChanged = function(name, value, prev_value) {
23553 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23554 }
23555 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23556 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23557 }
23558 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23559 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23560 }
23561 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23562 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23563 }
23564 this.bgcolor = '#111';
23565 this.color = '#222';
23566 this.shape = LiteGraph.ROUND_SHAPE;
23567 this.boxcolor = '#37A';
23568}

◆ mtlx_adjustment_hsvadjust_color4()

function mtlx_adjustment_hsvadjust_color4 ( )

mtlx_adjustment_hsvadjust_color4

Library: mtlx. Category: hsvadjust. Type: color4 LiteGraph id: mtlx/adjustment/hsvadjust_color4

Definition at line 23579 of file mtlx_stdlib.js.

23579 {
23580 this.nodedef_icon = '';
23581 this.nodedef_name = 'ND_hsvadjust_color4';
23582 this.nodedef_type = 'color4';
23583 this.nodedef_node = 'hsvadjust';
23584 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvadjust.html';
23585 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvadjust_color4_out_genglsl.png';
23586 this.nodedef_group = 'adjustment';
23587 this.addInput('in','color4');
23588 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23589 this.addInput('amount','vector3');
23590 this.addProperty('amount', [0.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23591 this.addOutput('out','color4');
23592 this.title = 'hsvadjust_color4';
23593 this.desc = "MaterialX:mtlx/adjustment/hsvadjust_color4";
23594 this.onNodeCreated = function() {
23595 //console.log('Node created:', this);
23596}
23597 this.onRemoved = function() {
23598 //console.log('Node removed:', this);
23599 }
23600 this.onPropertyChanged = function(name, value, prev_value) {
23601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23602 }
23603 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23605 }
23606 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23608 }
23609 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23611 }
23612 this.bgcolor = '#111';
23613 this.color = '#222';
23614 this.shape = LiteGraph.ROUND_SHAPE;
23615 this.boxcolor = '#69A';
23616}

◆ mtlx_adjustment_hsvtorgb_color3()

function mtlx_adjustment_hsvtorgb_color3 ( )

mtlx_adjustment_hsvtorgb_color3

Library: mtlx. Category: rgbtohsv. Type: color3 LiteGraph id: mtlx/adjustment/hsvtorgb_color3

Definition at line 22251 of file mtlx_stdlib.js.

22251 {
22252 this.nodedef_icon = '';
22253 this.nodedef_name = 'ND_hsvtorgb_color3';
22254 this.nodedef_type = 'color3';
22255 this.nodedef_node = 'hsvtorgb';
22256 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvtorgb.html';
22257 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvtorgb_color3_out_genglsl.png';
22258 this.nodedef_group = 'adjustment';
22259 this.addInput('in','color3');
22260 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22261 this.addOutput('out','color3');
22262 this.title = 'hsvtorgb_color3';
22263 this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color3";
22264 this.onNodeCreated = function() {
22265 //console.log('Node created:', this);
22266}
22267 this.onRemoved = function() {
22268 //console.log('Node removed:', this);
22269 }
22270 this.onPropertyChanged = function(name, value, prev_value) {
22271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22272 }
22273 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22275 }
22276 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22278 }
22279 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22281 }
22282 this.bgcolor = '#111';
22283 this.color = '#222';
22284 this.shape = LiteGraph.ROUND_SHAPE;
22285 this.boxcolor = '#37A';
22286}

◆ mtlx_adjustment_hsvtorgb_color4()

function mtlx_adjustment_hsvtorgb_color4 ( )

mtlx_adjustment_hsvtorgb_color4

Library: mtlx. Category: hsvtorgb. Type: color4 LiteGraph id: mtlx/adjustment/hsvtorgb_color4

Definition at line 22297 of file mtlx_stdlib.js.

22297 {
22298 this.nodedef_icon = '';
22299 this.nodedef_name = 'ND_hsvtorgb_color4';
22300 this.nodedef_type = 'color4';
22301 this.nodedef_node = 'hsvtorgb';
22302 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvtorgb.html';
22303 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvtorgb_color4_out_genglsl.png';
22304 this.nodedef_group = 'adjustment';
22305 this.addInput('in','color4');
22306 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22307 this.addOutput('out','color4');
22308 this.title = 'hsvtorgb_color4';
22309 this.desc = "MaterialX:mtlx/adjustment/hsvtorgb_color4";
22310 this.onNodeCreated = function() {
22311 //console.log('Node created:', this);
22312}
22313 this.onRemoved = function() {
22314 //console.log('Node removed:', this);
22315 }
22316 this.onPropertyChanged = function(name, value, prev_value) {
22317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22318 }
22319 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22321 }
22322 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22324 }
22325 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22327 }
22328 this.bgcolor = '#111';
22329 this.color = '#222';
22330 this.shape = LiteGraph.ROUND_SHAPE;
22331 this.boxcolor = '#69A';
22332}

◆ mtlx_adjustment_luminance_color3()

function mtlx_adjustment_luminance_color3 ( )

mtlx_adjustment_luminance_color3

Library: mtlx. Category: curveadjust. Type: color3 LiteGraph id: mtlx/adjustment/luminance_color3

Definition at line 22063 of file mtlx_stdlib.js.

22063 {
22064 this.nodedef_icon = '';
22065 this.nodedef_name = 'ND_luminance_color3';
22066 this.nodedef_type = 'color3';
22067 this.nodedef_node = 'luminance';
22068 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/luminance.html';
22069 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_luminance_color3_out_genglsl.png';
22070 this.nodedef_group = 'adjustment';
22071 this.addInput('in','color3');
22072 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22073 this.addInput('lumacoeffs','color3');
22074 this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["acescg"," rec709"," rec2020"," rec2100"],"enumvalues":["0.2722287","0.6740818","0.0536895"," 0.2126","0.7152","0.0722"," 0.2627","0.6780","0.0593"," 0.2627","0.6780","0.0593"]});
22075 this.addOutput('out','color3');
22076 this.title = 'luminance_color3';
22077 this.desc = "MaterialX:mtlx/adjustment/luminance_color3";
22078 this.onNodeCreated = function() {
22079 //console.log('Node created:', this);
22080}
22081 this.onRemoved = function() {
22082 //console.log('Node removed:', this);
22083 }
22084 this.onPropertyChanged = function(name, value, prev_value) {
22085 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22086 }
22087 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22088 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22089 }
22090 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22091 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22092 }
22093 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22094 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22095 }
22096 this.bgcolor = '#111';
22097 this.color = '#222';
22098 this.shape = LiteGraph.ROUND_SHAPE;
22099 this.boxcolor = '#37A';
22100}

◆ mtlx_adjustment_luminance_color4()

function mtlx_adjustment_luminance_color4 ( )

mtlx_adjustment_luminance_color4

Library: mtlx. Category: luminance. Type: color4 LiteGraph id: mtlx/adjustment/luminance_color4

Definition at line 22111 of file mtlx_stdlib.js.

22111 {
22112 this.nodedef_icon = '';
22113 this.nodedef_name = 'ND_luminance_color4';
22114 this.nodedef_type = 'color4';
22115 this.nodedef_node = 'luminance';
22116 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/luminance.html';
22117 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_luminance_color4_out_genglsl.png';
22118 this.nodedef_group = 'adjustment';
22119 this.addInput('in','color4');
22120 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22121 this.addInput('lumacoeffs','color3');
22122 this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["acescg"," rec709"," rec2020"," rec2100"],"enumvalues":["0.2722287","0.6740818","0.0536895"," 0.2126","0.7152","0.0722"," 0.2627","0.6780","0.0593"," 0.2627","0.6780","0.0593"]});
22123 this.addOutput('out','color4');
22124 this.title = 'luminance_color4';
22125 this.desc = "MaterialX:mtlx/adjustment/luminance_color4";
22126 this.onNodeCreated = function() {
22127 //console.log('Node created:', this);
22128}
22129 this.onRemoved = function() {
22130 //console.log('Node removed:', this);
22131 }
22132 this.onPropertyChanged = function(name, value, prev_value) {
22133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22134 }
22135 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22137 }
22138 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22140 }
22141 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22143 }
22144 this.bgcolor = '#111';
22145 this.color = '#222';
22146 this.shape = LiteGraph.ROUND_SHAPE;
22147 this.boxcolor = '#69A';
22148}

◆ mtlx_adjustment_range_color3()

function mtlx_adjustment_range_color3 ( )

mtlx_adjustment_range_color3

Library: mtlx. Category: range. Type: color3 LiteGraph id: mtlx/adjustment/range_color3

Definition at line 22951 of file mtlx_stdlib.js.

22951 {
22952 this.nodedef_icon = '';
22953 this.nodedef_name = 'ND_range_color3';
22954 this.nodedef_type = 'color3';
22955 this.nodedef_node = 'range';
22956 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
22957 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color3_out_genglsl.png';
22958 this.nodedef_group = 'adjustment';
22959 this.addInput('in','color3');
22960 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22961 this.addInput('inlow','color3');
22962 this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22963 this.addInput('inhigh','color3');
22964 this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22965 this.addInput('gamma','color3');
22966 this.addProperty('gamma', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22967 this.addInput('outlow','color3');
22968 this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22969 this.addInput('outhigh','color3');
22970 this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22971 this.addInput('doclamp','boolean');
22972 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22973 this.addOutput('out','color3');
22974 this.title = 'range_color3';
22975 this.desc = "MaterialX:mtlx/adjustment/range_color3";
22976 this.onNodeCreated = function() {
22977 //console.log('Node created:', this);
22978}
22979 this.onRemoved = function() {
22980 //console.log('Node removed:', this);
22981 }
22982 this.onPropertyChanged = function(name, value, prev_value) {
22983 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22984 }
22985 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22986 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22987 }
22988 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22989 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22990 }
22991 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22992 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22993 }
22994 this.bgcolor = '#111';
22995 this.color = '#222';
22996 this.shape = LiteGraph.ROUND_SHAPE;
22997 this.boxcolor = '#37A';
22998}

◆ mtlx_adjustment_range_color3FA()

function mtlx_adjustment_range_color3FA ( )

mtlx_adjustment_range_color3FA

Library: mtlx. Category: range. Type: color3 LiteGraph id: mtlx/adjustment/range_color3FA

Definition at line 23241 of file mtlx_stdlib.js.

23241 {
23242 this.nodedef_icon = '';
23243 this.nodedef_name = 'ND_range_color3FA';
23244 this.nodedef_type = 'color3';
23245 this.nodedef_node = 'range';
23246 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23247 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color3FA_out_genglsl.png';
23248 this.nodedef_group = 'adjustment';
23249 this.addInput('in','color3');
23250 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23251 this.addInput('inlow','float');
23252 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23253 this.addInput('inhigh','float');
23254 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23255 this.addInput('gamma','float');
23256 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23257 this.addInput('outlow','float');
23258 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23259 this.addInput('outhigh','float');
23260 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23261 this.addInput('doclamp','boolean');
23262 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23263 this.addOutput('out','color3');
23264 this.title = 'range_color3';
23265 this.desc = "MaterialX:mtlx/adjustment/range_color3FA";
23266 this.onNodeCreated = function() {
23267 //console.log('Node created:', this);
23268}
23269 this.onRemoved = function() {
23270 //console.log('Node removed:', this);
23271 }
23272 this.onPropertyChanged = function(name, value, prev_value) {
23273 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23274 }
23275 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23276 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23277 }
23278 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23279 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23280 }
23281 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23282 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23283 }
23284 this.bgcolor = '#111';
23285 this.color = '#222';
23286 this.shape = LiteGraph.ROUND_SHAPE;
23287 this.boxcolor = '#37A';
23288}

◆ mtlx_adjustment_range_color4()

function mtlx_adjustment_range_color4 ( )

mtlx_adjustment_range_color4

Library: mtlx. Category: range. Type: color4 LiteGraph id: mtlx/adjustment/range_color4

Definition at line 23009 of file mtlx_stdlib.js.

23009 {
23010 this.nodedef_icon = '';
23011 this.nodedef_name = 'ND_range_color4';
23012 this.nodedef_type = 'color4';
23013 this.nodedef_node = 'range';
23014 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23015 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color4_out_genglsl.png';
23016 this.nodedef_group = 'adjustment';
23017 this.addInput('in','color4');
23018 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23019 this.addInput('inlow','color4');
23020 this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23021 this.addInput('inhigh','color4');
23022 this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23023 this.addInput('gamma','color4');
23024 this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23025 this.addInput('outlow','color4');
23026 this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23027 this.addInput('outhigh','color4');
23028 this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23029 this.addInput('doclamp','boolean');
23030 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23031 this.addOutput('out','color4');
23032 this.title = 'range_color4';
23033 this.desc = "MaterialX:mtlx/adjustment/range_color4";
23034 this.onNodeCreated = function() {
23035 //console.log('Node created:', this);
23036}
23037 this.onRemoved = function() {
23038 //console.log('Node removed:', this);
23039 }
23040 this.onPropertyChanged = function(name, value, prev_value) {
23041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23042 }
23043 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23045 }
23046 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23048 }
23049 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23051 }
23052 this.bgcolor = '#111';
23053 this.color = '#222';
23054 this.shape = LiteGraph.ROUND_SHAPE;
23055 this.boxcolor = '#69A';
23056}

◆ mtlx_adjustment_range_color4FA()

function mtlx_adjustment_range_color4FA ( )

mtlx_adjustment_range_color4FA

Library: mtlx. Category: range. Type: color4 LiteGraph id: mtlx/adjustment/range_color4FA

Definition at line 23299 of file mtlx_stdlib.js.

23299 {
23300 this.nodedef_icon = '';
23301 this.nodedef_name = 'ND_range_color4FA';
23302 this.nodedef_type = 'color4';
23303 this.nodedef_node = 'range';
23304 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23305 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color4FA_out_genglsl.png';
23306 this.nodedef_group = 'adjustment';
23307 this.addInput('in','color4');
23308 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23309 this.addInput('inlow','float');
23310 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23311 this.addInput('inhigh','float');
23312 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23313 this.addInput('gamma','float');
23314 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23315 this.addInput('outlow','float');
23316 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23317 this.addInput('outhigh','float');
23318 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23319 this.addInput('doclamp','boolean');
23320 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23321 this.addOutput('out','color4');
23322 this.title = 'range_color4';
23323 this.desc = "MaterialX:mtlx/adjustment/range_color4FA";
23324 this.onNodeCreated = function() {
23325 //console.log('Node created:', this);
23326}
23327 this.onRemoved = function() {
23328 //console.log('Node removed:', this);
23329 }
23330 this.onPropertyChanged = function(name, value, prev_value) {
23331 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23332 }
23333 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23334 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23335 }
23336 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23337 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23338 }
23339 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23340 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23341 }
23342 this.bgcolor = '#111';
23343 this.color = '#222';
23344 this.shape = LiteGraph.ROUND_SHAPE;
23345 this.boxcolor = '#69A';
23346}

◆ mtlx_adjustment_range_float()

function mtlx_adjustment_range_float ( )

mtlx_adjustment_range_float

Library: mtlx. Category: contrast. Type: float LiteGraph id: mtlx/adjustment/range_float

Definition at line 22893 of file mtlx_stdlib.js.

22893 {
22894 this.nodedef_icon = '';
22895 this.nodedef_name = 'ND_range_float';
22896 this.nodedef_type = 'float';
22897 this.nodedef_node = 'range';
22898 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
22899 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_float_out_genglsl.png';
22900 this.nodedef_group = 'adjustment';
22901 this.addInput('in','float');
22902 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22903 this.addInput('inlow','float');
22904 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22905 this.addInput('inhigh','float');
22906 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22907 this.addInput('gamma','float');
22908 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22909 this.addInput('outlow','float');
22910 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22911 this.addInput('outhigh','float');
22912 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22913 this.addInput('doclamp','boolean');
22914 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22915 this.addOutput('out','float');
22916 this.title = 'range_float';
22917 this.desc = "MaterialX:mtlx/adjustment/range_float";
22918 this.onNodeCreated = function() {
22919 //console.log('Node created:', this);
22920}
22921 this.onRemoved = function() {
22922 //console.log('Node removed:', this);
22923 }
22924 this.onPropertyChanged = function(name, value, prev_value) {
22925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22926 }
22927 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22929 }
22930 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22932 }
22933 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22935 }
22936 this.bgcolor = '#111';
22937 this.color = '#222';
22938 this.shape = LiteGraph.ROUND_SHAPE;
22939 this.boxcolor = '#161';
22940}

◆ mtlx_adjustment_range_vector2()

function mtlx_adjustment_range_vector2 ( )

mtlx_adjustment_range_vector2

Library: mtlx. Category: range. Type: vector2 LiteGraph id: mtlx/adjustment/range_vector2

Definition at line 23067 of file mtlx_stdlib.js.

23067 {
23068 this.nodedef_icon = '';
23069 this.nodedef_name = 'ND_range_vector2';
23070 this.nodedef_type = 'vector2';
23071 this.nodedef_node = 'range';
23072 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23073 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector2_out_genglsl.png';
23074 this.nodedef_group = 'adjustment';
23075 this.addInput('in','vector2');
23076 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23077 this.addInput('inlow','vector2');
23078 this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23079 this.addInput('inhigh','vector2');
23080 this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23081 this.addInput('gamma','vector2');
23082 this.addProperty('gamma', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23083 this.addInput('outlow','vector2');
23084 this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23085 this.addInput('outhigh','vector2');
23086 this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23087 this.addInput('doclamp','boolean');
23088 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23089 this.addOutput('out','vector2');
23090 this.title = 'range_vector2';
23091 this.desc = "MaterialX:mtlx/adjustment/range_vector2";
23092 this.onNodeCreated = function() {
23093 //console.log('Node created:', this);
23094}
23095 this.onRemoved = function() {
23096 //console.log('Node removed:', this);
23097 }
23098 this.onPropertyChanged = function(name, value, prev_value) {
23099 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23100 }
23101 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23102 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23103 }
23104 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23105 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23106 }
23107 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23108 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23109 }
23110 this.bgcolor = '#111';
23111 this.color = '#222';
23112 this.shape = LiteGraph.ROUND_SHAPE;
23113 this.boxcolor = '#265';
23114}

◆ mtlx_adjustment_range_vector2FA()

function mtlx_adjustment_range_vector2FA ( )

mtlx_adjustment_range_vector2FA

Library: mtlx. Category: range. Type: vector2 LiteGraph id: mtlx/adjustment/range_vector2FA

Definition at line 23357 of file mtlx_stdlib.js.

23357 {
23358 this.nodedef_icon = '';
23359 this.nodedef_name = 'ND_range_vector2FA';
23360 this.nodedef_type = 'vector2';
23361 this.nodedef_node = 'range';
23362 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23363 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector2FA_out_genglsl.png';
23364 this.nodedef_group = 'adjustment';
23365 this.addInput('in','vector2');
23366 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23367 this.addInput('inlow','float');
23368 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23369 this.addInput('inhigh','float');
23370 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23371 this.addInput('gamma','float');
23372 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23373 this.addInput('outlow','float');
23374 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23375 this.addInput('outhigh','float');
23376 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23377 this.addInput('doclamp','boolean');
23378 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23379 this.addOutput('out','vector2');
23380 this.title = 'range_vector2';
23381 this.desc = "MaterialX:mtlx/adjustment/range_vector2FA";
23382 this.onNodeCreated = function() {
23383 //console.log('Node created:', this);
23384}
23385 this.onRemoved = function() {
23386 //console.log('Node removed:', this);
23387 }
23388 this.onPropertyChanged = function(name, value, prev_value) {
23389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23390 }
23391 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23393 }
23394 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23396 }
23397 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23399 }
23400 this.bgcolor = '#111';
23401 this.color = '#222';
23402 this.shape = LiteGraph.ROUND_SHAPE;
23403 this.boxcolor = '#265';
23404}

◆ mtlx_adjustment_range_vector3()

function mtlx_adjustment_range_vector3 ( )

mtlx_adjustment_range_vector3

Library: mtlx. Category: range. Type: vector3 LiteGraph id: mtlx/adjustment/range_vector3

Definition at line 23125 of file mtlx_stdlib.js.

23125 {
23126 this.nodedef_icon = '';
23127 this.nodedef_name = 'ND_range_vector3';
23128 this.nodedef_type = 'vector3';
23129 this.nodedef_node = 'range';
23130 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23131 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector3_out_genglsl.png';
23132 this.nodedef_group = 'adjustment';
23133 this.addInput('in','vector3');
23134 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23135 this.addInput('inlow','vector3');
23136 this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23137 this.addInput('inhigh','vector3');
23138 this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23139 this.addInput('gamma','vector3');
23140 this.addProperty('gamma', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23141 this.addInput('outlow','vector3');
23142 this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23143 this.addInput('outhigh','vector3');
23144 this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23145 this.addInput('doclamp','boolean');
23146 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23147 this.addOutput('out','vector3');
23148 this.title = 'range_vector3';
23149 this.desc = "MaterialX:mtlx/adjustment/range_vector3";
23150 this.onNodeCreated = function() {
23151 //console.log('Node created:', this);
23152}
23153 this.onRemoved = function() {
23154 //console.log('Node removed:', this);
23155 }
23156 this.onPropertyChanged = function(name, value, prev_value) {
23157 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23158 }
23159 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23160 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23161 }
23162 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23163 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23164 }
23165 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23166 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23167 }
23168 this.bgcolor = '#111';
23169 this.color = '#222';
23170 this.shape = LiteGraph.ROUND_SHAPE;
23171 this.boxcolor = '#465';
23172}

◆ mtlx_adjustment_range_vector3FA()

function mtlx_adjustment_range_vector3FA ( )

mtlx_adjustment_range_vector3FA

Library: mtlx. Category: range. Type: vector3 LiteGraph id: mtlx/adjustment/range_vector3FA

Definition at line 23415 of file mtlx_stdlib.js.

23415 {
23416 this.nodedef_icon = '';
23417 this.nodedef_name = 'ND_range_vector3FA';
23418 this.nodedef_type = 'vector3';
23419 this.nodedef_node = 'range';
23420 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23421 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector3FA_out_genglsl.png';
23422 this.nodedef_group = 'adjustment';
23423 this.addInput('in','vector3');
23424 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23425 this.addInput('inlow','float');
23426 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23427 this.addInput('inhigh','float');
23428 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23429 this.addInput('gamma','float');
23430 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23431 this.addInput('outlow','float');
23432 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23433 this.addInput('outhigh','float');
23434 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23435 this.addInput('doclamp','boolean');
23436 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23437 this.addOutput('out','vector3');
23438 this.title = 'range_vector3';
23439 this.desc = "MaterialX:mtlx/adjustment/range_vector3FA";
23440 this.onNodeCreated = function() {
23441 //console.log('Node created:', this);
23442}
23443 this.onRemoved = function() {
23444 //console.log('Node removed:', this);
23445 }
23446 this.onPropertyChanged = function(name, value, prev_value) {
23447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23448 }
23449 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23451 }
23452 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23454 }
23455 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23457 }
23458 this.bgcolor = '#111';
23459 this.color = '#222';
23460 this.shape = LiteGraph.ROUND_SHAPE;
23461 this.boxcolor = '#465';
23462}

◆ mtlx_adjustment_range_vector4()

function mtlx_adjustment_range_vector4 ( )

mtlx_adjustment_range_vector4

Library: mtlx. Category: range. Type: vector4 LiteGraph id: mtlx/adjustment/range_vector4

Definition at line 23183 of file mtlx_stdlib.js.

23183 {
23184 this.nodedef_icon = '';
23185 this.nodedef_name = 'ND_range_vector4';
23186 this.nodedef_type = 'vector4';
23187 this.nodedef_node = 'range';
23188 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23189 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector4_out_genglsl.png';
23190 this.nodedef_group = 'adjustment';
23191 this.addInput('in','vector4');
23192 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23193 this.addInput('inlow','vector4');
23194 this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23195 this.addInput('inhigh','vector4');
23196 this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23197 this.addInput('gamma','vector4');
23198 this.addProperty('gamma', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23199 this.addInput('outlow','vector4');
23200 this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23201 this.addInput('outhigh','vector4');
23202 this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23203 this.addInput('doclamp','boolean');
23204 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23205 this.addOutput('out','vector4');
23206 this.title = 'range_vector4';
23207 this.desc = "MaterialX:mtlx/adjustment/range_vector4";
23208 this.onNodeCreated = function() {
23209 //console.log('Node created:', this);
23210}
23211 this.onRemoved = function() {
23212 //console.log('Node removed:', this);
23213 }
23214 this.onPropertyChanged = function(name, value, prev_value) {
23215 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23216 }
23217 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23218 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23219 }
23220 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23221 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23222 }
23223 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23224 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23225 }
23226 this.bgcolor = '#111';
23227 this.color = '#222';
23228 this.shape = LiteGraph.ROUND_SHAPE;
23229 this.boxcolor = '#275';
23230}

◆ mtlx_adjustment_range_vector4FA()

function mtlx_adjustment_range_vector4FA ( )

mtlx_adjustment_range_vector4FA

Library: mtlx. Category: range. Type: vector4 LiteGraph id: mtlx/adjustment/range_vector4FA

Definition at line 23473 of file mtlx_stdlib.js.

23473 {
23474 this.nodedef_icon = '';
23475 this.nodedef_name = 'ND_range_vector4FA';
23476 this.nodedef_type = 'vector4';
23477 this.nodedef_node = 'range';
23478 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23479 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector4FA_out_genglsl.png';
23480 this.nodedef_group = 'adjustment';
23481 this.addInput('in','vector4');
23482 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23483 this.addInput('inlow','float');
23484 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23485 this.addInput('inhigh','float');
23486 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23487 this.addInput('gamma','float');
23488 this.addProperty('gamma', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23489 this.addInput('outlow','float');
23490 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23491 this.addInput('outhigh','float');
23492 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23493 this.addInput('doclamp','boolean');
23494 this.addProperty('doclamp', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23495 this.addOutput('out','vector4');
23496 this.title = 'range_vector4';
23497 this.desc = "MaterialX:mtlx/adjustment/range_vector4FA";
23498 this.onNodeCreated = function() {
23499 //console.log('Node created:', this);
23500}
23501 this.onRemoved = function() {
23502 //console.log('Node removed:', this);
23503 }
23504 this.onPropertyChanged = function(name, value, prev_value) {
23505 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23506 }
23507 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23508 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23509 }
23510 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23511 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23512 }
23513 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23514 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23515 }
23516 this.bgcolor = '#111';
23517 this.color = '#222';
23518 this.shape = LiteGraph.ROUND_SHAPE;
23519 this.boxcolor = '#275';
23520}

◆ mtlx_adjustment_remap_color3()

function mtlx_adjustment_remap_color3 ( )

mtlx_adjustment_remap_color3

Library: mtlx. Category: remap. Type: color3 LiteGraph id: mtlx/adjustment/remap_color3

Definition at line 20685 of file mtlx_stdlib.js.

20685 {
20686 this.nodedef_icon = '';
20687 this.nodedef_name = 'ND_remap_color3';
20688 this.nodedef_type = 'color3';
20689 this.nodedef_node = 'remap';
20690 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20691 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color3_out_genglsl.png';
20692 this.nodedef_group = 'adjustment';
20693 this.addInput('in','color3');
20694 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20695 this.addInput('inlow','color3');
20696 this.addProperty('inlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20697 this.addInput('inhigh','color3');
20698 this.addProperty('inhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20699 this.addInput('outlow','color3');
20700 this.addProperty('outlow', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20701 this.addInput('outhigh','color3');
20702 this.addProperty('outhigh', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20703 this.addOutput('out','color3');
20704 this.title = 'remap_color3';
20705 this.desc = "MaterialX:mtlx/adjustment/remap_color3";
20706 this.onNodeCreated = function() {
20707 //console.log('Node created:', this);
20708}
20709 this.onRemoved = function() {
20710 //console.log('Node removed:', this);
20711 }
20712 this.onPropertyChanged = function(name, value, prev_value) {
20713 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20714 }
20715 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20716 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20717 }
20718 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20719 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20720 }
20721 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20722 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20723 }
20724 this.bgcolor = '#111';
20725 this.color = '#222';
20726 this.shape = LiteGraph.ROUND_SHAPE;
20727 this.boxcolor = '#37A';
20728}

◆ mtlx_adjustment_remap_color3FA()

function mtlx_adjustment_remap_color3FA ( )

mtlx_adjustment_remap_color3FA

Library: mtlx. Category: remap. Type: color3 LiteGraph id: mtlx/adjustment/remap_color3FA

Definition at line 20955 of file mtlx_stdlib.js.

20955 {
20956 this.nodedef_icon = '';
20957 this.nodedef_name = 'ND_remap_color3FA';
20958 this.nodedef_type = 'color3';
20959 this.nodedef_node = 'remap';
20960 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20961 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color3FA_out_genglsl.png';
20962 this.nodedef_group = 'adjustment';
20963 this.addInput('in','color3');
20964 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20965 this.addInput('inlow','float');
20966 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20967 this.addInput('inhigh','float');
20968 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20969 this.addInput('outlow','float');
20970 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20971 this.addInput('outhigh','float');
20972 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20973 this.addOutput('out','color3');
20974 this.title = 'remap_color3';
20975 this.desc = "MaterialX:mtlx/adjustment/remap_color3FA";
20976 this.onNodeCreated = function() {
20977 //console.log('Node created:', this);
20978}
20979 this.onRemoved = function() {
20980 //console.log('Node removed:', this);
20981 }
20982 this.onPropertyChanged = function(name, value, prev_value) {
20983 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20984 }
20985 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20986 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20987 }
20988 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20989 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20990 }
20991 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20992 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20993 }
20994 this.bgcolor = '#111';
20995 this.color = '#222';
20996 this.shape = LiteGraph.ROUND_SHAPE;
20997 this.boxcolor = '#37A';
20998}

◆ mtlx_adjustment_remap_color4()

function mtlx_adjustment_remap_color4 ( )

mtlx_adjustment_remap_color4

Library: mtlx. Category: remap. Type: color4 LiteGraph id: mtlx/adjustment/remap_color4

Definition at line 20739 of file mtlx_stdlib.js.

20739 {
20740 this.nodedef_icon = '';
20741 this.nodedef_name = 'ND_remap_color4';
20742 this.nodedef_type = 'color4';
20743 this.nodedef_node = 'remap';
20744 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20745 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color4_out_genglsl.png';
20746 this.nodedef_group = 'adjustment';
20747 this.addInput('in','color4');
20748 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20749 this.addInput('inlow','color4');
20750 this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20751 this.addInput('inhigh','color4');
20752 this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20753 this.addInput('outlow','color4');
20754 this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20755 this.addInput('outhigh','color4');
20756 this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20757 this.addOutput('out','color4');
20758 this.title = 'remap_color4';
20759 this.desc = "MaterialX:mtlx/adjustment/remap_color4";
20760 this.onNodeCreated = function() {
20761 //console.log('Node created:', this);
20762}
20763 this.onRemoved = function() {
20764 //console.log('Node removed:', this);
20765 }
20766 this.onPropertyChanged = function(name, value, prev_value) {
20767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20768 }
20769 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20771 }
20772 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20774 }
20775 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20777 }
20778 this.bgcolor = '#111';
20779 this.color = '#222';
20780 this.shape = LiteGraph.ROUND_SHAPE;
20781 this.boxcolor = '#69A';
20782}

◆ mtlx_adjustment_remap_color4FA()

function mtlx_adjustment_remap_color4FA ( )

mtlx_adjustment_remap_color4FA

Library: mtlx. Category: remap. Type: color4 LiteGraph id: mtlx/adjustment/remap_color4FA

Definition at line 21009 of file mtlx_stdlib.js.

21009 {
21010 this.nodedef_icon = '';
21011 this.nodedef_name = 'ND_remap_color4FA';
21012 this.nodedef_type = 'color4';
21013 this.nodedef_node = 'remap';
21014 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21015 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color4FA_out_genglsl.png';
21016 this.nodedef_group = 'adjustment';
21017 this.addInput('in','color4');
21018 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21019 this.addInput('inlow','float');
21020 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21021 this.addInput('inhigh','float');
21022 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21023 this.addInput('outlow','float');
21024 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21025 this.addInput('outhigh','float');
21026 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21027 this.addOutput('out','color4');
21028 this.title = 'remap_color4';
21029 this.desc = "MaterialX:mtlx/adjustment/remap_color4FA";
21030 this.onNodeCreated = function() {
21031 //console.log('Node created:', this);
21032}
21033 this.onRemoved = function() {
21034 //console.log('Node removed:', this);
21035 }
21036 this.onPropertyChanged = function(name, value, prev_value) {
21037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21038 }
21039 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21041 }
21042 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21044 }
21045 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21047 }
21048 this.bgcolor = '#111';
21049 this.color = '#222';
21050 this.shape = LiteGraph.ROUND_SHAPE;
21051 this.boxcolor = '#69A';
21052}

◆ mtlx_adjustment_remap_float()

function mtlx_adjustment_remap_float ( )

mtlx_adjustment_remap_float

Library: mtlx. Category: refract. Type: float LiteGraph id: mtlx/adjustment/remap_float

Definition at line 20631 of file mtlx_stdlib.js.

20631 {
20632 this.nodedef_icon = '';
20633 this.nodedef_name = 'ND_remap_float';
20634 this.nodedef_type = 'float';
20635 this.nodedef_node = 'remap';
20636 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20637 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_float_out_genglsl.png';
20638 this.nodedef_group = 'adjustment';
20639 this.addInput('in','float');
20640 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20641 this.addInput('inlow','float');
20642 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20643 this.addInput('inhigh','float');
20644 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20645 this.addInput('outlow','float');
20646 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20647 this.addInput('outhigh','float');
20648 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20649 this.addOutput('out','float');
20650 this.title = 'remap_float';
20651 this.desc = "MaterialX:mtlx/adjustment/remap_float";
20652 this.onNodeCreated = function() {
20653 //console.log('Node created:', this);
20654}
20655 this.onRemoved = function() {
20656 //console.log('Node removed:', this);
20657 }
20658 this.onPropertyChanged = function(name, value, prev_value) {
20659 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20660 }
20661 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20662 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20663 }
20664 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20665 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20666 }
20667 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20668 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20669 }
20670 this.bgcolor = '#111';
20671 this.color = '#222';
20672 this.shape = LiteGraph.ROUND_SHAPE;
20673 this.boxcolor = '#161';
20674}

◆ mtlx_adjustment_remap_vector2()

function mtlx_adjustment_remap_vector2 ( )

mtlx_adjustment_remap_vector2

Library: mtlx. Category: remap. Type: vector2 LiteGraph id: mtlx/adjustment/remap_vector2

Definition at line 20793 of file mtlx_stdlib.js.

20793 {
20794 this.nodedef_icon = '';
20795 this.nodedef_name = 'ND_remap_vector2';
20796 this.nodedef_type = 'vector2';
20797 this.nodedef_node = 'remap';
20798 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20799 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector2_out_genglsl.png';
20800 this.nodedef_group = 'adjustment';
20801 this.addInput('in','vector2');
20802 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20803 this.addInput('inlow','vector2');
20804 this.addProperty('inlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20805 this.addInput('inhigh','vector2');
20806 this.addProperty('inhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20807 this.addInput('outlow','vector2');
20808 this.addProperty('outlow', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20809 this.addInput('outhigh','vector2');
20810 this.addProperty('outhigh', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20811 this.addOutput('out','vector2');
20812 this.title = 'remap_vector2';
20813 this.desc = "MaterialX:mtlx/adjustment/remap_vector2";
20814 this.onNodeCreated = function() {
20815 //console.log('Node created:', this);
20816}
20817 this.onRemoved = function() {
20818 //console.log('Node removed:', this);
20819 }
20820 this.onPropertyChanged = function(name, value, prev_value) {
20821 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20822 }
20823 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20824 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20825 }
20826 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20827 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20828 }
20829 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20830 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20831 }
20832 this.bgcolor = '#111';
20833 this.color = '#222';
20834 this.shape = LiteGraph.ROUND_SHAPE;
20835 this.boxcolor = '#265';
20836}

◆ mtlx_adjustment_remap_vector2FA()

function mtlx_adjustment_remap_vector2FA ( )

mtlx_adjustment_remap_vector2FA

Library: mtlx. Category: remap. Type: vector2 LiteGraph id: mtlx/adjustment/remap_vector2FA

Definition at line 21063 of file mtlx_stdlib.js.

21063 {
21064 this.nodedef_icon = '';
21065 this.nodedef_name = 'ND_remap_vector2FA';
21066 this.nodedef_type = 'vector2';
21067 this.nodedef_node = 'remap';
21068 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21069 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector2FA_out_genglsl.png';
21070 this.nodedef_group = 'adjustment';
21071 this.addInput('in','vector2');
21072 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21073 this.addInput('inlow','float');
21074 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21075 this.addInput('inhigh','float');
21076 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21077 this.addInput('outlow','float');
21078 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21079 this.addInput('outhigh','float');
21080 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21081 this.addOutput('out','vector2');
21082 this.title = 'remap_vector2';
21083 this.desc = "MaterialX:mtlx/adjustment/remap_vector2FA";
21084 this.onNodeCreated = function() {
21085 //console.log('Node created:', this);
21086}
21087 this.onRemoved = function() {
21088 //console.log('Node removed:', this);
21089 }
21090 this.onPropertyChanged = function(name, value, prev_value) {
21091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21092 }
21093 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21095 }
21096 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21098 }
21099 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21101 }
21102 this.bgcolor = '#111';
21103 this.color = '#222';
21104 this.shape = LiteGraph.ROUND_SHAPE;
21105 this.boxcolor = '#265';
21106}

◆ mtlx_adjustment_remap_vector3()

function mtlx_adjustment_remap_vector3 ( )

mtlx_adjustment_remap_vector3

Library: mtlx. Category: remap. Type: vector3 LiteGraph id: mtlx/adjustment/remap_vector3

Definition at line 20847 of file mtlx_stdlib.js.

20847 {
20848 this.nodedef_icon = '';
20849 this.nodedef_name = 'ND_remap_vector3';
20850 this.nodedef_type = 'vector3';
20851 this.nodedef_node = 'remap';
20852 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20853 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector3_out_genglsl.png';
20854 this.nodedef_group = 'adjustment';
20855 this.addInput('in','vector3');
20856 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20857 this.addInput('inlow','vector3');
20858 this.addProperty('inlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20859 this.addInput('inhigh','vector3');
20860 this.addProperty('inhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20861 this.addInput('outlow','vector3');
20862 this.addProperty('outlow', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20863 this.addInput('outhigh','vector3');
20864 this.addProperty('outhigh', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20865 this.addOutput('out','vector3');
20866 this.title = 'remap_vector3';
20867 this.desc = "MaterialX:mtlx/adjustment/remap_vector3";
20868 this.onNodeCreated = function() {
20869 //console.log('Node created:', this);
20870}
20871 this.onRemoved = function() {
20872 //console.log('Node removed:', this);
20873 }
20874 this.onPropertyChanged = function(name, value, prev_value) {
20875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20876 }
20877 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20879 }
20880 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20882 }
20883 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20885 }
20886 this.bgcolor = '#111';
20887 this.color = '#222';
20888 this.shape = LiteGraph.ROUND_SHAPE;
20889 this.boxcolor = '#465';
20890}

◆ mtlx_adjustment_remap_vector3FA()

function mtlx_adjustment_remap_vector3FA ( )

mtlx_adjustment_remap_vector3FA

Library: mtlx. Category: remap. Type: vector3 LiteGraph id: mtlx/adjustment/remap_vector3FA

Definition at line 21117 of file mtlx_stdlib.js.

21117 {
21118 this.nodedef_icon = '';
21119 this.nodedef_name = 'ND_remap_vector3FA';
21120 this.nodedef_type = 'vector3';
21121 this.nodedef_node = 'remap';
21122 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21123 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector3FA_out_genglsl.png';
21124 this.nodedef_group = 'adjustment';
21125 this.addInput('in','vector3');
21126 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21127 this.addInput('inlow','float');
21128 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21129 this.addInput('inhigh','float');
21130 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21131 this.addInput('outlow','float');
21132 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21133 this.addInput('outhigh','float');
21134 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21135 this.addOutput('out','vector3');
21136 this.title = 'remap_vector3';
21137 this.desc = "MaterialX:mtlx/adjustment/remap_vector3FA";
21138 this.onNodeCreated = function() {
21139 //console.log('Node created:', this);
21140}
21141 this.onRemoved = function() {
21142 //console.log('Node removed:', this);
21143 }
21144 this.onPropertyChanged = function(name, value, prev_value) {
21145 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21146 }
21147 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21148 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21149 }
21150 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21151 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21152 }
21153 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21154 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21155 }
21156 this.bgcolor = '#111';
21157 this.color = '#222';
21158 this.shape = LiteGraph.ROUND_SHAPE;
21159 this.boxcolor = '#465';
21160}

◆ mtlx_adjustment_remap_vector4()

function mtlx_adjustment_remap_vector4 ( )

mtlx_adjustment_remap_vector4

Library: mtlx. Category: remap. Type: vector4 LiteGraph id: mtlx/adjustment/remap_vector4

Definition at line 20901 of file mtlx_stdlib.js.

20901 {
20902 this.nodedef_icon = '';
20903 this.nodedef_name = 'ND_remap_vector4';
20904 this.nodedef_type = 'vector4';
20905 this.nodedef_node = 'remap';
20906 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20907 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector4_out_genglsl.png';
20908 this.nodedef_group = 'adjustment';
20909 this.addInput('in','vector4');
20910 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20911 this.addInput('inlow','vector4');
20912 this.addProperty('inlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20913 this.addInput('inhigh','vector4');
20914 this.addProperty('inhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20915 this.addInput('outlow','vector4');
20916 this.addProperty('outlow', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20917 this.addInput('outhigh','vector4');
20918 this.addProperty('outhigh', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20919 this.addOutput('out','vector4');
20920 this.title = 'remap_vector4';
20921 this.desc = "MaterialX:mtlx/adjustment/remap_vector4";
20922 this.onNodeCreated = function() {
20923 //console.log('Node created:', this);
20924}
20925 this.onRemoved = function() {
20926 //console.log('Node removed:', this);
20927 }
20928 this.onPropertyChanged = function(name, value, prev_value) {
20929 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20930 }
20931 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20932 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20933 }
20934 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20935 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20936 }
20937 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20938 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20939 }
20940 this.bgcolor = '#111';
20941 this.color = '#222';
20942 this.shape = LiteGraph.ROUND_SHAPE;
20943 this.boxcolor = '#275';
20944}

◆ mtlx_adjustment_remap_vector4FA()

function mtlx_adjustment_remap_vector4FA ( )

mtlx_adjustment_remap_vector4FA

Library: mtlx. Category: remap. Type: vector4 LiteGraph id: mtlx/adjustment/remap_vector4FA

Definition at line 21171 of file mtlx_stdlib.js.

21171 {
21172 this.nodedef_icon = '';
21173 this.nodedef_name = 'ND_remap_vector4FA';
21174 this.nodedef_type = 'vector4';
21175 this.nodedef_node = 'remap';
21176 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21177 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector4FA_out_genglsl.png';
21178 this.nodedef_group = 'adjustment';
21179 this.addInput('in','vector4');
21180 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21181 this.addInput('inlow','float');
21182 this.addProperty('inlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21183 this.addInput('inhigh','float');
21184 this.addProperty('inhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21185 this.addInput('outlow','float');
21186 this.addProperty('outlow', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21187 this.addInput('outhigh','float');
21188 this.addProperty('outhigh', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21189 this.addOutput('out','vector4');
21190 this.title = 'remap_vector4';
21191 this.desc = "MaterialX:mtlx/adjustment/remap_vector4FA";
21192 this.onNodeCreated = function() {
21193 //console.log('Node created:', this);
21194}
21195 this.onRemoved = function() {
21196 //console.log('Node removed:', this);
21197 }
21198 this.onPropertyChanged = function(name, value, prev_value) {
21199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21200 }
21201 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21203 }
21204 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21206 }
21207 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21209 }
21210 this.bgcolor = '#111';
21211 this.color = '#222';
21212 this.shape = LiteGraph.ROUND_SHAPE;
21213 this.boxcolor = '#275';
21214}

◆ mtlx_adjustment_rgbtohsv_color3()

function mtlx_adjustment_rgbtohsv_color3 ( )

mtlx_adjustment_rgbtohsv_color3

Library: mtlx. Category: luminance. Type: color3 LiteGraph id: mtlx/adjustment/rgbtohsv_color3

Definition at line 22159 of file mtlx_stdlib.js.

22159 {
22160 this.nodedef_icon = '';
22161 this.nodedef_name = 'ND_rgbtohsv_color3';
22162 this.nodedef_type = 'color3';
22163 this.nodedef_node = 'rgbtohsv';
22164 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rgbtohsv.html';
22165 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rgbtohsv_color3_out_genglsl.png';
22166 this.nodedef_group = 'adjustment';
22167 this.addInput('in','color3');
22168 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22169 this.addOutput('out','color3');
22170 this.title = 'rgbtohsv_color3';
22171 this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color3";
22172 this.onNodeCreated = function() {
22173 //console.log('Node created:', this);
22174}
22175 this.onRemoved = function() {
22176 //console.log('Node removed:', this);
22177 }
22178 this.onPropertyChanged = function(name, value, prev_value) {
22179 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22180 }
22181 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22182 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22183 }
22184 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22185 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22186 }
22187 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22188 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22189 }
22190 this.bgcolor = '#111';
22191 this.color = '#222';
22192 this.shape = LiteGraph.ROUND_SHAPE;
22193 this.boxcolor = '#37A';
22194}

◆ mtlx_adjustment_rgbtohsv_color4()

function mtlx_adjustment_rgbtohsv_color4 ( )

mtlx_adjustment_rgbtohsv_color4

Library: mtlx. Category: rgbtohsv. Type: color4 LiteGraph id: mtlx/adjustment/rgbtohsv_color4

Definition at line 22205 of file mtlx_stdlib.js.

22205 {
22206 this.nodedef_icon = '';
22207 this.nodedef_name = 'ND_rgbtohsv_color4';
22208 this.nodedef_type = 'color4';
22209 this.nodedef_node = 'rgbtohsv';
22210 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rgbtohsv.html';
22211 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rgbtohsv_color4_out_genglsl.png';
22212 this.nodedef_group = 'adjustment';
22213 this.addInput('in','color4');
22214 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
22215 this.addOutput('out','color4');
22216 this.title = 'rgbtohsv_color4';
22217 this.desc = "MaterialX:mtlx/adjustment/rgbtohsv_color4";
22218 this.onNodeCreated = function() {
22219 //console.log('Node created:', this);
22220}
22221 this.onRemoved = function() {
22222 //console.log('Node removed:', this);
22223 }
22224 this.onPropertyChanged = function(name, value, prev_value) {
22225 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
22226 }
22227 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
22228 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
22229 }
22230 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
22231 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
22232 }
22233 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
22234 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
22235 }
22236 this.bgcolor = '#111';
22237 this.color = '#222';
22238 this.shape = LiteGraph.ROUND_SHAPE;
22239 this.boxcolor = '#69A';
22240}

◆ mtlx_adjustment_saturate_color3()

function mtlx_adjustment_saturate_color3 ( )

mtlx_adjustment_saturate_color3

Library: mtlx. Category: hsvadjust. Type: color3 LiteGraph id: mtlx/adjustment/saturate_color3

Definition at line 23627 of file mtlx_stdlib.js.

23627 {
23628 this.nodedef_icon = '';
23629 this.nodedef_name = 'ND_saturate_color3';
23630 this.nodedef_type = 'color3';
23631 this.nodedef_node = 'saturate';
23632 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/saturate.html';
23633 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_saturate_color3_out_genglsl.png';
23634 this.nodedef_group = 'adjustment';
23635 this.addInput('in','color3');
23636 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23637 this.addInput('amount','float');
23638 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23639 this.addInput('lumacoeffs','color3');
23640 this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["acescg"," rec709"," rec2020"," rec2100"],"enumvalues":["0.2722287","0.6740818","0.0536895"," 0.2126","0.7152","0.0722"," 0.2627","0.6780","0.0593"," 0.2627","0.6780","0.0593"]});
23641 this.addOutput('out','color3');
23642 this.title = 'saturate_color3';
23643 this.desc = "MaterialX:mtlx/adjustment/saturate_color3";
23644 this.onNodeCreated = function() {
23645 //console.log('Node created:', this);
23646}
23647 this.onRemoved = function() {
23648 //console.log('Node removed:', this);
23649 }
23650 this.onPropertyChanged = function(name, value, prev_value) {
23651 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23652 }
23653 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23654 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23655 }
23656 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23657 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23658 }
23659 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23660 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23661 }
23662 this.bgcolor = '#111';
23663 this.color = '#222';
23664 this.shape = LiteGraph.ROUND_SHAPE;
23665 this.boxcolor = '#37A';
23666}

◆ mtlx_adjustment_saturate_color4()

function mtlx_adjustment_saturate_color4 ( )

mtlx_adjustment_saturate_color4

Library: mtlx. Category: saturate. Type: color4 LiteGraph id: mtlx/adjustment/saturate_color4

Definition at line 23677 of file mtlx_stdlib.js.

23677 {
23678 this.nodedef_icon = '';
23679 this.nodedef_name = 'ND_saturate_color4';
23680 this.nodedef_type = 'color4';
23681 this.nodedef_node = 'saturate';
23682 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/saturate.html';
23683 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_saturate_color4_out_genglsl.png';
23684 this.nodedef_group = 'adjustment';
23685 this.addInput('in','color4');
23686 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23687 this.addInput('amount','float');
23688 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23689 this.addInput('lumacoeffs','color3');
23690 this.addProperty('lumacoeffs', [0.2722287, 0.6740818, 0.0536895], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["acescg"," rec709"," rec2020"," rec2100"],"enumvalues":["0.2722287","0.6740818","0.0536895"," 0.2126","0.7152","0.0722"," 0.2627","0.6780","0.0593"," 0.2627","0.6780","0.0593"]});
23691 this.addOutput('out','color4');
23692 this.title = 'saturate_color4';
23693 this.desc = "MaterialX:mtlx/adjustment/saturate_color4";
23694 this.onNodeCreated = function() {
23695 //console.log('Node created:', this);
23696}
23697 this.onRemoved = function() {
23698 //console.log('Node removed:', this);
23699 }
23700 this.onPropertyChanged = function(name, value, prev_value) {
23701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23702 }
23703 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23705 }
23706 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23708 }
23709 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23711 }
23712 this.bgcolor = '#111';
23713 this.color = '#222';
23714 this.shape = LiteGraph.ROUND_SHAPE;
23715 this.boxcolor = '#69A';
23716}

◆ mtlx_adjustment_smoothstep_color3()

function mtlx_adjustment_smoothstep_color3 ( )

mtlx_adjustment_smoothstep_color3

Library: mtlx. Category: smoothstep. Type: color3 LiteGraph id: mtlx/adjustment/smoothstep_color3

Definition at line 21275 of file mtlx_stdlib.js.

21275 {
21276 this.nodedef_icon = '';
21277 this.nodedef_name = 'ND_smoothstep_color3';
21278 this.nodedef_type = 'color3';
21279 this.nodedef_node = 'smoothstep';
21280 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21281 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color3_out_genglsl.png';
21282 this.nodedef_group = 'adjustment';
21283 this.addInput('in','color3');
21284 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21285 this.addInput('low','color3');
21286 this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21287 this.addInput('high','color3');
21288 this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21289 this.addOutput('out','color3');
21290 this.title = 'smoothstep_color3';
21291 this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3";
21292 this.onNodeCreated = function() {
21293 //console.log('Node created:', this);
21294}
21295 this.onRemoved = function() {
21296 //console.log('Node removed:', this);
21297 }
21298 this.onPropertyChanged = function(name, value, prev_value) {
21299 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21300 }
21301 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21302 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21303 }
21304 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21305 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21306 }
21307 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21308 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21309 }
21310 this.bgcolor = '#111';
21311 this.color = '#222';
21312 this.shape = LiteGraph.ROUND_SHAPE;
21313 this.boxcolor = '#37A';
21314}

◆ mtlx_adjustment_smoothstep_color3FA()

function mtlx_adjustment_smoothstep_color3FA ( )

mtlx_adjustment_smoothstep_color3FA

Library: mtlx. Category: smoothstep. Type: color3 LiteGraph id: mtlx/adjustment/smoothstep_color3FA

Definition at line 21525 of file mtlx_stdlib.js.

21525 {
21526 this.nodedef_icon = '';
21527 this.nodedef_name = 'ND_smoothstep_color3FA';
21528 this.nodedef_type = 'color3';
21529 this.nodedef_node = 'smoothstep';
21530 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21531 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color3FA_out_genglsl.png';
21532 this.nodedef_group = 'adjustment';
21533 this.addInput('in','color3');
21534 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21535 this.addInput('low','float');
21536 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21537 this.addInput('high','float');
21538 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21539 this.addOutput('out','color3');
21540 this.title = 'smoothstep_color3';
21541 this.desc = "MaterialX:mtlx/adjustment/smoothstep_color3FA";
21542 this.onNodeCreated = function() {
21543 //console.log('Node created:', this);
21544}
21545 this.onRemoved = function() {
21546 //console.log('Node removed:', this);
21547 }
21548 this.onPropertyChanged = function(name, value, prev_value) {
21549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21550 }
21551 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21553 }
21554 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21556 }
21557 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21559 }
21560 this.bgcolor = '#111';
21561 this.color = '#222';
21562 this.shape = LiteGraph.ROUND_SHAPE;
21563 this.boxcolor = '#37A';
21564}

◆ mtlx_adjustment_smoothstep_color4()

function mtlx_adjustment_smoothstep_color4 ( )

mtlx_adjustment_smoothstep_color4

Library: mtlx. Category: smoothstep. Type: color4 LiteGraph id: mtlx/adjustment/smoothstep_color4

Definition at line 21325 of file mtlx_stdlib.js.

21325 {
21326 this.nodedef_icon = '';
21327 this.nodedef_name = 'ND_smoothstep_color4';
21328 this.nodedef_type = 'color4';
21329 this.nodedef_node = 'smoothstep';
21330 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21331 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color4_out_genglsl.png';
21332 this.nodedef_group = 'adjustment';
21333 this.addInput('in','color4');
21334 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21335 this.addInput('low','color4');
21336 this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21337 this.addInput('high','color4');
21338 this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21339 this.addOutput('out','color4');
21340 this.title = 'smoothstep_color4';
21341 this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4";
21342 this.onNodeCreated = function() {
21343 //console.log('Node created:', this);
21344}
21345 this.onRemoved = function() {
21346 //console.log('Node removed:', this);
21347 }
21348 this.onPropertyChanged = function(name, value, prev_value) {
21349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21350 }
21351 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21353 }
21354 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21356 }
21357 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21359 }
21360 this.bgcolor = '#111';
21361 this.color = '#222';
21362 this.shape = LiteGraph.ROUND_SHAPE;
21363 this.boxcolor = '#69A';
21364}

◆ mtlx_adjustment_smoothstep_color4FA()

function mtlx_adjustment_smoothstep_color4FA ( )

mtlx_adjustment_smoothstep_color4FA

Library: mtlx. Category: smoothstep. Type: color4 LiteGraph id: mtlx/adjustment/smoothstep_color4FA

Definition at line 21575 of file mtlx_stdlib.js.

21575 {
21576 this.nodedef_icon = '';
21577 this.nodedef_name = 'ND_smoothstep_color4FA';
21578 this.nodedef_type = 'color4';
21579 this.nodedef_node = 'smoothstep';
21580 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21581 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color4FA_out_genglsl.png';
21582 this.nodedef_group = 'adjustment';
21583 this.addInput('in','color4');
21584 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21585 this.addInput('low','float');
21586 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21587 this.addInput('high','float');
21588 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21589 this.addOutput('out','color4');
21590 this.title = 'smoothstep_color4';
21591 this.desc = "MaterialX:mtlx/adjustment/smoothstep_color4FA";
21592 this.onNodeCreated = function() {
21593 //console.log('Node created:', this);
21594}
21595 this.onRemoved = function() {
21596 //console.log('Node removed:', this);
21597 }
21598 this.onPropertyChanged = function(name, value, prev_value) {
21599 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21600 }
21601 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21602 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21603 }
21604 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21605 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21606 }
21607 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21608 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21609 }
21610 this.bgcolor = '#111';
21611 this.color = '#222';
21612 this.shape = LiteGraph.ROUND_SHAPE;
21613 this.boxcolor = '#69A';
21614}

◆ mtlx_adjustment_smoothstep_float()

function mtlx_adjustment_smoothstep_float ( )

mtlx_adjustment_smoothstep_float

Library: mtlx. Category: remap. Type: float LiteGraph id: mtlx/adjustment/smoothstep_float

Definition at line 21225 of file mtlx_stdlib.js.

21225 {
21226 this.nodedef_icon = '';
21227 this.nodedef_name = 'ND_smoothstep_float';
21228 this.nodedef_type = 'float';
21229 this.nodedef_node = 'smoothstep';
21230 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21231 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_float_out_genglsl.png';
21232 this.nodedef_group = 'adjustment';
21233 this.addInput('in','float');
21234 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21235 this.addInput('low','float');
21236 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21237 this.addInput('high','float');
21238 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21239 this.addOutput('out','float');
21240 this.title = 'smoothstep_float';
21241 this.desc = "MaterialX:mtlx/adjustment/smoothstep_float";
21242 this.onNodeCreated = function() {
21243 //console.log('Node created:', this);
21244}
21245 this.onRemoved = function() {
21246 //console.log('Node removed:', this);
21247 }
21248 this.onPropertyChanged = function(name, value, prev_value) {
21249 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21250 }
21251 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21252 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21253 }
21254 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21255 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21256 }
21257 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21258 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21259 }
21260 this.bgcolor = '#111';
21261 this.color = '#222';
21262 this.shape = LiteGraph.ROUND_SHAPE;
21263 this.boxcolor = '#161';
21264}

◆ mtlx_adjustment_smoothstep_vector2()

function mtlx_adjustment_smoothstep_vector2 ( )

mtlx_adjustment_smoothstep_vector2

Library: mtlx. Category: smoothstep. Type: vector2 LiteGraph id: mtlx/adjustment/smoothstep_vector2

Definition at line 21375 of file mtlx_stdlib.js.

21375 {
21376 this.nodedef_icon = '';
21377 this.nodedef_name = 'ND_smoothstep_vector2';
21378 this.nodedef_type = 'vector2';
21379 this.nodedef_node = 'smoothstep';
21380 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21381 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector2_out_genglsl.png';
21382 this.nodedef_group = 'adjustment';
21383 this.addInput('in','vector2');
21384 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21385 this.addInput('low','vector2');
21386 this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21387 this.addInput('high','vector2');
21388 this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21389 this.addOutput('out','vector2');
21390 this.title = 'smoothstep_vector2';
21391 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2";
21392 this.onNodeCreated = function() {
21393 //console.log('Node created:', this);
21394}
21395 this.onRemoved = function() {
21396 //console.log('Node removed:', this);
21397 }
21398 this.onPropertyChanged = function(name, value, prev_value) {
21399 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21400 }
21401 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21402 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21403 }
21404 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21405 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21406 }
21407 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21408 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21409 }
21410 this.bgcolor = '#111';
21411 this.color = '#222';
21412 this.shape = LiteGraph.ROUND_SHAPE;
21413 this.boxcolor = '#265';
21414}

◆ mtlx_adjustment_smoothstep_vector2FA()

function mtlx_adjustment_smoothstep_vector2FA ( )

mtlx_adjustment_smoothstep_vector2FA

Library: mtlx. Category: smoothstep. Type: vector2 LiteGraph id: mtlx/adjustment/smoothstep_vector2FA

Definition at line 21625 of file mtlx_stdlib.js.

21625 {
21626 this.nodedef_icon = '';
21627 this.nodedef_name = 'ND_smoothstep_vector2FA';
21628 this.nodedef_type = 'vector2';
21629 this.nodedef_node = 'smoothstep';
21630 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21631 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector2FA_out_genglsl.png';
21632 this.nodedef_group = 'adjustment';
21633 this.addInput('in','vector2');
21634 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21635 this.addInput('low','float');
21636 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21637 this.addInput('high','float');
21638 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21639 this.addOutput('out','vector2');
21640 this.title = 'smoothstep_vector2';
21641 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector2FA";
21642 this.onNodeCreated = function() {
21643 //console.log('Node created:', this);
21644}
21645 this.onRemoved = function() {
21646 //console.log('Node removed:', this);
21647 }
21648 this.onPropertyChanged = function(name, value, prev_value) {
21649 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21650 }
21651 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21652 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21653 }
21654 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21655 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21656 }
21657 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21658 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21659 }
21660 this.bgcolor = '#111';
21661 this.color = '#222';
21662 this.shape = LiteGraph.ROUND_SHAPE;
21663 this.boxcolor = '#265';
21664}

◆ mtlx_adjustment_smoothstep_vector3()

function mtlx_adjustment_smoothstep_vector3 ( )

mtlx_adjustment_smoothstep_vector3

Library: mtlx. Category: smoothstep. Type: vector3 LiteGraph id: mtlx/adjustment/smoothstep_vector3

Definition at line 21425 of file mtlx_stdlib.js.

21425 {
21426 this.nodedef_icon = '';
21427 this.nodedef_name = 'ND_smoothstep_vector3';
21428 this.nodedef_type = 'vector3';
21429 this.nodedef_node = 'smoothstep';
21430 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21431 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector3_out_genglsl.png';
21432 this.nodedef_group = 'adjustment';
21433 this.addInput('in','vector3');
21434 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21435 this.addInput('low','vector3');
21436 this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21437 this.addInput('high','vector3');
21438 this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21439 this.addOutput('out','vector3');
21440 this.title = 'smoothstep_vector3';
21441 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3";
21442 this.onNodeCreated = function() {
21443 //console.log('Node created:', this);
21444}
21445 this.onRemoved = function() {
21446 //console.log('Node removed:', this);
21447 }
21448 this.onPropertyChanged = function(name, value, prev_value) {
21449 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21450 }
21451 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21452 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21453 }
21454 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21455 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21456 }
21457 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21458 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21459 }
21460 this.bgcolor = '#111';
21461 this.color = '#222';
21462 this.shape = LiteGraph.ROUND_SHAPE;
21463 this.boxcolor = '#465';
21464}

◆ mtlx_adjustment_smoothstep_vector3FA()

function mtlx_adjustment_smoothstep_vector3FA ( )

mtlx_adjustment_smoothstep_vector3FA

Library: mtlx. Category: smoothstep. Type: vector3 LiteGraph id: mtlx/adjustment/smoothstep_vector3FA

Definition at line 21675 of file mtlx_stdlib.js.

21675 {
21676 this.nodedef_icon = '';
21677 this.nodedef_name = 'ND_smoothstep_vector3FA';
21678 this.nodedef_type = 'vector3';
21679 this.nodedef_node = 'smoothstep';
21680 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21681 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector3FA_out_genglsl.png';
21682 this.nodedef_group = 'adjustment';
21683 this.addInput('in','vector3');
21684 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21685 this.addInput('low','float');
21686 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21687 this.addInput('high','float');
21688 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21689 this.addOutput('out','vector3');
21690 this.title = 'smoothstep_vector3';
21691 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector3FA";
21692 this.onNodeCreated = function() {
21693 //console.log('Node created:', this);
21694}
21695 this.onRemoved = function() {
21696 //console.log('Node removed:', this);
21697 }
21698 this.onPropertyChanged = function(name, value, prev_value) {
21699 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21700 }
21701 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21702 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21703 }
21704 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21705 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21706 }
21707 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21708 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21709 }
21710 this.bgcolor = '#111';
21711 this.color = '#222';
21712 this.shape = LiteGraph.ROUND_SHAPE;
21713 this.boxcolor = '#465';
21714}

◆ mtlx_adjustment_smoothstep_vector4()

function mtlx_adjustment_smoothstep_vector4 ( )

mtlx_adjustment_smoothstep_vector4

Library: mtlx. Category: smoothstep. Type: vector4 LiteGraph id: mtlx/adjustment/smoothstep_vector4

Definition at line 21475 of file mtlx_stdlib.js.

21475 {
21476 this.nodedef_icon = '';
21477 this.nodedef_name = 'ND_smoothstep_vector4';
21478 this.nodedef_type = 'vector4';
21479 this.nodedef_node = 'smoothstep';
21480 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21481 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector4_out_genglsl.png';
21482 this.nodedef_group = 'adjustment';
21483 this.addInput('in','vector4');
21484 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21485 this.addInput('low','vector4');
21486 this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21487 this.addInput('high','vector4');
21488 this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21489 this.addOutput('out','vector4');
21490 this.title = 'smoothstep_vector4';
21491 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4";
21492 this.onNodeCreated = function() {
21493 //console.log('Node created:', this);
21494}
21495 this.onRemoved = function() {
21496 //console.log('Node removed:', this);
21497 }
21498 this.onPropertyChanged = function(name, value, prev_value) {
21499 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21500 }
21501 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21502 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21503 }
21504 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21505 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21506 }
21507 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21508 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21509 }
21510 this.bgcolor = '#111';
21511 this.color = '#222';
21512 this.shape = LiteGraph.ROUND_SHAPE;
21513 this.boxcolor = '#275';
21514}

◆ mtlx_adjustment_smoothstep_vector4FA()

function mtlx_adjustment_smoothstep_vector4FA ( )

mtlx_adjustment_smoothstep_vector4FA

Library: mtlx. Category: smoothstep. Type: vector4 LiteGraph id: mtlx/adjustment/smoothstep_vector4FA

Definition at line 21725 of file mtlx_stdlib.js.

21725 {
21726 this.nodedef_icon = '';
21727 this.nodedef_name = 'ND_smoothstep_vector4FA';
21728 this.nodedef_type = 'vector4';
21729 this.nodedef_node = 'smoothstep';
21730 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21731 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector4FA_out_genglsl.png';
21732 this.nodedef_group = 'adjustment';
21733 this.addInput('in','vector4');
21734 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21735 this.addInput('low','float');
21736 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21737 this.addInput('high','float');
21738 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
21739 this.addOutput('out','vector4');
21740 this.title = 'smoothstep_vector4';
21741 this.desc = "MaterialX:mtlx/adjustment/smoothstep_vector4FA";
21742 this.onNodeCreated = function() {
21743 //console.log('Node created:', this);
21744}
21745 this.onRemoved = function() {
21746 //console.log('Node removed:', this);
21747 }
21748 this.onPropertyChanged = function(name, value, prev_value) {
21749 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
21750 }
21751 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
21752 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
21753 }
21754 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
21755 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
21756 }
21757 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
21758 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
21759 }
21760 this.bgcolor = '#111';
21761 this.color = '#222';
21762 this.shape = LiteGraph.ROUND_SHAPE;
21763 this.boxcolor = '#275';
21764}

◆ mtlx_application_frame_float()

function mtlx_application_frame_float ( )

mtlx_application_frame_float

Library: mtlx. Category: ambientocclusion. Type: float LiteGraph id: mtlx/application/frame_float

Definition at line 9221 of file mtlx_stdlib.js.

9221 {
9222 this.nodedef_icon = '';
9223 this.nodedef_name = 'ND_frame_float';
9224 this.nodedef_type = 'float';
9225 this.nodedef_node = 'frame';
9226 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/frame.html';
9227 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_frame_float_out_genglsl.png';
9228 this.nodedef_group = 'application';
9229 this.addOutput('out','float');
9230 this.title = 'frame_float';
9231 this.desc = "MaterialX:mtlx/application/frame_float";
9232 this.onNodeCreated = function() {
9233 //console.log('Node created:', this);
9234}
9235 this.onRemoved = function() {
9236 //console.log('Node removed:', this);
9237 }
9238 this.onPropertyChanged = function(name, value, prev_value) {
9239 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9240 }
9241 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9242 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9243 }
9244 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9245 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9246 }
9247 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9248 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9249 }
9250 this.bgcolor = '#111';
9251 this.color = '#222';
9252 this.shape = LiteGraph.ROUND_SHAPE;
9253 this.boxcolor = '#161';
9254}

◆ mtlx_application_time_float()

function mtlx_application_time_float ( )

mtlx_application_time_float

Library: mtlx. Category: frame. Type: float LiteGraph id: mtlx/application/time_float

Definition at line 9265 of file mtlx_stdlib.js.

9265 {
9266 this.nodedef_icon = '';
9267 this.nodedef_name = 'ND_time_float';
9268 this.nodedef_type = 'float';
9269 this.nodedef_node = 'time';
9270 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/time.html';
9271 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_time_float_out_genglsl.png';
9272 this.nodedef_group = 'application';
9273 this.addInput('fps','float');
9274 this.addProperty('fps', 24.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9275 this.addOutput('out','float');
9276 this.title = 'time_float';
9277 this.desc = "MaterialX:mtlx/application/time_float";
9278 this.onNodeCreated = function() {
9279 //console.log('Node created:', this);
9280}
9281 this.onRemoved = function() {
9282 //console.log('Node removed:', this);
9283 }
9284 this.onPropertyChanged = function(name, value, prev_value) {
9285 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9286 }
9287 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9288 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9289 }
9290 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9291 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9292 }
9293 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9294 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9295 }
9296 this.bgcolor = '#111';
9297 this.color = '#222';
9298 this.shape = LiteGraph.ROUND_SHAPE;
9299 this.boxcolor = '#161';
9300}

◆ mtlx_channel_combine2_color4CF()

function mtlx_channel_combine2_color4CF ( )

mtlx_channel_combine2_color4CF

Library: mtlx. Category: combine2. Type: color4 LiteGraph id: mtlx/channel/combine2_color4CF

Definition at line 33234 of file mtlx_stdlib.js.

33234 {
33235 this.nodedef_icon = '';
33236 this.nodedef_name = 'ND_combine2_color4CF';
33237 this.nodedef_type = 'color4';
33238 this.nodedef_node = 'combine2';
33239 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33240 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_color4CF_out_genglsl.png';
33241 this.nodedef_group = 'channel';
33242 this.addInput('in1','color3');
33243 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33244 this.addInput('in2','float');
33245 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33246 this.addOutput('out','color4');
33247 this.title = 'combine2_color4';
33248 this.desc = "MaterialX:mtlx/channel/combine2_color4CF";
33249 this.onNodeCreated = function() {
33250 //console.log('Node created:', this);
33251}
33252 this.onRemoved = function() {
33253 //console.log('Node removed:', this);
33254 }
33255 this.onPropertyChanged = function(name, value, prev_value) {
33256 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33257 }
33258 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33259 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33260 }
33261 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33262 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33263 }
33264 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33265 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33266 }
33267 this.bgcolor = '#111';
33268 this.color = '#222';
33269 this.shape = LiteGraph.ROUND_SHAPE;
33270 this.boxcolor = '#69A';
33271}

◆ mtlx_channel_combine2_vector2()

function mtlx_channel_combine2_vector2 ( )

mtlx_channel_combine2_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/combine2_vector2

Definition at line 33186 of file mtlx_stdlib.js.

33186 {
33187 this.nodedef_icon = '';
33188 this.nodedef_name = 'ND_combine2_vector2';
33189 this.nodedef_type = 'vector2';
33190 this.nodedef_node = 'combine2';
33191 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33192 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector2_out_genglsl.png';
33193 this.nodedef_group = 'channel';
33194 this.addInput('in1','float');
33195 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33196 this.addInput('in2','float');
33197 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33198 this.addOutput('out','vector2');
33199 this.title = 'combine2_vector2';
33200 this.desc = "MaterialX:mtlx/channel/combine2_vector2";
33201 this.onNodeCreated = function() {
33202 //console.log('Node created:', this);
33203}
33204 this.onRemoved = function() {
33205 //console.log('Node removed:', this);
33206 }
33207 this.onPropertyChanged = function(name, value, prev_value) {
33208 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33209 }
33210 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33211 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33212 }
33213 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33214 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33215 }
33216 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33217 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33218 }
33219 this.bgcolor = '#111';
33220 this.color = '#222';
33221 this.shape = LiteGraph.ROUND_SHAPE;
33222 this.boxcolor = '#265';
33223}

◆ mtlx_channel_combine2_vector4VF()

function mtlx_channel_combine2_vector4VF ( )

mtlx_channel_combine2_vector4VF

Library: mtlx. Category: combine2. Type: vector4 LiteGraph id: mtlx/channel/combine2_vector4VF

Definition at line 33282 of file mtlx_stdlib.js.

33282 {
33283 this.nodedef_icon = '';
33284 this.nodedef_name = 'ND_combine2_vector4VF';
33285 this.nodedef_type = 'vector4';
33286 this.nodedef_node = 'combine2';
33287 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33288 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector4VF_out_genglsl.png';
33289 this.nodedef_group = 'channel';
33290 this.addInput('in1','vector3');
33291 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33292 this.addInput('in2','float');
33293 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33294 this.addOutput('out','vector4');
33295 this.title = 'combine2_vector4';
33296 this.desc = "MaterialX:mtlx/channel/combine2_vector4VF";
33297 this.onNodeCreated = function() {
33298 //console.log('Node created:', this);
33299}
33300 this.onRemoved = function() {
33301 //console.log('Node removed:', this);
33302 }
33303 this.onPropertyChanged = function(name, value, prev_value) {
33304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33305 }
33306 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33308 }
33309 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33311 }
33312 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33314 }
33315 this.bgcolor = '#111';
33316 this.color = '#222';
33317 this.shape = LiteGraph.ROUND_SHAPE;
33318 this.boxcolor = '#275';
33319}

◆ mtlx_channel_combine2_vector4VV()

function mtlx_channel_combine2_vector4VV ( )

mtlx_channel_combine2_vector4VV

Library: mtlx. Category: combine2. Type: vector4 LiteGraph id: mtlx/channel/combine2_vector4VV

Definition at line 33330 of file mtlx_stdlib.js.

33330 {
33331 this.nodedef_icon = '';
33332 this.nodedef_name = 'ND_combine2_vector4VV';
33333 this.nodedef_type = 'vector4';
33334 this.nodedef_node = 'combine2';
33335 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33336 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector4VV_out_genglsl.png';
33337 this.nodedef_group = 'channel';
33338 this.addInput('in1','vector2');
33339 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33340 this.addInput('in2','vector2');
33341 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33342 this.addOutput('out','vector4');
33343 this.title = 'combine2_vector4';
33344 this.desc = "MaterialX:mtlx/channel/combine2_vector4VV";
33345 this.onNodeCreated = function() {
33346 //console.log('Node created:', this);
33347}
33348 this.onRemoved = function() {
33349 //console.log('Node removed:', this);
33350 }
33351 this.onPropertyChanged = function(name, value, prev_value) {
33352 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33353 }
33354 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33355 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33356 }
33357 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33358 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33359 }
33360 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33361 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33362 }
33363 this.bgcolor = '#111';
33364 this.color = '#222';
33365 this.shape = LiteGraph.ROUND_SHAPE;
33366 this.boxcolor = '#275';
33367}

◆ mtlx_channel_combine3_color3()

function mtlx_channel_combine3_color3 ( )

mtlx_channel_combine3_color3

Library: mtlx. Category: combine2. Type: color3 LiteGraph id: mtlx/channel/combine3_color3

Definition at line 33378 of file mtlx_stdlib.js.

33378 {
33379 this.nodedef_icon = '';
33380 this.nodedef_name = 'ND_combine3_color3';
33381 this.nodedef_type = 'color3';
33382 this.nodedef_node = 'combine3';
33383 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine3.html';
33384 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine3_color3_out_genglsl.png';
33385 this.nodedef_group = 'channel';
33386 this.addInput('in1','float');
33387 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33388 this.addInput('in2','float');
33389 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33390 this.addInput('in3','float');
33391 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33392 this.addOutput('out','color3');
33393 this.title = 'combine3_color3';
33394 this.desc = "MaterialX:mtlx/channel/combine3_color3";
33395 this.onNodeCreated = function() {
33396 //console.log('Node created:', this);
33397}
33398 this.onRemoved = function() {
33399 //console.log('Node removed:', this);
33400 }
33401 this.onPropertyChanged = function(name, value, prev_value) {
33402 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33403 }
33404 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33405 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33406 }
33407 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33408 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33409 }
33410 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33411 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33412 }
33413 this.bgcolor = '#111';
33414 this.color = '#222';
33415 this.shape = LiteGraph.ROUND_SHAPE;
33416 this.boxcolor = '#37A';
33417}

◆ mtlx_channel_combine3_vector3()

function mtlx_channel_combine3_vector3 ( )

mtlx_channel_combine3_vector3

Library: mtlx. Category: combine3. Type: vector3 LiteGraph id: mtlx/channel/combine3_vector3

Definition at line 33428 of file mtlx_stdlib.js.

33428 {
33429 this.nodedef_icon = '';
33430 this.nodedef_name = 'ND_combine3_vector3';
33431 this.nodedef_type = 'vector3';
33432 this.nodedef_node = 'combine3';
33433 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine3.html';
33434 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine3_vector3_out_genglsl.png';
33435 this.nodedef_group = 'channel';
33436 this.addInput('in1','float');
33437 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33438 this.addInput('in2','float');
33439 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33440 this.addInput('in3','float');
33441 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33442 this.addOutput('out','vector3');
33443 this.title = 'combine3_vector3';
33444 this.desc = "MaterialX:mtlx/channel/combine3_vector3";
33445 this.onNodeCreated = function() {
33446 //console.log('Node created:', this);
33447}
33448 this.onRemoved = function() {
33449 //console.log('Node removed:', this);
33450 }
33451 this.onPropertyChanged = function(name, value, prev_value) {
33452 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33453 }
33454 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33455 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33456 }
33457 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33458 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33459 }
33460 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33461 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33462 }
33463 this.bgcolor = '#111';
33464 this.color = '#222';
33465 this.shape = LiteGraph.ROUND_SHAPE;
33466 this.boxcolor = '#465';
33467}

◆ mtlx_channel_combine4_color4()

function mtlx_channel_combine4_color4 ( )

mtlx_channel_combine4_color4

Library: mtlx. Category: combine3. Type: color4 LiteGraph id: mtlx/channel/combine4_color4

Definition at line 33478 of file mtlx_stdlib.js.

33478 {
33479 this.nodedef_icon = '';
33480 this.nodedef_name = 'ND_combine4_color4';
33481 this.nodedef_type = 'color4';
33482 this.nodedef_node = 'combine4';
33483 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine4.html';
33484 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine4_color4_out_genglsl.png';
33485 this.nodedef_group = 'channel';
33486 this.addInput('in1','float');
33487 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33488 this.addInput('in2','float');
33489 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33490 this.addInput('in3','float');
33491 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33492 this.addInput('in4','float');
33493 this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33494 this.addOutput('out','color4');
33495 this.title = 'combine4_color4';
33496 this.desc = "MaterialX:mtlx/channel/combine4_color4";
33497 this.onNodeCreated = function() {
33498 //console.log('Node created:', this);
33499}
33500 this.onRemoved = function() {
33501 //console.log('Node removed:', this);
33502 }
33503 this.onPropertyChanged = function(name, value, prev_value) {
33504 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33505 }
33506 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33507 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33508 }
33509 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33510 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33511 }
33512 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33513 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33514 }
33515 this.bgcolor = '#111';
33516 this.color = '#222';
33517 this.shape = LiteGraph.ROUND_SHAPE;
33518 this.boxcolor = '#69A';
33519}

◆ mtlx_channel_combine4_vector4()

function mtlx_channel_combine4_vector4 ( )

mtlx_channel_combine4_vector4

Library: mtlx. Category: combine4. Type: vector4 LiteGraph id: mtlx/channel/combine4_vector4

Definition at line 33530 of file mtlx_stdlib.js.

33530 {
33531 this.nodedef_icon = '';
33532 this.nodedef_name = 'ND_combine4_vector4';
33533 this.nodedef_type = 'vector4';
33534 this.nodedef_node = 'combine4';
33535 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine4.html';
33536 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine4_vector4_out_genglsl.png';
33537 this.nodedef_group = 'channel';
33538 this.addInput('in1','float');
33539 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33540 this.addInput('in2','float');
33541 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33542 this.addInput('in3','float');
33543 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33544 this.addInput('in4','float');
33545 this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33546 this.addOutput('out','vector4');
33547 this.title = 'combine4_vector4';
33548 this.desc = "MaterialX:mtlx/channel/combine4_vector4";
33549 this.onNodeCreated = function() {
33550 //console.log('Node created:', this);
33551}
33552 this.onRemoved = function() {
33553 //console.log('Node removed:', this);
33554 }
33555 this.onPropertyChanged = function(name, value, prev_value) {
33556 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33557 }
33558 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33559 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33560 }
33561 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33562 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33563 }
33564 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33565 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33566 }
33567 this.bgcolor = '#111';
33568 this.color = '#222';
33569 this.shape = LiteGraph.ROUND_SHAPE;
33570 this.boxcolor = '#275';
33571}

◆ mtlx_channel_convert_boolean_color3()

function mtlx_channel_convert_boolean_color3 ( )

mtlx_channel_convert_boolean_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_boolean_color3

Definition at line 32228 of file mtlx_stdlib.js.

32228 {
32229 this.nodedef_icon = '';
32230 this.nodedef_name = 'ND_convert_boolean_color3';
32231 this.nodedef_type = 'color3';
32232 this.nodedef_node = 'convert';
32233 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32234 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_color3_out_genglsl.png';
32235 this.nodedef_group = 'channel';
32236 this.addInput('in','boolean');
32237 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32238 this.addOutput('out','color3');
32239 this.title = 'convert_color3';
32240 this.desc = "MaterialX:mtlx/channel/convert_boolean_color3";
32241 this.onNodeCreated = function() {
32242 //console.log('Node created:', this);
32243}
32244 this.onRemoved = function() {
32245 //console.log('Node removed:', this);
32246 }
32247 this.onPropertyChanged = function(name, value, prev_value) {
32248 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32249 }
32250 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32251 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32252 }
32253 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32254 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32255 }
32256 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32257 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32258 }
32259 this.bgcolor = '#111';
32260 this.color = '#222';
32261 this.shape = LiteGraph.ROUND_SHAPE;
32262 this.boxcolor = '#37A';
32263}

◆ mtlx_channel_convert_boolean_color4()

function mtlx_channel_convert_boolean_color4 ( )

mtlx_channel_convert_boolean_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_boolean_color4

Definition at line 32274 of file mtlx_stdlib.js.

32274 {
32275 this.nodedef_icon = '';
32276 this.nodedef_name = 'ND_convert_boolean_color4';
32277 this.nodedef_type = 'color4';
32278 this.nodedef_node = 'convert';
32279 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32280 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_color4_out_genglsl.png';
32281 this.nodedef_group = 'channel';
32282 this.addInput('in','boolean');
32283 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32284 this.addOutput('out','color4');
32285 this.title = 'convert_color4';
32286 this.desc = "MaterialX:mtlx/channel/convert_boolean_color4";
32287 this.onNodeCreated = function() {
32288 //console.log('Node created:', this);
32289}
32290 this.onRemoved = function() {
32291 //console.log('Node removed:', this);
32292 }
32293 this.onPropertyChanged = function(name, value, prev_value) {
32294 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32295 }
32296 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32297 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32298 }
32299 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32300 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32301 }
32302 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32303 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32304 }
32305 this.bgcolor = '#111';
32306 this.color = '#222';
32307 this.shape = LiteGraph.ROUND_SHAPE;
32308 this.boxcolor = '#69A';
32309}

◆ mtlx_channel_convert_boolean_float()

function mtlx_channel_convert_boolean_float ( )

mtlx_channel_convert_boolean_float

Library: mtlx. Category: convert. Type: float LiteGraph id: mtlx/channel/convert_boolean_float

Definition at line 32182 of file mtlx_stdlib.js.

32182 {
32183 this.nodedef_icon = '';
32184 this.nodedef_name = 'ND_convert_boolean_float';
32185 this.nodedef_type = 'float';
32186 this.nodedef_node = 'convert';
32187 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32188 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_float_out_genglsl.png';
32189 this.nodedef_group = 'channel';
32190 this.addInput('in','boolean');
32191 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32192 this.addOutput('out','float');
32193 this.title = 'convert_float';
32194 this.desc = "MaterialX:mtlx/channel/convert_boolean_float";
32195 this.onNodeCreated = function() {
32196 //console.log('Node created:', this);
32197}
32198 this.onRemoved = function() {
32199 //console.log('Node removed:', this);
32200 }
32201 this.onPropertyChanged = function(name, value, prev_value) {
32202 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32203 }
32204 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32205 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32206 }
32207 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32208 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32209 }
32210 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32211 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32212 }
32213 this.bgcolor = '#111';
32214 this.color = '#222';
32215 this.shape = LiteGraph.ROUND_SHAPE;
32216 this.boxcolor = '#161';
32217}

◆ mtlx_channel_convert_boolean_integer()

function mtlx_channel_convert_boolean_integer ( )

mtlx_channel_convert_boolean_integer

Library: mtlx. Category: convert. Type: integer LiteGraph id: mtlx/channel/convert_boolean_integer

Definition at line 32458 of file mtlx_stdlib.js.

32458 {
32459 this.nodedef_icon = '';
32460 this.nodedef_name = 'ND_convert_boolean_integer';
32461 this.nodedef_type = 'integer';
32462 this.nodedef_node = 'convert';
32463 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32464 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_integer_out_genglsl.png';
32465 this.nodedef_group = 'channel';
32466 this.addInput('in','boolean');
32467 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32468 this.addOutput('out','integer');
32469 this.title = 'convert_integer';
32470 this.desc = "MaterialX:mtlx/channel/convert_boolean_integer";
32471 this.onNodeCreated = function() {
32472 //console.log('Node created:', this);
32473}
32474 this.onRemoved = function() {
32475 //console.log('Node removed:', this);
32476 }
32477 this.onPropertyChanged = function(name, value, prev_value) {
32478 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32479 }
32480 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32481 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32482 }
32483 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32484 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32485 }
32486 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32487 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32488 }
32489 this.bgcolor = '#111';
32490 this.color = '#222';
32491 this.shape = LiteGraph.ROUND_SHAPE;
32492 this.boxcolor = '#A32';
32493}

◆ mtlx_channel_convert_boolean_vector2()

function mtlx_channel_convert_boolean_vector2 ( )

mtlx_channel_convert_boolean_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_boolean_vector2

Definition at line 32320 of file mtlx_stdlib.js.

32320 {
32321 this.nodedef_icon = '';
32322 this.nodedef_name = 'ND_convert_boolean_vector2';
32323 this.nodedef_type = 'vector2';
32324 this.nodedef_node = 'convert';
32325 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32326 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector2_out_genglsl.png';
32327 this.nodedef_group = 'channel';
32328 this.addInput('in','boolean');
32329 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32330 this.addOutput('out','vector2');
32331 this.title = 'convert_vector2';
32332 this.desc = "MaterialX:mtlx/channel/convert_boolean_vector2";
32333 this.onNodeCreated = function() {
32334 //console.log('Node created:', this);
32335}
32336 this.onRemoved = function() {
32337 //console.log('Node removed:', this);
32338 }
32339 this.onPropertyChanged = function(name, value, prev_value) {
32340 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32341 }
32342 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32343 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32344 }
32345 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32346 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32347 }
32348 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32349 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32350 }
32351 this.bgcolor = '#111';
32352 this.color = '#222';
32353 this.shape = LiteGraph.ROUND_SHAPE;
32354 this.boxcolor = '#265';
32355}

◆ mtlx_channel_convert_boolean_vector3()

function mtlx_channel_convert_boolean_vector3 ( )

mtlx_channel_convert_boolean_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_boolean_vector3

Definition at line 32366 of file mtlx_stdlib.js.

32366 {
32367 this.nodedef_icon = '';
32368 this.nodedef_name = 'ND_convert_boolean_vector3';
32369 this.nodedef_type = 'vector3';
32370 this.nodedef_node = 'convert';
32371 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32372 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector3_out_genglsl.png';
32373 this.nodedef_group = 'channel';
32374 this.addInput('in','boolean');
32375 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32376 this.addOutput('out','vector3');
32377 this.title = 'convert_vector3';
32378 this.desc = "MaterialX:mtlx/channel/convert_boolean_vector3";
32379 this.onNodeCreated = function() {
32380 //console.log('Node created:', this);
32381}
32382 this.onRemoved = function() {
32383 //console.log('Node removed:', this);
32384 }
32385 this.onPropertyChanged = function(name, value, prev_value) {
32386 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32387 }
32388 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32389 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32390 }
32391 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32392 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32393 }
32394 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32395 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32396 }
32397 this.bgcolor = '#111';
32398 this.color = '#222';
32399 this.shape = LiteGraph.ROUND_SHAPE;
32400 this.boxcolor = '#465';
32401}

◆ mtlx_channel_convert_boolean_vector4()

function mtlx_channel_convert_boolean_vector4 ( )

mtlx_channel_convert_boolean_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_boolean_vector4

Definition at line 32412 of file mtlx_stdlib.js.

32412 {
32413 this.nodedef_icon = '';
32414 this.nodedef_name = 'ND_convert_boolean_vector4';
32415 this.nodedef_type = 'vector4';
32416 this.nodedef_node = 'convert';
32417 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32418 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector4_out_genglsl.png';
32419 this.nodedef_group = 'channel';
32420 this.addInput('in','boolean');
32421 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32422 this.addOutput('out','vector4');
32423 this.title = 'convert_vector4';
32424 this.desc = "MaterialX:mtlx/channel/convert_boolean_vector4";
32425 this.onNodeCreated = function() {
32426 //console.log('Node created:', this);
32427}
32428 this.onRemoved = function() {
32429 //console.log('Node removed:', this);
32430 }
32431 this.onPropertyChanged = function(name, value, prev_value) {
32432 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32433 }
32434 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32435 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32436 }
32437 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32438 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32439 }
32440 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32441 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32442 }
32443 this.bgcolor = '#111';
32444 this.color = '#222';
32445 this.shape = LiteGraph.ROUND_SHAPE;
32446 this.boxcolor = '#275';
32447}

◆ mtlx_channel_convert_color3_color4()

function mtlx_channel_convert_color3_color4 ( )

mtlx_channel_convert_color3_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_color3_color4

Definition at line 31262 of file mtlx_stdlib.js.

31262 {
31263 this.nodedef_icon = '';
31264 this.nodedef_name = 'ND_convert_color3_color4';
31265 this.nodedef_type = 'color4';
31266 this.nodedef_node = 'convert';
31267 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31268 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_color4_out_genglsl.png';
31269 this.nodedef_group = 'channel';
31270 this.addInput('in','color3');
31271 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31272 this.addOutput('out','color4');
31273 this.title = 'convert_color4';
31274 this.desc = "MaterialX:mtlx/channel/convert_color3_color4";
31275 this.onNodeCreated = function() {
31276 //console.log('Node created:', this);
31277}
31278 this.onRemoved = function() {
31279 //console.log('Node removed:', this);
31280 }
31281 this.onPropertyChanged = function(name, value, prev_value) {
31282 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31283 }
31284 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31285 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31286 }
31287 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31288 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31289 }
31290 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31291 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31292 }
31293 this.bgcolor = '#111';
31294 this.color = '#222';
31295 this.shape = LiteGraph.ROUND_SHAPE;
31296 this.boxcolor = '#69A';
31297}

◆ mtlx_channel_convert_color3_vector2()

function mtlx_channel_convert_color3_vector2 ( )

mtlx_channel_convert_color3_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_color3_vector2

Definition at line 31308 of file mtlx_stdlib.js.

31308 {
31309 this.nodedef_icon = '';
31310 this.nodedef_name = 'ND_convert_color3_vector2';
31311 this.nodedef_type = 'vector2';
31312 this.nodedef_node = 'convert';
31313 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31314 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector2_out_genglsl.png';
31315 this.nodedef_group = 'channel';
31316 this.addInput('in','color3');
31317 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31318 this.addOutput('out','vector2');
31319 this.title = 'convert_vector2';
31320 this.desc = "MaterialX:mtlx/channel/convert_color3_vector2";
31321 this.onNodeCreated = function() {
31322 //console.log('Node created:', this);
31323}
31324 this.onRemoved = function() {
31325 //console.log('Node removed:', this);
31326 }
31327 this.onPropertyChanged = function(name, value, prev_value) {
31328 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31329 }
31330 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31331 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31332 }
31333 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31334 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31335 }
31336 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31337 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31338 }
31339 this.bgcolor = '#111';
31340 this.color = '#222';
31341 this.shape = LiteGraph.ROUND_SHAPE;
31342 this.boxcolor = '#265';
31343}

◆ mtlx_channel_convert_color3_vector3()

function mtlx_channel_convert_color3_vector3 ( )

mtlx_channel_convert_color3_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_color3_vector3

Definition at line 31354 of file mtlx_stdlib.js.

31354 {
31355 this.nodedef_icon = '';
31356 this.nodedef_name = 'ND_convert_color3_vector3';
31357 this.nodedef_type = 'vector3';
31358 this.nodedef_node = 'convert';
31359 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31360 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector3_out_genglsl.png';
31361 this.nodedef_group = 'channel';
31362 this.addInput('in','color3');
31363 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31364 this.addOutput('out','vector3');
31365 this.title = 'convert_vector3';
31366 this.desc = "MaterialX:mtlx/channel/convert_color3_vector3";
31367 this.onNodeCreated = function() {
31368 //console.log('Node created:', this);
31369}
31370 this.onRemoved = function() {
31371 //console.log('Node removed:', this);
31372 }
31373 this.onPropertyChanged = function(name, value, prev_value) {
31374 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31375 }
31376 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31377 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31378 }
31379 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31380 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31381 }
31382 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31383 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31384 }
31385 this.bgcolor = '#111';
31386 this.color = '#222';
31387 this.shape = LiteGraph.ROUND_SHAPE;
31388 this.boxcolor = '#465';
31389}

◆ mtlx_channel_convert_color3_vector4()

function mtlx_channel_convert_color3_vector4 ( )

mtlx_channel_convert_color3_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_color3_vector4

Definition at line 31400 of file mtlx_stdlib.js.

31400 {
31401 this.nodedef_icon = '';
31402 this.nodedef_name = 'ND_convert_color3_vector4';
31403 this.nodedef_type = 'vector4';
31404 this.nodedef_node = 'convert';
31405 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31406 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector4_out_genglsl.png';
31407 this.nodedef_group = 'channel';
31408 this.addInput('in','color3');
31409 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31410 this.addOutput('out','vector4');
31411 this.title = 'convert_vector4';
31412 this.desc = "MaterialX:mtlx/channel/convert_color3_vector4";
31413 this.onNodeCreated = function() {
31414 //console.log('Node created:', this);
31415}
31416 this.onRemoved = function() {
31417 //console.log('Node removed:', this);
31418 }
31419 this.onPropertyChanged = function(name, value, prev_value) {
31420 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31421 }
31422 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31423 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31424 }
31425 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31426 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31427 }
31428 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31429 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31430 }
31431 this.bgcolor = '#111';
31432 this.color = '#222';
31433 this.shape = LiteGraph.ROUND_SHAPE;
31434 this.boxcolor = '#275';
31435}

◆ mtlx_channel_convert_color4_color3()

function mtlx_channel_convert_color4_color3 ( )

mtlx_channel_convert_color4_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_color4_color3

Definition at line 31446 of file mtlx_stdlib.js.

31446 {
31447 this.nodedef_icon = '';
31448 this.nodedef_name = 'ND_convert_color4_color3';
31449 this.nodedef_type = 'color3';
31450 this.nodedef_node = 'convert';
31451 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31452 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_color3_out_genglsl.png';
31453 this.nodedef_group = 'channel';
31454 this.addInput('in','color4');
31455 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31456 this.addOutput('out','color3');
31457 this.title = 'convert_color3';
31458 this.desc = "MaterialX:mtlx/channel/convert_color4_color3";
31459 this.onNodeCreated = function() {
31460 //console.log('Node created:', this);
31461}
31462 this.onRemoved = function() {
31463 //console.log('Node removed:', this);
31464 }
31465 this.onPropertyChanged = function(name, value, prev_value) {
31466 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31467 }
31468 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31469 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31470 }
31471 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31472 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31473 }
31474 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31475 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31476 }
31477 this.bgcolor = '#111';
31478 this.color = '#222';
31479 this.shape = LiteGraph.ROUND_SHAPE;
31480 this.boxcolor = '#37A';
31481}

◆ mtlx_channel_convert_color4_vector2()

function mtlx_channel_convert_color4_vector2 ( )

mtlx_channel_convert_color4_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_color4_vector2

Definition at line 31492 of file mtlx_stdlib.js.

31492 {
31493 this.nodedef_icon = '';
31494 this.nodedef_name = 'ND_convert_color4_vector2';
31495 this.nodedef_type = 'vector2';
31496 this.nodedef_node = 'convert';
31497 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31498 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector2_out_genglsl.png';
31499 this.nodedef_group = 'channel';
31500 this.addInput('in','color4');
31501 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31502 this.addOutput('out','vector2');
31503 this.title = 'convert_vector2';
31504 this.desc = "MaterialX:mtlx/channel/convert_color4_vector2";
31505 this.onNodeCreated = function() {
31506 //console.log('Node created:', this);
31507}
31508 this.onRemoved = function() {
31509 //console.log('Node removed:', this);
31510 }
31511 this.onPropertyChanged = function(name, value, prev_value) {
31512 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31513 }
31514 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31515 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31516 }
31517 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31518 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31519 }
31520 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31521 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31522 }
31523 this.bgcolor = '#111';
31524 this.color = '#222';
31525 this.shape = LiteGraph.ROUND_SHAPE;
31526 this.boxcolor = '#265';
31527}

◆ mtlx_channel_convert_color4_vector3()

function mtlx_channel_convert_color4_vector3 ( )

mtlx_channel_convert_color4_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_color4_vector3

Definition at line 31538 of file mtlx_stdlib.js.

31538 {
31539 this.nodedef_icon = '';
31540 this.nodedef_name = 'ND_convert_color4_vector3';
31541 this.nodedef_type = 'vector3';
31542 this.nodedef_node = 'convert';
31543 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31544 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector3_out_genglsl.png';
31545 this.nodedef_group = 'channel';
31546 this.addInput('in','color4');
31547 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31548 this.addOutput('out','vector3');
31549 this.title = 'convert_vector3';
31550 this.desc = "MaterialX:mtlx/channel/convert_color4_vector3";
31551 this.onNodeCreated = function() {
31552 //console.log('Node created:', this);
31553}
31554 this.onRemoved = function() {
31555 //console.log('Node removed:', this);
31556 }
31557 this.onPropertyChanged = function(name, value, prev_value) {
31558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31559 }
31560 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31562 }
31563 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31565 }
31566 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31568 }
31569 this.bgcolor = '#111';
31570 this.color = '#222';
31571 this.shape = LiteGraph.ROUND_SHAPE;
31572 this.boxcolor = '#465';
31573}

◆ mtlx_channel_convert_color4_vector4()

function mtlx_channel_convert_color4_vector4 ( )

mtlx_channel_convert_color4_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_color4_vector4

Definition at line 31584 of file mtlx_stdlib.js.

31584 {
31585 this.nodedef_icon = '';
31586 this.nodedef_name = 'ND_convert_color4_vector4';
31587 this.nodedef_type = 'vector4';
31588 this.nodedef_node = 'convert';
31589 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31590 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector4_out_genglsl.png';
31591 this.nodedef_group = 'channel';
31592 this.addInput('in','color4');
31593 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31594 this.addOutput('out','vector4');
31595 this.title = 'convert_vector4';
31596 this.desc = "MaterialX:mtlx/channel/convert_color4_vector4";
31597 this.onNodeCreated = function() {
31598 //console.log('Node created:', this);
31599}
31600 this.onRemoved = function() {
31601 //console.log('Node removed:', this);
31602 }
31603 this.onPropertyChanged = function(name, value, prev_value) {
31604 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31605 }
31606 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31607 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31608 }
31609 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31610 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31611 }
31612 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31613 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31614 }
31615 this.bgcolor = '#111';
31616 this.color = '#222';
31617 this.shape = LiteGraph.ROUND_SHAPE;
31618 this.boxcolor = '#275';
31619}

◆ mtlx_channel_convert_float_color3()

function mtlx_channel_convert_float_color3 ( )

mtlx_channel_convert_float_color3

Library: mtlx. Category: switch. Type: color3 LiteGraph id: mtlx/channel/convert_float_color3

Definition at line 31032 of file mtlx_stdlib.js.

31032 {
31033 this.nodedef_icon = '';
31034 this.nodedef_name = 'ND_convert_float_color3';
31035 this.nodedef_type = 'color3';
31036 this.nodedef_node = 'convert';
31037 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31038 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_color3_out_genglsl.png';
31039 this.nodedef_group = 'channel';
31040 this.addInput('in','float');
31041 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31042 this.addOutput('out','color3');
31043 this.title = 'convert_color3';
31044 this.desc = "MaterialX:mtlx/channel/convert_float_color3";
31045 this.onNodeCreated = function() {
31046 //console.log('Node created:', this);
31047}
31048 this.onRemoved = function() {
31049 //console.log('Node removed:', this);
31050 }
31051 this.onPropertyChanged = function(name, value, prev_value) {
31052 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31053 }
31054 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31055 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31056 }
31057 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31058 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31059 }
31060 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31061 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31062 }
31063 this.bgcolor = '#111';
31064 this.color = '#222';
31065 this.shape = LiteGraph.ROUND_SHAPE;
31066 this.boxcolor = '#37A';
31067}

◆ mtlx_channel_convert_float_color4()

function mtlx_channel_convert_float_color4 ( )

mtlx_channel_convert_float_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_float_color4

Definition at line 31078 of file mtlx_stdlib.js.

31078 {
31079 this.nodedef_icon = '';
31080 this.nodedef_name = 'ND_convert_float_color4';
31081 this.nodedef_type = 'color4';
31082 this.nodedef_node = 'convert';
31083 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31084 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_color4_out_genglsl.png';
31085 this.nodedef_group = 'channel';
31086 this.addInput('in','float');
31087 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31088 this.addOutput('out','color4');
31089 this.title = 'convert_color4';
31090 this.desc = "MaterialX:mtlx/channel/convert_float_color4";
31091 this.onNodeCreated = function() {
31092 //console.log('Node created:', this);
31093}
31094 this.onRemoved = function() {
31095 //console.log('Node removed:', this);
31096 }
31097 this.onPropertyChanged = function(name, value, prev_value) {
31098 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31099 }
31100 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31101 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31102 }
31103 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31104 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31105 }
31106 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31107 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31108 }
31109 this.bgcolor = '#111';
31110 this.color = '#222';
31111 this.shape = LiteGraph.ROUND_SHAPE;
31112 this.boxcolor = '#69A';
31113}

◆ mtlx_channel_convert_float_vector2()

function mtlx_channel_convert_float_vector2 ( )

mtlx_channel_convert_float_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_float_vector2

Definition at line 31124 of file mtlx_stdlib.js.

31124 {
31125 this.nodedef_icon = '';
31126 this.nodedef_name = 'ND_convert_float_vector2';
31127 this.nodedef_type = 'vector2';
31128 this.nodedef_node = 'convert';
31129 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31130 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector2_out_genglsl.png';
31131 this.nodedef_group = 'channel';
31132 this.addInput('in','float');
31133 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31134 this.addOutput('out','vector2');
31135 this.title = 'convert_vector2';
31136 this.desc = "MaterialX:mtlx/channel/convert_float_vector2";
31137 this.onNodeCreated = function() {
31138 //console.log('Node created:', this);
31139}
31140 this.onRemoved = function() {
31141 //console.log('Node removed:', this);
31142 }
31143 this.onPropertyChanged = function(name, value, prev_value) {
31144 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31145 }
31146 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31147 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31148 }
31149 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31150 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31151 }
31152 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31153 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31154 }
31155 this.bgcolor = '#111';
31156 this.color = '#222';
31157 this.shape = LiteGraph.ROUND_SHAPE;
31158 this.boxcolor = '#265';
31159}

◆ mtlx_channel_convert_float_vector3()

function mtlx_channel_convert_float_vector3 ( )

mtlx_channel_convert_float_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_float_vector3

Definition at line 31170 of file mtlx_stdlib.js.

31170 {
31171 this.nodedef_icon = '';
31172 this.nodedef_name = 'ND_convert_float_vector3';
31173 this.nodedef_type = 'vector3';
31174 this.nodedef_node = 'convert';
31175 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31176 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector3_out_genglsl.png';
31177 this.nodedef_group = 'channel';
31178 this.addInput('in','float');
31179 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31180 this.addOutput('out','vector3');
31181 this.title = 'convert_vector3';
31182 this.desc = "MaterialX:mtlx/channel/convert_float_vector3";
31183 this.onNodeCreated = function() {
31184 //console.log('Node created:', this);
31185}
31186 this.onRemoved = function() {
31187 //console.log('Node removed:', this);
31188 }
31189 this.onPropertyChanged = function(name, value, prev_value) {
31190 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31191 }
31192 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31193 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31194 }
31195 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31196 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31197 }
31198 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31199 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31200 }
31201 this.bgcolor = '#111';
31202 this.color = '#222';
31203 this.shape = LiteGraph.ROUND_SHAPE;
31204 this.boxcolor = '#465';
31205}

◆ mtlx_channel_convert_float_vector4()

function mtlx_channel_convert_float_vector4 ( )

mtlx_channel_convert_float_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_float_vector4

Definition at line 31216 of file mtlx_stdlib.js.

31216 {
31217 this.nodedef_icon = '';
31218 this.nodedef_name = 'ND_convert_float_vector4';
31219 this.nodedef_type = 'vector4';
31220 this.nodedef_node = 'convert';
31221 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31222 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector4_out_genglsl.png';
31223 this.nodedef_group = 'channel';
31224 this.addInput('in','float');
31225 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31226 this.addOutput('out','vector4');
31227 this.title = 'convert_vector4';
31228 this.desc = "MaterialX:mtlx/channel/convert_float_vector4";
31229 this.onNodeCreated = function() {
31230 //console.log('Node created:', this);
31231}
31232 this.onRemoved = function() {
31233 //console.log('Node removed:', this);
31234 }
31235 this.onPropertyChanged = function(name, value, prev_value) {
31236 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31237 }
31238 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31239 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31240 }
31241 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31242 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31243 }
31244 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31245 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31246 }
31247 this.bgcolor = '#111';
31248 this.color = '#222';
31249 this.shape = LiteGraph.ROUND_SHAPE;
31250 this.boxcolor = '#275';
31251}

◆ mtlx_channel_convert_integer_boolean()

function mtlx_channel_convert_integer_boolean ( )

mtlx_channel_convert_integer_boolean

Library: mtlx. Category: convert. Type: boolean LiteGraph id: mtlx/channel/convert_integer_boolean

Definition at line 32780 of file mtlx_stdlib.js.

32780 {
32781 this.nodedef_icon = '';
32782 this.nodedef_name = 'ND_convert_integer_boolean';
32783 this.nodedef_type = 'boolean';
32784 this.nodedef_node = 'convert';
32785 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32786 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_boolean_out_genglsl.png';
32787 this.nodedef_group = 'channel';
32788 this.addInput('in','integer');
32789 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32790 this.addOutput('out','boolean');
32791 this.title = 'convert_boolean';
32792 this.desc = "MaterialX:mtlx/channel/convert_integer_boolean";
32793 this.onNodeCreated = function() {
32794 //console.log('Node created:', this);
32795}
32796 this.onRemoved = function() {
32797 //console.log('Node removed:', this);
32798 }
32799 this.onPropertyChanged = function(name, value, prev_value) {
32800 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32801 }
32802 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32803 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32804 }
32805 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32806 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32807 }
32808 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32809 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32810 }
32811 this.bgcolor = '#111';
32812 this.color = '#222';
32813 this.shape = LiteGraph.ROUND_SHAPE;
32814 this.boxcolor = '#060';
32815}

◆ mtlx_channel_convert_integer_color3()

function mtlx_channel_convert_integer_color3 ( )

mtlx_channel_convert_integer_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_integer_color3

Definition at line 32550 of file mtlx_stdlib.js.

32550 {
32551 this.nodedef_icon = '';
32552 this.nodedef_name = 'ND_convert_integer_color3';
32553 this.nodedef_type = 'color3';
32554 this.nodedef_node = 'convert';
32555 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32556 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_color3_out_genglsl.png';
32557 this.nodedef_group = 'channel';
32558 this.addInput('in','integer');
32559 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32560 this.addOutput('out','color3');
32561 this.title = 'convert_color3';
32562 this.desc = "MaterialX:mtlx/channel/convert_integer_color3";
32563 this.onNodeCreated = function() {
32564 //console.log('Node created:', this);
32565}
32566 this.onRemoved = function() {
32567 //console.log('Node removed:', this);
32568 }
32569 this.onPropertyChanged = function(name, value, prev_value) {
32570 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32571 }
32572 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32573 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32574 }
32575 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32576 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32577 }
32578 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32579 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32580 }
32581 this.bgcolor = '#111';
32582 this.color = '#222';
32583 this.shape = LiteGraph.ROUND_SHAPE;
32584 this.boxcolor = '#37A';
32585}

◆ mtlx_channel_convert_integer_color4()

function mtlx_channel_convert_integer_color4 ( )

mtlx_channel_convert_integer_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_integer_color4

Definition at line 32596 of file mtlx_stdlib.js.

32596 {
32597 this.nodedef_icon = '';
32598 this.nodedef_name = 'ND_convert_integer_color4';
32599 this.nodedef_type = 'color4';
32600 this.nodedef_node = 'convert';
32601 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32602 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_color4_out_genglsl.png';
32603 this.nodedef_group = 'channel';
32604 this.addInput('in','integer');
32605 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32606 this.addOutput('out','color4');
32607 this.title = 'convert_color4';
32608 this.desc = "MaterialX:mtlx/channel/convert_integer_color4";
32609 this.onNodeCreated = function() {
32610 //console.log('Node created:', this);
32611}
32612 this.onRemoved = function() {
32613 //console.log('Node removed:', this);
32614 }
32615 this.onPropertyChanged = function(name, value, prev_value) {
32616 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32617 }
32618 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32619 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32620 }
32621 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32622 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32623 }
32624 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32625 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32626 }
32627 this.bgcolor = '#111';
32628 this.color = '#222';
32629 this.shape = LiteGraph.ROUND_SHAPE;
32630 this.boxcolor = '#69A';
32631}

◆ mtlx_channel_convert_integer_float()

function mtlx_channel_convert_integer_float ( )

mtlx_channel_convert_integer_float

Library: mtlx. Category: convert. Type: float LiteGraph id: mtlx/channel/convert_integer_float

Definition at line 32504 of file mtlx_stdlib.js.

32504 {
32505 this.nodedef_icon = '';
32506 this.nodedef_name = 'ND_convert_integer_float';
32507 this.nodedef_type = 'float';
32508 this.nodedef_node = 'convert';
32509 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32510 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_float_out_genglsl.png';
32511 this.nodedef_group = 'channel';
32512 this.addInput('in','integer');
32513 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32514 this.addOutput('out','float');
32515 this.title = 'convert_float';
32516 this.desc = "MaterialX:mtlx/channel/convert_integer_float";
32517 this.onNodeCreated = function() {
32518 //console.log('Node created:', this);
32519}
32520 this.onRemoved = function() {
32521 //console.log('Node removed:', this);
32522 }
32523 this.onPropertyChanged = function(name, value, prev_value) {
32524 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32525 }
32526 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32527 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32528 }
32529 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32530 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32531 }
32532 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32533 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32534 }
32535 this.bgcolor = '#111';
32536 this.color = '#222';
32537 this.shape = LiteGraph.ROUND_SHAPE;
32538 this.boxcolor = '#161';
32539}

◆ mtlx_channel_convert_integer_vector2()

function mtlx_channel_convert_integer_vector2 ( )

mtlx_channel_convert_integer_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_integer_vector2

Definition at line 32642 of file mtlx_stdlib.js.

32642 {
32643 this.nodedef_icon = '';
32644 this.nodedef_name = 'ND_convert_integer_vector2';
32645 this.nodedef_type = 'vector2';
32646 this.nodedef_node = 'convert';
32647 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32648 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector2_out_genglsl.png';
32649 this.nodedef_group = 'channel';
32650 this.addInput('in','integer');
32651 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32652 this.addOutput('out','vector2');
32653 this.title = 'convert_vector2';
32654 this.desc = "MaterialX:mtlx/channel/convert_integer_vector2";
32655 this.onNodeCreated = function() {
32656 //console.log('Node created:', this);
32657}
32658 this.onRemoved = function() {
32659 //console.log('Node removed:', this);
32660 }
32661 this.onPropertyChanged = function(name, value, prev_value) {
32662 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32663 }
32664 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32665 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32666 }
32667 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32668 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32669 }
32670 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32671 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32672 }
32673 this.bgcolor = '#111';
32674 this.color = '#222';
32675 this.shape = LiteGraph.ROUND_SHAPE;
32676 this.boxcolor = '#265';
32677}

◆ mtlx_channel_convert_integer_vector3()

function mtlx_channel_convert_integer_vector3 ( )

mtlx_channel_convert_integer_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_integer_vector3

Definition at line 32688 of file mtlx_stdlib.js.

32688 {
32689 this.nodedef_icon = '';
32690 this.nodedef_name = 'ND_convert_integer_vector3';
32691 this.nodedef_type = 'vector3';
32692 this.nodedef_node = 'convert';
32693 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32694 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector3_out_genglsl.png';
32695 this.nodedef_group = 'channel';
32696 this.addInput('in','integer');
32697 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32698 this.addOutput('out','vector3');
32699 this.title = 'convert_vector3';
32700 this.desc = "MaterialX:mtlx/channel/convert_integer_vector3";
32701 this.onNodeCreated = function() {
32702 //console.log('Node created:', this);
32703}
32704 this.onRemoved = function() {
32705 //console.log('Node removed:', this);
32706 }
32707 this.onPropertyChanged = function(name, value, prev_value) {
32708 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32709 }
32710 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32711 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32712 }
32713 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32714 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32715 }
32716 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32717 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32718 }
32719 this.bgcolor = '#111';
32720 this.color = '#222';
32721 this.shape = LiteGraph.ROUND_SHAPE;
32722 this.boxcolor = '#465';
32723}

◆ mtlx_channel_convert_integer_vector4()

function mtlx_channel_convert_integer_vector4 ( )

mtlx_channel_convert_integer_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_integer_vector4

Definition at line 32734 of file mtlx_stdlib.js.

32734 {
32735 this.nodedef_icon = '';
32736 this.nodedef_name = 'ND_convert_integer_vector4';
32737 this.nodedef_type = 'vector4';
32738 this.nodedef_node = 'convert';
32739 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32740 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector4_out_genglsl.png';
32741 this.nodedef_group = 'channel';
32742 this.addInput('in','integer');
32743 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32744 this.addOutput('out','vector4');
32745 this.title = 'convert_vector4';
32746 this.desc = "MaterialX:mtlx/channel/convert_integer_vector4";
32747 this.onNodeCreated = function() {
32748 //console.log('Node created:', this);
32749}
32750 this.onRemoved = function() {
32751 //console.log('Node removed:', this);
32752 }
32753 this.onPropertyChanged = function(name, value, prev_value) {
32754 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32755 }
32756 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32757 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32758 }
32759 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32760 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32761 }
32762 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32763 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32764 }
32765 this.bgcolor = '#111';
32766 this.color = '#222';
32767 this.shape = LiteGraph.ROUND_SHAPE;
32768 this.boxcolor = '#275';
32769}

◆ mtlx_channel_convert_vector2_color3()

function mtlx_channel_convert_vector2_color3 ( )

mtlx_channel_convert_vector2_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_vector2_color3

Definition at line 31630 of file mtlx_stdlib.js.

31630 {
31631 this.nodedef_icon = '';
31632 this.nodedef_name = 'ND_convert_vector2_color3';
31633 this.nodedef_type = 'color3';
31634 this.nodedef_node = 'convert';
31635 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31636 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_color3_out_genglsl.png';
31637 this.nodedef_group = 'channel';
31638 this.addInput('in','vector2');
31639 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31640 this.addOutput('out','color3');
31641 this.title = 'convert_color3';
31642 this.desc = "MaterialX:mtlx/channel/convert_vector2_color3";
31643 this.onNodeCreated = function() {
31644 //console.log('Node created:', this);
31645}
31646 this.onRemoved = function() {
31647 //console.log('Node removed:', this);
31648 }
31649 this.onPropertyChanged = function(name, value, prev_value) {
31650 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31651 }
31652 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31653 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31654 }
31655 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31656 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31657 }
31658 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31659 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31660 }
31661 this.bgcolor = '#111';
31662 this.color = '#222';
31663 this.shape = LiteGraph.ROUND_SHAPE;
31664 this.boxcolor = '#37A';
31665}

◆ mtlx_channel_convert_vector2_color4()

function mtlx_channel_convert_vector2_color4 ( )

mtlx_channel_convert_vector2_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_vector2_color4

Definition at line 31676 of file mtlx_stdlib.js.

31676 {
31677 this.nodedef_icon = '';
31678 this.nodedef_name = 'ND_convert_vector2_color4';
31679 this.nodedef_type = 'color4';
31680 this.nodedef_node = 'convert';
31681 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31682 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_color4_out_genglsl.png';
31683 this.nodedef_group = 'channel';
31684 this.addInput('in','vector2');
31685 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31686 this.addOutput('out','color4');
31687 this.title = 'convert_color4';
31688 this.desc = "MaterialX:mtlx/channel/convert_vector2_color4";
31689 this.onNodeCreated = function() {
31690 //console.log('Node created:', this);
31691}
31692 this.onRemoved = function() {
31693 //console.log('Node removed:', this);
31694 }
31695 this.onPropertyChanged = function(name, value, prev_value) {
31696 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31697 }
31698 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31699 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31700 }
31701 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31702 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31703 }
31704 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31705 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31706 }
31707 this.bgcolor = '#111';
31708 this.color = '#222';
31709 this.shape = LiteGraph.ROUND_SHAPE;
31710 this.boxcolor = '#69A';
31711}

◆ mtlx_channel_convert_vector2_vector3()

function mtlx_channel_convert_vector2_vector3 ( )

mtlx_channel_convert_vector2_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_vector2_vector3

Definition at line 31722 of file mtlx_stdlib.js.

31722 {
31723 this.nodedef_icon = '';
31724 this.nodedef_name = 'ND_convert_vector2_vector3';
31725 this.nodedef_type = 'vector3';
31726 this.nodedef_node = 'convert';
31727 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31728 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_vector3_out_genglsl.png';
31729 this.nodedef_group = 'channel';
31730 this.addInput('in','vector2');
31731 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31732 this.addOutput('out','vector3');
31733 this.title = 'convert_vector3';
31734 this.desc = "MaterialX:mtlx/channel/convert_vector2_vector3";
31735 this.onNodeCreated = function() {
31736 //console.log('Node created:', this);
31737}
31738 this.onRemoved = function() {
31739 //console.log('Node removed:', this);
31740 }
31741 this.onPropertyChanged = function(name, value, prev_value) {
31742 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31743 }
31744 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31745 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31746 }
31747 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31748 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31749 }
31750 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31751 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31752 }
31753 this.bgcolor = '#111';
31754 this.color = '#222';
31755 this.shape = LiteGraph.ROUND_SHAPE;
31756 this.boxcolor = '#465';
31757}

◆ mtlx_channel_convert_vector2_vector4()

function mtlx_channel_convert_vector2_vector4 ( )

mtlx_channel_convert_vector2_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_vector2_vector4

Definition at line 31768 of file mtlx_stdlib.js.

31768 {
31769 this.nodedef_icon = '';
31770 this.nodedef_name = 'ND_convert_vector2_vector4';
31771 this.nodedef_type = 'vector4';
31772 this.nodedef_node = 'convert';
31773 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31774 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_vector4_out_genglsl.png';
31775 this.nodedef_group = 'channel';
31776 this.addInput('in','vector2');
31777 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31778 this.addOutput('out','vector4');
31779 this.title = 'convert_vector4';
31780 this.desc = "MaterialX:mtlx/channel/convert_vector2_vector4";
31781 this.onNodeCreated = function() {
31782 //console.log('Node created:', this);
31783}
31784 this.onRemoved = function() {
31785 //console.log('Node removed:', this);
31786 }
31787 this.onPropertyChanged = function(name, value, prev_value) {
31788 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31789 }
31790 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31791 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31792 }
31793 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31794 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31795 }
31796 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31797 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31798 }
31799 this.bgcolor = '#111';
31800 this.color = '#222';
31801 this.shape = LiteGraph.ROUND_SHAPE;
31802 this.boxcolor = '#275';
31803}

◆ mtlx_channel_convert_vector3_color3()

function mtlx_channel_convert_vector3_color3 ( )

mtlx_channel_convert_vector3_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_vector3_color3

Definition at line 31814 of file mtlx_stdlib.js.

31814 {
31815 this.nodedef_icon = '';
31816 this.nodedef_name = 'ND_convert_vector3_color3';
31817 this.nodedef_type = 'color3';
31818 this.nodedef_node = 'convert';
31819 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31820 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_color3_out_genglsl.png';
31821 this.nodedef_group = 'channel';
31822 this.addInput('in','vector3');
31823 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31824 this.addOutput('out','color3');
31825 this.title = 'convert_color3';
31826 this.desc = "MaterialX:mtlx/channel/convert_vector3_color3";
31827 this.onNodeCreated = function() {
31828 //console.log('Node created:', this);
31829}
31830 this.onRemoved = function() {
31831 //console.log('Node removed:', this);
31832 }
31833 this.onPropertyChanged = function(name, value, prev_value) {
31834 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31835 }
31836 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31837 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31838 }
31839 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31840 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31841 }
31842 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31843 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31844 }
31845 this.bgcolor = '#111';
31846 this.color = '#222';
31847 this.shape = LiteGraph.ROUND_SHAPE;
31848 this.boxcolor = '#37A';
31849}

◆ mtlx_channel_convert_vector3_color4()

function mtlx_channel_convert_vector3_color4 ( )

mtlx_channel_convert_vector3_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_vector3_color4

Definition at line 31860 of file mtlx_stdlib.js.

31860 {
31861 this.nodedef_icon = '';
31862 this.nodedef_name = 'ND_convert_vector3_color4';
31863 this.nodedef_type = 'color4';
31864 this.nodedef_node = 'convert';
31865 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31866 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_color4_out_genglsl.png';
31867 this.nodedef_group = 'channel';
31868 this.addInput('in','vector3');
31869 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31870 this.addOutput('out','color4');
31871 this.title = 'convert_color4';
31872 this.desc = "MaterialX:mtlx/channel/convert_vector3_color4";
31873 this.onNodeCreated = function() {
31874 //console.log('Node created:', this);
31875}
31876 this.onRemoved = function() {
31877 //console.log('Node removed:', this);
31878 }
31879 this.onPropertyChanged = function(name, value, prev_value) {
31880 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31881 }
31882 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31883 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31884 }
31885 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31886 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31887 }
31888 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31889 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31890 }
31891 this.bgcolor = '#111';
31892 this.color = '#222';
31893 this.shape = LiteGraph.ROUND_SHAPE;
31894 this.boxcolor = '#69A';
31895}

◆ mtlx_channel_convert_vector3_vector2()

function mtlx_channel_convert_vector3_vector2 ( )

mtlx_channel_convert_vector3_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_vector3_vector2

Definition at line 31906 of file mtlx_stdlib.js.

31906 {
31907 this.nodedef_icon = '';
31908 this.nodedef_name = 'ND_convert_vector3_vector2';
31909 this.nodedef_type = 'vector2';
31910 this.nodedef_node = 'convert';
31911 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31912 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_vector2_out_genglsl.png';
31913 this.nodedef_group = 'channel';
31914 this.addInput('in','vector3');
31915 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31916 this.addOutput('out','vector2');
31917 this.title = 'convert_vector2';
31918 this.desc = "MaterialX:mtlx/channel/convert_vector3_vector2";
31919 this.onNodeCreated = function() {
31920 //console.log('Node created:', this);
31921}
31922 this.onRemoved = function() {
31923 //console.log('Node removed:', this);
31924 }
31925 this.onPropertyChanged = function(name, value, prev_value) {
31926 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31927 }
31928 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31929 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31930 }
31931 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31932 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31933 }
31934 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31935 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31936 }
31937 this.bgcolor = '#111';
31938 this.color = '#222';
31939 this.shape = LiteGraph.ROUND_SHAPE;
31940 this.boxcolor = '#265';
31941}

◆ mtlx_channel_convert_vector3_vector4()

function mtlx_channel_convert_vector3_vector4 ( )

mtlx_channel_convert_vector3_vector4

Library: mtlx. Category: convert. Type: vector4 LiteGraph id: mtlx/channel/convert_vector3_vector4

Definition at line 31952 of file mtlx_stdlib.js.

31952 {
31953 this.nodedef_icon = '';
31954 this.nodedef_name = 'ND_convert_vector3_vector4';
31955 this.nodedef_type = 'vector4';
31956 this.nodedef_node = 'convert';
31957 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31958 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_vector4_out_genglsl.png';
31959 this.nodedef_group = 'channel';
31960 this.addInput('in','vector3');
31961 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
31962 this.addOutput('out','vector4');
31963 this.title = 'convert_vector4';
31964 this.desc = "MaterialX:mtlx/channel/convert_vector3_vector4";
31965 this.onNodeCreated = function() {
31966 //console.log('Node created:', this);
31967}
31968 this.onRemoved = function() {
31969 //console.log('Node removed:', this);
31970 }
31971 this.onPropertyChanged = function(name, value, prev_value) {
31972 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31973 }
31974 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31975 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31976 }
31977 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31978 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31979 }
31980 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31981 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31982 }
31983 this.bgcolor = '#111';
31984 this.color = '#222';
31985 this.shape = LiteGraph.ROUND_SHAPE;
31986 this.boxcolor = '#275';
31987}

◆ mtlx_channel_convert_vector4_color3()

function mtlx_channel_convert_vector4_color3 ( )

mtlx_channel_convert_vector4_color3

Library: mtlx. Category: convert. Type: color3 LiteGraph id: mtlx/channel/convert_vector4_color3

Definition at line 31998 of file mtlx_stdlib.js.

31998 {
31999 this.nodedef_icon = '';
32000 this.nodedef_name = 'ND_convert_vector4_color3';
32001 this.nodedef_type = 'color3';
32002 this.nodedef_node = 'convert';
32003 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32004 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_color3_out_genglsl.png';
32005 this.nodedef_group = 'channel';
32006 this.addInput('in','vector4');
32007 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32008 this.addOutput('out','color3');
32009 this.title = 'convert_color3';
32010 this.desc = "MaterialX:mtlx/channel/convert_vector4_color3";
32011 this.onNodeCreated = function() {
32012 //console.log('Node created:', this);
32013}
32014 this.onRemoved = function() {
32015 //console.log('Node removed:', this);
32016 }
32017 this.onPropertyChanged = function(name, value, prev_value) {
32018 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32019 }
32020 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32021 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32022 }
32023 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32024 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32025 }
32026 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32027 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32028 }
32029 this.bgcolor = '#111';
32030 this.color = '#222';
32031 this.shape = LiteGraph.ROUND_SHAPE;
32032 this.boxcolor = '#37A';
32033}

◆ mtlx_channel_convert_vector4_color4()

function mtlx_channel_convert_vector4_color4 ( )

mtlx_channel_convert_vector4_color4

Library: mtlx. Category: convert. Type: color4 LiteGraph id: mtlx/channel/convert_vector4_color4

Definition at line 32044 of file mtlx_stdlib.js.

32044 {
32045 this.nodedef_icon = '';
32046 this.nodedef_name = 'ND_convert_vector4_color4';
32047 this.nodedef_type = 'color4';
32048 this.nodedef_node = 'convert';
32049 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32050 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_color4_out_genglsl.png';
32051 this.nodedef_group = 'channel';
32052 this.addInput('in','vector4');
32053 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32054 this.addOutput('out','color4');
32055 this.title = 'convert_color4';
32056 this.desc = "MaterialX:mtlx/channel/convert_vector4_color4";
32057 this.onNodeCreated = function() {
32058 //console.log('Node created:', this);
32059}
32060 this.onRemoved = function() {
32061 //console.log('Node removed:', this);
32062 }
32063 this.onPropertyChanged = function(name, value, prev_value) {
32064 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32065 }
32066 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32067 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32068 }
32069 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32070 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32071 }
32072 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32073 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32074 }
32075 this.bgcolor = '#111';
32076 this.color = '#222';
32077 this.shape = LiteGraph.ROUND_SHAPE;
32078 this.boxcolor = '#69A';
32079}

◆ mtlx_channel_convert_vector4_vector2()

function mtlx_channel_convert_vector4_vector2 ( )

mtlx_channel_convert_vector4_vector2

Library: mtlx. Category: convert. Type: vector2 LiteGraph id: mtlx/channel/convert_vector4_vector2

Definition at line 32090 of file mtlx_stdlib.js.

32090 {
32091 this.nodedef_icon = '';
32092 this.nodedef_name = 'ND_convert_vector4_vector2';
32093 this.nodedef_type = 'vector2';
32094 this.nodedef_node = 'convert';
32095 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32096 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_vector2_out_genglsl.png';
32097 this.nodedef_group = 'channel';
32098 this.addInput('in','vector4');
32099 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32100 this.addOutput('out','vector2');
32101 this.title = 'convert_vector2';
32102 this.desc = "MaterialX:mtlx/channel/convert_vector4_vector2";
32103 this.onNodeCreated = function() {
32104 //console.log('Node created:', this);
32105}
32106 this.onRemoved = function() {
32107 //console.log('Node removed:', this);
32108 }
32109 this.onPropertyChanged = function(name, value, prev_value) {
32110 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32111 }
32112 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32113 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32114 }
32115 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32116 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32117 }
32118 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32119 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32120 }
32121 this.bgcolor = '#111';
32122 this.color = '#222';
32123 this.shape = LiteGraph.ROUND_SHAPE;
32124 this.boxcolor = '#265';
32125}

◆ mtlx_channel_convert_vector4_vector3()

function mtlx_channel_convert_vector4_vector3 ( )

mtlx_channel_convert_vector4_vector3

Library: mtlx. Category: convert. Type: vector3 LiteGraph id: mtlx/channel/convert_vector4_vector3

Definition at line 32136 of file mtlx_stdlib.js.

32136 {
32137 this.nodedef_icon = '';
32138 this.nodedef_name = 'ND_convert_vector4_vector3';
32139 this.nodedef_type = 'vector3';
32140 this.nodedef_node = 'convert';
32141 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32142 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_vector3_out_genglsl.png';
32143 this.nodedef_group = 'channel';
32144 this.addInput('in','vector4');
32145 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32146 this.addOutput('out','vector3');
32147 this.title = 'convert_vector3';
32148 this.desc = "MaterialX:mtlx/channel/convert_vector4_vector3";
32149 this.onNodeCreated = function() {
32150 //console.log('Node created:', this);
32151}
32152 this.onRemoved = function() {
32153 //console.log('Node removed:', this);
32154 }
32155 this.onPropertyChanged = function(name, value, prev_value) {
32156 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32157 }
32158 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32159 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32160 }
32161 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32162 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32163 }
32164 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32165 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32166 }
32167 this.bgcolor = '#111';
32168 this.color = '#222';
32169 this.shape = LiteGraph.ROUND_SHAPE;
32170 this.boxcolor = '#465';
32171}

◆ mtlx_channel_extract_color3()

function mtlx_channel_extract_color3 ( )

mtlx_channel_extract_color3

Library: mtlx. Category: creatematrix. Type: float LiteGraph id: mtlx/channel/extract_color3

Definition at line 33736 of file mtlx_stdlib.js.

33736 {
33737 this.nodedef_icon = '';
33738 this.nodedef_name = 'ND_extract_color3';
33739 this.nodedef_type = 'float';
33740 this.nodedef_node = 'extract';
33741 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33742 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_color3_out_genglsl.png';
33743 this.nodedef_group = 'channel';
33744 this.addInput('in','color3');
33745 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33746 this.addInput('index','integer');
33747 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":"","defaultgeomprop":""});
33748 this.addOutput('out','float');
33749 this.title = 'extract_float';
33750 this.desc = "MaterialX:mtlx/channel/extract_color3";
33751 this.onNodeCreated = function() {
33752 //console.log('Node created:', this);
33753}
33754 this.onRemoved = function() {
33755 //console.log('Node removed:', this);
33756 }
33757 this.onPropertyChanged = function(name, value, prev_value) {
33758 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33759 }
33760 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33761 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33762 }
33763 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33764 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33765 }
33766 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33767 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33768 }
33769 this.bgcolor = '#111';
33770 this.color = '#222';
33771 this.shape = LiteGraph.ROUND_SHAPE;
33772 this.boxcolor = '#161';
33773}

◆ mtlx_channel_extract_color4()

function mtlx_channel_extract_color4 ( )

mtlx_channel_extract_color4

Library: mtlx. Category: extract. Type: float LiteGraph id: mtlx/channel/extract_color4

Definition at line 33784 of file mtlx_stdlib.js.

33784 {
33785 this.nodedef_icon = '';
33786 this.nodedef_name = 'ND_extract_color4';
33787 this.nodedef_type = 'float';
33788 this.nodedef_node = 'extract';
33789 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33790 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_color4_out_genglsl.png';
33791 this.nodedef_group = 'channel';
33792 this.addInput('in','color4');
33793 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33794 this.addInput('index','integer');
33795 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":"","defaultgeomprop":""});
33796 this.addOutput('out','float');
33797 this.title = 'extract_float';
33798 this.desc = "MaterialX:mtlx/channel/extract_color4";
33799 this.onNodeCreated = function() {
33800 //console.log('Node created:', this);
33801}
33802 this.onRemoved = function() {
33803 //console.log('Node removed:', this);
33804 }
33805 this.onPropertyChanged = function(name, value, prev_value) {
33806 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33807 }
33808 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33809 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33810 }
33811 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33812 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33813 }
33814 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33815 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33816 }
33817 this.bgcolor = '#111';
33818 this.color = '#222';
33819 this.shape = LiteGraph.ROUND_SHAPE;
33820 this.boxcolor = '#161';
33821}

◆ mtlx_channel_extract_vector2()

function mtlx_channel_extract_vector2 ( )

mtlx_channel_extract_vector2

Library: mtlx. Category: extract. Type: float LiteGraph id: mtlx/channel/extract_vector2

Definition at line 33832 of file mtlx_stdlib.js.

33832 {
33833 this.nodedef_icon = '';
33834 this.nodedef_name = 'ND_extract_vector2';
33835 this.nodedef_type = 'float';
33836 this.nodedef_node = 'extract';
33837 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33838 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector2_out_genglsl.png';
33839 this.nodedef_group = 'channel';
33840 this.addInput('in','vector2');
33841 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33842 this.addInput('index','integer');
33843 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":"","defaultgeomprop":""});
33844 this.addOutput('out','float');
33845 this.title = 'extract_float';
33846 this.desc = "MaterialX:mtlx/channel/extract_vector2";
33847 this.onNodeCreated = function() {
33848 //console.log('Node created:', this);
33849}
33850 this.onRemoved = function() {
33851 //console.log('Node removed:', this);
33852 }
33853 this.onPropertyChanged = function(name, value, prev_value) {
33854 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33855 }
33856 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33857 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33858 }
33859 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33860 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33861 }
33862 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33863 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33864 }
33865 this.bgcolor = '#111';
33866 this.color = '#222';
33867 this.shape = LiteGraph.ROUND_SHAPE;
33868 this.boxcolor = '#161';
33869}

◆ mtlx_channel_extract_vector3()

function mtlx_channel_extract_vector3 ( )

mtlx_channel_extract_vector3

Library: mtlx. Category: extract. Type: float LiteGraph id: mtlx/channel/extract_vector3

Definition at line 33880 of file mtlx_stdlib.js.

33880 {
33881 this.nodedef_icon = '';
33882 this.nodedef_name = 'ND_extract_vector3';
33883 this.nodedef_type = 'float';
33884 this.nodedef_node = 'extract';
33885 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33886 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector3_out_genglsl.png';
33887 this.nodedef_group = 'channel';
33888 this.addInput('in','vector3');
33889 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33890 this.addInput('index','integer');
33891 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"2","uifolder":"","defaultgeomprop":""});
33892 this.addOutput('out','float');
33893 this.title = 'extract_float';
33894 this.desc = "MaterialX:mtlx/channel/extract_vector3";
33895 this.onNodeCreated = function() {
33896 //console.log('Node created:', this);
33897}
33898 this.onRemoved = function() {
33899 //console.log('Node removed:', this);
33900 }
33901 this.onPropertyChanged = function(name, value, prev_value) {
33902 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33903 }
33904 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33905 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33906 }
33907 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33908 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33909 }
33910 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33911 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33912 }
33913 this.bgcolor = '#111';
33914 this.color = '#222';
33915 this.shape = LiteGraph.ROUND_SHAPE;
33916 this.boxcolor = '#161';
33917}

◆ mtlx_channel_extract_vector4()

function mtlx_channel_extract_vector4 ( )

mtlx_channel_extract_vector4

Library: mtlx. Category: extract. Type: float LiteGraph id: mtlx/channel/extract_vector4

Definition at line 33928 of file mtlx_stdlib.js.

33928 {
33929 this.nodedef_icon = '';
33930 this.nodedef_name = 'ND_extract_vector4';
33931 this.nodedef_type = 'float';
33932 this.nodedef_node = 'extract';
33933 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33934 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector4_out_genglsl.png';
33935 this.nodedef_group = 'channel';
33936 this.addInput('in','vector4');
33937 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33938 this.addInput('index','integer');
33939 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"3","uifolder":"","defaultgeomprop":""});
33940 this.addOutput('out','float');
33941 this.title = 'extract_float';
33942 this.desc = "MaterialX:mtlx/channel/extract_vector4";
33943 this.onNodeCreated = function() {
33944 //console.log('Node created:', this);
33945}
33946 this.onRemoved = function() {
33947 //console.log('Node removed:', this);
33948 }
33949 this.onPropertyChanged = function(name, value, prev_value) {
33950 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33951 }
33952 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33953 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33954 }
33955 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33956 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33957 }
33958 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33959 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33960 }
33961 this.bgcolor = '#111';
33962 this.color = '#222';
33963 this.shape = LiteGraph.ROUND_SHAPE;
33964 this.boxcolor = '#161';
33965}

◆ mtlx_channel_separate2_vector2()

function mtlx_channel_separate2_vector2 ( )

mtlx_channel_separate2_vector2

Library: mtlx. Category: extract. Type: multioutput LiteGraph id: mtlx/channel/separate2_vector2

Definition at line 33976 of file mtlx_stdlib.js.

33976 {
33977 this.nodedef_icon = '';
33978 this.nodedef_name = 'ND_separate2_vector2';
33979 this.nodedef_type = 'multioutput';
33980 this.nodedef_node = 'separate2';
33981 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate2.html';
33982 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate2_vector2_outx_genglsl.png';
33983 this.nodedef_group = 'channel';
33984 this.addInput('in','vector2');
33985 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33986 this.addOutput('outx','float');
33987 this.addOutput('outy','float');
33988 this.title = 'separate2_multioutput';
33989 this.desc = "MaterialX:mtlx/channel/separate2_vector2";
33990 this.onNodeCreated = function() {
33991 //console.log('Node created:', this);
33992}
33993 this.onRemoved = function() {
33994 //console.log('Node removed:', this);
33995 }
33996 this.onPropertyChanged = function(name, value, prev_value) {
33997 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33998 }
33999 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34000 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34001 }
34002 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34003 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34004 }
34005 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34006 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34007 }
34008 this.bgcolor = '#111';
34009 this.color = '#222';
34010 this.shape = LiteGraph.ROUND_SHAPE;
34011}

◆ mtlx_channel_separate3_color3()

function mtlx_channel_separate3_color3 ( )

mtlx_channel_separate3_color3

Library: mtlx. Category: separate2. Type: multioutput LiteGraph id: mtlx/channel/separate3_color3

Definition at line 34022 of file mtlx_stdlib.js.

34022 {
34023 this.nodedef_icon = '';
34024 this.nodedef_name = 'ND_separate3_color3';
34025 this.nodedef_type = 'multioutput';
34026 this.nodedef_node = 'separate3';
34027 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate3.html';
34028 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate3_color3_outr_genglsl.png';
34029 this.nodedef_group = 'channel';
34030 this.addInput('in','color3');
34031 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34032 this.addOutput('outr','float');
34033 this.addOutput('outg','float');
34034 this.addOutput('outb','float');
34035 this.title = 'separate3_multioutput';
34036 this.desc = "MaterialX:mtlx/channel/separate3_color3";
34037 this.onNodeCreated = function() {
34038 //console.log('Node created:', this);
34039}
34040 this.onRemoved = function() {
34041 //console.log('Node removed:', this);
34042 }
34043 this.onPropertyChanged = function(name, value, prev_value) {
34044 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34045 }
34046 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34047 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34048 }
34049 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34050 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34051 }
34052 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34053 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34054 }
34055 this.bgcolor = '#111';
34056 this.color = '#222';
34057 this.shape = LiteGraph.ROUND_SHAPE;
34058}

◆ mtlx_channel_separate3_vector3()

function mtlx_channel_separate3_vector3 ( )

mtlx_channel_separate3_vector3

Library: mtlx. Category: separate3. Type: multioutput LiteGraph id: mtlx/channel/separate3_vector3

Definition at line 34069 of file mtlx_stdlib.js.

34069 {
34070 this.nodedef_icon = '';
34071 this.nodedef_name = 'ND_separate3_vector3';
34072 this.nodedef_type = 'multioutput';
34073 this.nodedef_node = 'separate3';
34074 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate3.html';
34075 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate3_vector3_outx_genglsl.png';
34076 this.nodedef_group = 'channel';
34077 this.addInput('in','vector3');
34078 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34079 this.addOutput('outx','float');
34080 this.addOutput('outy','float');
34081 this.addOutput('outz','float');
34082 this.title = 'separate3_multioutput';
34083 this.desc = "MaterialX:mtlx/channel/separate3_vector3";
34084 this.onNodeCreated = function() {
34085 //console.log('Node created:', this);
34086}
34087 this.onRemoved = function() {
34088 //console.log('Node removed:', this);
34089 }
34090 this.onPropertyChanged = function(name, value, prev_value) {
34091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34092 }
34093 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34095 }
34096 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34098 }
34099 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34101 }
34102 this.bgcolor = '#111';
34103 this.color = '#222';
34104 this.shape = LiteGraph.ROUND_SHAPE;
34105}

◆ mtlx_channel_separate4_color4()

function mtlx_channel_separate4_color4 ( )

mtlx_channel_separate4_color4

Library: mtlx. Category: separate3. Type: multioutput LiteGraph id: mtlx/channel/separate4_color4

Definition at line 34116 of file mtlx_stdlib.js.

34116 {
34117 this.nodedef_icon = '';
34118 this.nodedef_name = 'ND_separate4_color4';
34119 this.nodedef_type = 'multioutput';
34120 this.nodedef_node = 'separate4';
34121 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate4.html';
34122 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate4_color4_outr_genglsl.png';
34123 this.nodedef_group = 'channel';
34124 this.addInput('in','color4');
34125 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34126 this.addOutput('outr','float');
34127 this.addOutput('outg','float');
34128 this.addOutput('outb','float');
34129 this.addOutput('outa','float');
34130 this.title = 'separate4_multioutput';
34131 this.desc = "MaterialX:mtlx/channel/separate4_color4";
34132 this.onNodeCreated = function() {
34133 //console.log('Node created:', this);
34134}
34135 this.onRemoved = function() {
34136 //console.log('Node removed:', this);
34137 }
34138 this.onPropertyChanged = function(name, value, prev_value) {
34139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34140 }
34141 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34143 }
34144 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34146 }
34147 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34149 }
34150 this.bgcolor = '#111';
34151 this.color = '#222';
34152 this.shape = LiteGraph.ROUND_SHAPE;
34153}

◆ mtlx_channel_separate4_vector4()

function mtlx_channel_separate4_vector4 ( )

mtlx_channel_separate4_vector4

Library: mtlx. Category: separate4. Type: multioutput LiteGraph id: mtlx/channel/separate4_vector4

Definition at line 34164 of file mtlx_stdlib.js.

34164 {
34165 this.nodedef_icon = '';
34166 this.nodedef_name = 'ND_separate4_vector4';
34167 this.nodedef_type = 'multioutput';
34168 this.nodedef_node = 'separate4';
34169 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate4.html';
34170 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate4_vector4_outx_genglsl.png';
34171 this.nodedef_group = 'channel';
34172 this.addInput('in','vector4');
34173 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34174 this.addOutput('outx','float');
34175 this.addOutput('outy','float');
34176 this.addOutput('outz','float');
34177 this.addOutput('outw','float');
34178 this.title = 'separate4_multioutput';
34179 this.desc = "MaterialX:mtlx/channel/separate4_vector4";
34180 this.onNodeCreated = function() {
34181 //console.log('Node created:', this);
34182}
34183 this.onRemoved = function() {
34184 //console.log('Node removed:', this);
34185 }
34186 this.onPropertyChanged = function(name, value, prev_value) {
34187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34188 }
34189 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34191 }
34192 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34194 }
34195 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34197 }
34198 this.bgcolor = '#111';
34199 this.color = '#222';
34200 this.shape = LiteGraph.ROUND_SHAPE;
34201}

◆ mtlx_colortransform_acescg_to_lin_rec709_color3()

function mtlx_colortransform_acescg_to_lin_rec709_color3 ( )

mtlx_colortransform_acescg_to_lin_rec709_color3

Library: mtlx. Category: rec709_display_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/acescg_to_lin_rec709_color3

Definition at line 40552 of file mtlx_stdlib.js.

40552 {
40553 this.nodedef_icon = '';
40554 this.nodedef_name = 'ND_acescg_to_lin_rec709_color3';
40555 this.nodedef_type = 'color3';
40556 this.nodedef_node = 'acescg_to_lin_rec709';
40557 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acescg_to_lin_rec709.html';
40558 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color3_out_genglsl.png';
40559 this.nodedef_group = 'colortransform';
40560 this.addInput('in','color3');
40561 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40562 this.addOutput('out','color3');
40563 this.title = 'acescg_to_lin_rec709_color3';
40564 this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color3";
40565 this.onNodeCreated = function() {
40566 //console.log('Node created:', this);
40567}
40568 this.onRemoved = function() {
40569 //console.log('Node removed:', this);
40570 }
40571 this.onPropertyChanged = function(name, value, prev_value) {
40572 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40573 }
40574 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40575 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40576 }
40577 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40578 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40579 }
40580 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40581 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40582 }
40583 this.bgcolor = '#111';
40584 this.color = '#222';
40585 this.shape = LiteGraph.ROUND_SHAPE;
40586 this.boxcolor = '#37A';
40587}

◆ mtlx_colortransform_acescg_to_lin_rec709_color4()

function mtlx_colortransform_acescg_to_lin_rec709_color4 ( )

mtlx_colortransform_acescg_to_lin_rec709_color4

Library: mtlx. Category: acescg_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/acescg_to_lin_rec709_color4

Definition at line 40598 of file mtlx_stdlib.js.

40598 {
40599 this.nodedef_icon = '';
40600 this.nodedef_name = 'ND_acescg_to_lin_rec709_color4';
40601 this.nodedef_type = 'color4';
40602 this.nodedef_node = 'acescg_to_lin_rec709';
40603 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acescg_to_lin_rec709.html';
40604 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color4_out_genglsl.png';
40605 this.nodedef_group = 'colortransform';
40606 this.addInput('in','color4');
40607 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40608 this.addOutput('out','color4');
40609 this.title = 'acescg_to_lin_rec709_color4';
40610 this.desc = "MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color4";
40611 this.onNodeCreated = function() {
40612 //console.log('Node created:', this);
40613}
40614 this.onRemoved = function() {
40615 //console.log('Node removed:', this);
40616 }
40617 this.onPropertyChanged = function(name, value, prev_value) {
40618 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40619 }
40620 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40621 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40622 }
40623 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40624 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40625 }
40626 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40627 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40628 }
40629 this.bgcolor = '#111';
40630 this.color = '#222';
40631 this.shape = LiteGraph.ROUND_SHAPE;
40632 this.boxcolor = '#69A';
40633}

◆ mtlx_colortransform_adobergb_to_lin_rec709_color3()

function mtlx_colortransform_adobergb_to_lin_rec709_color3 ( )

mtlx_colortransform_adobergb_to_lin_rec709_color3

Library: mtlx. Category: lin_adobergb_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/adobergb_to_lin_rec709_color3

Definition at line 40920 of file mtlx_stdlib.js.

40920 {
40921 this.nodedef_icon = '';
40922 this.nodedef_name = 'ND_adobergb_to_lin_rec709_color3';
40923 this.nodedef_type = 'color3';
40924 this.nodedef_node = 'adobergb_to_lin_rec709';
40925 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/adobergb_to_lin_rec709.html';
40926 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color3_out_genglsl.png';
40927 this.nodedef_group = 'colortransform';
40928 this.addInput('in','color3');
40929 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40930 this.addOutput('out','color3');
40931 this.title = 'adobergb_to_lin_rec709_color3';
40932 this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color3";
40933 this.onNodeCreated = function() {
40934 //console.log('Node created:', this);
40935}
40936 this.onRemoved = function() {
40937 //console.log('Node removed:', this);
40938 }
40939 this.onPropertyChanged = function(name, value, prev_value) {
40940 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40941 }
40942 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40943 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40944 }
40945 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40946 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40947 }
40948 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40949 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40950 }
40951 this.bgcolor = '#111';
40952 this.color = '#222';
40953 this.shape = LiteGraph.ROUND_SHAPE;
40954 this.boxcolor = '#37A';
40955}

◆ mtlx_colortransform_adobergb_to_lin_rec709_color4()

function mtlx_colortransform_adobergb_to_lin_rec709_color4 ( )

mtlx_colortransform_adobergb_to_lin_rec709_color4

Library: mtlx. Category: adobergb_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/adobergb_to_lin_rec709_color4

Definition at line 40966 of file mtlx_stdlib.js.

40966 {
40967 this.nodedef_icon = '';
40968 this.nodedef_name = 'ND_adobergb_to_lin_rec709_color4';
40969 this.nodedef_type = 'color4';
40970 this.nodedef_node = 'adobergb_to_lin_rec709';
40971 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/adobergb_to_lin_rec709.html';
40972 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color4_out_genglsl.png';
40973 this.nodedef_group = 'colortransform';
40974 this.addInput('in','color4');
40975 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40976 this.addOutput('out','color4');
40977 this.title = 'adobergb_to_lin_rec709_color4';
40978 this.desc = "MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color4";
40979 this.onNodeCreated = function() {
40980 //console.log('Node created:', this);
40981}
40982 this.onRemoved = function() {
40983 //console.log('Node removed:', this);
40984 }
40985 this.onPropertyChanged = function(name, value, prev_value) {
40986 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40987 }
40988 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40989 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40990 }
40991 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40992 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40993 }
40994 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40995 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40996 }
40997 this.bgcolor = '#111';
40998 this.color = '#222';
40999 this.shape = LiteGraph.ROUND_SHAPE;
41000 this.boxcolor = '#69A';
41001}

◆ mtlx_colortransform_g18_rec709_to_lin_rec709_color3()

function mtlx_colortransform_g18_rec709_to_lin_rec709_color3 ( )

mtlx_colortransform_g18_rec709_to_lin_rec709_color3

Library: mtlx. Category: standard_surface_to_UsdPreviewSurface. Type: color3 LiteGraph id: mtlx/colortransform/g18_rec709_to_lin_rec709_color3

Definition at line 40276 of file mtlx_stdlib.js.

40276 {
40277 this.nodedef_icon = '';
40278 this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color3';
40279 this.nodedef_type = 'color3';
40280 this.nodedef_node = 'g18_rec709_to_lin_rec709';
40281 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g18_rec709_to_lin_rec709.html';
40282 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color3_out_genglsl.png';
40283 this.nodedef_group = 'colortransform';
40284 this.addInput('in','color3');
40285 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40286 this.addOutput('out','color3');
40287 this.title = 'g18_rec709_to_lin_rec709_color3';
40288 this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color3";
40289 this.onNodeCreated = function() {
40290 //console.log('Node created:', this);
40291}
40292 this.onRemoved = function() {
40293 //console.log('Node removed:', this);
40294 }
40295 this.onPropertyChanged = function(name, value, prev_value) {
40296 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40297 }
40298 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40299 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40300 }
40301 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40302 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40303 }
40304 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40305 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40306 }
40307 this.bgcolor = '#111';
40308 this.color = '#222';
40309 this.shape = LiteGraph.ROUND_SHAPE;
40310 this.boxcolor = '#37A';
40311}

◆ mtlx_colortransform_g18_rec709_to_lin_rec709_color4()

function mtlx_colortransform_g18_rec709_to_lin_rec709_color4 ( )

mtlx_colortransform_g18_rec709_to_lin_rec709_color4

Library: mtlx. Category: g18_rec709_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/g18_rec709_to_lin_rec709_color4

Definition at line 40322 of file mtlx_stdlib.js.

40322 {
40323 this.nodedef_icon = '';
40324 this.nodedef_name = 'ND_g18_rec709_to_lin_rec709_color4';
40325 this.nodedef_type = 'color4';
40326 this.nodedef_node = 'g18_rec709_to_lin_rec709';
40327 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g18_rec709_to_lin_rec709.html';
40328 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color4_out_genglsl.png';
40329 this.nodedef_group = 'colortransform';
40330 this.addInput('in','color4');
40331 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40332 this.addOutput('out','color4');
40333 this.title = 'g18_rec709_to_lin_rec709_color4';
40334 this.desc = "MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color4";
40335 this.onNodeCreated = function() {
40336 //console.log('Node created:', this);
40337}
40338 this.onRemoved = function() {
40339 //console.log('Node removed:', this);
40340 }
40341 this.onPropertyChanged = function(name, value, prev_value) {
40342 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40343 }
40344 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40345 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40346 }
40347 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40348 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40349 }
40350 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40351 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40352 }
40353 this.bgcolor = '#111';
40354 this.color = '#222';
40355 this.shape = LiteGraph.ROUND_SHAPE;
40356 this.boxcolor = '#69A';
40357}

◆ mtlx_colortransform_g22_ap1_to_lin_rec709_color3()

function mtlx_colortransform_g22_ap1_to_lin_rec709_color3 ( )

mtlx_colortransform_g22_ap1_to_lin_rec709_color3

Library: mtlx. Category: acescg_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/g22_ap1_to_lin_rec709_color3

Definition at line 40644 of file mtlx_stdlib.js.

40644 {
40645 this.nodedef_icon = '';
40646 this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color3';
40647 this.nodedef_type = 'color3';
40648 this.nodedef_node = 'g22_ap1_to_lin_rec709';
40649 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_ap1_to_lin_rec709.html';
40650 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color3_out_genglsl.png';
40651 this.nodedef_group = 'colortransform';
40652 this.addInput('in','color3');
40653 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40654 this.addOutput('out','color3');
40655 this.title = 'g22_ap1_to_lin_rec709_color3';
40656 this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color3";
40657 this.onNodeCreated = function() {
40658 //console.log('Node created:', this);
40659}
40660 this.onRemoved = function() {
40661 //console.log('Node removed:', this);
40662 }
40663 this.onPropertyChanged = function(name, value, prev_value) {
40664 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40665 }
40666 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40667 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40668 }
40669 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40670 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40671 }
40672 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40673 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40674 }
40675 this.bgcolor = '#111';
40676 this.color = '#222';
40677 this.shape = LiteGraph.ROUND_SHAPE;
40678 this.boxcolor = '#37A';
40679}

◆ mtlx_colortransform_g22_ap1_to_lin_rec709_color4()

function mtlx_colortransform_g22_ap1_to_lin_rec709_color4 ( )

mtlx_colortransform_g22_ap1_to_lin_rec709_color4

Library: mtlx. Category: g22_ap1_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/g22_ap1_to_lin_rec709_color4

Definition at line 40690 of file mtlx_stdlib.js.

40690 {
40691 this.nodedef_icon = '';
40692 this.nodedef_name = 'ND_g22_ap1_to_lin_rec709_color4';
40693 this.nodedef_type = 'color4';
40694 this.nodedef_node = 'g22_ap1_to_lin_rec709';
40695 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_ap1_to_lin_rec709.html';
40696 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color4_out_genglsl.png';
40697 this.nodedef_group = 'colortransform';
40698 this.addInput('in','color4');
40699 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40700 this.addOutput('out','color4');
40701 this.title = 'g22_ap1_to_lin_rec709_color4';
40702 this.desc = "MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color4";
40703 this.onNodeCreated = function() {
40704 //console.log('Node created:', this);
40705}
40706 this.onRemoved = function() {
40707 //console.log('Node removed:', this);
40708 }
40709 this.onPropertyChanged = function(name, value, prev_value) {
40710 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40711 }
40712 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40713 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40714 }
40715 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40716 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40717 }
40718 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40719 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40720 }
40721 this.bgcolor = '#111';
40722 this.color = '#222';
40723 this.shape = LiteGraph.ROUND_SHAPE;
40724 this.boxcolor = '#69A';
40725}

◆ mtlx_colortransform_g22_rec709_to_lin_rec709_color3()

function mtlx_colortransform_g22_rec709_to_lin_rec709_color3 ( )

mtlx_colortransform_g22_rec709_to_lin_rec709_color3

Library: mtlx. Category: g18_rec709_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/g22_rec709_to_lin_rec709_color3

Definition at line 40368 of file mtlx_stdlib.js.

40368 {
40369 this.nodedef_icon = '';
40370 this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color3';
40371 this.nodedef_type = 'color3';
40372 this.nodedef_node = 'g22_rec709_to_lin_rec709';
40373 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_rec709_to_lin_rec709.html';
40374 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color3_out_genglsl.png';
40375 this.nodedef_group = 'colortransform';
40376 this.addInput('in','color3');
40377 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40378 this.addOutput('out','color3');
40379 this.title = 'g22_rec709_to_lin_rec709_color3';
40380 this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color3";
40381 this.onNodeCreated = function() {
40382 //console.log('Node created:', this);
40383}
40384 this.onRemoved = function() {
40385 //console.log('Node removed:', this);
40386 }
40387 this.onPropertyChanged = function(name, value, prev_value) {
40388 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40389 }
40390 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40391 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40392 }
40393 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40394 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40395 }
40396 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40397 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40398 }
40399 this.bgcolor = '#111';
40400 this.color = '#222';
40401 this.shape = LiteGraph.ROUND_SHAPE;
40402 this.boxcolor = '#37A';
40403}

◆ mtlx_colortransform_g22_rec709_to_lin_rec709_color4()

function mtlx_colortransform_g22_rec709_to_lin_rec709_color4 ( )

mtlx_colortransform_g22_rec709_to_lin_rec709_color4

Library: mtlx. Category: g22_rec709_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/g22_rec709_to_lin_rec709_color4

Definition at line 40414 of file mtlx_stdlib.js.

40414 {
40415 this.nodedef_icon = '';
40416 this.nodedef_name = 'ND_g22_rec709_to_lin_rec709_color4';
40417 this.nodedef_type = 'color4';
40418 this.nodedef_node = 'g22_rec709_to_lin_rec709';
40419 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_rec709_to_lin_rec709.html';
40420 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color4_out_genglsl.png';
40421 this.nodedef_group = 'colortransform';
40422 this.addInput('in','color4');
40423 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40424 this.addOutput('out','color4');
40425 this.title = 'g22_rec709_to_lin_rec709_color4';
40426 this.desc = "MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color4";
40427 this.onNodeCreated = function() {
40428 //console.log('Node created:', this);
40429}
40430 this.onRemoved = function() {
40431 //console.log('Node removed:', this);
40432 }
40433 this.onPropertyChanged = function(name, value, prev_value) {
40434 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40435 }
40436 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40437 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40438 }
40439 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40440 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40441 }
40442 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40443 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40444 }
40445 this.bgcolor = '#111';
40446 this.color = '#222';
40447 this.shape = LiteGraph.ROUND_SHAPE;
40448 this.boxcolor = '#69A';
40449}

◆ mtlx_colortransform_lin_adobergb_to_lin_rec709_color3()

function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3 ( )

mtlx_colortransform_lin_adobergb_to_lin_rec709_color3

Library: mtlx. Category: srgb_texture_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/lin_adobergb_to_lin_rec709_color3

Definition at line 40828 of file mtlx_stdlib.js.

40828 {
40829 this.nodedef_icon = '';
40830 this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color3';
40831 this.nodedef_type = 'color3';
40832 this.nodedef_node = 'lin_adobergb_to_lin_rec709';
40833 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_adobergb_to_lin_rec709.html';
40834 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color3_out_genglsl.png';
40835 this.nodedef_group = 'colortransform';
40836 this.addInput('in','color3');
40837 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40838 this.addOutput('out','color3');
40839 this.title = 'lin_adobergb_to_lin_rec709_color3';
40840 this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color3";
40841 this.onNodeCreated = function() {
40842 //console.log('Node created:', this);
40843}
40844 this.onRemoved = function() {
40845 //console.log('Node removed:', this);
40846 }
40847 this.onPropertyChanged = function(name, value, prev_value) {
40848 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40849 }
40850 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40851 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40852 }
40853 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40854 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40855 }
40856 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40857 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40858 }
40859 this.bgcolor = '#111';
40860 this.color = '#222';
40861 this.shape = LiteGraph.ROUND_SHAPE;
40862 this.boxcolor = '#37A';
40863}

◆ mtlx_colortransform_lin_adobergb_to_lin_rec709_color4()

function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4 ( )

mtlx_colortransform_lin_adobergb_to_lin_rec709_color4

Library: mtlx. Category: lin_adobergb_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/lin_adobergb_to_lin_rec709_color4

Definition at line 40874 of file mtlx_stdlib.js.

40874 {
40875 this.nodedef_icon = '';
40876 this.nodedef_name = 'ND_lin_adobergb_to_lin_rec709_color4';
40877 this.nodedef_type = 'color4';
40878 this.nodedef_node = 'lin_adobergb_to_lin_rec709';
40879 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_adobergb_to_lin_rec709.html';
40880 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color4_out_genglsl.png';
40881 this.nodedef_group = 'colortransform';
40882 this.addInput('in','color4');
40883 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40884 this.addOutput('out','color4');
40885 this.title = 'lin_adobergb_to_lin_rec709_color4';
40886 this.desc = "MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color4";
40887 this.onNodeCreated = function() {
40888 //console.log('Node created:', this);
40889}
40890 this.onRemoved = function() {
40891 //console.log('Node removed:', this);
40892 }
40893 this.onPropertyChanged = function(name, value, prev_value) {
40894 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40895 }
40896 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40897 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40898 }
40899 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40900 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40901 }
40902 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40903 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40904 }
40905 this.bgcolor = '#111';
40906 this.color = '#222';
40907 this.shape = LiteGraph.ROUND_SHAPE;
40908 this.boxcolor = '#69A';
40909}

◆ mtlx_colortransform_lin_displayp3_to_lin_rec709_color3()

function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3 ( )

mtlx_colortransform_lin_displayp3_to_lin_rec709_color3

Library: mtlx. Category: srgb_displayp3_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/lin_displayp3_to_lin_rec709_color3

Definition at line 41104 of file mtlx_stdlib.js.

41104 {
41105 this.nodedef_icon = '';
41106 this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color3';
41107 this.nodedef_type = 'color3';
41108 this.nodedef_node = 'lin_displayp3_to_lin_rec709';
41109 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_displayp3_to_lin_rec709.html';
41110 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color3_out_genglsl.png';
41111 this.nodedef_group = 'colortransform';
41112 this.addInput('in','color3');
41113 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41114 this.addOutput('out','color3');
41115 this.title = 'lin_displayp3_to_lin_rec709_color3';
41116 this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color3";
41117 this.onNodeCreated = function() {
41118 //console.log('Node created:', this);
41119}
41120 this.onRemoved = function() {
41121 //console.log('Node removed:', this);
41122 }
41123 this.onPropertyChanged = function(name, value, prev_value) {
41124 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41125 }
41126 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41127 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41128 }
41129 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41130 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41131 }
41132 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41133 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41134 }
41135 this.bgcolor = '#111';
41136 this.color = '#222';
41137 this.shape = LiteGraph.ROUND_SHAPE;
41138 this.boxcolor = '#37A';
41139}

◆ mtlx_colortransform_lin_displayp3_to_lin_rec709_color4()

function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4 ( )

mtlx_colortransform_lin_displayp3_to_lin_rec709_color4

Library: mtlx. Category: lin_displayp3_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/lin_displayp3_to_lin_rec709_color4

Definition at line 41150 of file mtlx_stdlib.js.

41150 {
41151 this.nodedef_icon = '';
41152 this.nodedef_name = 'ND_lin_displayp3_to_lin_rec709_color4';
41153 this.nodedef_type = 'color4';
41154 this.nodedef_node = 'lin_displayp3_to_lin_rec709';
41155 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_displayp3_to_lin_rec709.html';
41156 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color4_out_genglsl.png';
41157 this.nodedef_group = 'colortransform';
41158 this.addInput('in','color4');
41159 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41160 this.addOutput('out','color4');
41161 this.title = 'lin_displayp3_to_lin_rec709_color4';
41162 this.desc = "MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color4";
41163 this.onNodeCreated = function() {
41164 //console.log('Node created:', this);
41165}
41166 this.onRemoved = function() {
41167 //console.log('Node removed:', this);
41168 }
41169 this.onPropertyChanged = function(name, value, prev_value) {
41170 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41171 }
41172 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41173 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41174 }
41175 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41176 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41177 }
41178 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41179 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41180 }
41181 this.bgcolor = '#111';
41182 this.color = '#222';
41183 this.shape = LiteGraph.ROUND_SHAPE;
41184 this.boxcolor = '#69A';
41185}

◆ mtlx_colortransform_rec709_display_to_lin_rec709_color3()

function mtlx_colortransform_rec709_display_to_lin_rec709_color3 ( )

mtlx_colortransform_rec709_display_to_lin_rec709_color3

Library: mtlx. Category: g22_rec709_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/rec709_display_to_lin_rec709_color3

Definition at line 40460 of file mtlx_stdlib.js.

40460 {
40461 this.nodedef_icon = '';
40462 this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color3';
40463 this.nodedef_type = 'color3';
40464 this.nodedef_node = 'rec709_display_to_lin_rec709';
40465 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rec709_display_to_lin_rec709.html';
40466 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color3_out_genglsl.png';
40467 this.nodedef_group = 'colortransform';
40468 this.addInput('in','color3');
40469 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40470 this.addOutput('out','color3');
40471 this.title = 'rec709_display_to_lin_rec709_color3';
40472 this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color3";
40473 this.onNodeCreated = function() {
40474 //console.log('Node created:', this);
40475}
40476 this.onRemoved = function() {
40477 //console.log('Node removed:', this);
40478 }
40479 this.onPropertyChanged = function(name, value, prev_value) {
40480 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40481 }
40482 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40483 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40484 }
40485 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40486 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40487 }
40488 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40489 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40490 }
40491 this.bgcolor = '#111';
40492 this.color = '#222';
40493 this.shape = LiteGraph.ROUND_SHAPE;
40494 this.boxcolor = '#37A';
40495}

◆ mtlx_colortransform_rec709_display_to_lin_rec709_color4()

function mtlx_colortransform_rec709_display_to_lin_rec709_color4 ( )

mtlx_colortransform_rec709_display_to_lin_rec709_color4

Library: mtlx. Category: rec709_display_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/rec709_display_to_lin_rec709_color4

Definition at line 40506 of file mtlx_stdlib.js.

40506 {
40507 this.nodedef_icon = '';
40508 this.nodedef_name = 'ND_rec709_display_to_lin_rec709_color4';
40509 this.nodedef_type = 'color4';
40510 this.nodedef_node = 'rec709_display_to_lin_rec709';
40511 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rec709_display_to_lin_rec709.html';
40512 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color4_out_genglsl.png';
40513 this.nodedef_group = 'colortransform';
40514 this.addInput('in','color4');
40515 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40516 this.addOutput('out','color4');
40517 this.title = 'rec709_display_to_lin_rec709_color4';
40518 this.desc = "MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color4";
40519 this.onNodeCreated = function() {
40520 //console.log('Node created:', this);
40521}
40522 this.onRemoved = function() {
40523 //console.log('Node removed:', this);
40524 }
40525 this.onPropertyChanged = function(name, value, prev_value) {
40526 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40527 }
40528 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40529 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40530 }
40531 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40532 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40533 }
40534 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40535 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40536 }
40537 this.bgcolor = '#111';
40538 this.color = '#222';
40539 this.shape = LiteGraph.ROUND_SHAPE;
40540 this.boxcolor = '#69A';
40541}

◆ mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3()

function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3 ( )

mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3

Library: mtlx. Category: adobergb_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3

Definition at line 41012 of file mtlx_stdlib.js.

41012 {
41013 this.nodedef_icon = '';
41014 this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color3';
41015 this.nodedef_type = 'color3';
41016 this.nodedef_node = 'srgb_displayp3_to_lin_rec709';
41017 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_displayp3_to_lin_rec709.html';
41018 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color3_out_genglsl.png';
41019 this.nodedef_group = 'colortransform';
41020 this.addInput('in','color3');
41021 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41022 this.addOutput('out','color3');
41023 this.title = 'srgb_displayp3_to_lin_rec709_color3';
41024 this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3";
41025 this.onNodeCreated = function() {
41026 //console.log('Node created:', this);
41027}
41028 this.onRemoved = function() {
41029 //console.log('Node removed:', this);
41030 }
41031 this.onPropertyChanged = function(name, value, prev_value) {
41032 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41033 }
41034 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41035 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41036 }
41037 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41038 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41039 }
41040 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41041 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41042 }
41043 this.bgcolor = '#111';
41044 this.color = '#222';
41045 this.shape = LiteGraph.ROUND_SHAPE;
41046 this.boxcolor = '#37A';
41047}

◆ mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4()

function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4 ( )

mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4

Library: mtlx. Category: srgb_displayp3_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4

Definition at line 41058 of file mtlx_stdlib.js.

41058 {
41059 this.nodedef_icon = '';
41060 this.nodedef_name = 'ND_srgb_displayp3_to_lin_rec709_color4';
41061 this.nodedef_type = 'color4';
41062 this.nodedef_node = 'srgb_displayp3_to_lin_rec709';
41063 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_displayp3_to_lin_rec709.html';
41064 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color4_out_genglsl.png';
41065 this.nodedef_group = 'colortransform';
41066 this.addInput('in','color4');
41067 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41068 this.addOutput('out','color4');
41069 this.title = 'srgb_displayp3_to_lin_rec709_color4';
41070 this.desc = "MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4";
41071 this.onNodeCreated = function() {
41072 //console.log('Node created:', this);
41073}
41074 this.onRemoved = function() {
41075 //console.log('Node removed:', this);
41076 }
41077 this.onPropertyChanged = function(name, value, prev_value) {
41078 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41079 }
41080 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41081 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41082 }
41083 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41084 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41085 }
41086 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41087 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41088 }
41089 this.bgcolor = '#111';
41090 this.color = '#222';
41091 this.shape = LiteGraph.ROUND_SHAPE;
41092 this.boxcolor = '#69A';
41093}

◆ mtlx_colortransform_srgb_texture_to_lin_rec709_color3()

function mtlx_colortransform_srgb_texture_to_lin_rec709_color3 ( )

mtlx_colortransform_srgb_texture_to_lin_rec709_color3

Library: mtlx. Category: g22_ap1_to_lin_rec709. Type: color3 LiteGraph id: mtlx/colortransform/srgb_texture_to_lin_rec709_color3

Definition at line 40736 of file mtlx_stdlib.js.

40736 {
40737 this.nodedef_icon = '';
40738 this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color3';
40739 this.nodedef_type = 'color3';
40740 this.nodedef_node = 'srgb_texture_to_lin_rec709';
40741 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_texture_to_lin_rec709.html';
40742 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color3_out_genglsl.png';
40743 this.nodedef_group = 'colortransform';
40744 this.addInput('in','color3');
40745 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40746 this.addOutput('out','color3');
40747 this.title = 'srgb_texture_to_lin_rec709_color3';
40748 this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color3";
40749 this.onNodeCreated = function() {
40750 //console.log('Node created:', this);
40751}
40752 this.onRemoved = function() {
40753 //console.log('Node removed:', this);
40754 }
40755 this.onPropertyChanged = function(name, value, prev_value) {
40756 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40757 }
40758 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40759 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40760 }
40761 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40762 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40763 }
40764 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40765 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40766 }
40767 this.bgcolor = '#111';
40768 this.color = '#222';
40769 this.shape = LiteGraph.ROUND_SHAPE;
40770 this.boxcolor = '#37A';
40771}

◆ mtlx_colortransform_srgb_texture_to_lin_rec709_color4()

function mtlx_colortransform_srgb_texture_to_lin_rec709_color4 ( )

mtlx_colortransform_srgb_texture_to_lin_rec709_color4

Library: mtlx. Category: srgb_texture_to_lin_rec709. Type: color4 LiteGraph id: mtlx/colortransform/srgb_texture_to_lin_rec709_color4

Definition at line 40782 of file mtlx_stdlib.js.

40782 {
40783 this.nodedef_icon = '';
40784 this.nodedef_name = 'ND_srgb_texture_to_lin_rec709_color4';
40785 this.nodedef_type = 'color4';
40786 this.nodedef_node = 'srgb_texture_to_lin_rec709';
40787 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_texture_to_lin_rec709.html';
40788 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color4_out_genglsl.png';
40789 this.nodedef_group = 'colortransform';
40790 this.addInput('in','color4');
40791 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40792 this.addOutput('out','color4');
40793 this.title = 'srgb_texture_to_lin_rec709_color4';
40794 this.desc = "MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color4";
40795 this.onNodeCreated = function() {
40796 //console.log('Node created:', this);
40797}
40798 this.onRemoved = function() {
40799 //console.log('Node removed:', this);
40800 }
40801 this.onPropertyChanged = function(name, value, prev_value) {
40802 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40803 }
40804 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40805 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40806 }
40807 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40808 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40809 }
40810 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40811 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40812 }
40813 this.bgcolor = '#111';
40814 this.color = '#222';
40815 this.shape = LiteGraph.ROUND_SHAPE;
40816 this.boxcolor = '#69A';
40817}

◆ mtlx_compositing_burn_color3()

function mtlx_compositing_burn_color3 ( )

mtlx_compositing_burn_color3

Library: mtlx. Category: burn. Type: color3 LiteGraph id: mtlx/compositing/burn_color3

Definition at line 24443 of file mtlx_stdlib.js.

24443 {
24444 this.nodedef_icon = '';
24445 this.nodedef_name = 'ND_burn_color3';
24446 this.nodedef_type = 'color3';
24447 this.nodedef_node = 'burn';
24448 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24449 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_color3_out_genglsl.png';
24450 this.nodedef_group = 'compositing';
24451 this.addInput('fg','color3');
24452 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24453 this.addInput('bg','color3');
24454 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24455 this.addInput('mix','float');
24456 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24457 this.addOutput('out','color3');
24458 this.title = 'burn_color3';
24459 this.desc = "MaterialX:mtlx/compositing/burn_color3";
24460 this.onNodeCreated = function() {
24461 //console.log('Node created:', this);
24462}
24463 this.onRemoved = function() {
24464 //console.log('Node removed:', this);
24465 }
24466 this.onPropertyChanged = function(name, value, prev_value) {
24467 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24468 }
24469 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24470 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24471 }
24472 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24473 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24474 }
24475 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24476 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24477 }
24478 this.bgcolor = '#111';
24479 this.color = '#222';
24480 this.shape = LiteGraph.ROUND_SHAPE;
24481 this.boxcolor = '#37A';
24482}

◆ mtlx_compositing_burn_color4()

function mtlx_compositing_burn_color4 ( )

mtlx_compositing_burn_color4

Library: mtlx. Category: burn. Type: color4 LiteGraph id: mtlx/compositing/burn_color4

Definition at line 24493 of file mtlx_stdlib.js.

24493 {
24494 this.nodedef_icon = '';
24495 this.nodedef_name = 'ND_burn_color4';
24496 this.nodedef_type = 'color4';
24497 this.nodedef_node = 'burn';
24498 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24499 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_color4_out_genglsl.png';
24500 this.nodedef_group = 'compositing';
24501 this.addInput('fg','color4');
24502 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24503 this.addInput('bg','color4');
24504 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24505 this.addInput('mix','float');
24506 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24507 this.addOutput('out','color4');
24508 this.title = 'burn_color4';
24509 this.desc = "MaterialX:mtlx/compositing/burn_color4";
24510 this.onNodeCreated = function() {
24511 //console.log('Node created:', this);
24512}
24513 this.onRemoved = function() {
24514 //console.log('Node removed:', this);
24515 }
24516 this.onPropertyChanged = function(name, value, prev_value) {
24517 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24518 }
24519 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24520 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24521 }
24522 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24523 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24524 }
24525 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24526 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24527 }
24528 this.bgcolor = '#111';
24529 this.color = '#222';
24530 this.shape = LiteGraph.ROUND_SHAPE;
24531 this.boxcolor = '#69A';
24532}

◆ mtlx_compositing_burn_float()

function mtlx_compositing_burn_float ( )

mtlx_compositing_burn_float

Library: mtlx. Category: difference. Type: float LiteGraph id: mtlx/compositing/burn_float

Definition at line 24393 of file mtlx_stdlib.js.

24393 {
24394 this.nodedef_icon = '';
24395 this.nodedef_name = 'ND_burn_float';
24396 this.nodedef_type = 'float';
24397 this.nodedef_node = 'burn';
24398 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24399 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_float_out_genglsl.png';
24400 this.nodedef_group = 'compositing';
24401 this.addInput('fg','float');
24402 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24403 this.addInput('bg','float');
24404 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24405 this.addInput('mix','float');
24406 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24407 this.addOutput('out','float');
24408 this.title = 'burn_float';
24409 this.desc = "MaterialX:mtlx/compositing/burn_float";
24410 this.onNodeCreated = function() {
24411 //console.log('Node created:', this);
24412}
24413 this.onRemoved = function() {
24414 //console.log('Node removed:', this);
24415 }
24416 this.onPropertyChanged = function(name, value, prev_value) {
24417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24418 }
24419 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24421 }
24422 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24424 }
24425 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24427 }
24428 this.bgcolor = '#111';
24429 this.color = '#222';
24430 this.shape = LiteGraph.ROUND_SHAPE;
24431 this.boxcolor = '#161';
24432}

◆ mtlx_compositing_difference_color3()

function mtlx_compositing_difference_color3 ( )

mtlx_compositing_difference_color3

Library: mtlx. Category: difference. Type: color3 LiteGraph id: mtlx/compositing/difference_color3

Definition at line 24293 of file mtlx_stdlib.js.

24293 {
24294 this.nodedef_icon = '';
24295 this.nodedef_name = 'ND_difference_color3';
24296 this.nodedef_type = 'color3';
24297 this.nodedef_node = 'difference';
24298 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24299 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_color3_out_genglsl.png';
24300 this.nodedef_group = 'compositing';
24301 this.addInput('fg','color3');
24302 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24303 this.addInput('bg','color3');
24304 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24305 this.addInput('mix','float');
24306 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24307 this.addOutput('out','color3');
24308 this.title = 'difference_color3';
24309 this.desc = "MaterialX:mtlx/compositing/difference_color3";
24310 this.onNodeCreated = function() {
24311 //console.log('Node created:', this);
24312}
24313 this.onRemoved = function() {
24314 //console.log('Node removed:', this);
24315 }
24316 this.onPropertyChanged = function(name, value, prev_value) {
24317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24318 }
24319 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24321 }
24322 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24324 }
24325 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24327 }
24328 this.bgcolor = '#111';
24329 this.color = '#222';
24330 this.shape = LiteGraph.ROUND_SHAPE;
24331 this.boxcolor = '#37A';
24332}

◆ mtlx_compositing_difference_color4()

function mtlx_compositing_difference_color4 ( )

mtlx_compositing_difference_color4

Library: mtlx. Category: difference. Type: color4 LiteGraph id: mtlx/compositing/difference_color4

Definition at line 24343 of file mtlx_stdlib.js.

24343 {
24344 this.nodedef_icon = '';
24345 this.nodedef_name = 'ND_difference_color4';
24346 this.nodedef_type = 'color4';
24347 this.nodedef_node = 'difference';
24348 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24349 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_color4_out_genglsl.png';
24350 this.nodedef_group = 'compositing';
24351 this.addInput('fg','color4');
24352 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24353 this.addInput('bg','color4');
24354 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24355 this.addInput('mix','float');
24356 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24357 this.addOutput('out','color4');
24358 this.title = 'difference_color4';
24359 this.desc = "MaterialX:mtlx/compositing/difference_color4";
24360 this.onNodeCreated = function() {
24361 //console.log('Node created:', this);
24362}
24363 this.onRemoved = function() {
24364 //console.log('Node removed:', this);
24365 }
24366 this.onPropertyChanged = function(name, value, prev_value) {
24367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24368 }
24369 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24371 }
24372 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24374 }
24375 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24377 }
24378 this.bgcolor = '#111';
24379 this.color = '#222';
24380 this.shape = LiteGraph.ROUND_SHAPE;
24381 this.boxcolor = '#69A';
24382}

◆ mtlx_compositing_difference_float()

function mtlx_compositing_difference_float ( )

mtlx_compositing_difference_float

Library: mtlx. Category: minus. Type: float LiteGraph id: mtlx/compositing/difference_float

Definition at line 24243 of file mtlx_stdlib.js.

24243 {
24244 this.nodedef_icon = '';
24245 this.nodedef_name = 'ND_difference_float';
24246 this.nodedef_type = 'float';
24247 this.nodedef_node = 'difference';
24248 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24249 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_float_out_genglsl.png';
24250 this.nodedef_group = 'compositing';
24251 this.addInput('fg','float');
24252 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24253 this.addInput('bg','float');
24254 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24255 this.addInput('mix','float');
24256 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24257 this.addOutput('out','float');
24258 this.title = 'difference_float';
24259 this.desc = "MaterialX:mtlx/compositing/difference_float";
24260 this.onNodeCreated = function() {
24261 //console.log('Node created:', this);
24262}
24263 this.onRemoved = function() {
24264 //console.log('Node removed:', this);
24265 }
24266 this.onPropertyChanged = function(name, value, prev_value) {
24267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24268 }
24269 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24271 }
24272 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24274 }
24275 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24277 }
24278 this.bgcolor = '#111';
24279 this.color = '#222';
24280 this.shape = LiteGraph.ROUND_SHAPE;
24281 this.boxcolor = '#161';
24282}

◆ mtlx_compositing_disjointover_color4()

function mtlx_compositing_disjointover_color4 ( )

mtlx_compositing_disjointover_color4

Library: mtlx. Category: overlay. Type: color4 LiteGraph id: mtlx/compositing/disjointover_color4

Definition at line 24993 of file mtlx_stdlib.js.

24993 {
24994 this.nodedef_icon = '';
24995 this.nodedef_name = 'ND_disjointover_color4';
24996 this.nodedef_type = 'color4';
24997 this.nodedef_node = 'disjointover';
24998 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disjointover.html';
24999 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disjointover_color4_out_genglsl.png';
25000 this.nodedef_group = 'compositing';
25001 this.addInput('fg','color4');
25002 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25003 this.addInput('bg','color4');
25004 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25005 this.addInput('mix','float');
25006 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25007 this.addOutput('out','color4');
25008 this.title = 'disjointover_color4';
25009 this.desc = "MaterialX:mtlx/compositing/disjointover_color4";
25010 this.onNodeCreated = function() {
25011 //console.log('Node created:', this);
25012}
25013 this.onRemoved = function() {
25014 //console.log('Node removed:', this);
25015 }
25016 this.onPropertyChanged = function(name, value, prev_value) {
25017 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25018 }
25019 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25020 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25021 }
25022 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25023 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25024 }
25025 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25026 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25027 }
25028 this.bgcolor = '#111';
25029 this.color = '#222';
25030 this.shape = LiteGraph.ROUND_SHAPE;
25031 this.boxcolor = '#69A';
25032}

◆ mtlx_compositing_dodge_color3()

function mtlx_compositing_dodge_color3 ( )

mtlx_compositing_dodge_color3

Library: mtlx. Category: dodge. Type: color3 LiteGraph id: mtlx/compositing/dodge_color3

Definition at line 24593 of file mtlx_stdlib.js.

24593 {
24594 this.nodedef_icon = '';
24595 this.nodedef_name = 'ND_dodge_color3';
24596 this.nodedef_type = 'color3';
24597 this.nodedef_node = 'dodge';
24598 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24599 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_color3_out_genglsl.png';
24600 this.nodedef_group = 'compositing';
24601 this.addInput('fg','color3');
24602 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24603 this.addInput('bg','color3');
24604 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24605 this.addInput('mix','float');
24606 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24607 this.addOutput('out','color3');
24608 this.title = 'dodge_color3';
24609 this.desc = "MaterialX:mtlx/compositing/dodge_color3";
24610 this.onNodeCreated = function() {
24611 //console.log('Node created:', this);
24612}
24613 this.onRemoved = function() {
24614 //console.log('Node removed:', this);
24615 }
24616 this.onPropertyChanged = function(name, value, prev_value) {
24617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24618 }
24619 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24621 }
24622 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24624 }
24625 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24627 }
24628 this.bgcolor = '#111';
24629 this.color = '#222';
24630 this.shape = LiteGraph.ROUND_SHAPE;
24631 this.boxcolor = '#37A';
24632}

◆ mtlx_compositing_dodge_color4()

function mtlx_compositing_dodge_color4 ( )

mtlx_compositing_dodge_color4

Library: mtlx. Category: dodge. Type: color4 LiteGraph id: mtlx/compositing/dodge_color4

Definition at line 24643 of file mtlx_stdlib.js.

24643 {
24644 this.nodedef_icon = '';
24645 this.nodedef_name = 'ND_dodge_color4';
24646 this.nodedef_type = 'color4';
24647 this.nodedef_node = 'dodge';
24648 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24649 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_color4_out_genglsl.png';
24650 this.nodedef_group = 'compositing';
24651 this.addInput('fg','color4');
24652 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24653 this.addInput('bg','color4');
24654 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24655 this.addInput('mix','float');
24656 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24657 this.addOutput('out','color4');
24658 this.title = 'dodge_color4';
24659 this.desc = "MaterialX:mtlx/compositing/dodge_color4";
24660 this.onNodeCreated = function() {
24661 //console.log('Node created:', this);
24662}
24663 this.onRemoved = function() {
24664 //console.log('Node removed:', this);
24665 }
24666 this.onPropertyChanged = function(name, value, prev_value) {
24667 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24668 }
24669 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24670 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24671 }
24672 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24673 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24674 }
24675 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24676 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24677 }
24678 this.bgcolor = '#111';
24679 this.color = '#222';
24680 this.shape = LiteGraph.ROUND_SHAPE;
24681 this.boxcolor = '#69A';
24682}

◆ mtlx_compositing_dodge_float()

function mtlx_compositing_dodge_float ( )

mtlx_compositing_dodge_float

Library: mtlx. Category: burn. Type: float LiteGraph id: mtlx/compositing/dodge_float

Definition at line 24543 of file mtlx_stdlib.js.

24543 {
24544 this.nodedef_icon = '';
24545 this.nodedef_name = 'ND_dodge_float';
24546 this.nodedef_type = 'float';
24547 this.nodedef_node = 'dodge';
24548 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24549 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_float_out_genglsl.png';
24550 this.nodedef_group = 'compositing';
24551 this.addInput('fg','float');
24552 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24553 this.addInput('bg','float');
24554 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24555 this.addInput('mix','float');
24556 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24557 this.addOutput('out','float');
24558 this.title = 'dodge_float';
24559 this.desc = "MaterialX:mtlx/compositing/dodge_float";
24560 this.onNodeCreated = function() {
24561 //console.log('Node created:', this);
24562}
24563 this.onRemoved = function() {
24564 //console.log('Node removed:', this);
24565 }
24566 this.onPropertyChanged = function(name, value, prev_value) {
24567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24568 }
24569 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24571 }
24572 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24574 }
24575 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24577 }
24578 this.bgcolor = '#111';
24579 this.color = '#222';
24580 this.shape = LiteGraph.ROUND_SHAPE;
24581 this.boxcolor = '#161';
24582}

◆ mtlx_compositing_in_color4()

function mtlx_compositing_in_color4 ( )

mtlx_compositing_in_color4

Library: mtlx. Category: disjointover. Type: color4 LiteGraph id: mtlx/compositing/in_color4

Definition at line 25043 of file mtlx_stdlib.js.

25043 {
25044 this.nodedef_icon = '';
25045 this.nodedef_name = 'ND_in_color4';
25046 this.nodedef_type = 'color4';
25047 this.nodedef_node = 'in';
25048 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/in.html';
25049 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_in_color4_out_genglsl.png';
25050 this.nodedef_group = 'compositing';
25051 this.addInput('fg','color4');
25052 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25053 this.addInput('bg','color4');
25054 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25055 this.addInput('mix','float');
25056 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25057 this.addOutput('out','color4');
25058 this.title = 'in_color4';
25059 this.desc = "MaterialX:mtlx/compositing/in_color4";
25060 this.onNodeCreated = function() {
25061 //console.log('Node created:', this);
25062}
25063 this.onRemoved = function() {
25064 //console.log('Node removed:', this);
25065 }
25066 this.onPropertyChanged = function(name, value, prev_value) {
25067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25068 }
25069 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25071 }
25072 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25074 }
25075 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25077 }
25078 this.bgcolor = '#111';
25079 this.color = '#222';
25080 this.shape = LiteGraph.ROUND_SHAPE;
25081 this.boxcolor = '#69A';
25082}

◆ mtlx_compositing_inside_color3()

function mtlx_compositing_inside_color3 ( )

mtlx_compositing_inside_color3

Library: mtlx. Category: inside. Type: color3 LiteGraph id: mtlx/compositing/inside_color3

Definition at line 25341 of file mtlx_stdlib.js.

25341 {
25342 this.nodedef_icon = '';
25343 this.nodedef_name = 'ND_inside_color3';
25344 this.nodedef_type = 'color3';
25345 this.nodedef_node = 'inside';
25346 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25347 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_color3_out_genglsl.png';
25348 this.nodedef_group = 'compositing';
25349 this.addInput('in','color3');
25350 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25351 this.addInput('mask','float');
25352 this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25353 this.addOutput('out','color3');
25354 this.title = 'inside_color3';
25355 this.desc = "MaterialX:mtlx/compositing/inside_color3";
25356 this.onNodeCreated = function() {
25357 //console.log('Node created:', this);
25358}
25359 this.onRemoved = function() {
25360 //console.log('Node removed:', this);
25361 }
25362 this.onPropertyChanged = function(name, value, prev_value) {
25363 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25364 }
25365 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25366 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25367 }
25368 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25369 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25370 }
25371 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25372 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25373 }
25374 this.bgcolor = '#111';
25375 this.color = '#222';
25376 this.shape = LiteGraph.ROUND_SHAPE;
25377 this.boxcolor = '#37A';
25378}

◆ mtlx_compositing_inside_color4()

function mtlx_compositing_inside_color4 ( )

mtlx_compositing_inside_color4

Library: mtlx. Category: inside. Type: color4 LiteGraph id: mtlx/compositing/inside_color4

Definition at line 25389 of file mtlx_stdlib.js.

25389 {
25390 this.nodedef_icon = '';
25391 this.nodedef_name = 'ND_inside_color4';
25392 this.nodedef_type = 'color4';
25393 this.nodedef_node = 'inside';
25394 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25395 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_color4_out_genglsl.png';
25396 this.nodedef_group = 'compositing';
25397 this.addInput('in','color4');
25398 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25399 this.addInput('mask','float');
25400 this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25401 this.addOutput('out','color4');
25402 this.title = 'inside_color4';
25403 this.desc = "MaterialX:mtlx/compositing/inside_color4";
25404 this.onNodeCreated = function() {
25405 //console.log('Node created:', this);
25406}
25407 this.onRemoved = function() {
25408 //console.log('Node removed:', this);
25409 }
25410 this.onPropertyChanged = function(name, value, prev_value) {
25411 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25412 }
25413 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25414 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25415 }
25416 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25417 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25418 }
25419 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25420 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25421 }
25422 this.bgcolor = '#111';
25423 this.color = '#222';
25424 this.shape = LiteGraph.ROUND_SHAPE;
25425 this.boxcolor = '#69A';
25426}

◆ mtlx_compositing_inside_float()

function mtlx_compositing_inside_float ( )

mtlx_compositing_inside_float

Library: mtlx. Category: over. Type: float LiteGraph id: mtlx/compositing/inside_float

Definition at line 25293 of file mtlx_stdlib.js.

25293 {
25294 this.nodedef_icon = '';
25295 this.nodedef_name = 'ND_inside_float';
25296 this.nodedef_type = 'float';
25297 this.nodedef_node = 'inside';
25298 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25299 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_float_out_genglsl.png';
25300 this.nodedef_group = 'compositing';
25301 this.addInput('in','float');
25302 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25303 this.addInput('mask','float');
25304 this.addProperty('mask', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25305 this.addOutput('out','float');
25306 this.title = 'inside_float';
25307 this.desc = "MaterialX:mtlx/compositing/inside_float";
25308 this.onNodeCreated = function() {
25309 //console.log('Node created:', this);
25310}
25311 this.onRemoved = function() {
25312 //console.log('Node removed:', this);
25313 }
25314 this.onPropertyChanged = function(name, value, prev_value) {
25315 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25316 }
25317 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25318 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25319 }
25320 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25321 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25322 }
25323 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25324 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25325 }
25326 this.bgcolor = '#111';
25327 this.color = '#222';
25328 this.shape = LiteGraph.ROUND_SHAPE;
25329 this.boxcolor = '#161';
25330}

◆ mtlx_compositing_mask_color4()

function mtlx_compositing_mask_color4 ( )

mtlx_compositing_mask_color4

Library: mtlx. Category: in. Type: color4 LiteGraph id: mtlx/compositing/mask_color4

Definition at line 25093 of file mtlx_stdlib.js.

25093 {
25094 this.nodedef_icon = '';
25095 this.nodedef_name = 'ND_mask_color4';
25096 this.nodedef_type = 'color4';
25097 this.nodedef_node = 'mask';
25098 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mask.html';
25099 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mask_color4_out_genglsl.png';
25100 this.nodedef_group = 'compositing';
25101 this.addInput('fg','color4');
25102 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25103 this.addInput('bg','color4');
25104 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25105 this.addInput('mix','float');
25106 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25107 this.addOutput('out','color4');
25108 this.title = 'mask_color4';
25109 this.desc = "MaterialX:mtlx/compositing/mask_color4";
25110 this.onNodeCreated = function() {
25111 //console.log('Node created:', this);
25112}
25113 this.onRemoved = function() {
25114 //console.log('Node removed:', this);
25115 }
25116 this.onPropertyChanged = function(name, value, prev_value) {
25117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25118 }
25119 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25121 }
25122 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25124 }
25125 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25127 }
25128 this.bgcolor = '#111';
25129 this.color = '#222';
25130 this.shape = LiteGraph.ROUND_SHAPE;
25131 this.boxcolor = '#69A';
25132}

◆ mtlx_compositing_matte_color4()

function mtlx_compositing_matte_color4 ( )

mtlx_compositing_matte_color4

Library: mtlx. Category: mask. Type: color4 LiteGraph id: mtlx/compositing/matte_color4

Definition at line 25143 of file mtlx_stdlib.js.

25143 {
25144 this.nodedef_icon = '';
25145 this.nodedef_name = 'ND_matte_color4';
25146 this.nodedef_type = 'color4';
25147 this.nodedef_node = 'matte';
25148 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/matte.html';
25149 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_matte_color4_out_genglsl.png';
25150 this.nodedef_group = 'compositing';
25151 this.addInput('fg','color4');
25152 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25153 this.addInput('bg','color4');
25154 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25155 this.addInput('mix','float');
25156 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25157 this.addOutput('out','color4');
25158 this.title = 'matte_color4';
25159 this.desc = "MaterialX:mtlx/compositing/matte_color4";
25160 this.onNodeCreated = function() {
25161 //console.log('Node created:', this);
25162}
25163 this.onRemoved = function() {
25164 //console.log('Node removed:', this);
25165 }
25166 this.onPropertyChanged = function(name, value, prev_value) {
25167 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25168 }
25169 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25170 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25171 }
25172 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25173 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25174 }
25175 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25176 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25177 }
25178 this.bgcolor = '#111';
25179 this.color = '#222';
25180 this.shape = LiteGraph.ROUND_SHAPE;
25181 this.boxcolor = '#69A';
25182}

◆ mtlx_compositing_minus_color3()

function mtlx_compositing_minus_color3 ( )

mtlx_compositing_minus_color3

Library: mtlx. Category: minus. Type: color3 LiteGraph id: mtlx/compositing/minus_color3

Definition at line 24143 of file mtlx_stdlib.js.

24143 {
24144 this.nodedef_icon = '';
24145 this.nodedef_name = 'ND_minus_color3';
24146 this.nodedef_type = 'color3';
24147 this.nodedef_node = 'minus';
24148 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24149 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_color3_out_genglsl.png';
24150 this.nodedef_group = 'compositing';
24151 this.addInput('fg','color3');
24152 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24153 this.addInput('bg','color3');
24154 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24155 this.addInput('mix','float');
24156 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24157 this.addOutput('out','color3');
24158 this.title = 'minus_color3';
24159 this.desc = "MaterialX:mtlx/compositing/minus_color3";
24160 this.onNodeCreated = function() {
24161 //console.log('Node created:', this);
24162}
24163 this.onRemoved = function() {
24164 //console.log('Node removed:', this);
24165 }
24166 this.onPropertyChanged = function(name, value, prev_value) {
24167 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24168 }
24169 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24170 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24171 }
24172 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24173 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24174 }
24175 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24176 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24177 }
24178 this.bgcolor = '#111';
24179 this.color = '#222';
24180 this.shape = LiteGraph.ROUND_SHAPE;
24181 this.boxcolor = '#37A';
24182}

◆ mtlx_compositing_minus_color4()

function mtlx_compositing_minus_color4 ( )

mtlx_compositing_minus_color4

Library: mtlx. Category: minus. Type: color4 LiteGraph id: mtlx/compositing/minus_color4

Definition at line 24193 of file mtlx_stdlib.js.

24193 {
24194 this.nodedef_icon = '';
24195 this.nodedef_name = 'ND_minus_color4';
24196 this.nodedef_type = 'color4';
24197 this.nodedef_node = 'minus';
24198 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24199 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_color4_out_genglsl.png';
24200 this.nodedef_group = 'compositing';
24201 this.addInput('fg','color4');
24202 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24203 this.addInput('bg','color4');
24204 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24205 this.addInput('mix','float');
24206 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24207 this.addOutput('out','color4');
24208 this.title = 'minus_color4';
24209 this.desc = "MaterialX:mtlx/compositing/minus_color4";
24210 this.onNodeCreated = function() {
24211 //console.log('Node created:', this);
24212}
24213 this.onRemoved = function() {
24214 //console.log('Node removed:', this);
24215 }
24216 this.onPropertyChanged = function(name, value, prev_value) {
24217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24218 }
24219 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24221 }
24222 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24224 }
24225 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24227 }
24228 this.bgcolor = '#111';
24229 this.color = '#222';
24230 this.shape = LiteGraph.ROUND_SHAPE;
24231 this.boxcolor = '#69A';
24232}

◆ mtlx_compositing_minus_float()

function mtlx_compositing_minus_float ( )

mtlx_compositing_minus_float

Library: mtlx. Category: plus. Type: float LiteGraph id: mtlx/compositing/minus_float

Definition at line 24093 of file mtlx_stdlib.js.

24093 {
24094 this.nodedef_icon = '';
24095 this.nodedef_name = 'ND_minus_float';
24096 this.nodedef_type = 'float';
24097 this.nodedef_node = 'minus';
24098 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24099 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_float_out_genglsl.png';
24100 this.nodedef_group = 'compositing';
24101 this.addInput('fg','float');
24102 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24103 this.addInput('bg','float');
24104 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24105 this.addInput('mix','float');
24106 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24107 this.addOutput('out','float');
24108 this.title = 'minus_float';
24109 this.desc = "MaterialX:mtlx/compositing/minus_float";
24110 this.onNodeCreated = function() {
24111 //console.log('Node created:', this);
24112}
24113 this.onRemoved = function() {
24114 //console.log('Node removed:', this);
24115 }
24116 this.onPropertyChanged = function(name, value, prev_value) {
24117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24118 }
24119 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24121 }
24122 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24124 }
24125 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24127 }
24128 this.bgcolor = '#111';
24129 this.color = '#222';
24130 this.shape = LiteGraph.ROUND_SHAPE;
24131 this.boxcolor = '#161';
24132}

◆ mtlx_compositing_mix_color3()

function mtlx_compositing_mix_color3 ( )

mtlx_compositing_mix_color3

Library: mtlx. Category: mix. Type: color3 LiteGraph id: mtlx/compositing/mix_color3

Definition at line 25631 of file mtlx_stdlib.js.

25631 {
25632 this.nodedef_icon = '';
25633 this.nodedef_name = 'ND_mix_color3';
25634 this.nodedef_type = 'color3';
25635 this.nodedef_node = 'mix';
25636 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25637 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color3_out_genglsl.png';
25638 this.nodedef_group = 'compositing';
25639 this.addInput('fg','color3');
25640 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25641 this.addInput('bg','color3');
25642 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25643 this.addInput('mix','float');
25644 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
25645 this.addOutput('out','color3');
25646 this.title = 'mix_color3';
25647 this.desc = "MaterialX:mtlx/compositing/mix_color3";
25648 this.onNodeCreated = function() {
25649 //console.log('Node created:', this);
25650}
25651 this.onRemoved = function() {
25652 //console.log('Node removed:', this);
25653 }
25654 this.onPropertyChanged = function(name, value, prev_value) {
25655 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25656 }
25657 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25658 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25659 }
25660 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25661 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25662 }
25663 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25664 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25665 }
25666 this.bgcolor = '#111';
25667 this.color = '#222';
25668 this.shape = LiteGraph.ROUND_SHAPE;
25669 this.boxcolor = '#37A';
25670}

◆ mtlx_compositing_mix_color3_color3()

function mtlx_compositing_mix_color3_color3 ( )

mtlx_compositing_mix_color3_color3

Library: mtlx. Category: mix. Type: color3 LiteGraph id: mtlx/compositing/mix_color3_color3

Definition at line 25681 of file mtlx_stdlib.js.

25681 {
25682 this.nodedef_icon = '';
25683 this.nodedef_name = 'ND_mix_color3_color3';
25684 this.nodedef_type = 'color3';
25685 this.nodedef_node = 'mix';
25686 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25687 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color3_color3_out_genglsl.png';
25688 this.nodedef_group = 'compositing';
25689 this.addInput('fg','color3');
25690 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25691 this.addInput('bg','color3');
25692 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25693 this.addInput('mix','color3');
25694 this.addProperty('mix', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":"","defaultgeomprop":""});
25695 this.addOutput('out','color3');
25696 this.title = 'mix_color3';
25697 this.desc = "MaterialX:mtlx/compositing/mix_color3_color3";
25698 this.onNodeCreated = function() {
25699 //console.log('Node created:', this);
25700}
25701 this.onRemoved = function() {
25702 //console.log('Node removed:', this);
25703 }
25704 this.onPropertyChanged = function(name, value, prev_value) {
25705 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25706 }
25707 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25708 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25709 }
25710 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25711 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25712 }
25713 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25714 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25715 }
25716 this.bgcolor = '#111';
25717 this.color = '#222';
25718 this.shape = LiteGraph.ROUND_SHAPE;
25719 this.boxcolor = '#37A';
25720}

◆ mtlx_compositing_mix_color4()

function mtlx_compositing_mix_color4 ( )

mtlx_compositing_mix_color4

Library: mtlx. Category: mix. Type: color4 LiteGraph id: mtlx/compositing/mix_color4

Definition at line 25731 of file mtlx_stdlib.js.

25731 {
25732 this.nodedef_icon = '';
25733 this.nodedef_name = 'ND_mix_color4';
25734 this.nodedef_type = 'color4';
25735 this.nodedef_node = 'mix';
25736 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25737 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color4_out_genglsl.png';
25738 this.nodedef_group = 'compositing';
25739 this.addInput('fg','color4');
25740 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25741 this.addInput('bg','color4');
25742 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25743 this.addInput('mix','float');
25744 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
25745 this.addOutput('out','color4');
25746 this.title = 'mix_color4';
25747 this.desc = "MaterialX:mtlx/compositing/mix_color4";
25748 this.onNodeCreated = function() {
25749 //console.log('Node created:', this);
25750}
25751 this.onRemoved = function() {
25752 //console.log('Node removed:', this);
25753 }
25754 this.onPropertyChanged = function(name, value, prev_value) {
25755 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25756 }
25757 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25758 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25759 }
25760 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25761 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25762 }
25763 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25764 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25765 }
25766 this.bgcolor = '#111';
25767 this.color = '#222';
25768 this.shape = LiteGraph.ROUND_SHAPE;
25769 this.boxcolor = '#69A';
25770}

◆ mtlx_compositing_mix_color4_color4()

function mtlx_compositing_mix_color4_color4 ( )

mtlx_compositing_mix_color4_color4

Library: mtlx. Category: mix. Type: color4 LiteGraph id: mtlx/compositing/mix_color4_color4

Definition at line 25781 of file mtlx_stdlib.js.

25781 {
25782 this.nodedef_icon = '';
25783 this.nodedef_name = 'ND_mix_color4_color4';
25784 this.nodedef_type = 'color4';
25785 this.nodedef_node = 'mix';
25786 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25787 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color4_color4_out_genglsl.png';
25788 this.nodedef_group = 'compositing';
25789 this.addInput('fg','color4');
25790 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25791 this.addInput('bg','color4');
25792 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25793 this.addInput('mix','color4');
25794 this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0,0","uimax":"1,1,1,1","uifolder":"","defaultgeomprop":""});
25795 this.addOutput('out','color4');
25796 this.title = 'mix_color4';
25797 this.desc = "MaterialX:mtlx/compositing/mix_color4_color4";
25798 this.onNodeCreated = function() {
25799 //console.log('Node created:', this);
25800}
25801 this.onRemoved = function() {
25802 //console.log('Node removed:', this);
25803 }
25804 this.onPropertyChanged = function(name, value, prev_value) {
25805 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25806 }
25807 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25808 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25809 }
25810 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25811 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25812 }
25813 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25814 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25815 }
25816 this.bgcolor = '#111';
25817 this.color = '#222';
25818 this.shape = LiteGraph.ROUND_SHAPE;
25819 this.boxcolor = '#69A';
25820}

◆ mtlx_compositing_mix_displacementshader()

function mtlx_compositing_mix_displacementshader ( )

mtlx_compositing_mix_displacementshader

Library: mtlx. Category: mix. Type: displacementshader LiteGraph id: mtlx/compositing/mix_displacementshader

Definition at line 26180 of file mtlx_stdlib.js.

26180 {
26181 this.nodedef_icon = '';
26182 this.nodedef_name = 'ND_mix_displacementshader';
26183 this.nodedef_type = 'displacementshader';
26184 this.nodedef_node = 'mix';
26185 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26186 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_displacementshader_out_genglsl.png';
26187 this.nodedef_group = 'compositing';
26188 this.addInput('fg','displacementshader');
26189 this.addProperty('fg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26190 this.addInput('bg','displacementshader');
26191 this.addProperty('bg', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26192 this.addInput('mix','float');
26193 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
26194 this.addOutput('out','displacementshader');
26195 this.title = 'mix_displacementshader';
26196 this.desc = "MaterialX:mtlx/compositing/mix_displacementshader";
26197 this.onNodeCreated = function() {
26198 //console.log('Node created:', this);
26199}
26200 this.onRemoved = function() {
26201 //console.log('Node removed:', this);
26202 }
26203 this.onPropertyChanged = function(name, value, prev_value) {
26204 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26205 }
26206 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26207 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26208 }
26209 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26210 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26211 }
26212 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26213 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26214 }
26215 this.bgcolor = '#111';
26216 this.color = '#232';
26217 this.shape = LiteGraph.ROUND_SHAPE;
26218}

◆ mtlx_compositing_mix_float()

function mtlx_compositing_mix_float ( )

mtlx_compositing_mix_float

Library: mtlx. Category: outside. Type: float LiteGraph id: mtlx/compositing/mix_float

Definition at line 25581 of file mtlx_stdlib.js.

25581 {
25582 this.nodedef_icon = '';
25583 this.nodedef_name = 'ND_mix_float';
25584 this.nodedef_type = 'float';
25585 this.nodedef_node = 'mix';
25586 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25587 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_float_out_genglsl.png';
25588 this.nodedef_group = 'compositing';
25589 this.addInput('fg','float');
25590 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25591 this.addInput('bg','float');
25592 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25593 this.addInput('mix','float');
25594 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
25595 this.addOutput('out','float');
25596 this.title = 'mix_float';
25597 this.desc = "MaterialX:mtlx/compositing/mix_float";
25598 this.onNodeCreated = function() {
25599 //console.log('Node created:', this);
25600}
25601 this.onRemoved = function() {
25602 //console.log('Node removed:', this);
25603 }
25604 this.onPropertyChanged = function(name, value, prev_value) {
25605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25606 }
25607 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25609 }
25610 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25612 }
25613 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25615 }
25616 this.bgcolor = '#111';
25617 this.color = '#222';
25618 this.shape = LiteGraph.ROUND_SHAPE;
25619 this.boxcolor = '#161';
25620}

◆ mtlx_compositing_mix_surfaceshader()

function mtlx_compositing_mix_surfaceshader ( )

mtlx_compositing_mix_surfaceshader

Library: mtlx. Category: mix. Type: surfaceshader LiteGraph id: mtlx/compositing/mix_surfaceshader

Definition at line 26131 of file mtlx_stdlib.js.

26131 {
26132 this.nodedef_icon = '';
26133 this.nodedef_name = 'ND_mix_surfaceshader';
26134 this.nodedef_type = 'surfaceshader';
26135 this.nodedef_node = 'mix';
26136 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26137 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_surfaceshader_out_genglsl.png';
26138 this.nodedef_group = 'compositing';
26139 this.addInput('fg','surfaceshader');
26140 this.addProperty('fg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26141 this.addInput('bg','surfaceshader');
26142 this.addProperty('bg', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26143 this.addInput('mix','float');
26144 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
26145 this.addOutput('out','surfaceshader');
26146 this.title = 'mix_surfaceshader';
26147 this.desc = "MaterialX:mtlx/compositing/mix_surfaceshader";
26148 this.onNodeCreated = function() {
26149 //console.log('Node created:', this);
26150}
26151 this.onRemoved = function() {
26152 //console.log('Node removed:', this);
26153 }
26154 this.onPropertyChanged = function(name, value, prev_value) {
26155 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26156 }
26157 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26158 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26159 }
26160 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26161 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26162 }
26163 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26164 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26165 }
26166 this.bgcolor = '#111';
26167 this.color = '#232';
26168 this.shape = LiteGraph.ROUND_SHAPE;
26169}

◆ mtlx_compositing_mix_vector2()

function mtlx_compositing_mix_vector2 ( )

mtlx_compositing_mix_vector2

Library: mtlx. Category: mix. Type: vector2 LiteGraph id: mtlx/compositing/mix_vector2

Definition at line 25831 of file mtlx_stdlib.js.

25831 {
25832 this.nodedef_icon = '';
25833 this.nodedef_name = 'ND_mix_vector2';
25834 this.nodedef_type = 'vector2';
25835 this.nodedef_node = 'mix';
25836 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25837 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector2_out_genglsl.png';
25838 this.nodedef_group = 'compositing';
25839 this.addInput('fg','vector2');
25840 this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25841 this.addInput('bg','vector2');
25842 this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25843 this.addInput('mix','float');
25844 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
25845 this.addOutput('out','vector2');
25846 this.title = 'mix_vector2';
25847 this.desc = "MaterialX:mtlx/compositing/mix_vector2";
25848 this.onNodeCreated = function() {
25849 //console.log('Node created:', this);
25850}
25851 this.onRemoved = function() {
25852 //console.log('Node removed:', this);
25853 }
25854 this.onPropertyChanged = function(name, value, prev_value) {
25855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25856 }
25857 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25859 }
25860 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25862 }
25863 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25865 }
25866 this.bgcolor = '#111';
25867 this.color = '#222';
25868 this.shape = LiteGraph.ROUND_SHAPE;
25869 this.boxcolor = '#265';
25870}

◆ mtlx_compositing_mix_vector2_vector2()

function mtlx_compositing_mix_vector2_vector2 ( )

mtlx_compositing_mix_vector2_vector2

Library: mtlx. Category: mix. Type: vector2 LiteGraph id: mtlx/compositing/mix_vector2_vector2

Definition at line 25881 of file mtlx_stdlib.js.

25881 {
25882 this.nodedef_icon = '';
25883 this.nodedef_name = 'ND_mix_vector2_vector2';
25884 this.nodedef_type = 'vector2';
25885 this.nodedef_node = 'mix';
25886 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25887 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector2_vector2_out_genglsl.png';
25888 this.nodedef_group = 'compositing';
25889 this.addInput('fg','vector2');
25890 this.addProperty('fg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25891 this.addInput('bg','vector2');
25892 this.addProperty('bg', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25893 this.addInput('mix','vector2');
25894 this.addProperty('mix', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[0,0],"uimax":[1,1],"uifolder":"","defaultgeomprop":""});
25895 this.addOutput('out','vector2');
25896 this.title = 'mix_vector2';
25897 this.desc = "MaterialX:mtlx/compositing/mix_vector2_vector2";
25898 this.onNodeCreated = function() {
25899 //console.log('Node created:', this);
25900}
25901 this.onRemoved = function() {
25902 //console.log('Node removed:', this);
25903 }
25904 this.onPropertyChanged = function(name, value, prev_value) {
25905 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25906 }
25907 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25908 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25909 }
25910 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25911 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25912 }
25913 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25914 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25915 }
25916 this.bgcolor = '#111';
25917 this.color = '#222';
25918 this.shape = LiteGraph.ROUND_SHAPE;
25919 this.boxcolor = '#265';
25920}

◆ mtlx_compositing_mix_vector3()

function mtlx_compositing_mix_vector3 ( )

mtlx_compositing_mix_vector3

Library: mtlx. Category: mix. Type: vector3 LiteGraph id: mtlx/compositing/mix_vector3

Definition at line 25931 of file mtlx_stdlib.js.

25931 {
25932 this.nodedef_icon = '';
25933 this.nodedef_name = 'ND_mix_vector3';
25934 this.nodedef_type = 'vector3';
25935 this.nodedef_node = 'mix';
25936 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25937 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector3_out_genglsl.png';
25938 this.nodedef_group = 'compositing';
25939 this.addInput('fg','vector3');
25940 this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25941 this.addInput('bg','vector3');
25942 this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25943 this.addInput('mix','float');
25944 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
25945 this.addOutput('out','vector3');
25946 this.title = 'mix_vector3';
25947 this.desc = "MaterialX:mtlx/compositing/mix_vector3";
25948 this.onNodeCreated = function() {
25949 //console.log('Node created:', this);
25950}
25951 this.onRemoved = function() {
25952 //console.log('Node removed:', this);
25953 }
25954 this.onPropertyChanged = function(name, value, prev_value) {
25955 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25956 }
25957 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25958 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25959 }
25960 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25961 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25962 }
25963 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25964 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25965 }
25966 this.bgcolor = '#111';
25967 this.color = '#222';
25968 this.shape = LiteGraph.ROUND_SHAPE;
25969 this.boxcolor = '#465';
25970}

◆ mtlx_compositing_mix_vector3_vector3()

function mtlx_compositing_mix_vector3_vector3 ( )

mtlx_compositing_mix_vector3_vector3

Library: mtlx. Category: mix. Type: vector3 LiteGraph id: mtlx/compositing/mix_vector3_vector3

Definition at line 25981 of file mtlx_stdlib.js.

25981 {
25982 this.nodedef_icon = '';
25983 this.nodedef_name = 'ND_mix_vector3_vector3';
25984 this.nodedef_type = 'vector3';
25985 this.nodedef_node = 'mix';
25986 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25987 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector3_vector3_out_genglsl.png';
25988 this.nodedef_group = 'compositing';
25989 this.addInput('fg','vector3');
25990 this.addProperty('fg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25991 this.addInput('bg','vector3');
25992 this.addProperty('bg', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25993 this.addInput('mix','vector3');
25994 this.addProperty('mix', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[0,0,0],"uimax":[1,1,1],"uifolder":"","defaultgeomprop":""});
25995 this.addOutput('out','vector3');
25996 this.title = 'mix_vector3';
25997 this.desc = "MaterialX:mtlx/compositing/mix_vector3_vector3";
25998 this.onNodeCreated = function() {
25999 //console.log('Node created:', this);
26000}
26001 this.onRemoved = function() {
26002 //console.log('Node removed:', this);
26003 }
26004 this.onPropertyChanged = function(name, value, prev_value) {
26005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26006 }
26007 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26009 }
26010 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26012 }
26013 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26015 }
26016 this.bgcolor = '#111';
26017 this.color = '#222';
26018 this.shape = LiteGraph.ROUND_SHAPE;
26019 this.boxcolor = '#465';
26020}

◆ mtlx_compositing_mix_vector4()

function mtlx_compositing_mix_vector4 ( )

mtlx_compositing_mix_vector4

Library: mtlx. Category: mix. Type: vector4 LiteGraph id: mtlx/compositing/mix_vector4

Definition at line 26031 of file mtlx_stdlib.js.

26031 {
26032 this.nodedef_icon = '';
26033 this.nodedef_name = 'ND_mix_vector4';
26034 this.nodedef_type = 'vector4';
26035 this.nodedef_node = 'mix';
26036 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26037 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector4_out_genglsl.png';
26038 this.nodedef_group = 'compositing';
26039 this.addInput('fg','vector4');
26040 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26041 this.addInput('bg','vector4');
26042 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26043 this.addInput('mix','float');
26044 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
26045 this.addOutput('out','vector4');
26046 this.title = 'mix_vector4';
26047 this.desc = "MaterialX:mtlx/compositing/mix_vector4";
26048 this.onNodeCreated = function() {
26049 //console.log('Node created:', this);
26050}
26051 this.onRemoved = function() {
26052 //console.log('Node removed:', this);
26053 }
26054 this.onPropertyChanged = function(name, value, prev_value) {
26055 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26056 }
26057 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26058 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26059 }
26060 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26061 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26062 }
26063 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26064 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26065 }
26066 this.bgcolor = '#111';
26067 this.color = '#222';
26068 this.shape = LiteGraph.ROUND_SHAPE;
26069 this.boxcolor = '#275';
26070}

◆ mtlx_compositing_mix_vector4_vector4()

function mtlx_compositing_mix_vector4_vector4 ( )

mtlx_compositing_mix_vector4_vector4

Library: mtlx. Category: mix. Type: vector4 LiteGraph id: mtlx/compositing/mix_vector4_vector4

Definition at line 26081 of file mtlx_stdlib.js.

26081 {
26082 this.nodedef_icon = '';
26083 this.nodedef_name = 'ND_mix_vector4_vector4';
26084 this.nodedef_type = 'vector4';
26085 this.nodedef_node = 'mix';
26086 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26087 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector4_vector4_out_genglsl.png';
26088 this.nodedef_group = 'compositing';
26089 this.addInput('fg','vector4');
26090 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26091 this.addInput('bg','vector4');
26092 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26093 this.addInput('mix','vector4');
26094 this.addProperty('mix', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[0,0,0,0],"uimax":[1,1,1,1],"uifolder":"","defaultgeomprop":""});
26095 this.addOutput('out','vector4');
26096 this.title = 'mix_vector4';
26097 this.desc = "MaterialX:mtlx/compositing/mix_vector4_vector4";
26098 this.onNodeCreated = function() {
26099 //console.log('Node created:', this);
26100}
26101 this.onRemoved = function() {
26102 //console.log('Node removed:', this);
26103 }
26104 this.onPropertyChanged = function(name, value, prev_value) {
26105 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26106 }
26107 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26108 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26109 }
26110 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26111 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26112 }
26113 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26114 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26115 }
26116 this.bgcolor = '#111';
26117 this.color = '#222';
26118 this.shape = LiteGraph.ROUND_SHAPE;
26119 this.boxcolor = '#275';
26120}

◆ mtlx_compositing_mix_volumeshader()

function mtlx_compositing_mix_volumeshader ( )

mtlx_compositing_mix_volumeshader

Library: mtlx. Category: mix. Type: volumeshader LiteGraph id: mtlx/compositing/mix_volumeshader

Definition at line 26229 of file mtlx_stdlib.js.

26229 {
26230 this.nodedef_icon = '';
26231 this.nodedef_name = 'ND_mix_volumeshader';
26232 this.nodedef_type = 'volumeshader';
26233 this.nodedef_node = 'mix';
26234 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26235 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_volumeshader_out_genglsl.png';
26236 this.nodedef_group = 'compositing';
26237 this.addInput('fg','volumeshader');
26238 this.addProperty('fg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26239 this.addInput('bg','volumeshader');
26240 this.addProperty('bg', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26241 this.addInput('mix','float');
26242 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
26243 this.addOutput('out','volumeshader');
26244 this.title = 'mix_volumeshader';
26245 this.desc = "MaterialX:mtlx/compositing/mix_volumeshader";
26246 this.onNodeCreated = function() {
26247 //console.log('Node created:', this);
26248}
26249 this.onRemoved = function() {
26250 //console.log('Node removed:', this);
26251 }
26252 this.onPropertyChanged = function(name, value, prev_value) {
26253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26254 }
26255 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26257 }
26258 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26260 }
26261 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26263 }
26264 this.bgcolor = '#111';
26265 this.color = '#222';
26266 this.shape = LiteGraph.ROUND_SHAPE;
26267}

◆ mtlx_compositing_out_color4()

function mtlx_compositing_out_color4 ( )

mtlx_compositing_out_color4

Library: mtlx. Category: matte. Type: color4 LiteGraph id: mtlx/compositing/out_color4

Definition at line 25193 of file mtlx_stdlib.js.

25193 {
25194 this.nodedef_icon = '';
25195 this.nodedef_name = 'ND_out_color4';
25196 this.nodedef_type = 'color4';
25197 this.nodedef_node = 'out';
25198 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/out.html';
25199 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_out_color4_out_genglsl.png';
25200 this.nodedef_group = 'compositing';
25201 this.addInput('fg','color4');
25202 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25203 this.addInput('bg','color4');
25204 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25205 this.addInput('mix','float');
25206 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25207 this.addOutput('out','color4');
25208 this.title = 'out_color4';
25209 this.desc = "MaterialX:mtlx/compositing/out_color4";
25210 this.onNodeCreated = function() {
25211 //console.log('Node created:', this);
25212}
25213 this.onRemoved = function() {
25214 //console.log('Node removed:', this);
25215 }
25216 this.onPropertyChanged = function(name, value, prev_value) {
25217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25218 }
25219 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25221 }
25222 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25224 }
25225 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25227 }
25228 this.bgcolor = '#111';
25229 this.color = '#222';
25230 this.shape = LiteGraph.ROUND_SHAPE;
25231 this.boxcolor = '#69A';
25232}

◆ mtlx_compositing_outside_color3()

function mtlx_compositing_outside_color3 ( )

mtlx_compositing_outside_color3

Library: mtlx. Category: outside. Type: color3 LiteGraph id: mtlx/compositing/outside_color3

Definition at line 25485 of file mtlx_stdlib.js.

25485 {
25486 this.nodedef_icon = '';
25487 this.nodedef_name = 'ND_outside_color3';
25488 this.nodedef_type = 'color3';
25489 this.nodedef_node = 'outside';
25490 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25491 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_color3_out_genglsl.png';
25492 this.nodedef_group = 'compositing';
25493 this.addInput('in','color3');
25494 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25495 this.addInput('mask','float');
25496 this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25497 this.addOutput('out','color3');
25498 this.title = 'outside_color3';
25499 this.desc = "MaterialX:mtlx/compositing/outside_color3";
25500 this.onNodeCreated = function() {
25501 //console.log('Node created:', this);
25502}
25503 this.onRemoved = function() {
25504 //console.log('Node removed:', this);
25505 }
25506 this.onPropertyChanged = function(name, value, prev_value) {
25507 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25508 }
25509 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25510 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25511 }
25512 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25513 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25514 }
25515 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25516 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25517 }
25518 this.bgcolor = '#111';
25519 this.color = '#222';
25520 this.shape = LiteGraph.ROUND_SHAPE;
25521 this.boxcolor = '#37A';
25522}

◆ mtlx_compositing_outside_color4()

function mtlx_compositing_outside_color4 ( )

mtlx_compositing_outside_color4

Library: mtlx. Category: outside. Type: color4 LiteGraph id: mtlx/compositing/outside_color4

Definition at line 25533 of file mtlx_stdlib.js.

25533 {
25534 this.nodedef_icon = '';
25535 this.nodedef_name = 'ND_outside_color4';
25536 this.nodedef_type = 'color4';
25537 this.nodedef_node = 'outside';
25538 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25539 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_color4_out_genglsl.png';
25540 this.nodedef_group = 'compositing';
25541 this.addInput('in','color4');
25542 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25543 this.addInput('mask','float');
25544 this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25545 this.addOutput('out','color4');
25546 this.title = 'outside_color4';
25547 this.desc = "MaterialX:mtlx/compositing/outside_color4";
25548 this.onNodeCreated = function() {
25549 //console.log('Node created:', this);
25550}
25551 this.onRemoved = function() {
25552 //console.log('Node removed:', this);
25553 }
25554 this.onPropertyChanged = function(name, value, prev_value) {
25555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25556 }
25557 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25559 }
25560 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25562 }
25563 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25565 }
25566 this.bgcolor = '#111';
25567 this.color = '#222';
25568 this.shape = LiteGraph.ROUND_SHAPE;
25569 this.boxcolor = '#69A';
25570}

◆ mtlx_compositing_outside_float()

function mtlx_compositing_outside_float ( )

mtlx_compositing_outside_float

Library: mtlx. Category: inside. Type: float LiteGraph id: mtlx/compositing/outside_float

Definition at line 25437 of file mtlx_stdlib.js.

25437 {
25438 this.nodedef_icon = '';
25439 this.nodedef_name = 'ND_outside_float';
25440 this.nodedef_type = 'float';
25441 this.nodedef_node = 'outside';
25442 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25443 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_float_out_genglsl.png';
25444 this.nodedef_group = 'compositing';
25445 this.addInput('in','float');
25446 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25447 this.addInput('mask','float');
25448 this.addProperty('mask', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25449 this.addOutput('out','float');
25450 this.title = 'outside_float';
25451 this.desc = "MaterialX:mtlx/compositing/outside_float";
25452 this.onNodeCreated = function() {
25453 //console.log('Node created:', this);
25454}
25455 this.onRemoved = function() {
25456 //console.log('Node removed:', this);
25457 }
25458 this.onPropertyChanged = function(name, value, prev_value) {
25459 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25460 }
25461 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25462 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25463 }
25464 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25465 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25466 }
25467 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25468 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25469 }
25470 this.bgcolor = '#111';
25471 this.color = '#222';
25472 this.shape = LiteGraph.ROUND_SHAPE;
25473 this.boxcolor = '#161';
25474}

◆ mtlx_compositing_over_color4()

function mtlx_compositing_over_color4 ( )

mtlx_compositing_over_color4

Library: mtlx. Category: out. Type: color4 LiteGraph id: mtlx/compositing/over_color4

Definition at line 25243 of file mtlx_stdlib.js.

25243 {
25244 this.nodedef_icon = '';
25245 this.nodedef_name = 'ND_over_color4';
25246 this.nodedef_type = 'color4';
25247 this.nodedef_node = 'over';
25248 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/over.html';
25249 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_over_color4_out_genglsl.png';
25250 this.nodedef_group = 'compositing';
25251 this.addInput('fg','color4');
25252 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25253 this.addInput('bg','color4');
25254 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25255 this.addInput('mix','float');
25256 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
25257 this.addOutput('out','color4');
25258 this.title = 'over_color4';
25259 this.desc = "MaterialX:mtlx/compositing/over_color4";
25260 this.onNodeCreated = function() {
25261 //console.log('Node created:', this);
25262}
25263 this.onRemoved = function() {
25264 //console.log('Node removed:', this);
25265 }
25266 this.onPropertyChanged = function(name, value, prev_value) {
25267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
25268 }
25269 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
25270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
25271 }
25272 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
25273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
25274 }
25275 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
25276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
25277 }
25278 this.bgcolor = '#111';
25279 this.color = '#222';
25280 this.shape = LiteGraph.ROUND_SHAPE;
25281 this.boxcolor = '#69A';
25282}

◆ mtlx_compositing_overlay_color3()

function mtlx_compositing_overlay_color3 ( )

mtlx_compositing_overlay_color3

Library: mtlx. Category: overlay. Type: color3 LiteGraph id: mtlx/compositing/overlay_color3

Definition at line 24893 of file mtlx_stdlib.js.

24893 {
24894 this.nodedef_icon = '';
24895 this.nodedef_name = 'ND_overlay_color3';
24896 this.nodedef_type = 'color3';
24897 this.nodedef_node = 'overlay';
24898 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24899 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_color3_out_genglsl.png';
24900 this.nodedef_group = 'compositing';
24901 this.addInput('fg','color3');
24902 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24903 this.addInput('bg','color3');
24904 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24905 this.addInput('mix','float');
24906 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24907 this.addOutput('out','color3');
24908 this.title = 'overlay_color3';
24909 this.desc = "MaterialX:mtlx/compositing/overlay_color3";
24910 this.onNodeCreated = function() {
24911 //console.log('Node created:', this);
24912}
24913 this.onRemoved = function() {
24914 //console.log('Node removed:', this);
24915 }
24916 this.onPropertyChanged = function(name, value, prev_value) {
24917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24918 }
24919 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24921 }
24922 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24924 }
24925 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24927 }
24928 this.bgcolor = '#111';
24929 this.color = '#222';
24930 this.shape = LiteGraph.ROUND_SHAPE;
24931 this.boxcolor = '#37A';
24932}

◆ mtlx_compositing_overlay_color4()

function mtlx_compositing_overlay_color4 ( )

mtlx_compositing_overlay_color4

Library: mtlx. Category: overlay. Type: color4 LiteGraph id: mtlx/compositing/overlay_color4

Definition at line 24943 of file mtlx_stdlib.js.

24943 {
24944 this.nodedef_icon = '';
24945 this.nodedef_name = 'ND_overlay_color4';
24946 this.nodedef_type = 'color4';
24947 this.nodedef_node = 'overlay';
24948 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24949 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_color4_out_genglsl.png';
24950 this.nodedef_group = 'compositing';
24951 this.addInput('fg','color4');
24952 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24953 this.addInput('bg','color4');
24954 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24955 this.addInput('mix','float');
24956 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24957 this.addOutput('out','color4');
24958 this.title = 'overlay_color4';
24959 this.desc = "MaterialX:mtlx/compositing/overlay_color4";
24960 this.onNodeCreated = function() {
24961 //console.log('Node created:', this);
24962}
24963 this.onRemoved = function() {
24964 //console.log('Node removed:', this);
24965 }
24966 this.onPropertyChanged = function(name, value, prev_value) {
24967 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24968 }
24969 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24970 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24971 }
24972 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24973 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24974 }
24975 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24976 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24977 }
24978 this.bgcolor = '#111';
24979 this.color = '#222';
24980 this.shape = LiteGraph.ROUND_SHAPE;
24981 this.boxcolor = '#69A';
24982}

◆ mtlx_compositing_overlay_float()

function mtlx_compositing_overlay_float ( )

mtlx_compositing_overlay_float

Library: mtlx. Category: screen. Type: float LiteGraph id: mtlx/compositing/overlay_float

Definition at line 24843 of file mtlx_stdlib.js.

24843 {
24844 this.nodedef_icon = '';
24845 this.nodedef_name = 'ND_overlay_float';
24846 this.nodedef_type = 'float';
24847 this.nodedef_node = 'overlay';
24848 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24849 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_float_out_genglsl.png';
24850 this.nodedef_group = 'compositing';
24851 this.addInput('fg','float');
24852 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24853 this.addInput('bg','float');
24854 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24855 this.addInput('mix','float');
24856 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24857 this.addOutput('out','float');
24858 this.title = 'overlay_float';
24859 this.desc = "MaterialX:mtlx/compositing/overlay_float";
24860 this.onNodeCreated = function() {
24861 //console.log('Node created:', this);
24862}
24863 this.onRemoved = function() {
24864 //console.log('Node removed:', this);
24865 }
24866 this.onPropertyChanged = function(name, value, prev_value) {
24867 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24868 }
24869 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24870 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24871 }
24872 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24873 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24874 }
24875 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24876 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24877 }
24878 this.bgcolor = '#111';
24879 this.color = '#222';
24880 this.shape = LiteGraph.ROUND_SHAPE;
24881 this.boxcolor = '#161';
24882}

◆ mtlx_compositing_plus_color3()

function mtlx_compositing_plus_color3 ( )

mtlx_compositing_plus_color3

Library: mtlx. Category: plus. Type: color3 LiteGraph id: mtlx/compositing/plus_color3

Definition at line 23993 of file mtlx_stdlib.js.

23993 {
23994 this.nodedef_icon = '';
23995 this.nodedef_name = 'ND_plus_color3';
23996 this.nodedef_type = 'color3';
23997 this.nodedef_node = 'plus';
23998 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
23999 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_color3_out_genglsl.png';
24000 this.nodedef_group = 'compositing';
24001 this.addInput('fg','color3');
24002 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24003 this.addInput('bg','color3');
24004 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24005 this.addInput('mix','float');
24006 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24007 this.addOutput('out','color3');
24008 this.title = 'plus_color3';
24009 this.desc = "MaterialX:mtlx/compositing/plus_color3";
24010 this.onNodeCreated = function() {
24011 //console.log('Node created:', this);
24012}
24013 this.onRemoved = function() {
24014 //console.log('Node removed:', this);
24015 }
24016 this.onPropertyChanged = function(name, value, prev_value) {
24017 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24018 }
24019 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24020 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24021 }
24022 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24023 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24024 }
24025 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24026 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24027 }
24028 this.bgcolor = '#111';
24029 this.color = '#222';
24030 this.shape = LiteGraph.ROUND_SHAPE;
24031 this.boxcolor = '#37A';
24032}

◆ mtlx_compositing_plus_color4()

function mtlx_compositing_plus_color4 ( )

mtlx_compositing_plus_color4

Library: mtlx. Category: plus. Type: color4 LiteGraph id: mtlx/compositing/plus_color4

Definition at line 24043 of file mtlx_stdlib.js.

24043 {
24044 this.nodedef_icon = '';
24045 this.nodedef_name = 'ND_plus_color4';
24046 this.nodedef_type = 'color4';
24047 this.nodedef_node = 'plus';
24048 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
24049 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_color4_out_genglsl.png';
24050 this.nodedef_group = 'compositing';
24051 this.addInput('fg','color4');
24052 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24053 this.addInput('bg','color4');
24054 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24055 this.addInput('mix','float');
24056 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24057 this.addOutput('out','color4');
24058 this.title = 'plus_color4';
24059 this.desc = "MaterialX:mtlx/compositing/plus_color4";
24060 this.onNodeCreated = function() {
24061 //console.log('Node created:', this);
24062}
24063 this.onRemoved = function() {
24064 //console.log('Node removed:', this);
24065 }
24066 this.onPropertyChanged = function(name, value, prev_value) {
24067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24068 }
24069 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24071 }
24072 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24074 }
24075 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24077 }
24078 this.bgcolor = '#111';
24079 this.color = '#222';
24080 this.shape = LiteGraph.ROUND_SHAPE;
24081 this.boxcolor = '#69A';
24082}

◆ mtlx_compositing_plus_float()

function mtlx_compositing_plus_float ( )

mtlx_compositing_plus_float

Library: mtlx. Category: unpremult. Type: float LiteGraph id: mtlx/compositing/plus_float

Definition at line 23943 of file mtlx_stdlib.js.

23943 {
23944 this.nodedef_icon = '';
23945 this.nodedef_name = 'ND_plus_float';
23946 this.nodedef_type = 'float';
23947 this.nodedef_node = 'plus';
23948 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
23949 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_float_out_genglsl.png';
23950 this.nodedef_group = 'compositing';
23951 this.addInput('fg','float');
23952 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23953 this.addInput('bg','float');
23954 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23955 this.addInput('mix','float');
23956 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23957 this.addOutput('out','float');
23958 this.title = 'plus_float';
23959 this.desc = "MaterialX:mtlx/compositing/plus_float";
23960 this.onNodeCreated = function() {
23961 //console.log('Node created:', this);
23962}
23963 this.onRemoved = function() {
23964 //console.log('Node removed:', this);
23965 }
23966 this.onPropertyChanged = function(name, value, prev_value) {
23967 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23968 }
23969 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23970 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23971 }
23972 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23973 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23974 }
23975 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23976 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23977 }
23978 this.bgcolor = '#111';
23979 this.color = '#222';
23980 this.shape = LiteGraph.ROUND_SHAPE;
23981 this.boxcolor = '#161';
23982}

◆ mtlx_compositing_premult_color4()

function mtlx_compositing_premult_color4 ( )

mtlx_compositing_premult_color4

Library: mtlx. Category: colorcorrect. Type: color4 LiteGraph id: mtlx/compositing/premult_color4

Definition at line 23851 of file mtlx_stdlib.js.

23851 {
23852 this.nodedef_icon = '';
23853 this.nodedef_name = 'ND_premult_color4';
23854 this.nodedef_type = 'color4';
23855 this.nodedef_node = 'premult';
23856 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/premult.html';
23857 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_premult_color4_out_genglsl.png';
23858 this.nodedef_group = 'compositing';
23859 this.addInput('in','color4');
23860 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23861 this.addOutput('out','color4');
23862 this.title = 'premult_color4';
23863 this.desc = "MaterialX:mtlx/compositing/premult_color4";
23864 this.onNodeCreated = function() {
23865 //console.log('Node created:', this);
23866}
23867 this.onRemoved = function() {
23868 //console.log('Node removed:', this);
23869 }
23870 this.onPropertyChanged = function(name, value, prev_value) {
23871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23872 }
23873 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23875 }
23876 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23878 }
23879 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23881 }
23882 this.bgcolor = '#111';
23883 this.color = '#222';
23884 this.shape = LiteGraph.ROUND_SHAPE;
23885 this.boxcolor = '#69A';
23886}

◆ mtlx_compositing_screen_color3()

function mtlx_compositing_screen_color3 ( )

mtlx_compositing_screen_color3

Library: mtlx. Category: screen. Type: color3 LiteGraph id: mtlx/compositing/screen_color3

Definition at line 24743 of file mtlx_stdlib.js.

24743 {
24744 this.nodedef_icon = '';
24745 this.nodedef_name = 'ND_screen_color3';
24746 this.nodedef_type = 'color3';
24747 this.nodedef_node = 'screen';
24748 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24749 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_color3_out_genglsl.png';
24750 this.nodedef_group = 'compositing';
24751 this.addInput('fg','color3');
24752 this.addProperty('fg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24753 this.addInput('bg','color3');
24754 this.addProperty('bg', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24755 this.addInput('mix','float');
24756 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24757 this.addOutput('out','color3');
24758 this.title = 'screen_color3';
24759 this.desc = "MaterialX:mtlx/compositing/screen_color3";
24760 this.onNodeCreated = function() {
24761 //console.log('Node created:', this);
24762}
24763 this.onRemoved = function() {
24764 //console.log('Node removed:', this);
24765 }
24766 this.onPropertyChanged = function(name, value, prev_value) {
24767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24768 }
24769 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24771 }
24772 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24774 }
24775 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24777 }
24778 this.bgcolor = '#111';
24779 this.color = '#222';
24780 this.shape = LiteGraph.ROUND_SHAPE;
24781 this.boxcolor = '#37A';
24782}

◆ mtlx_compositing_screen_color4()

function mtlx_compositing_screen_color4 ( )

mtlx_compositing_screen_color4

Library: mtlx. Category: screen. Type: color4 LiteGraph id: mtlx/compositing/screen_color4

Definition at line 24793 of file mtlx_stdlib.js.

24793 {
24794 this.nodedef_icon = '';
24795 this.nodedef_name = 'ND_screen_color4';
24796 this.nodedef_type = 'color4';
24797 this.nodedef_node = 'screen';
24798 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24799 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_color4_out_genglsl.png';
24800 this.nodedef_group = 'compositing';
24801 this.addInput('fg','color4');
24802 this.addProperty('fg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24803 this.addInput('bg','color4');
24804 this.addProperty('bg', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24805 this.addInput('mix','float');
24806 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24807 this.addOutput('out','color4');
24808 this.title = 'screen_color4';
24809 this.desc = "MaterialX:mtlx/compositing/screen_color4";
24810 this.onNodeCreated = function() {
24811 //console.log('Node created:', this);
24812}
24813 this.onRemoved = function() {
24814 //console.log('Node removed:', this);
24815 }
24816 this.onPropertyChanged = function(name, value, prev_value) {
24817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24818 }
24819 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24821 }
24822 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24824 }
24825 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24827 }
24828 this.bgcolor = '#111';
24829 this.color = '#222';
24830 this.shape = LiteGraph.ROUND_SHAPE;
24831 this.boxcolor = '#69A';
24832}

◆ mtlx_compositing_screen_float()

function mtlx_compositing_screen_float ( )

mtlx_compositing_screen_float

Library: mtlx. Category: dodge. Type: float LiteGraph id: mtlx/compositing/screen_float

Definition at line 24693 of file mtlx_stdlib.js.

24693 {
24694 this.nodedef_icon = '';
24695 this.nodedef_name = 'ND_screen_float';
24696 this.nodedef_type = 'float';
24697 this.nodedef_node = 'screen';
24698 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24699 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_float_out_genglsl.png';
24700 this.nodedef_group = 'compositing';
24701 this.addInput('fg','float');
24702 this.addProperty('fg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24703 this.addInput('bg','float');
24704 this.addProperty('bg', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24705 this.addInput('mix','float');
24706 this.addProperty('mix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
24707 this.addOutput('out','float');
24708 this.title = 'screen_float';
24709 this.desc = "MaterialX:mtlx/compositing/screen_float";
24710 this.onNodeCreated = function() {
24711 //console.log('Node created:', this);
24712}
24713 this.onRemoved = function() {
24714 //console.log('Node removed:', this);
24715 }
24716 this.onPropertyChanged = function(name, value, prev_value) {
24717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
24718 }
24719 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
24720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
24721 }
24722 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
24723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
24724 }
24725 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
24726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
24727 }
24728 this.bgcolor = '#111';
24729 this.color = '#222';
24730 this.shape = LiteGraph.ROUND_SHAPE;
24731 this.boxcolor = '#161';
24732}

◆ mtlx_compositing_unpremult_color4()

function mtlx_compositing_unpremult_color4 ( )

mtlx_compositing_unpremult_color4

Library: mtlx. Category: premult. Type: color4 LiteGraph id: mtlx/compositing/unpremult_color4

Definition at line 23897 of file mtlx_stdlib.js.

23897 {
23898 this.nodedef_icon = '';
23899 this.nodedef_name = 'ND_unpremult_color4';
23900 this.nodedef_type = 'color4';
23901 this.nodedef_node = 'unpremult';
23902 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unpremult.html';
23903 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unpremult_color4_out_genglsl.png';
23904 this.nodedef_group = 'compositing';
23905 this.addInput('in','color4');
23906 this.addProperty('in', [0.0, 0.0, 0.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
23907 this.addOutput('out','color4');
23908 this.title = 'unpremult_color4';
23909 this.desc = "MaterialX:mtlx/compositing/unpremult_color4";
23910 this.onNodeCreated = function() {
23911 //console.log('Node created:', this);
23912}
23913 this.onRemoved = function() {
23914 //console.log('Node removed:', this);
23915 }
23916 this.onPropertyChanged = function(name, value, prev_value) {
23917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
23918 }
23919 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
23920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
23921 }
23922 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
23923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
23924 }
23925 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
23926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
23927 }
23928 this.bgcolor = '#111';
23929 this.color = '#222';
23930 this.shape = LiteGraph.ROUND_SHAPE;
23931 this.boxcolor = '#69A';
23932}

◆ mtlx_conditional_ifequal_boolean()

function mtlx_conditional_ifequal_boolean ( )

mtlx_conditional_ifequal_boolean

Library: mtlx. Category: ifequal. Type: boolean LiteGraph id: mtlx/conditional/ifequal_boolean

Definition at line 28859 of file mtlx_stdlib.js.

28859 {
28860 this.nodedef_icon = '';
28861 this.nodedef_name = 'ND_ifequal_boolean';
28862 this.nodedef_type = 'boolean';
28863 this.nodedef_node = 'ifequal';
28864 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28865 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_boolean_out_genglsl.png';
28866 this.nodedef_group = 'conditional';
28867 this.addInput('value1','float');
28868 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28869 this.addInput('value2','float');
28870 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28871 this.addOutput('out','boolean');
28872 this.title = 'ifequal_boolean';
28873 this.desc = "MaterialX:mtlx/conditional/ifequal_boolean";
28874 this.onNodeCreated = function() {
28875 //console.log('Node created:', this);
28876}
28877 this.onRemoved = function() {
28878 //console.log('Node removed:', this);
28879 }
28880 this.onPropertyChanged = function(name, value, prev_value) {
28881 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28882 }
28883 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28884 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28885 }
28886 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28887 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28888 }
28889 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28890 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28891 }
28892 this.bgcolor = '#111';
28893 this.color = '#532200';
28894 this.title_text_color = '#000';
28895 this.shape = LiteGraph.CARD_SHAPE;
28896 this.boxcolor = '#060';
28897}

◆ mtlx_conditional_ifequal_booleanB()

function mtlx_conditional_ifequal_booleanB ( )

mtlx_conditional_ifequal_booleanB

Library: mtlx. Category: ifequal. Type: boolean LiteGraph id: mtlx/conditional/ifequal_booleanB

Definition at line 29911 of file mtlx_stdlib.js.

29911 {
29912 this.nodedef_icon = '';
29913 this.nodedef_name = 'ND_ifequal_booleanB';
29914 this.nodedef_type = 'boolean';
29915 this.nodedef_node = 'ifequal';
29916 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29917 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_booleanB_out_genglsl.png';
29918 this.nodedef_group = 'conditional';
29919 this.addInput('value1','boolean');
29920 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29921 this.addInput('value2','boolean');
29922 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29923 this.addOutput('out','boolean');
29924 this.title = 'ifequal_boolean';
29925 this.desc = "MaterialX:mtlx/conditional/ifequal_booleanB";
29926 this.onNodeCreated = function() {
29927 //console.log('Node created:', this);
29928}
29929 this.onRemoved = function() {
29930 //console.log('Node removed:', this);
29931 }
29932 this.onPropertyChanged = function(name, value, prev_value) {
29933 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29934 }
29935 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29936 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29937 }
29938 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29939 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29940 }
29941 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29942 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29943 }
29944 this.bgcolor = '#111';
29945 this.color = '#532200';
29946 this.title_text_color = '#000';
29947 this.shape = LiteGraph.CARD_SHAPE;
29948 this.boxcolor = '#060';
29949}

◆ mtlx_conditional_ifequal_booleanI()

function mtlx_conditional_ifequal_booleanI ( )

mtlx_conditional_ifequal_booleanI

Library: mtlx. Category: ifequal. Type: boolean LiteGraph id: mtlx/conditional/ifequal_booleanI

Definition at line 29385 of file mtlx_stdlib.js.

29385 {
29386 this.nodedef_icon = '';
29387 this.nodedef_name = 'ND_ifequal_booleanI';
29388 this.nodedef_type = 'boolean';
29389 this.nodedef_node = 'ifequal';
29390 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29391 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_booleanI_out_genglsl.png';
29392 this.nodedef_group = 'conditional';
29393 this.addInput('value1','integer');
29394 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29395 this.addInput('value2','integer');
29396 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29397 this.addOutput('out','boolean');
29398 this.title = 'ifequal_boolean';
29399 this.desc = "MaterialX:mtlx/conditional/ifequal_booleanI";
29400 this.onNodeCreated = function() {
29401 //console.log('Node created:', this);
29402}
29403 this.onRemoved = function() {
29404 //console.log('Node removed:', this);
29405 }
29406 this.onPropertyChanged = function(name, value, prev_value) {
29407 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29408 }
29409 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29410 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29411 }
29412 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29413 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29414 }
29415 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29416 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29417 }
29418 this.bgcolor = '#111';
29419 this.color = '#532200';
29420 this.title_text_color = '#000';
29421 this.shape = LiteGraph.CARD_SHAPE;
29422 this.boxcolor = '#060';
29423}

◆ mtlx_conditional_ifequal_color3()

function mtlx_conditional_ifequal_color3 ( )

mtlx_conditional_ifequal_color3

Library: mtlx. Category: ifequal. Type: color3 LiteGraph id: mtlx/conditional/ifequal_color3

Definition at line 28488 of file mtlx_stdlib.js.

28488 {
28489 this.nodedef_icon = '';
28490 this.nodedef_name = 'ND_ifequal_color3';
28491 this.nodedef_type = 'color3';
28492 this.nodedef_node = 'ifequal';
28493 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28494 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3_out_genglsl.png';
28495 this.nodedef_group = 'conditional';
28496 this.addInput('value1','float');
28497 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28498 this.addInput('value2','float');
28499 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28500 this.addInput('in1','color3');
28501 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28502 this.addInput('in2','color3');
28503 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28504 this.addOutput('out','color3');
28505 this.title = 'ifequal_color3';
28506 this.desc = "MaterialX:mtlx/conditional/ifequal_color3";
28507 this.onNodeCreated = function() {
28508 //console.log('Node created:', this);
28509}
28510 this.onRemoved = function() {
28511 //console.log('Node removed:', this);
28512 }
28513 this.onPropertyChanged = function(name, value, prev_value) {
28514 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28515 }
28516 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28517 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28518 }
28519 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28520 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28521 }
28522 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28523 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28524 }
28525 this.bgcolor = '#111';
28526 this.color = '#532200';
28527 this.title_text_color = '#000';
28528 this.shape = LiteGraph.CARD_SHAPE;
28529 this.boxcolor = '#37A';
28530}

◆ mtlx_conditional_ifequal_color3B()

function mtlx_conditional_ifequal_color3B ( )

mtlx_conditional_ifequal_color3B

Library: mtlx. Category: ifequal. Type: color3 LiteGraph id: mtlx/conditional/ifequal_color3B

Definition at line 29540 of file mtlx_stdlib.js.

29540 {
29541 this.nodedef_icon = '';
29542 this.nodedef_name = 'ND_ifequal_color3B';
29543 this.nodedef_type = 'color3';
29544 this.nodedef_node = 'ifequal';
29545 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29546 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3B_out_genglsl.png';
29547 this.nodedef_group = 'conditional';
29548 this.addInput('value1','boolean');
29549 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29550 this.addInput('value2','boolean');
29551 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29552 this.addInput('in1','color3');
29553 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29554 this.addInput('in2','color3');
29555 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29556 this.addOutput('out','color3');
29557 this.title = 'ifequal_color3';
29558 this.desc = "MaterialX:mtlx/conditional/ifequal_color3B";
29559 this.onNodeCreated = function() {
29560 //console.log('Node created:', this);
29561}
29562 this.onRemoved = function() {
29563 //console.log('Node removed:', this);
29564 }
29565 this.onPropertyChanged = function(name, value, prev_value) {
29566 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29567 }
29568 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29569 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29570 }
29571 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29572 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29573 }
29574 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29575 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29576 }
29577 this.bgcolor = '#111';
29578 this.color = '#532200';
29579 this.title_text_color = '#000';
29580 this.shape = LiteGraph.CARD_SHAPE;
29581 this.boxcolor = '#37A';
29582}

◆ mtlx_conditional_ifequal_color3I()

function mtlx_conditional_ifequal_color3I ( )

mtlx_conditional_ifequal_color3I

Library: mtlx. Category: ifequal. Type: color3 LiteGraph id: mtlx/conditional/ifequal_color3I

Definition at line 29014 of file mtlx_stdlib.js.

29014 {
29015 this.nodedef_icon = '';
29016 this.nodedef_name = 'ND_ifequal_color3I';
29017 this.nodedef_type = 'color3';
29018 this.nodedef_node = 'ifequal';
29019 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29020 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3I_out_genglsl.png';
29021 this.nodedef_group = 'conditional';
29022 this.addInput('value1','integer');
29023 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29024 this.addInput('value2','integer');
29025 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29026 this.addInput('in1','color3');
29027 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29028 this.addInput('in2','color3');
29029 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29030 this.addOutput('out','color3');
29031 this.title = 'ifequal_color3';
29032 this.desc = "MaterialX:mtlx/conditional/ifequal_color3I";
29033 this.onNodeCreated = function() {
29034 //console.log('Node created:', this);
29035}
29036 this.onRemoved = function() {
29037 //console.log('Node removed:', this);
29038 }
29039 this.onPropertyChanged = function(name, value, prev_value) {
29040 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29041 }
29042 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29043 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29044 }
29045 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29046 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29047 }
29048 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29049 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29050 }
29051 this.bgcolor = '#111';
29052 this.color = '#532200';
29053 this.title_text_color = '#000';
29054 this.shape = LiteGraph.CARD_SHAPE;
29055 this.boxcolor = '#37A';
29056}

◆ mtlx_conditional_ifequal_color4()

function mtlx_conditional_ifequal_color4 ( )

mtlx_conditional_ifequal_color4

Library: mtlx. Category: ifequal. Type: color4 LiteGraph id: mtlx/conditional/ifequal_color4

Definition at line 28541 of file mtlx_stdlib.js.

28541 {
28542 this.nodedef_icon = '';
28543 this.nodedef_name = 'ND_ifequal_color4';
28544 this.nodedef_type = 'color4';
28545 this.nodedef_node = 'ifequal';
28546 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28547 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4_out_genglsl.png';
28548 this.nodedef_group = 'conditional';
28549 this.addInput('value1','float');
28550 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28551 this.addInput('value2','float');
28552 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28553 this.addInput('in1','color4');
28554 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28555 this.addInput('in2','color4');
28556 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28557 this.addOutput('out','color4');
28558 this.title = 'ifequal_color4';
28559 this.desc = "MaterialX:mtlx/conditional/ifequal_color4";
28560 this.onNodeCreated = function() {
28561 //console.log('Node created:', this);
28562}
28563 this.onRemoved = function() {
28564 //console.log('Node removed:', this);
28565 }
28566 this.onPropertyChanged = function(name, value, prev_value) {
28567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28568 }
28569 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28571 }
28572 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28574 }
28575 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28577 }
28578 this.bgcolor = '#111';
28579 this.color = '#532200';
28580 this.title_text_color = '#000';
28581 this.shape = LiteGraph.CARD_SHAPE;
28582 this.boxcolor = '#69A';
28583}

◆ mtlx_conditional_ifequal_color4B()

function mtlx_conditional_ifequal_color4B ( )

mtlx_conditional_ifequal_color4B

Library: mtlx. Category: ifequal. Type: color4 LiteGraph id: mtlx/conditional/ifequal_color4B

Definition at line 29593 of file mtlx_stdlib.js.

29593 {
29594 this.nodedef_icon = '';
29595 this.nodedef_name = 'ND_ifequal_color4B';
29596 this.nodedef_type = 'color4';
29597 this.nodedef_node = 'ifequal';
29598 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29599 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4B_out_genglsl.png';
29600 this.nodedef_group = 'conditional';
29601 this.addInput('value1','boolean');
29602 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29603 this.addInput('value2','boolean');
29604 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29605 this.addInput('in1','color4');
29606 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29607 this.addInput('in2','color4');
29608 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29609 this.addOutput('out','color4');
29610 this.title = 'ifequal_color4';
29611 this.desc = "MaterialX:mtlx/conditional/ifequal_color4B";
29612 this.onNodeCreated = function() {
29613 //console.log('Node created:', this);
29614}
29615 this.onRemoved = function() {
29616 //console.log('Node removed:', this);
29617 }
29618 this.onPropertyChanged = function(name, value, prev_value) {
29619 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29620 }
29621 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29622 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29623 }
29624 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29625 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29626 }
29627 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29628 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29629 }
29630 this.bgcolor = '#111';
29631 this.color = '#532200';
29632 this.title_text_color = '#000';
29633 this.shape = LiteGraph.CARD_SHAPE;
29634 this.boxcolor = '#69A';
29635}

◆ mtlx_conditional_ifequal_color4I()

function mtlx_conditional_ifequal_color4I ( )

mtlx_conditional_ifequal_color4I

Library: mtlx. Category: ifequal. Type: color4 LiteGraph id: mtlx/conditional/ifequal_color4I

Definition at line 29067 of file mtlx_stdlib.js.

29067 {
29068 this.nodedef_icon = '';
29069 this.nodedef_name = 'ND_ifequal_color4I';
29070 this.nodedef_type = 'color4';
29071 this.nodedef_node = 'ifequal';
29072 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29073 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4I_out_genglsl.png';
29074 this.nodedef_group = 'conditional';
29075 this.addInput('value1','integer');
29076 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29077 this.addInput('value2','integer');
29078 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29079 this.addInput('in1','color4');
29080 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29081 this.addInput('in2','color4');
29082 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29083 this.addOutput('out','color4');
29084 this.title = 'ifequal_color4';
29085 this.desc = "MaterialX:mtlx/conditional/ifequal_color4I";
29086 this.onNodeCreated = function() {
29087 //console.log('Node created:', this);
29088}
29089 this.onRemoved = function() {
29090 //console.log('Node removed:', this);
29091 }
29092 this.onPropertyChanged = function(name, value, prev_value) {
29093 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29094 }
29095 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29096 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29097 }
29098 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29099 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29100 }
29101 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29102 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29103 }
29104 this.bgcolor = '#111';
29105 this.color = '#532200';
29106 this.title_text_color = '#000';
29107 this.shape = LiteGraph.CARD_SHAPE;
29108 this.boxcolor = '#69A';
29109}

◆ mtlx_conditional_ifequal_float()

function mtlx_conditional_ifequal_float ( )

mtlx_conditional_ifequal_float

Library: mtlx. Category: ifgreatereq. Type: float LiteGraph id: mtlx/conditional/ifequal_float

Definition at line 28382 of file mtlx_stdlib.js.

28382 {
28383 this.nodedef_icon = '';
28384 this.nodedef_name = 'ND_ifequal_float';
28385 this.nodedef_type = 'float';
28386 this.nodedef_node = 'ifequal';
28387 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28388 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_float_out_genglsl.png';
28389 this.nodedef_group = 'conditional';
28390 this.addInput('value1','float');
28391 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28392 this.addInput('value2','float');
28393 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28394 this.addInput('in1','float');
28395 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28396 this.addInput('in2','float');
28397 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28398 this.addOutput('out','float');
28399 this.title = 'ifequal_float';
28400 this.desc = "MaterialX:mtlx/conditional/ifequal_float";
28401 this.onNodeCreated = function() {
28402 //console.log('Node created:', this);
28403}
28404 this.onRemoved = function() {
28405 //console.log('Node removed:', this);
28406 }
28407 this.onPropertyChanged = function(name, value, prev_value) {
28408 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28409 }
28410 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28411 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28412 }
28413 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28414 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28415 }
28416 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28417 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28418 }
28419 this.bgcolor = '#111';
28420 this.color = '#532200';
28421 this.title_text_color = '#000';
28422 this.shape = LiteGraph.CARD_SHAPE;
28423 this.boxcolor = '#161';
28424}

◆ mtlx_conditional_ifequal_floatB()

function mtlx_conditional_ifequal_floatB ( )

mtlx_conditional_ifequal_floatB

Library: mtlx. Category: ifequal. Type: float LiteGraph id: mtlx/conditional/ifequal_floatB

Definition at line 29434 of file mtlx_stdlib.js.

29434 {
29435 this.nodedef_icon = '';
29436 this.nodedef_name = 'ND_ifequal_floatB';
29437 this.nodedef_type = 'float';
29438 this.nodedef_node = 'ifequal';
29439 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29440 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_floatB_out_genglsl.png';
29441 this.nodedef_group = 'conditional';
29442 this.addInput('value1','boolean');
29443 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29444 this.addInput('value2','boolean');
29445 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29446 this.addInput('in1','float');
29447 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29448 this.addInput('in2','float');
29449 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29450 this.addOutput('out','float');
29451 this.title = 'ifequal_float';
29452 this.desc = "MaterialX:mtlx/conditional/ifequal_floatB";
29453 this.onNodeCreated = function() {
29454 //console.log('Node created:', this);
29455}
29456 this.onRemoved = function() {
29457 //console.log('Node removed:', this);
29458 }
29459 this.onPropertyChanged = function(name, value, prev_value) {
29460 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29461 }
29462 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29463 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29464 }
29465 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29466 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29467 }
29468 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29469 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29470 }
29471 this.bgcolor = '#111';
29472 this.color = '#532200';
29473 this.title_text_color = '#000';
29474 this.shape = LiteGraph.CARD_SHAPE;
29475 this.boxcolor = '#161';
29476}

◆ mtlx_conditional_ifequal_floatI()

function mtlx_conditional_ifequal_floatI ( )

mtlx_conditional_ifequal_floatI

Library: mtlx. Category: ifequal. Type: float LiteGraph id: mtlx/conditional/ifequal_floatI

Definition at line 28908 of file mtlx_stdlib.js.

28908 {
28909 this.nodedef_icon = '';
28910 this.nodedef_name = 'ND_ifequal_floatI';
28911 this.nodedef_type = 'float';
28912 this.nodedef_node = 'ifequal';
28913 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28914 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_floatI_out_genglsl.png';
28915 this.nodedef_group = 'conditional';
28916 this.addInput('value1','integer');
28917 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28918 this.addInput('value2','integer');
28919 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28920 this.addInput('in1','float');
28921 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28922 this.addInput('in2','float');
28923 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28924 this.addOutput('out','float');
28925 this.title = 'ifequal_float';
28926 this.desc = "MaterialX:mtlx/conditional/ifequal_floatI";
28927 this.onNodeCreated = function() {
28928 //console.log('Node created:', this);
28929}
28930 this.onRemoved = function() {
28931 //console.log('Node removed:', this);
28932 }
28933 this.onPropertyChanged = function(name, value, prev_value) {
28934 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28935 }
28936 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28937 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28938 }
28939 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28940 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28941 }
28942 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28943 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28944 }
28945 this.bgcolor = '#111';
28946 this.color = '#532200';
28947 this.title_text_color = '#000';
28948 this.shape = LiteGraph.CARD_SHAPE;
28949 this.boxcolor = '#161';
28950}

◆ mtlx_conditional_ifequal_integer()

function mtlx_conditional_ifequal_integer ( )

mtlx_conditional_ifequal_integer

Library: mtlx. Category: ifequal. Type: integer LiteGraph id: mtlx/conditional/ifequal_integer

Definition at line 28435 of file mtlx_stdlib.js.

28435 {
28436 this.nodedef_icon = '';
28437 this.nodedef_name = 'ND_ifequal_integer';
28438 this.nodedef_type = 'integer';
28439 this.nodedef_node = 'ifequal';
28440 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28441 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integer_out_genglsl.png';
28442 this.nodedef_group = 'conditional';
28443 this.addInput('value1','float');
28444 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28445 this.addInput('value2','float');
28446 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28447 this.addInput('in1','integer');
28448 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28449 this.addInput('in2','integer');
28450 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28451 this.addOutput('out','integer');
28452 this.title = 'ifequal_integer';
28453 this.desc = "MaterialX:mtlx/conditional/ifequal_integer";
28454 this.onNodeCreated = function() {
28455 //console.log('Node created:', this);
28456}
28457 this.onRemoved = function() {
28458 //console.log('Node removed:', this);
28459 }
28460 this.onPropertyChanged = function(name, value, prev_value) {
28461 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28462 }
28463 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28464 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28465 }
28466 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28467 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28468 }
28469 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28470 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28471 }
28472 this.bgcolor = '#111';
28473 this.color = '#532200';
28474 this.title_text_color = '#000';
28475 this.shape = LiteGraph.CARD_SHAPE;
28476 this.boxcolor = '#A32';
28477}

◆ mtlx_conditional_ifequal_integerB()

function mtlx_conditional_ifequal_integerB ( )

mtlx_conditional_ifequal_integerB

Library: mtlx. Category: ifequal. Type: integer LiteGraph id: mtlx/conditional/ifequal_integerB

Definition at line 29487 of file mtlx_stdlib.js.

29487 {
29488 this.nodedef_icon = '';
29489 this.nodedef_name = 'ND_ifequal_integerB';
29490 this.nodedef_type = 'integer';
29491 this.nodedef_node = 'ifequal';
29492 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29493 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integerB_out_genglsl.png';
29494 this.nodedef_group = 'conditional';
29495 this.addInput('value1','boolean');
29496 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29497 this.addInput('value2','boolean');
29498 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29499 this.addInput('in1','integer');
29500 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29501 this.addInput('in2','integer');
29502 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29503 this.addOutput('out','integer');
29504 this.title = 'ifequal_integer';
29505 this.desc = "MaterialX:mtlx/conditional/ifequal_integerB";
29506 this.onNodeCreated = function() {
29507 //console.log('Node created:', this);
29508}
29509 this.onRemoved = function() {
29510 //console.log('Node removed:', this);
29511 }
29512 this.onPropertyChanged = function(name, value, prev_value) {
29513 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29514 }
29515 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29516 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29517 }
29518 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29519 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29520 }
29521 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29522 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29523 }
29524 this.bgcolor = '#111';
29525 this.color = '#532200';
29526 this.title_text_color = '#000';
29527 this.shape = LiteGraph.CARD_SHAPE;
29528 this.boxcolor = '#A32';
29529}

◆ mtlx_conditional_ifequal_integerI()

function mtlx_conditional_ifequal_integerI ( )

mtlx_conditional_ifequal_integerI

Library: mtlx. Category: ifequal. Type: integer LiteGraph id: mtlx/conditional/ifequal_integerI

Definition at line 28961 of file mtlx_stdlib.js.

28961 {
28962 this.nodedef_icon = '';
28963 this.nodedef_name = 'ND_ifequal_integerI';
28964 this.nodedef_type = 'integer';
28965 this.nodedef_node = 'ifequal';
28966 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28967 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integerI_out_genglsl.png';
28968 this.nodedef_group = 'conditional';
28969 this.addInput('value1','integer');
28970 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28971 this.addInput('value2','integer');
28972 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28973 this.addInput('in1','integer');
28974 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28975 this.addInput('in2','integer');
28976 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28977 this.addOutput('out','integer');
28978 this.title = 'ifequal_integer';
28979 this.desc = "MaterialX:mtlx/conditional/ifequal_integerI";
28980 this.onNodeCreated = function() {
28981 //console.log('Node created:', this);
28982}
28983 this.onRemoved = function() {
28984 //console.log('Node removed:', this);
28985 }
28986 this.onPropertyChanged = function(name, value, prev_value) {
28987 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28988 }
28989 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28990 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28991 }
28992 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28993 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28994 }
28995 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28996 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28997 }
28998 this.bgcolor = '#111';
28999 this.color = '#532200';
29000 this.title_text_color = '#000';
29001 this.shape = LiteGraph.CARD_SHAPE;
29002 this.boxcolor = '#A32';
29003}

◆ mtlx_conditional_ifequal_matrix33()

function mtlx_conditional_ifequal_matrix33 ( )

mtlx_conditional_ifequal_matrix33

Library: mtlx. Category: ifequal. Type: matrix33 LiteGraph id: mtlx/conditional/ifequal_matrix33

Definition at line 28753 of file mtlx_stdlib.js.

28753 {
28754 this.nodedef_icon = '';
28755 this.nodedef_name = 'ND_ifequal_matrix33';
28756 this.nodedef_type = 'matrix33';
28757 this.nodedef_node = 'ifequal';
28758 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28759 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33_out_genglsl.png';
28760 this.nodedef_group = 'conditional';
28761 this.addInput('value1','float');
28762 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28763 this.addInput('value2','float');
28764 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28765 this.addInput('in1','matrix33');
28766 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":"","defaultgeomprop":""});
28767 this.addInput('in2','matrix33');
28768 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":"","defaultgeomprop":""});
28769 this.addOutput('out','matrix33');
28770 this.title = 'ifequal_matrix33';
28771 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33";
28772 this.onNodeCreated = function() {
28773 //console.log('Node created:', this);
28774}
28775 this.onRemoved = function() {
28776 //console.log('Node removed:', this);
28777 }
28778 this.onPropertyChanged = function(name, value, prev_value) {
28779 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28780 }
28781 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28782 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28783 }
28784 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28785 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28786 }
28787 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28788 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28789 }
28790 this.bgcolor = '#111';
28791 this.color = '#532200';
28792 this.title_text_color = '#000';
28793 this.shape = LiteGraph.CARD_SHAPE;
28794 this.boxcolor = '#333';
28795}

◆ mtlx_conditional_ifequal_matrix33B()

function mtlx_conditional_ifequal_matrix33B ( )

mtlx_conditional_ifequal_matrix33B

Library: mtlx. Category: ifequal. Type: matrix33 LiteGraph id: mtlx/conditional/ifequal_matrix33B

Definition at line 29805 of file mtlx_stdlib.js.

29805 {
29806 this.nodedef_icon = '';
29807 this.nodedef_name = 'ND_ifequal_matrix33B';
29808 this.nodedef_type = 'matrix33';
29809 this.nodedef_node = 'ifequal';
29810 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29811 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33B_out_genglsl.png';
29812 this.nodedef_group = 'conditional';
29813 this.addInput('value1','boolean');
29814 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29815 this.addInput('value2','boolean');
29816 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29817 this.addInput('in1','matrix33');
29818 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":"","defaultgeomprop":""});
29819 this.addInput('in2','matrix33');
29820 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":"","defaultgeomprop":""});
29821 this.addOutput('out','matrix33');
29822 this.title = 'ifequal_matrix33';
29823 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33B";
29824 this.onNodeCreated = function() {
29825 //console.log('Node created:', this);
29826}
29827 this.onRemoved = function() {
29828 //console.log('Node removed:', this);
29829 }
29830 this.onPropertyChanged = function(name, value, prev_value) {
29831 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29832 }
29833 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29834 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29835 }
29836 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29837 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29838 }
29839 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29840 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29841 }
29842 this.bgcolor = '#111';
29843 this.color = '#532200';
29844 this.title_text_color = '#000';
29845 this.shape = LiteGraph.CARD_SHAPE;
29846 this.boxcolor = '#333';
29847}

◆ mtlx_conditional_ifequal_matrix33I()

function mtlx_conditional_ifequal_matrix33I ( )

mtlx_conditional_ifequal_matrix33I

Library: mtlx. Category: ifequal. Type: matrix33 LiteGraph id: mtlx/conditional/ifequal_matrix33I

Definition at line 29279 of file mtlx_stdlib.js.

29279 {
29280 this.nodedef_icon = '';
29281 this.nodedef_name = 'ND_ifequal_matrix33I';
29282 this.nodedef_type = 'matrix33';
29283 this.nodedef_node = 'ifequal';
29284 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29285 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33I_out_genglsl.png';
29286 this.nodedef_group = 'conditional';
29287 this.addInput('value1','integer');
29288 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29289 this.addInput('value2','integer');
29290 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29291 this.addInput('in1','matrix33');
29292 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":"","defaultgeomprop":""});
29293 this.addInput('in2','matrix33');
29294 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":"","defaultgeomprop":""});
29295 this.addOutput('out','matrix33');
29296 this.title = 'ifequal_matrix33';
29297 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix33I";
29298 this.onNodeCreated = function() {
29299 //console.log('Node created:', this);
29300}
29301 this.onRemoved = function() {
29302 //console.log('Node removed:', this);
29303 }
29304 this.onPropertyChanged = function(name, value, prev_value) {
29305 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29306 }
29307 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29308 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29309 }
29310 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29311 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29312 }
29313 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29314 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29315 }
29316 this.bgcolor = '#111';
29317 this.color = '#532200';
29318 this.title_text_color = '#000';
29319 this.shape = LiteGraph.CARD_SHAPE;
29320 this.boxcolor = '#333';
29321}

◆ mtlx_conditional_ifequal_matrix44()

function mtlx_conditional_ifequal_matrix44 ( )

mtlx_conditional_ifequal_matrix44

Library: mtlx. Category: ifequal. Type: matrix44 LiteGraph id: mtlx/conditional/ifequal_matrix44

Definition at line 28806 of file mtlx_stdlib.js.

28806 {
28807 this.nodedef_icon = '';
28808 this.nodedef_name = 'ND_ifequal_matrix44';
28809 this.nodedef_type = 'matrix44';
28810 this.nodedef_node = 'ifequal';
28811 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28812 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44_out_genglsl.png';
28813 this.nodedef_group = 'conditional';
28814 this.addInput('value1','float');
28815 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28816 this.addInput('value2','float');
28817 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28818 this.addInput('in1','matrix44');
28819 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":"","defaultgeomprop":""});
28820 this.addInput('in2','matrix44');
28821 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":"","defaultgeomprop":""});
28822 this.addOutput('out','matrix44');
28823 this.title = 'ifequal_matrix44';
28824 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44";
28825 this.onNodeCreated = function() {
28826 //console.log('Node created:', this);
28827}
28828 this.onRemoved = function() {
28829 //console.log('Node removed:', this);
28830 }
28831 this.onPropertyChanged = function(name, value, prev_value) {
28832 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28833 }
28834 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28835 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28836 }
28837 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28838 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28839 }
28840 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28841 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28842 }
28843 this.bgcolor = '#111';
28844 this.color = '#532200';
28845 this.title_text_color = '#000';
28846 this.shape = LiteGraph.CARD_SHAPE;
28847 this.boxcolor = '#444';
28848}

◆ mtlx_conditional_ifequal_matrix44B()

function mtlx_conditional_ifequal_matrix44B ( )

mtlx_conditional_ifequal_matrix44B

Library: mtlx. Category: ifequal. Type: matrix44 LiteGraph id: mtlx/conditional/ifequal_matrix44B

Definition at line 29858 of file mtlx_stdlib.js.

29858 {
29859 this.nodedef_icon = '';
29860 this.nodedef_name = 'ND_ifequal_matrix44B';
29861 this.nodedef_type = 'matrix44';
29862 this.nodedef_node = 'ifequal';
29863 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29864 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44B_out_genglsl.png';
29865 this.nodedef_group = 'conditional';
29866 this.addInput('value1','boolean');
29867 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29868 this.addInput('value2','boolean');
29869 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29870 this.addInput('in1','matrix44');
29871 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":"","defaultgeomprop":""});
29872 this.addInput('in2','matrix44');
29873 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":"","defaultgeomprop":""});
29874 this.addOutput('out','matrix44');
29875 this.title = 'ifequal_matrix44';
29876 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44B";
29877 this.onNodeCreated = function() {
29878 //console.log('Node created:', this);
29879}
29880 this.onRemoved = function() {
29881 //console.log('Node removed:', this);
29882 }
29883 this.onPropertyChanged = function(name, value, prev_value) {
29884 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29885 }
29886 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29887 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29888 }
29889 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29890 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29891 }
29892 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29893 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29894 }
29895 this.bgcolor = '#111';
29896 this.color = '#532200';
29897 this.title_text_color = '#000';
29898 this.shape = LiteGraph.CARD_SHAPE;
29899 this.boxcolor = '#444';
29900}

◆ mtlx_conditional_ifequal_matrix44I()

function mtlx_conditional_ifequal_matrix44I ( )

mtlx_conditional_ifequal_matrix44I

Library: mtlx. Category: ifequal. Type: matrix44 LiteGraph id: mtlx/conditional/ifequal_matrix44I

Definition at line 29332 of file mtlx_stdlib.js.

29332 {
29333 this.nodedef_icon = '';
29334 this.nodedef_name = 'ND_ifequal_matrix44I';
29335 this.nodedef_type = 'matrix44';
29336 this.nodedef_node = 'ifequal';
29337 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29338 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44I_out_genglsl.png';
29339 this.nodedef_group = 'conditional';
29340 this.addInput('value1','integer');
29341 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29342 this.addInput('value2','integer');
29343 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29344 this.addInput('in1','matrix44');
29345 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":"","defaultgeomprop":""});
29346 this.addInput('in2','matrix44');
29347 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":"","defaultgeomprop":""});
29348 this.addOutput('out','matrix44');
29349 this.title = 'ifequal_matrix44';
29350 this.desc = "MaterialX:mtlx/conditional/ifequal_matrix44I";
29351 this.onNodeCreated = function() {
29352 //console.log('Node created:', this);
29353}
29354 this.onRemoved = function() {
29355 //console.log('Node removed:', this);
29356 }
29357 this.onPropertyChanged = function(name, value, prev_value) {
29358 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29359 }
29360 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29361 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29362 }
29363 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29364 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29365 }
29366 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29367 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29368 }
29369 this.bgcolor = '#111';
29370 this.color = '#532200';
29371 this.title_text_color = '#000';
29372 this.shape = LiteGraph.CARD_SHAPE;
29373 this.boxcolor = '#444';
29374}

◆ mtlx_conditional_ifequal_vector2()

function mtlx_conditional_ifequal_vector2 ( )

mtlx_conditional_ifequal_vector2

Library: mtlx. Category: ifequal. Type: vector2 LiteGraph id: mtlx/conditional/ifequal_vector2

Definition at line 28594 of file mtlx_stdlib.js.

28594 {
28595 this.nodedef_icon = '';
28596 this.nodedef_name = 'ND_ifequal_vector2';
28597 this.nodedef_type = 'vector2';
28598 this.nodedef_node = 'ifequal';
28599 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28600 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2_out_genglsl.png';
28601 this.nodedef_group = 'conditional';
28602 this.addInput('value1','float');
28603 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28604 this.addInput('value2','float');
28605 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28606 this.addInput('in1','vector2');
28607 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28608 this.addInput('in2','vector2');
28609 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28610 this.addOutput('out','vector2');
28611 this.title = 'ifequal_vector2';
28612 this.desc = "MaterialX:mtlx/conditional/ifequal_vector2";
28613 this.onNodeCreated = function() {
28614 //console.log('Node created:', this);
28615}
28616 this.onRemoved = function() {
28617 //console.log('Node removed:', this);
28618 }
28619 this.onPropertyChanged = function(name, value, prev_value) {
28620 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28621 }
28622 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28623 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28624 }
28625 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28626 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28627 }
28628 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28629 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28630 }
28631 this.bgcolor = '#111';
28632 this.color = '#532200';
28633 this.title_text_color = '#000';
28634 this.shape = LiteGraph.CARD_SHAPE;
28635 this.boxcolor = '#265';
28636}

◆ mtlx_conditional_ifequal_vector2B()

function mtlx_conditional_ifequal_vector2B ( )

mtlx_conditional_ifequal_vector2B

Library: mtlx. Category: ifequal. Type: vector2 LiteGraph id: mtlx/conditional/ifequal_vector2B

Definition at line 29646 of file mtlx_stdlib.js.

29646 {
29647 this.nodedef_icon = '';
29648 this.nodedef_name = 'ND_ifequal_vector2B';
29649 this.nodedef_type = 'vector2';
29650 this.nodedef_node = 'ifequal';
29651 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29652 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2B_out_genglsl.png';
29653 this.nodedef_group = 'conditional';
29654 this.addInput('value1','boolean');
29655 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29656 this.addInput('value2','boolean');
29657 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29658 this.addInput('in1','vector2');
29659 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29660 this.addInput('in2','vector2');
29661 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29662 this.addOutput('out','vector2');
29663 this.title = 'ifequal_vector2';
29664 this.desc = "MaterialX:mtlx/conditional/ifequal_vector2B";
29665 this.onNodeCreated = function() {
29666 //console.log('Node created:', this);
29667}
29668 this.onRemoved = function() {
29669 //console.log('Node removed:', this);
29670 }
29671 this.onPropertyChanged = function(name, value, prev_value) {
29672 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29673 }
29674 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29675 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29676 }
29677 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29678 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29679 }
29680 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29681 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29682 }
29683 this.bgcolor = '#111';
29684 this.color = '#532200';
29685 this.title_text_color = '#000';
29686 this.shape = LiteGraph.CARD_SHAPE;
29687 this.boxcolor = '#265';
29688}

◆ mtlx_conditional_ifequal_vector2I()

function mtlx_conditional_ifequal_vector2I ( )

mtlx_conditional_ifequal_vector2I

Library: mtlx. Category: ifequal. Type: vector2 LiteGraph id: mtlx/conditional/ifequal_vector2I

Definition at line 29120 of file mtlx_stdlib.js.

29120 {
29121 this.nodedef_icon = '';
29122 this.nodedef_name = 'ND_ifequal_vector2I';
29123 this.nodedef_type = 'vector2';
29124 this.nodedef_node = 'ifequal';
29125 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29126 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2I_out_genglsl.png';
29127 this.nodedef_group = 'conditional';
29128 this.addInput('value1','integer');
29129 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29130 this.addInput('value2','integer');
29131 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29132 this.addInput('in1','vector2');
29133 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29134 this.addInput('in2','vector2');
29135 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29136 this.addOutput('out','vector2');
29137 this.title = 'ifequal_vector2';
29138 this.desc = "MaterialX:mtlx/conditional/ifequal_vector2I";
29139 this.onNodeCreated = function() {
29140 //console.log('Node created:', this);
29141}
29142 this.onRemoved = function() {
29143 //console.log('Node removed:', this);
29144 }
29145 this.onPropertyChanged = function(name, value, prev_value) {
29146 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29147 }
29148 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29149 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29150 }
29151 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29152 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29153 }
29154 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29155 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29156 }
29157 this.bgcolor = '#111';
29158 this.color = '#532200';
29159 this.title_text_color = '#000';
29160 this.shape = LiteGraph.CARD_SHAPE;
29161 this.boxcolor = '#265';
29162}

◆ mtlx_conditional_ifequal_vector3()

function mtlx_conditional_ifequal_vector3 ( )

mtlx_conditional_ifequal_vector3

Library: mtlx. Category: ifequal. Type: vector3 LiteGraph id: mtlx/conditional/ifequal_vector3

Definition at line 28647 of file mtlx_stdlib.js.

28647 {
28648 this.nodedef_icon = '';
28649 this.nodedef_name = 'ND_ifequal_vector3';
28650 this.nodedef_type = 'vector3';
28651 this.nodedef_node = 'ifequal';
28652 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28653 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3_out_genglsl.png';
28654 this.nodedef_group = 'conditional';
28655 this.addInput('value1','float');
28656 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28657 this.addInput('value2','float');
28658 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28659 this.addInput('in1','vector3');
28660 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28661 this.addInput('in2','vector3');
28662 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28663 this.addOutput('out','vector3');
28664 this.title = 'ifequal_vector3';
28665 this.desc = "MaterialX:mtlx/conditional/ifequal_vector3";
28666 this.onNodeCreated = function() {
28667 //console.log('Node created:', this);
28668}
28669 this.onRemoved = function() {
28670 //console.log('Node removed:', this);
28671 }
28672 this.onPropertyChanged = function(name, value, prev_value) {
28673 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28674 }
28675 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28676 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28677 }
28678 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28679 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28680 }
28681 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28682 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28683 }
28684 this.bgcolor = '#111';
28685 this.color = '#532200';
28686 this.title_text_color = '#000';
28687 this.shape = LiteGraph.CARD_SHAPE;
28688 this.boxcolor = '#465';
28689}

◆ mtlx_conditional_ifequal_vector3B()

function mtlx_conditional_ifequal_vector3B ( )

mtlx_conditional_ifequal_vector3B

Library: mtlx. Category: ifequal. Type: vector3 LiteGraph id: mtlx/conditional/ifequal_vector3B

Definition at line 29699 of file mtlx_stdlib.js.

29699 {
29700 this.nodedef_icon = '';
29701 this.nodedef_name = 'ND_ifequal_vector3B';
29702 this.nodedef_type = 'vector3';
29703 this.nodedef_node = 'ifequal';
29704 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29705 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3B_out_genglsl.png';
29706 this.nodedef_group = 'conditional';
29707 this.addInput('value1','boolean');
29708 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29709 this.addInput('value2','boolean');
29710 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29711 this.addInput('in1','vector3');
29712 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29713 this.addInput('in2','vector3');
29714 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29715 this.addOutput('out','vector3');
29716 this.title = 'ifequal_vector3';
29717 this.desc = "MaterialX:mtlx/conditional/ifequal_vector3B";
29718 this.onNodeCreated = function() {
29719 //console.log('Node created:', this);
29720}
29721 this.onRemoved = function() {
29722 //console.log('Node removed:', this);
29723 }
29724 this.onPropertyChanged = function(name, value, prev_value) {
29725 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29726 }
29727 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29728 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29729 }
29730 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29731 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29732 }
29733 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29734 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29735 }
29736 this.bgcolor = '#111';
29737 this.color = '#532200';
29738 this.title_text_color = '#000';
29739 this.shape = LiteGraph.CARD_SHAPE;
29740 this.boxcolor = '#465';
29741}

◆ mtlx_conditional_ifequal_vector3I()

function mtlx_conditional_ifequal_vector3I ( )

mtlx_conditional_ifequal_vector3I

Library: mtlx. Category: ifequal. Type: vector3 LiteGraph id: mtlx/conditional/ifequal_vector3I

Definition at line 29173 of file mtlx_stdlib.js.

29173 {
29174 this.nodedef_icon = '';
29175 this.nodedef_name = 'ND_ifequal_vector3I';
29176 this.nodedef_type = 'vector3';
29177 this.nodedef_node = 'ifequal';
29178 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29179 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3I_out_genglsl.png';
29180 this.nodedef_group = 'conditional';
29181 this.addInput('value1','integer');
29182 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29183 this.addInput('value2','integer');
29184 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29185 this.addInput('in1','vector3');
29186 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29187 this.addInput('in2','vector3');
29188 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29189 this.addOutput('out','vector3');
29190 this.title = 'ifequal_vector3';
29191 this.desc = "MaterialX:mtlx/conditional/ifequal_vector3I";
29192 this.onNodeCreated = function() {
29193 //console.log('Node created:', this);
29194}
29195 this.onRemoved = function() {
29196 //console.log('Node removed:', this);
29197 }
29198 this.onPropertyChanged = function(name, value, prev_value) {
29199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29200 }
29201 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29203 }
29204 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29206 }
29207 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29209 }
29210 this.bgcolor = '#111';
29211 this.color = '#532200';
29212 this.title_text_color = '#000';
29213 this.shape = LiteGraph.CARD_SHAPE;
29214 this.boxcolor = '#465';
29215}

◆ mtlx_conditional_ifequal_vector4()

function mtlx_conditional_ifequal_vector4 ( )

mtlx_conditional_ifequal_vector4

Library: mtlx. Category: ifequal. Type: vector4 LiteGraph id: mtlx/conditional/ifequal_vector4

Definition at line 28700 of file mtlx_stdlib.js.

28700 {
28701 this.nodedef_icon = '';
28702 this.nodedef_name = 'ND_ifequal_vector4';
28703 this.nodedef_type = 'vector4';
28704 this.nodedef_node = 'ifequal';
28705 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28706 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4_out_genglsl.png';
28707 this.nodedef_group = 'conditional';
28708 this.addInput('value1','float');
28709 this.addProperty('value1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28710 this.addInput('value2','float');
28711 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28712 this.addInput('in1','vector4');
28713 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28714 this.addInput('in2','vector4');
28715 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28716 this.addOutput('out','vector4');
28717 this.title = 'ifequal_vector4';
28718 this.desc = "MaterialX:mtlx/conditional/ifequal_vector4";
28719 this.onNodeCreated = function() {
28720 //console.log('Node created:', this);
28721}
28722 this.onRemoved = function() {
28723 //console.log('Node removed:', this);
28724 }
28725 this.onPropertyChanged = function(name, value, prev_value) {
28726 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28727 }
28728 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28729 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28730 }
28731 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28732 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28733 }
28734 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28735 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28736 }
28737 this.bgcolor = '#111';
28738 this.color = '#532200';
28739 this.title_text_color = '#000';
28740 this.shape = LiteGraph.CARD_SHAPE;
28741 this.boxcolor = '#275';
28742}

◆ mtlx_conditional_ifequal_vector4B()

function mtlx_conditional_ifequal_vector4B ( )

mtlx_conditional_ifequal_vector4B

Library: mtlx. Category: ifequal. Type: vector4 LiteGraph id: mtlx/conditional/ifequal_vector4B

Definition at line 29752 of file mtlx_stdlib.js.

29752 {
29753 this.nodedef_icon = '';
29754 this.nodedef_name = 'ND_ifequal_vector4B';
29755 this.nodedef_type = 'vector4';
29756 this.nodedef_node = 'ifequal';
29757 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29758 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4B_out_genglsl.png';
29759 this.nodedef_group = 'conditional';
29760 this.addInput('value1','boolean');
29761 this.addProperty('value1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29762 this.addInput('value2','boolean');
29763 this.addProperty('value2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29764 this.addInput('in1','vector4');
29765 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29766 this.addInput('in2','vector4');
29767 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29768 this.addOutput('out','vector4');
29769 this.title = 'ifequal_vector4';
29770 this.desc = "MaterialX:mtlx/conditional/ifequal_vector4B";
29771 this.onNodeCreated = function() {
29772 //console.log('Node created:', this);
29773}
29774 this.onRemoved = function() {
29775 //console.log('Node removed:', this);
29776 }
29777 this.onPropertyChanged = function(name, value, prev_value) {
29778 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29779 }
29780 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29781 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29782 }
29783 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29784 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29785 }
29786 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29787 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29788 }
29789 this.bgcolor = '#111';
29790 this.color = '#532200';
29791 this.title_text_color = '#000';
29792 this.shape = LiteGraph.CARD_SHAPE;
29793 this.boxcolor = '#275';
29794}

◆ mtlx_conditional_ifequal_vector4I()

function mtlx_conditional_ifequal_vector4I ( )

mtlx_conditional_ifequal_vector4I

Library: mtlx. Category: ifequal. Type: vector4 LiteGraph id: mtlx/conditional/ifequal_vector4I

Definition at line 29226 of file mtlx_stdlib.js.

29226 {
29227 this.nodedef_icon = '';
29228 this.nodedef_name = 'ND_ifequal_vector4I';
29229 this.nodedef_type = 'vector4';
29230 this.nodedef_node = 'ifequal';
29231 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29232 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4I_out_genglsl.png';
29233 this.nodedef_group = 'conditional';
29234 this.addInput('value1','integer');
29235 this.addProperty('value1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29236 this.addInput('value2','integer');
29237 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29238 this.addInput('in1','vector4');
29239 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29240 this.addInput('in2','vector4');
29241 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29242 this.addOutput('out','vector4');
29243 this.title = 'ifequal_vector4';
29244 this.desc = "MaterialX:mtlx/conditional/ifequal_vector4I";
29245 this.onNodeCreated = function() {
29246 //console.log('Node created:', this);
29247}
29248 this.onRemoved = function() {
29249 //console.log('Node removed:', this);
29250 }
29251 this.onPropertyChanged = function(name, value, prev_value) {
29252 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
29253 }
29254 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
29255 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
29256 }
29257 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
29258 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
29259 }
29260 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
29261 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
29262 }
29263 this.bgcolor = '#111';
29264 this.color = '#532200';
29265 this.title_text_color = '#000';
29266 this.shape = LiteGraph.CARD_SHAPE;
29267 this.boxcolor = '#275';
29268}

◆ mtlx_conditional_ifgreater_boolean()

function mtlx_conditional_ifgreater_boolean ( )

mtlx_conditional_ifgreater_boolean

Library: mtlx. Category: ifgreater. Type: boolean LiteGraph id: mtlx/conditional/ifgreater_boolean

Definition at line 26755 of file mtlx_stdlib.js.

26755 {
26756 this.nodedef_icon = '';
26757 this.nodedef_name = 'ND_ifgreater_boolean';
26758 this.nodedef_type = 'boolean';
26759 this.nodedef_node = 'ifgreater';
26760 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26761 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_boolean_out_genglsl.png';
26762 this.nodedef_group = 'conditional';
26763 this.addInput('value1','float');
26764 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26765 this.addInput('value2','float');
26766 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26767 this.addOutput('out','boolean');
26768 this.title = 'ifgreater_boolean';
26769 this.desc = "MaterialX:mtlx/conditional/ifgreater_boolean";
26770 this.onNodeCreated = function() {
26771 //console.log('Node created:', this);
26772}
26773 this.onRemoved = function() {
26774 //console.log('Node removed:', this);
26775 }
26776 this.onPropertyChanged = function(name, value, prev_value) {
26777 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26778 }
26779 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26780 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26781 }
26782 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26783 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26784 }
26785 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26786 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26787 }
26788 this.bgcolor = '#111';
26789 this.color = '#532200';
26790 this.title_text_color = '#000';
26791 this.shape = LiteGraph.CARD_SHAPE;
26792 this.boxcolor = '#060';
26793}

◆ mtlx_conditional_ifgreater_booleanI()

function mtlx_conditional_ifgreater_booleanI ( )

mtlx_conditional_ifgreater_booleanI

Library: mtlx. Category: ifgreater. Type: boolean LiteGraph id: mtlx/conditional/ifgreater_booleanI

Definition at line 27281 of file mtlx_stdlib.js.

27281 {
27282 this.nodedef_icon = '';
27283 this.nodedef_name = 'ND_ifgreater_booleanI';
27284 this.nodedef_type = 'boolean';
27285 this.nodedef_node = 'ifgreater';
27286 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27287 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_booleanI_out_genglsl.png';
27288 this.nodedef_group = 'conditional';
27289 this.addInput('value1','integer');
27290 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27291 this.addInput('value2','integer');
27292 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27293 this.addOutput('out','boolean');
27294 this.title = 'ifgreater_boolean';
27295 this.desc = "MaterialX:mtlx/conditional/ifgreater_booleanI";
27296 this.onNodeCreated = function() {
27297 //console.log('Node created:', this);
27298}
27299 this.onRemoved = function() {
27300 //console.log('Node removed:', this);
27301 }
27302 this.onPropertyChanged = function(name, value, prev_value) {
27303 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27304 }
27305 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27306 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27307 }
27308 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27309 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27310 }
27311 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27312 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27313 }
27314 this.bgcolor = '#111';
27315 this.color = '#532200';
27316 this.title_text_color = '#000';
27317 this.shape = LiteGraph.CARD_SHAPE;
27318 this.boxcolor = '#060';
27319}

◆ mtlx_conditional_ifgreater_color3()

function mtlx_conditional_ifgreater_color3 ( )

mtlx_conditional_ifgreater_color3

Library: mtlx. Category: ifgreater. Type: color3 LiteGraph id: mtlx/conditional/ifgreater_color3

Definition at line 26384 of file mtlx_stdlib.js.

26384 {
26385 this.nodedef_icon = '';
26386 this.nodedef_name = 'ND_ifgreater_color3';
26387 this.nodedef_type = 'color3';
26388 this.nodedef_node = 'ifgreater';
26389 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26390 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color3_out_genglsl.png';
26391 this.nodedef_group = 'conditional';
26392 this.addInput('value1','float');
26393 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26394 this.addInput('value2','float');
26395 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26396 this.addInput('in1','color3');
26397 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26398 this.addInput('in2','color3');
26399 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26400 this.addOutput('out','color3');
26401 this.title = 'ifgreater_color3';
26402 this.desc = "MaterialX:mtlx/conditional/ifgreater_color3";
26403 this.onNodeCreated = function() {
26404 //console.log('Node created:', this);
26405}
26406 this.onRemoved = function() {
26407 //console.log('Node removed:', this);
26408 }
26409 this.onPropertyChanged = function(name, value, prev_value) {
26410 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26411 }
26412 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26413 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26414 }
26415 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26416 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26417 }
26418 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26419 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26420 }
26421 this.bgcolor = '#111';
26422 this.color = '#532200';
26423 this.title_text_color = '#000';
26424 this.shape = LiteGraph.CARD_SHAPE;
26425 this.boxcolor = '#37A';
26426}

◆ mtlx_conditional_ifgreater_color3I()

function mtlx_conditional_ifgreater_color3I ( )

mtlx_conditional_ifgreater_color3I

Library: mtlx. Category: ifgreater. Type: color3 LiteGraph id: mtlx/conditional/ifgreater_color3I

Definition at line 26910 of file mtlx_stdlib.js.

26910 {
26911 this.nodedef_icon = '';
26912 this.nodedef_name = 'ND_ifgreater_color3I';
26913 this.nodedef_type = 'color3';
26914 this.nodedef_node = 'ifgreater';
26915 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26916 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color3I_out_genglsl.png';
26917 this.nodedef_group = 'conditional';
26918 this.addInput('value1','integer');
26919 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26920 this.addInput('value2','integer');
26921 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26922 this.addInput('in1','color3');
26923 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26924 this.addInput('in2','color3');
26925 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26926 this.addOutput('out','color3');
26927 this.title = 'ifgreater_color3';
26928 this.desc = "MaterialX:mtlx/conditional/ifgreater_color3I";
26929 this.onNodeCreated = function() {
26930 //console.log('Node created:', this);
26931}
26932 this.onRemoved = function() {
26933 //console.log('Node removed:', this);
26934 }
26935 this.onPropertyChanged = function(name, value, prev_value) {
26936 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26937 }
26938 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26939 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26940 }
26941 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26942 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26943 }
26944 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26945 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26946 }
26947 this.bgcolor = '#111';
26948 this.color = '#532200';
26949 this.title_text_color = '#000';
26950 this.shape = LiteGraph.CARD_SHAPE;
26951 this.boxcolor = '#37A';
26952}

◆ mtlx_conditional_ifgreater_color4()

function mtlx_conditional_ifgreater_color4 ( )

mtlx_conditional_ifgreater_color4

Library: mtlx. Category: ifgreater. Type: color4 LiteGraph id: mtlx/conditional/ifgreater_color4

Definition at line 26437 of file mtlx_stdlib.js.

26437 {
26438 this.nodedef_icon = '';
26439 this.nodedef_name = 'ND_ifgreater_color4';
26440 this.nodedef_type = 'color4';
26441 this.nodedef_node = 'ifgreater';
26442 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26443 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color4_out_genglsl.png';
26444 this.nodedef_group = 'conditional';
26445 this.addInput('value1','float');
26446 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26447 this.addInput('value2','float');
26448 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26449 this.addInput('in1','color4');
26450 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26451 this.addInput('in2','color4');
26452 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26453 this.addOutput('out','color4');
26454 this.title = 'ifgreater_color4';
26455 this.desc = "MaterialX:mtlx/conditional/ifgreater_color4";
26456 this.onNodeCreated = function() {
26457 //console.log('Node created:', this);
26458}
26459 this.onRemoved = function() {
26460 //console.log('Node removed:', this);
26461 }
26462 this.onPropertyChanged = function(name, value, prev_value) {
26463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26464 }
26465 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26467 }
26468 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26470 }
26471 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26473 }
26474 this.bgcolor = '#111';
26475 this.color = '#532200';
26476 this.title_text_color = '#000';
26477 this.shape = LiteGraph.CARD_SHAPE;
26478 this.boxcolor = '#69A';
26479}

◆ mtlx_conditional_ifgreater_color4I()

function mtlx_conditional_ifgreater_color4I ( )

mtlx_conditional_ifgreater_color4I

Library: mtlx. Category: ifgreater. Type: color4 LiteGraph id: mtlx/conditional/ifgreater_color4I

Definition at line 26963 of file mtlx_stdlib.js.

26963 {
26964 this.nodedef_icon = '';
26965 this.nodedef_name = 'ND_ifgreater_color4I';
26966 this.nodedef_type = 'color4';
26967 this.nodedef_node = 'ifgreater';
26968 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26969 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color4I_out_genglsl.png';
26970 this.nodedef_group = 'conditional';
26971 this.addInput('value1','integer');
26972 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26973 this.addInput('value2','integer');
26974 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26975 this.addInput('in1','color4');
26976 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26977 this.addInput('in2','color4');
26978 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26979 this.addOutput('out','color4');
26980 this.title = 'ifgreater_color4';
26981 this.desc = "MaterialX:mtlx/conditional/ifgreater_color4I";
26982 this.onNodeCreated = function() {
26983 //console.log('Node created:', this);
26984}
26985 this.onRemoved = function() {
26986 //console.log('Node removed:', this);
26987 }
26988 this.onPropertyChanged = function(name, value, prev_value) {
26989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26990 }
26991 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26993 }
26994 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26996 }
26997 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26999 }
27000 this.bgcolor = '#111';
27001 this.color = '#532200';
27002 this.title_text_color = '#000';
27003 this.shape = LiteGraph.CARD_SHAPE;
27004 this.boxcolor = '#69A';
27005}

◆ mtlx_conditional_ifgreater_float()

function mtlx_conditional_ifgreater_float ( )

mtlx_conditional_ifgreater_float

Library: mtlx. Category: mix. Type: float LiteGraph id: mtlx/conditional/ifgreater_float

Definition at line 26278 of file mtlx_stdlib.js.

26278 {
26279 this.nodedef_icon = '';
26280 this.nodedef_name = 'ND_ifgreater_float';
26281 this.nodedef_type = 'float';
26282 this.nodedef_node = 'ifgreater';
26283 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26284 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_float_out_genglsl.png';
26285 this.nodedef_group = 'conditional';
26286 this.addInput('value1','float');
26287 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26288 this.addInput('value2','float');
26289 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26290 this.addInput('in1','float');
26291 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26292 this.addInput('in2','float');
26293 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26294 this.addOutput('out','float');
26295 this.title = 'ifgreater_float';
26296 this.desc = "MaterialX:mtlx/conditional/ifgreater_float";
26297 this.onNodeCreated = function() {
26298 //console.log('Node created:', this);
26299}
26300 this.onRemoved = function() {
26301 //console.log('Node removed:', this);
26302 }
26303 this.onPropertyChanged = function(name, value, prev_value) {
26304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26305 }
26306 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26308 }
26309 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26311 }
26312 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26314 }
26315 this.bgcolor = '#111';
26316 this.color = '#532200';
26317 this.title_text_color = '#000';
26318 this.shape = LiteGraph.CARD_SHAPE;
26319 this.boxcolor = '#161';
26320}

◆ mtlx_conditional_ifgreater_floatI()

function mtlx_conditional_ifgreater_floatI ( )

mtlx_conditional_ifgreater_floatI

Library: mtlx. Category: ifgreater. Type: float LiteGraph id: mtlx/conditional/ifgreater_floatI

Definition at line 26804 of file mtlx_stdlib.js.

26804 {
26805 this.nodedef_icon = '';
26806 this.nodedef_name = 'ND_ifgreater_floatI';
26807 this.nodedef_type = 'float';
26808 this.nodedef_node = 'ifgreater';
26809 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26810 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_floatI_out_genglsl.png';
26811 this.nodedef_group = 'conditional';
26812 this.addInput('value1','integer');
26813 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26814 this.addInput('value2','integer');
26815 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26816 this.addInput('in1','float');
26817 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26818 this.addInput('in2','float');
26819 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26820 this.addOutput('out','float');
26821 this.title = 'ifgreater_float';
26822 this.desc = "MaterialX:mtlx/conditional/ifgreater_floatI";
26823 this.onNodeCreated = function() {
26824 //console.log('Node created:', this);
26825}
26826 this.onRemoved = function() {
26827 //console.log('Node removed:', this);
26828 }
26829 this.onPropertyChanged = function(name, value, prev_value) {
26830 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26831 }
26832 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26833 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26834 }
26835 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26836 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26837 }
26838 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26839 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26840 }
26841 this.bgcolor = '#111';
26842 this.color = '#532200';
26843 this.title_text_color = '#000';
26844 this.shape = LiteGraph.CARD_SHAPE;
26845 this.boxcolor = '#161';
26846}

◆ mtlx_conditional_ifgreater_integer()

function mtlx_conditional_ifgreater_integer ( )

mtlx_conditional_ifgreater_integer

Library: mtlx. Category: ifgreater. Type: integer LiteGraph id: mtlx/conditional/ifgreater_integer

Definition at line 26331 of file mtlx_stdlib.js.

26331 {
26332 this.nodedef_icon = '';
26333 this.nodedef_name = 'ND_ifgreater_integer';
26334 this.nodedef_type = 'integer';
26335 this.nodedef_node = 'ifgreater';
26336 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26337 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_integer_out_genglsl.png';
26338 this.nodedef_group = 'conditional';
26339 this.addInput('value1','float');
26340 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26341 this.addInput('value2','float');
26342 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26343 this.addInput('in1','integer');
26344 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26345 this.addInput('in2','integer');
26346 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26347 this.addOutput('out','integer');
26348 this.title = 'ifgreater_integer';
26349 this.desc = "MaterialX:mtlx/conditional/ifgreater_integer";
26350 this.onNodeCreated = function() {
26351 //console.log('Node created:', this);
26352}
26353 this.onRemoved = function() {
26354 //console.log('Node removed:', this);
26355 }
26356 this.onPropertyChanged = function(name, value, prev_value) {
26357 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26358 }
26359 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26360 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26361 }
26362 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26363 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26364 }
26365 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26366 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26367 }
26368 this.bgcolor = '#111';
26369 this.color = '#532200';
26370 this.title_text_color = '#000';
26371 this.shape = LiteGraph.CARD_SHAPE;
26372 this.boxcolor = '#A32';
26373}

◆ mtlx_conditional_ifgreater_integerI()

function mtlx_conditional_ifgreater_integerI ( )

mtlx_conditional_ifgreater_integerI

Library: mtlx. Category: ifgreater. Type: integer LiteGraph id: mtlx/conditional/ifgreater_integerI

Definition at line 26857 of file mtlx_stdlib.js.

26857 {
26858 this.nodedef_icon = '';
26859 this.nodedef_name = 'ND_ifgreater_integerI';
26860 this.nodedef_type = 'integer';
26861 this.nodedef_node = 'ifgreater';
26862 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26863 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_integerI_out_genglsl.png';
26864 this.nodedef_group = 'conditional';
26865 this.addInput('value1','integer');
26866 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26867 this.addInput('value2','integer');
26868 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26869 this.addInput('in1','integer');
26870 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26871 this.addInput('in2','integer');
26872 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26873 this.addOutput('out','integer');
26874 this.title = 'ifgreater_integer';
26875 this.desc = "MaterialX:mtlx/conditional/ifgreater_integerI";
26876 this.onNodeCreated = function() {
26877 //console.log('Node created:', this);
26878}
26879 this.onRemoved = function() {
26880 //console.log('Node removed:', this);
26881 }
26882 this.onPropertyChanged = function(name, value, prev_value) {
26883 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26884 }
26885 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26886 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26887 }
26888 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26889 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26890 }
26891 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26892 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26893 }
26894 this.bgcolor = '#111';
26895 this.color = '#532200';
26896 this.title_text_color = '#000';
26897 this.shape = LiteGraph.CARD_SHAPE;
26898 this.boxcolor = '#A32';
26899}

◆ mtlx_conditional_ifgreater_matrix33()

function mtlx_conditional_ifgreater_matrix33 ( )

mtlx_conditional_ifgreater_matrix33

Library: mtlx. Category: ifgreater. Type: matrix33 LiteGraph id: mtlx/conditional/ifgreater_matrix33

Definition at line 26649 of file mtlx_stdlib.js.

26649 {
26650 this.nodedef_icon = '';
26651 this.nodedef_name = 'ND_ifgreater_matrix33';
26652 this.nodedef_type = 'matrix33';
26653 this.nodedef_node = 'ifgreater';
26654 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26655 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix33_out_genglsl.png';
26656 this.nodedef_group = 'conditional';
26657 this.addInput('value1','float');
26658 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26659 this.addInput('value2','float');
26660 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26661 this.addInput('in1','matrix33');
26662 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":"","defaultgeomprop":""});
26663 this.addInput('in2','matrix33');
26664 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":"","defaultgeomprop":""});
26665 this.addOutput('out','matrix33');
26666 this.title = 'ifgreater_matrix33';
26667 this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33";
26668 this.onNodeCreated = function() {
26669 //console.log('Node created:', this);
26670}
26671 this.onRemoved = function() {
26672 //console.log('Node removed:', this);
26673 }
26674 this.onPropertyChanged = function(name, value, prev_value) {
26675 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26676 }
26677 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26678 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26679 }
26680 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26681 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26682 }
26683 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26684 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26685 }
26686 this.bgcolor = '#111';
26687 this.color = '#532200';
26688 this.title_text_color = '#000';
26689 this.shape = LiteGraph.CARD_SHAPE;
26690 this.boxcolor = '#333';
26691}

◆ mtlx_conditional_ifgreater_matrix33I()

function mtlx_conditional_ifgreater_matrix33I ( )

mtlx_conditional_ifgreater_matrix33I

Library: mtlx. Category: ifgreater. Type: matrix33 LiteGraph id: mtlx/conditional/ifgreater_matrix33I

Definition at line 27175 of file mtlx_stdlib.js.

27175 {
27176 this.nodedef_icon = '';
27177 this.nodedef_name = 'ND_ifgreater_matrix33I';
27178 this.nodedef_type = 'matrix33';
27179 this.nodedef_node = 'ifgreater';
27180 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27181 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix33I_out_genglsl.png';
27182 this.nodedef_group = 'conditional';
27183 this.addInput('value1','integer');
27184 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27185 this.addInput('value2','integer');
27186 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27187 this.addInput('in1','matrix33');
27188 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":"","defaultgeomprop":""});
27189 this.addInput('in2','matrix33');
27190 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":"","defaultgeomprop":""});
27191 this.addOutput('out','matrix33');
27192 this.title = 'ifgreater_matrix33';
27193 this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix33I";
27194 this.onNodeCreated = function() {
27195 //console.log('Node created:', this);
27196}
27197 this.onRemoved = function() {
27198 //console.log('Node removed:', this);
27199 }
27200 this.onPropertyChanged = function(name, value, prev_value) {
27201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27202 }
27203 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27205 }
27206 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27208 }
27209 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27211 }
27212 this.bgcolor = '#111';
27213 this.color = '#532200';
27214 this.title_text_color = '#000';
27215 this.shape = LiteGraph.CARD_SHAPE;
27216 this.boxcolor = '#333';
27217}

◆ mtlx_conditional_ifgreater_matrix44()

function mtlx_conditional_ifgreater_matrix44 ( )

mtlx_conditional_ifgreater_matrix44

Library: mtlx. Category: ifgreater. Type: matrix44 LiteGraph id: mtlx/conditional/ifgreater_matrix44

Definition at line 26702 of file mtlx_stdlib.js.

26702 {
26703 this.nodedef_icon = '';
26704 this.nodedef_name = 'ND_ifgreater_matrix44';
26705 this.nodedef_type = 'matrix44';
26706 this.nodedef_node = 'ifgreater';
26707 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26708 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix44_out_genglsl.png';
26709 this.nodedef_group = 'conditional';
26710 this.addInput('value1','float');
26711 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26712 this.addInput('value2','float');
26713 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26714 this.addInput('in1','matrix44');
26715 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":"","defaultgeomprop":""});
26716 this.addInput('in2','matrix44');
26717 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":"","defaultgeomprop":""});
26718 this.addOutput('out','matrix44');
26719 this.title = 'ifgreater_matrix44';
26720 this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44";
26721 this.onNodeCreated = function() {
26722 //console.log('Node created:', this);
26723}
26724 this.onRemoved = function() {
26725 //console.log('Node removed:', this);
26726 }
26727 this.onPropertyChanged = function(name, value, prev_value) {
26728 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26729 }
26730 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26731 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26732 }
26733 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26734 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26735 }
26736 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26737 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26738 }
26739 this.bgcolor = '#111';
26740 this.color = '#532200';
26741 this.title_text_color = '#000';
26742 this.shape = LiteGraph.CARD_SHAPE;
26743 this.boxcolor = '#444';
26744}

◆ mtlx_conditional_ifgreater_matrix44I()

function mtlx_conditional_ifgreater_matrix44I ( )

mtlx_conditional_ifgreater_matrix44I

Library: mtlx. Category: ifgreater. Type: matrix44 LiteGraph id: mtlx/conditional/ifgreater_matrix44I

Definition at line 27228 of file mtlx_stdlib.js.

27228 {
27229 this.nodedef_icon = '';
27230 this.nodedef_name = 'ND_ifgreater_matrix44I';
27231 this.nodedef_type = 'matrix44';
27232 this.nodedef_node = 'ifgreater';
27233 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27234 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix44I_out_genglsl.png';
27235 this.nodedef_group = 'conditional';
27236 this.addInput('value1','integer');
27237 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27238 this.addInput('value2','integer');
27239 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27240 this.addInput('in1','matrix44');
27241 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":"","defaultgeomprop":""});
27242 this.addInput('in2','matrix44');
27243 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":"","defaultgeomprop":""});
27244 this.addOutput('out','matrix44');
27245 this.title = 'ifgreater_matrix44';
27246 this.desc = "MaterialX:mtlx/conditional/ifgreater_matrix44I";
27247 this.onNodeCreated = function() {
27248 //console.log('Node created:', this);
27249}
27250 this.onRemoved = function() {
27251 //console.log('Node removed:', this);
27252 }
27253 this.onPropertyChanged = function(name, value, prev_value) {
27254 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27255 }
27256 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27257 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27258 }
27259 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27260 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27261 }
27262 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27263 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27264 }
27265 this.bgcolor = '#111';
27266 this.color = '#532200';
27267 this.title_text_color = '#000';
27268 this.shape = LiteGraph.CARD_SHAPE;
27269 this.boxcolor = '#444';
27270}

◆ mtlx_conditional_ifgreater_vector2()

function mtlx_conditional_ifgreater_vector2 ( )

mtlx_conditional_ifgreater_vector2

Library: mtlx. Category: ifgreater. Type: vector2 LiteGraph id: mtlx/conditional/ifgreater_vector2

Definition at line 26490 of file mtlx_stdlib.js.

26490 {
26491 this.nodedef_icon = '';
26492 this.nodedef_name = 'ND_ifgreater_vector2';
26493 this.nodedef_type = 'vector2';
26494 this.nodedef_node = 'ifgreater';
26495 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26496 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector2_out_genglsl.png';
26497 this.nodedef_group = 'conditional';
26498 this.addInput('value1','float');
26499 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26500 this.addInput('value2','float');
26501 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26502 this.addInput('in1','vector2');
26503 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26504 this.addInput('in2','vector2');
26505 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26506 this.addOutput('out','vector2');
26507 this.title = 'ifgreater_vector2';
26508 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2";
26509 this.onNodeCreated = function() {
26510 //console.log('Node created:', this);
26511}
26512 this.onRemoved = function() {
26513 //console.log('Node removed:', this);
26514 }
26515 this.onPropertyChanged = function(name, value, prev_value) {
26516 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26517 }
26518 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26519 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26520 }
26521 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26522 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26523 }
26524 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26525 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26526 }
26527 this.bgcolor = '#111';
26528 this.color = '#532200';
26529 this.title_text_color = '#000';
26530 this.shape = LiteGraph.CARD_SHAPE;
26531 this.boxcolor = '#265';
26532}

◆ mtlx_conditional_ifgreater_vector2I()

function mtlx_conditional_ifgreater_vector2I ( )

mtlx_conditional_ifgreater_vector2I

Library: mtlx. Category: ifgreater. Type: vector2 LiteGraph id: mtlx/conditional/ifgreater_vector2I

Definition at line 27016 of file mtlx_stdlib.js.

27016 {
27017 this.nodedef_icon = '';
27018 this.nodedef_name = 'ND_ifgreater_vector2I';
27019 this.nodedef_type = 'vector2';
27020 this.nodedef_node = 'ifgreater';
27021 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27022 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector2I_out_genglsl.png';
27023 this.nodedef_group = 'conditional';
27024 this.addInput('value1','integer');
27025 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27026 this.addInput('value2','integer');
27027 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27028 this.addInput('in1','vector2');
27029 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27030 this.addInput('in2','vector2');
27031 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27032 this.addOutput('out','vector2');
27033 this.title = 'ifgreater_vector2';
27034 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector2I";
27035 this.onNodeCreated = function() {
27036 //console.log('Node created:', this);
27037}
27038 this.onRemoved = function() {
27039 //console.log('Node removed:', this);
27040 }
27041 this.onPropertyChanged = function(name, value, prev_value) {
27042 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27043 }
27044 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27045 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27046 }
27047 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27048 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27049 }
27050 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27051 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27052 }
27053 this.bgcolor = '#111';
27054 this.color = '#532200';
27055 this.title_text_color = '#000';
27056 this.shape = LiteGraph.CARD_SHAPE;
27057 this.boxcolor = '#265';
27058}

◆ mtlx_conditional_ifgreater_vector3()

function mtlx_conditional_ifgreater_vector3 ( )

mtlx_conditional_ifgreater_vector3

Library: mtlx. Category: ifgreater. Type: vector3 LiteGraph id: mtlx/conditional/ifgreater_vector3

Definition at line 26543 of file mtlx_stdlib.js.

26543 {
26544 this.nodedef_icon = '';
26545 this.nodedef_name = 'ND_ifgreater_vector3';
26546 this.nodedef_type = 'vector3';
26547 this.nodedef_node = 'ifgreater';
26548 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26549 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector3_out_genglsl.png';
26550 this.nodedef_group = 'conditional';
26551 this.addInput('value1','float');
26552 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26553 this.addInput('value2','float');
26554 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26555 this.addInput('in1','vector3');
26556 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26557 this.addInput('in2','vector3');
26558 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26559 this.addOutput('out','vector3');
26560 this.title = 'ifgreater_vector3';
26561 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3";
26562 this.onNodeCreated = function() {
26563 //console.log('Node created:', this);
26564}
26565 this.onRemoved = function() {
26566 //console.log('Node removed:', this);
26567 }
26568 this.onPropertyChanged = function(name, value, prev_value) {
26569 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26570 }
26571 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26572 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26573 }
26574 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26575 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26576 }
26577 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26578 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26579 }
26580 this.bgcolor = '#111';
26581 this.color = '#532200';
26582 this.title_text_color = '#000';
26583 this.shape = LiteGraph.CARD_SHAPE;
26584 this.boxcolor = '#465';
26585}

◆ mtlx_conditional_ifgreater_vector3I()

function mtlx_conditional_ifgreater_vector3I ( )

mtlx_conditional_ifgreater_vector3I

Library: mtlx. Category: ifgreater. Type: vector3 LiteGraph id: mtlx/conditional/ifgreater_vector3I

Definition at line 27069 of file mtlx_stdlib.js.

27069 {
27070 this.nodedef_icon = '';
27071 this.nodedef_name = 'ND_ifgreater_vector3I';
27072 this.nodedef_type = 'vector3';
27073 this.nodedef_node = 'ifgreater';
27074 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27075 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector3I_out_genglsl.png';
27076 this.nodedef_group = 'conditional';
27077 this.addInput('value1','integer');
27078 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27079 this.addInput('value2','integer');
27080 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27081 this.addInput('in1','vector3');
27082 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27083 this.addInput('in2','vector3');
27084 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27085 this.addOutput('out','vector3');
27086 this.title = 'ifgreater_vector3';
27087 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector3I";
27088 this.onNodeCreated = function() {
27089 //console.log('Node created:', this);
27090}
27091 this.onRemoved = function() {
27092 //console.log('Node removed:', this);
27093 }
27094 this.onPropertyChanged = function(name, value, prev_value) {
27095 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27096 }
27097 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27098 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27099 }
27100 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27101 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27102 }
27103 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27104 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27105 }
27106 this.bgcolor = '#111';
27107 this.color = '#532200';
27108 this.title_text_color = '#000';
27109 this.shape = LiteGraph.CARD_SHAPE;
27110 this.boxcolor = '#465';
27111}

◆ mtlx_conditional_ifgreater_vector4()

function mtlx_conditional_ifgreater_vector4 ( )

mtlx_conditional_ifgreater_vector4

Library: mtlx. Category: ifgreater. Type: vector4 LiteGraph id: mtlx/conditional/ifgreater_vector4

Definition at line 26596 of file mtlx_stdlib.js.

26596 {
26597 this.nodedef_icon = '';
26598 this.nodedef_name = 'ND_ifgreater_vector4';
26599 this.nodedef_type = 'vector4';
26600 this.nodedef_node = 'ifgreater';
26601 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26602 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector4_out_genglsl.png';
26603 this.nodedef_group = 'conditional';
26604 this.addInput('value1','float');
26605 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26606 this.addInput('value2','float');
26607 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26608 this.addInput('in1','vector4');
26609 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26610 this.addInput('in2','vector4');
26611 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
26612 this.addOutput('out','vector4');
26613 this.title = 'ifgreater_vector4';
26614 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4";
26615 this.onNodeCreated = function() {
26616 //console.log('Node created:', this);
26617}
26618 this.onRemoved = function() {
26619 //console.log('Node removed:', this);
26620 }
26621 this.onPropertyChanged = function(name, value, prev_value) {
26622 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
26623 }
26624 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
26625 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
26626 }
26627 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
26628 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
26629 }
26630 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
26631 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
26632 }
26633 this.bgcolor = '#111';
26634 this.color = '#532200';
26635 this.title_text_color = '#000';
26636 this.shape = LiteGraph.CARD_SHAPE;
26637 this.boxcolor = '#275';
26638}

◆ mtlx_conditional_ifgreater_vector4I()

function mtlx_conditional_ifgreater_vector4I ( )

mtlx_conditional_ifgreater_vector4I

Library: mtlx. Category: ifgreater. Type: vector4 LiteGraph id: mtlx/conditional/ifgreater_vector4I

Definition at line 27122 of file mtlx_stdlib.js.

27122 {
27123 this.nodedef_icon = '';
27124 this.nodedef_name = 'ND_ifgreater_vector4I';
27125 this.nodedef_type = 'vector4';
27126 this.nodedef_node = 'ifgreater';
27127 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27128 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector4I_out_genglsl.png';
27129 this.nodedef_group = 'conditional';
27130 this.addInput('value1','integer');
27131 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27132 this.addInput('value2','integer');
27133 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27134 this.addInput('in1','vector4');
27135 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27136 this.addInput('in2','vector4');
27137 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27138 this.addOutput('out','vector4');
27139 this.title = 'ifgreater_vector4';
27140 this.desc = "MaterialX:mtlx/conditional/ifgreater_vector4I";
27141 this.onNodeCreated = function() {
27142 //console.log('Node created:', this);
27143}
27144 this.onRemoved = function() {
27145 //console.log('Node removed:', this);
27146 }
27147 this.onPropertyChanged = function(name, value, prev_value) {
27148 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27149 }
27150 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27151 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27152 }
27153 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27154 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27155 }
27156 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27157 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27158 }
27159 this.bgcolor = '#111';
27160 this.color = '#532200';
27161 this.title_text_color = '#000';
27162 this.shape = LiteGraph.CARD_SHAPE;
27163 this.boxcolor = '#275';
27164}

◆ mtlx_conditional_ifgreatereq_boolean()

function mtlx_conditional_ifgreatereq_boolean ( )

mtlx_conditional_ifgreatereq_boolean

Library: mtlx. Category: ifgreatereq. Type: boolean LiteGraph id: mtlx/conditional/ifgreatereq_boolean

Definition at line 27807 of file mtlx_stdlib.js.

27807 {
27808 this.nodedef_icon = '';
27809 this.nodedef_name = 'ND_ifgreatereq_boolean';
27810 this.nodedef_type = 'boolean';
27811 this.nodedef_node = 'ifgreatereq';
27812 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27813 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_boolean_out_genglsl.png';
27814 this.nodedef_group = 'conditional';
27815 this.addInput('value1','float');
27816 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27817 this.addInput('value2','float');
27818 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27819 this.addOutput('out','boolean');
27820 this.title = 'ifgreatereq_boolean';
27821 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_boolean";
27822 this.onNodeCreated = function() {
27823 //console.log('Node created:', this);
27824}
27825 this.onRemoved = function() {
27826 //console.log('Node removed:', this);
27827 }
27828 this.onPropertyChanged = function(name, value, prev_value) {
27829 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27830 }
27831 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27832 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27833 }
27834 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27835 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27836 }
27837 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27838 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27839 }
27840 this.bgcolor = '#111';
27841 this.color = '#532200';
27842 this.title_text_color = '#000';
27843 this.shape = LiteGraph.CARD_SHAPE;
27844 this.boxcolor = '#060';
27845}

◆ mtlx_conditional_ifgreatereq_booleanI()

function mtlx_conditional_ifgreatereq_booleanI ( )

mtlx_conditional_ifgreatereq_booleanI

Library: mtlx. Category: ifgreatereq. Type: boolean LiteGraph id: mtlx/conditional/ifgreatereq_booleanI

Definition at line 28333 of file mtlx_stdlib.js.

28333 {
28334 this.nodedef_icon = '';
28335 this.nodedef_name = 'ND_ifgreatereq_booleanI';
28336 this.nodedef_type = 'boolean';
28337 this.nodedef_node = 'ifgreatereq';
28338 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28339 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_booleanI_out_genglsl.png';
28340 this.nodedef_group = 'conditional';
28341 this.addInput('value1','integer');
28342 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28343 this.addInput('value2','integer');
28344 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28345 this.addOutput('out','boolean');
28346 this.title = 'ifgreatereq_boolean';
28347 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_booleanI";
28348 this.onNodeCreated = function() {
28349 //console.log('Node created:', this);
28350}
28351 this.onRemoved = function() {
28352 //console.log('Node removed:', this);
28353 }
28354 this.onPropertyChanged = function(name, value, prev_value) {
28355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28356 }
28357 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28359 }
28360 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28362 }
28363 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28365 }
28366 this.bgcolor = '#111';
28367 this.color = '#532200';
28368 this.title_text_color = '#000';
28369 this.shape = LiteGraph.CARD_SHAPE;
28370 this.boxcolor = '#060';
28371}

◆ mtlx_conditional_ifgreatereq_color3()

function mtlx_conditional_ifgreatereq_color3 ( )

mtlx_conditional_ifgreatereq_color3

Library: mtlx. Category: ifgreatereq. Type: color3 LiteGraph id: mtlx/conditional/ifgreatereq_color3

Definition at line 27436 of file mtlx_stdlib.js.

27436 {
27437 this.nodedef_icon = '';
27438 this.nodedef_name = 'ND_ifgreatereq_color3';
27439 this.nodedef_type = 'color3';
27440 this.nodedef_node = 'ifgreatereq';
27441 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27442 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color3_out_genglsl.png';
27443 this.nodedef_group = 'conditional';
27444 this.addInput('value1','float');
27445 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27446 this.addInput('value2','float');
27447 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27448 this.addInput('in1','color3');
27449 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27450 this.addInput('in2','color3');
27451 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27452 this.addOutput('out','color3');
27453 this.title = 'ifgreatereq_color3';
27454 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3";
27455 this.onNodeCreated = function() {
27456 //console.log('Node created:', this);
27457}
27458 this.onRemoved = function() {
27459 //console.log('Node removed:', this);
27460 }
27461 this.onPropertyChanged = function(name, value, prev_value) {
27462 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27463 }
27464 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27465 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27466 }
27467 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27468 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27469 }
27470 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27471 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27472 }
27473 this.bgcolor = '#111';
27474 this.color = '#532200';
27475 this.title_text_color = '#000';
27476 this.shape = LiteGraph.CARD_SHAPE;
27477 this.boxcolor = '#37A';
27478}

◆ mtlx_conditional_ifgreatereq_color3I()

function mtlx_conditional_ifgreatereq_color3I ( )

mtlx_conditional_ifgreatereq_color3I

Library: mtlx. Category: ifgreatereq. Type: color3 LiteGraph id: mtlx/conditional/ifgreatereq_color3I

Definition at line 27962 of file mtlx_stdlib.js.

27962 {
27963 this.nodedef_icon = '';
27964 this.nodedef_name = 'ND_ifgreatereq_color3I';
27965 this.nodedef_type = 'color3';
27966 this.nodedef_node = 'ifgreatereq';
27967 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27968 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color3I_out_genglsl.png';
27969 this.nodedef_group = 'conditional';
27970 this.addInput('value1','integer');
27971 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27972 this.addInput('value2','integer');
27973 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27974 this.addInput('in1','color3');
27975 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27976 this.addInput('in2','color3');
27977 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27978 this.addOutput('out','color3');
27979 this.title = 'ifgreatereq_color3';
27980 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color3I";
27981 this.onNodeCreated = function() {
27982 //console.log('Node created:', this);
27983}
27984 this.onRemoved = function() {
27985 //console.log('Node removed:', this);
27986 }
27987 this.onPropertyChanged = function(name, value, prev_value) {
27988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27989 }
27990 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27992 }
27993 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27995 }
27996 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27998 }
27999 this.bgcolor = '#111';
28000 this.color = '#532200';
28001 this.title_text_color = '#000';
28002 this.shape = LiteGraph.CARD_SHAPE;
28003 this.boxcolor = '#37A';
28004}

◆ mtlx_conditional_ifgreatereq_color4()

function mtlx_conditional_ifgreatereq_color4 ( )

mtlx_conditional_ifgreatereq_color4

Library: mtlx. Category: ifgreatereq. Type: color4 LiteGraph id: mtlx/conditional/ifgreatereq_color4

Definition at line 27489 of file mtlx_stdlib.js.

27489 {
27490 this.nodedef_icon = '';
27491 this.nodedef_name = 'ND_ifgreatereq_color4';
27492 this.nodedef_type = 'color4';
27493 this.nodedef_node = 'ifgreatereq';
27494 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27495 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color4_out_genglsl.png';
27496 this.nodedef_group = 'conditional';
27497 this.addInput('value1','float');
27498 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27499 this.addInput('value2','float');
27500 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27501 this.addInput('in1','color4');
27502 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27503 this.addInput('in2','color4');
27504 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27505 this.addOutput('out','color4');
27506 this.title = 'ifgreatereq_color4';
27507 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4";
27508 this.onNodeCreated = function() {
27509 //console.log('Node created:', this);
27510}
27511 this.onRemoved = function() {
27512 //console.log('Node removed:', this);
27513 }
27514 this.onPropertyChanged = function(name, value, prev_value) {
27515 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27516 }
27517 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27518 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27519 }
27520 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27521 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27522 }
27523 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27524 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27525 }
27526 this.bgcolor = '#111';
27527 this.color = '#532200';
27528 this.title_text_color = '#000';
27529 this.shape = LiteGraph.CARD_SHAPE;
27530 this.boxcolor = '#69A';
27531}

◆ mtlx_conditional_ifgreatereq_color4I()

function mtlx_conditional_ifgreatereq_color4I ( )

mtlx_conditional_ifgreatereq_color4I

Library: mtlx. Category: ifgreatereq. Type: color4 LiteGraph id: mtlx/conditional/ifgreatereq_color4I

Definition at line 28015 of file mtlx_stdlib.js.

28015 {
28016 this.nodedef_icon = '';
28017 this.nodedef_name = 'ND_ifgreatereq_color4I';
28018 this.nodedef_type = 'color4';
28019 this.nodedef_node = 'ifgreatereq';
28020 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28021 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color4I_out_genglsl.png';
28022 this.nodedef_group = 'conditional';
28023 this.addInput('value1','integer');
28024 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28025 this.addInput('value2','integer');
28026 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28027 this.addInput('in1','color4');
28028 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28029 this.addInput('in2','color4');
28030 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28031 this.addOutput('out','color4');
28032 this.title = 'ifgreatereq_color4';
28033 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_color4I";
28034 this.onNodeCreated = function() {
28035 //console.log('Node created:', this);
28036}
28037 this.onRemoved = function() {
28038 //console.log('Node removed:', this);
28039 }
28040 this.onPropertyChanged = function(name, value, prev_value) {
28041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28042 }
28043 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28045 }
28046 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28048 }
28049 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28051 }
28052 this.bgcolor = '#111';
28053 this.color = '#532200';
28054 this.title_text_color = '#000';
28055 this.shape = LiteGraph.CARD_SHAPE;
28056 this.boxcolor = '#69A';
28057}

◆ mtlx_conditional_ifgreatereq_float()

function mtlx_conditional_ifgreatereq_float ( )

mtlx_conditional_ifgreatereq_float

Library: mtlx. Category: ifgreater. Type: float LiteGraph id: mtlx/conditional/ifgreatereq_float

Definition at line 27330 of file mtlx_stdlib.js.

27330 {
27331 this.nodedef_icon = '';
27332 this.nodedef_name = 'ND_ifgreatereq_float';
27333 this.nodedef_type = 'float';
27334 this.nodedef_node = 'ifgreatereq';
27335 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27336 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_float_out_genglsl.png';
27337 this.nodedef_group = 'conditional';
27338 this.addInput('value1','float');
27339 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27340 this.addInput('value2','float');
27341 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27342 this.addInput('in1','float');
27343 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27344 this.addInput('in2','float');
27345 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27346 this.addOutput('out','float');
27347 this.title = 'ifgreatereq_float';
27348 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_float";
27349 this.onNodeCreated = function() {
27350 //console.log('Node created:', this);
27351}
27352 this.onRemoved = function() {
27353 //console.log('Node removed:', this);
27354 }
27355 this.onPropertyChanged = function(name, value, prev_value) {
27356 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27357 }
27358 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27359 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27360 }
27361 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27362 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27363 }
27364 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27365 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27366 }
27367 this.bgcolor = '#111';
27368 this.color = '#532200';
27369 this.title_text_color = '#000';
27370 this.shape = LiteGraph.CARD_SHAPE;
27371 this.boxcolor = '#161';
27372}

◆ mtlx_conditional_ifgreatereq_floatI()

function mtlx_conditional_ifgreatereq_floatI ( )

mtlx_conditional_ifgreatereq_floatI

Library: mtlx. Category: ifgreatereq. Type: float LiteGraph id: mtlx/conditional/ifgreatereq_floatI

Definition at line 27856 of file mtlx_stdlib.js.

27856 {
27857 this.nodedef_icon = '';
27858 this.nodedef_name = 'ND_ifgreatereq_floatI';
27859 this.nodedef_type = 'float';
27860 this.nodedef_node = 'ifgreatereq';
27861 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27862 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_floatI_out_genglsl.png';
27863 this.nodedef_group = 'conditional';
27864 this.addInput('value1','integer');
27865 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27866 this.addInput('value2','integer');
27867 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27868 this.addInput('in1','float');
27869 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27870 this.addInput('in2','float');
27871 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27872 this.addOutput('out','float');
27873 this.title = 'ifgreatereq_float';
27874 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_floatI";
27875 this.onNodeCreated = function() {
27876 //console.log('Node created:', this);
27877}
27878 this.onRemoved = function() {
27879 //console.log('Node removed:', this);
27880 }
27881 this.onPropertyChanged = function(name, value, prev_value) {
27882 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27883 }
27884 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27885 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27886 }
27887 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27888 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27889 }
27890 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27891 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27892 }
27893 this.bgcolor = '#111';
27894 this.color = '#532200';
27895 this.title_text_color = '#000';
27896 this.shape = LiteGraph.CARD_SHAPE;
27897 this.boxcolor = '#161';
27898}

◆ mtlx_conditional_ifgreatereq_integer()

function mtlx_conditional_ifgreatereq_integer ( )

mtlx_conditional_ifgreatereq_integer

Library: mtlx. Category: ifgreatereq. Type: integer LiteGraph id: mtlx/conditional/ifgreatereq_integer

Definition at line 27383 of file mtlx_stdlib.js.

27383 {
27384 this.nodedef_icon = '';
27385 this.nodedef_name = 'ND_ifgreatereq_integer';
27386 this.nodedef_type = 'integer';
27387 this.nodedef_node = 'ifgreatereq';
27388 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27389 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_integer_out_genglsl.png';
27390 this.nodedef_group = 'conditional';
27391 this.addInput('value1','float');
27392 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27393 this.addInput('value2','float');
27394 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27395 this.addInput('in1','integer');
27396 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27397 this.addInput('in2','integer');
27398 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27399 this.addOutput('out','integer');
27400 this.title = 'ifgreatereq_integer';
27401 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integer";
27402 this.onNodeCreated = function() {
27403 //console.log('Node created:', this);
27404}
27405 this.onRemoved = function() {
27406 //console.log('Node removed:', this);
27407 }
27408 this.onPropertyChanged = function(name, value, prev_value) {
27409 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27410 }
27411 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27412 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27413 }
27414 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27415 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27416 }
27417 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27418 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27419 }
27420 this.bgcolor = '#111';
27421 this.color = '#532200';
27422 this.title_text_color = '#000';
27423 this.shape = LiteGraph.CARD_SHAPE;
27424 this.boxcolor = '#A32';
27425}

◆ mtlx_conditional_ifgreatereq_integerI()

function mtlx_conditional_ifgreatereq_integerI ( )

mtlx_conditional_ifgreatereq_integerI

Library: mtlx. Category: ifgreatereq. Type: integer LiteGraph id: mtlx/conditional/ifgreatereq_integerI

Definition at line 27909 of file mtlx_stdlib.js.

27909 {
27910 this.nodedef_icon = '';
27911 this.nodedef_name = 'ND_ifgreatereq_integerI';
27912 this.nodedef_type = 'integer';
27913 this.nodedef_node = 'ifgreatereq';
27914 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27915 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_integerI_out_genglsl.png';
27916 this.nodedef_group = 'conditional';
27917 this.addInput('value1','integer');
27918 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27919 this.addInput('value2','integer');
27920 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27921 this.addInput('in1','integer');
27922 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27923 this.addInput('in2','integer');
27924 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27925 this.addOutput('out','integer');
27926 this.title = 'ifgreatereq_integer';
27927 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_integerI";
27928 this.onNodeCreated = function() {
27929 //console.log('Node created:', this);
27930}
27931 this.onRemoved = function() {
27932 //console.log('Node removed:', this);
27933 }
27934 this.onPropertyChanged = function(name, value, prev_value) {
27935 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27936 }
27937 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27938 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27939 }
27940 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27941 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27942 }
27943 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27944 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27945 }
27946 this.bgcolor = '#111';
27947 this.color = '#532200';
27948 this.title_text_color = '#000';
27949 this.shape = LiteGraph.CARD_SHAPE;
27950 this.boxcolor = '#A32';
27951}

◆ mtlx_conditional_ifgreatereq_matrix33()

function mtlx_conditional_ifgreatereq_matrix33 ( )

mtlx_conditional_ifgreatereq_matrix33

Library: mtlx. Category: ifgreatereq. Type: matrix33 LiteGraph id: mtlx/conditional/ifgreatereq_matrix33

Definition at line 27701 of file mtlx_stdlib.js.

27701 {
27702 this.nodedef_icon = '';
27703 this.nodedef_name = 'ND_ifgreatereq_matrix33';
27704 this.nodedef_type = 'matrix33';
27705 this.nodedef_node = 'ifgreatereq';
27706 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27707 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33_out_genglsl.png';
27708 this.nodedef_group = 'conditional';
27709 this.addInput('value1','float');
27710 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27711 this.addInput('value2','float');
27712 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27713 this.addInput('in1','matrix33');
27714 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":"","defaultgeomprop":""});
27715 this.addInput('in2','matrix33');
27716 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":"","defaultgeomprop":""});
27717 this.addOutput('out','matrix33');
27718 this.title = 'ifgreatereq_matrix33';
27719 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33";
27720 this.onNodeCreated = function() {
27721 //console.log('Node created:', this);
27722}
27723 this.onRemoved = function() {
27724 //console.log('Node removed:', this);
27725 }
27726 this.onPropertyChanged = function(name, value, prev_value) {
27727 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27728 }
27729 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27730 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27731 }
27732 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27733 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27734 }
27735 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27736 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27737 }
27738 this.bgcolor = '#111';
27739 this.color = '#532200';
27740 this.title_text_color = '#000';
27741 this.shape = LiteGraph.CARD_SHAPE;
27742 this.boxcolor = '#333';
27743}

◆ mtlx_conditional_ifgreatereq_matrix33I()

function mtlx_conditional_ifgreatereq_matrix33I ( )

mtlx_conditional_ifgreatereq_matrix33I

Library: mtlx. Category: ifgreatereq. Type: matrix33 LiteGraph id: mtlx/conditional/ifgreatereq_matrix33I

Definition at line 28227 of file mtlx_stdlib.js.

28227 {
28228 this.nodedef_icon = '';
28229 this.nodedef_name = 'ND_ifgreatereq_matrix33I';
28230 this.nodedef_type = 'matrix33';
28231 this.nodedef_node = 'ifgreatereq';
28232 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28233 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33I_out_genglsl.png';
28234 this.nodedef_group = 'conditional';
28235 this.addInput('value1','integer');
28236 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28237 this.addInput('value2','integer');
28238 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28239 this.addInput('in1','matrix33');
28240 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":"","defaultgeomprop":""});
28241 this.addInput('in2','matrix33');
28242 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":"","defaultgeomprop":""});
28243 this.addOutput('out','matrix33');
28244 this.title = 'ifgreatereq_matrix33';
28245 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix33I";
28246 this.onNodeCreated = function() {
28247 //console.log('Node created:', this);
28248}
28249 this.onRemoved = function() {
28250 //console.log('Node removed:', this);
28251 }
28252 this.onPropertyChanged = function(name, value, prev_value) {
28253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28254 }
28255 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28257 }
28258 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28260 }
28261 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28263 }
28264 this.bgcolor = '#111';
28265 this.color = '#532200';
28266 this.title_text_color = '#000';
28267 this.shape = LiteGraph.CARD_SHAPE;
28268 this.boxcolor = '#333';
28269}

◆ mtlx_conditional_ifgreatereq_matrix44()

function mtlx_conditional_ifgreatereq_matrix44 ( )

mtlx_conditional_ifgreatereq_matrix44

Library: mtlx. Category: ifgreatereq. Type: matrix44 LiteGraph id: mtlx/conditional/ifgreatereq_matrix44

Definition at line 27754 of file mtlx_stdlib.js.

27754 {
27755 this.nodedef_icon = '';
27756 this.nodedef_name = 'ND_ifgreatereq_matrix44';
27757 this.nodedef_type = 'matrix44';
27758 this.nodedef_node = 'ifgreatereq';
27759 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27760 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44_out_genglsl.png';
27761 this.nodedef_group = 'conditional';
27762 this.addInput('value1','float');
27763 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27764 this.addInput('value2','float');
27765 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27766 this.addInput('in1','matrix44');
27767 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":"","defaultgeomprop":""});
27768 this.addInput('in2','matrix44');
27769 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":"","defaultgeomprop":""});
27770 this.addOutput('out','matrix44');
27771 this.title = 'ifgreatereq_matrix44';
27772 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44";
27773 this.onNodeCreated = function() {
27774 //console.log('Node created:', this);
27775}
27776 this.onRemoved = function() {
27777 //console.log('Node removed:', this);
27778 }
27779 this.onPropertyChanged = function(name, value, prev_value) {
27780 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27781 }
27782 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27783 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27784 }
27785 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27786 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27787 }
27788 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27789 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27790 }
27791 this.bgcolor = '#111';
27792 this.color = '#532200';
27793 this.title_text_color = '#000';
27794 this.shape = LiteGraph.CARD_SHAPE;
27795 this.boxcolor = '#444';
27796}

◆ mtlx_conditional_ifgreatereq_matrix44I()

function mtlx_conditional_ifgreatereq_matrix44I ( )

mtlx_conditional_ifgreatereq_matrix44I

Library: mtlx. Category: ifgreatereq. Type: matrix44 LiteGraph id: mtlx/conditional/ifgreatereq_matrix44I

Definition at line 28280 of file mtlx_stdlib.js.

28280 {
28281 this.nodedef_icon = '';
28282 this.nodedef_name = 'ND_ifgreatereq_matrix44I';
28283 this.nodedef_type = 'matrix44';
28284 this.nodedef_node = 'ifgreatereq';
28285 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28286 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44I_out_genglsl.png';
28287 this.nodedef_group = 'conditional';
28288 this.addInput('value1','integer');
28289 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28290 this.addInput('value2','integer');
28291 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28292 this.addInput('in1','matrix44');
28293 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":"","defaultgeomprop":""});
28294 this.addInput('in2','matrix44');
28295 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":"","defaultgeomprop":""});
28296 this.addOutput('out','matrix44');
28297 this.title = 'ifgreatereq_matrix44';
28298 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_matrix44I";
28299 this.onNodeCreated = function() {
28300 //console.log('Node created:', this);
28301}
28302 this.onRemoved = function() {
28303 //console.log('Node removed:', this);
28304 }
28305 this.onPropertyChanged = function(name, value, prev_value) {
28306 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28307 }
28308 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28309 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28310 }
28311 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28312 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28313 }
28314 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28315 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28316 }
28317 this.bgcolor = '#111';
28318 this.color = '#532200';
28319 this.title_text_color = '#000';
28320 this.shape = LiteGraph.CARD_SHAPE;
28321 this.boxcolor = '#444';
28322}

◆ mtlx_conditional_ifgreatereq_vector2()

function mtlx_conditional_ifgreatereq_vector2 ( )

mtlx_conditional_ifgreatereq_vector2

Library: mtlx. Category: ifgreatereq. Type: vector2 LiteGraph id: mtlx/conditional/ifgreatereq_vector2

Definition at line 27542 of file mtlx_stdlib.js.

27542 {
27543 this.nodedef_icon = '';
27544 this.nodedef_name = 'ND_ifgreatereq_vector2';
27545 this.nodedef_type = 'vector2';
27546 this.nodedef_node = 'ifgreatereq';
27547 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27548 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2_out_genglsl.png';
27549 this.nodedef_group = 'conditional';
27550 this.addInput('value1','float');
27551 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27552 this.addInput('value2','float');
27553 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27554 this.addInput('in1','vector2');
27555 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27556 this.addInput('in2','vector2');
27557 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27558 this.addOutput('out','vector2');
27559 this.title = 'ifgreatereq_vector2';
27560 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2";
27561 this.onNodeCreated = function() {
27562 //console.log('Node created:', this);
27563}
27564 this.onRemoved = function() {
27565 //console.log('Node removed:', this);
27566 }
27567 this.onPropertyChanged = function(name, value, prev_value) {
27568 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27569 }
27570 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27571 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27572 }
27573 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27574 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27575 }
27576 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27577 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27578 }
27579 this.bgcolor = '#111';
27580 this.color = '#532200';
27581 this.title_text_color = '#000';
27582 this.shape = LiteGraph.CARD_SHAPE;
27583 this.boxcolor = '#265';
27584}

◆ mtlx_conditional_ifgreatereq_vector2I()

function mtlx_conditional_ifgreatereq_vector2I ( )

mtlx_conditional_ifgreatereq_vector2I

Library: mtlx. Category: ifgreatereq. Type: vector2 LiteGraph id: mtlx/conditional/ifgreatereq_vector2I

Definition at line 28068 of file mtlx_stdlib.js.

28068 {
28069 this.nodedef_icon = '';
28070 this.nodedef_name = 'ND_ifgreatereq_vector2I';
28071 this.nodedef_type = 'vector2';
28072 this.nodedef_node = 'ifgreatereq';
28073 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28074 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2I_out_genglsl.png';
28075 this.nodedef_group = 'conditional';
28076 this.addInput('value1','integer');
28077 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28078 this.addInput('value2','integer');
28079 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28080 this.addInput('in1','vector2');
28081 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28082 this.addInput('in2','vector2');
28083 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28084 this.addOutput('out','vector2');
28085 this.title = 'ifgreatereq_vector2';
28086 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector2I";
28087 this.onNodeCreated = function() {
28088 //console.log('Node created:', this);
28089}
28090 this.onRemoved = function() {
28091 //console.log('Node removed:', this);
28092 }
28093 this.onPropertyChanged = function(name, value, prev_value) {
28094 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28095 }
28096 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28097 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28098 }
28099 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28100 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28101 }
28102 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28103 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28104 }
28105 this.bgcolor = '#111';
28106 this.color = '#532200';
28107 this.title_text_color = '#000';
28108 this.shape = LiteGraph.CARD_SHAPE;
28109 this.boxcolor = '#265';
28110}

◆ mtlx_conditional_ifgreatereq_vector3()

function mtlx_conditional_ifgreatereq_vector3 ( )

mtlx_conditional_ifgreatereq_vector3

Library: mtlx. Category: ifgreatereq. Type: vector3 LiteGraph id: mtlx/conditional/ifgreatereq_vector3

Definition at line 27595 of file mtlx_stdlib.js.

27595 {
27596 this.nodedef_icon = '';
27597 this.nodedef_name = 'ND_ifgreatereq_vector3';
27598 this.nodedef_type = 'vector3';
27599 this.nodedef_node = 'ifgreatereq';
27600 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27601 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3_out_genglsl.png';
27602 this.nodedef_group = 'conditional';
27603 this.addInput('value1','float');
27604 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27605 this.addInput('value2','float');
27606 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27607 this.addInput('in1','vector3');
27608 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27609 this.addInput('in2','vector3');
27610 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27611 this.addOutput('out','vector3');
27612 this.title = 'ifgreatereq_vector3';
27613 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3";
27614 this.onNodeCreated = function() {
27615 //console.log('Node created:', this);
27616}
27617 this.onRemoved = function() {
27618 //console.log('Node removed:', this);
27619 }
27620 this.onPropertyChanged = function(name, value, prev_value) {
27621 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27622 }
27623 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27624 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27625 }
27626 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27627 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27628 }
27629 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27630 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27631 }
27632 this.bgcolor = '#111';
27633 this.color = '#532200';
27634 this.title_text_color = '#000';
27635 this.shape = LiteGraph.CARD_SHAPE;
27636 this.boxcolor = '#465';
27637}

◆ mtlx_conditional_ifgreatereq_vector3I()

function mtlx_conditional_ifgreatereq_vector3I ( )

mtlx_conditional_ifgreatereq_vector3I

Library: mtlx. Category: ifgreatereq. Type: vector3 LiteGraph id: mtlx/conditional/ifgreatereq_vector3I

Definition at line 28121 of file mtlx_stdlib.js.

28121 {
28122 this.nodedef_icon = '';
28123 this.nodedef_name = 'ND_ifgreatereq_vector3I';
28124 this.nodedef_type = 'vector3';
28125 this.nodedef_node = 'ifgreatereq';
28126 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28127 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3I_out_genglsl.png';
28128 this.nodedef_group = 'conditional';
28129 this.addInput('value1','integer');
28130 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28131 this.addInput('value2','integer');
28132 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28133 this.addInput('in1','vector3');
28134 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28135 this.addInput('in2','vector3');
28136 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28137 this.addOutput('out','vector3');
28138 this.title = 'ifgreatereq_vector3';
28139 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector3I";
28140 this.onNodeCreated = function() {
28141 //console.log('Node created:', this);
28142}
28143 this.onRemoved = function() {
28144 //console.log('Node removed:', this);
28145 }
28146 this.onPropertyChanged = function(name, value, prev_value) {
28147 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28148 }
28149 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28150 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28151 }
28152 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28153 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28154 }
28155 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28156 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28157 }
28158 this.bgcolor = '#111';
28159 this.color = '#532200';
28160 this.title_text_color = '#000';
28161 this.shape = LiteGraph.CARD_SHAPE;
28162 this.boxcolor = '#465';
28163}

◆ mtlx_conditional_ifgreatereq_vector4()

function mtlx_conditional_ifgreatereq_vector4 ( )

mtlx_conditional_ifgreatereq_vector4

Library: mtlx. Category: ifgreatereq. Type: vector4 LiteGraph id: mtlx/conditional/ifgreatereq_vector4

Definition at line 27648 of file mtlx_stdlib.js.

27648 {
27649 this.nodedef_icon = '';
27650 this.nodedef_name = 'ND_ifgreatereq_vector4';
27651 this.nodedef_type = 'vector4';
27652 this.nodedef_node = 'ifgreatereq';
27653 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27654 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4_out_genglsl.png';
27655 this.nodedef_group = 'conditional';
27656 this.addInput('value1','float');
27657 this.addProperty('value1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27658 this.addInput('value2','float');
27659 this.addProperty('value2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27660 this.addInput('in1','vector4');
27661 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27662 this.addInput('in2','vector4');
27663 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
27664 this.addOutput('out','vector4');
27665 this.title = 'ifgreatereq_vector4';
27666 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4";
27667 this.onNodeCreated = function() {
27668 //console.log('Node created:', this);
27669}
27670 this.onRemoved = function() {
27671 //console.log('Node removed:', this);
27672 }
27673 this.onPropertyChanged = function(name, value, prev_value) {
27674 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
27675 }
27676 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
27677 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
27678 }
27679 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
27680 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
27681 }
27682 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
27683 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
27684 }
27685 this.bgcolor = '#111';
27686 this.color = '#532200';
27687 this.title_text_color = '#000';
27688 this.shape = LiteGraph.CARD_SHAPE;
27689 this.boxcolor = '#275';
27690}

◆ mtlx_conditional_ifgreatereq_vector4I()

function mtlx_conditional_ifgreatereq_vector4I ( )

mtlx_conditional_ifgreatereq_vector4I

Library: mtlx. Category: ifgreatereq. Type: vector4 LiteGraph id: mtlx/conditional/ifgreatereq_vector4I

Definition at line 28174 of file mtlx_stdlib.js.

28174 {
28175 this.nodedef_icon = '';
28176 this.nodedef_name = 'ND_ifgreatereq_vector4I';
28177 this.nodedef_type = 'vector4';
28178 this.nodedef_node = 'ifgreatereq';
28179 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28180 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4I_out_genglsl.png';
28181 this.nodedef_group = 'conditional';
28182 this.addInput('value1','integer');
28183 this.addProperty('value1', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28184 this.addInput('value2','integer');
28185 this.addProperty('value2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28186 this.addInput('in1','vector4');
28187 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28188 this.addInput('in2','vector4');
28189 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
28190 this.addOutput('out','vector4');
28191 this.title = 'ifgreatereq_vector4';
28192 this.desc = "MaterialX:mtlx/conditional/ifgreatereq_vector4I";
28193 this.onNodeCreated = function() {
28194 //console.log('Node created:', this);
28195}
28196 this.onRemoved = function() {
28197 //console.log('Node removed:', this);
28198 }
28199 this.onPropertyChanged = function(name, value, prev_value) {
28200 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
28201 }
28202 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
28203 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
28204 }
28205 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
28206 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
28207 }
28208 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
28209 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
28210 }
28211 this.bgcolor = '#111';
28212 this.color = '#532200';
28213 this.title_text_color = '#000';
28214 this.shape = LiteGraph.CARD_SHAPE;
28215 this.boxcolor = '#275';
28216}

◆ mtlx_conditional_logical_and()

function mtlx_conditional_logical_and ( )

mtlx_conditional_logical_and

Library: mtlx. Category: heighttonormal. Type: boolean LiteGraph id: mtlx/conditional/logical_and

Definition at line 34560 of file mtlx_stdlib.js.

34560 {
34561 this.nodedef_icon = '';
34562 this.nodedef_name = 'ND_logical_and';
34563 this.nodedef_type = 'boolean';
34564 this.nodedef_node = 'and';
34565 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/and.html';
34566 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_and_out_genglsl.png';
34567 this.nodedef_group = 'conditional';
34568 this.addInput('in1','boolean');
34569 this.addProperty('in1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34570 this.addInput('in2','boolean');
34571 this.addProperty('in2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34572 this.addOutput('out','boolean');
34573 this.title = 'and_boolean';
34574 this.desc = "MaterialX:mtlx/conditional/logical_and";
34575 this.onNodeCreated = function() {
34576 //console.log('Node created:', this);
34577}
34578 this.onRemoved = function() {
34579 //console.log('Node removed:', this);
34580 }
34581 this.onPropertyChanged = function(name, value, prev_value) {
34582 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34583 }
34584 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34585 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34586 }
34587 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34588 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34589 }
34590 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34591 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34592 }
34593 this.bgcolor = '#111';
34594 this.color = '#532200';
34595 this.title_text_color = '#000';
34596 this.shape = LiteGraph.CARD_SHAPE;
34597 this.boxcolor = '#060';
34598}

◆ mtlx_conditional_logical_not()

function mtlx_conditional_logical_not ( )

mtlx_conditional_logical_not

Library: mtlx. Category: xor. Type: boolean LiteGraph id: mtlx/conditional/logical_not

Definition at line 34707 of file mtlx_stdlib.js.

34707 {
34708 this.nodedef_icon = '';
34709 this.nodedef_name = 'ND_logical_not';
34710 this.nodedef_type = 'boolean';
34711 this.nodedef_node = 'not';
34712 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/not.html';
34713 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_not_out_genglsl.png';
34714 this.nodedef_group = 'conditional';
34715 this.addInput('in','boolean');
34716 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34717 this.addOutput('out','boolean');
34718 this.title = 'not_boolean';
34719 this.desc = "MaterialX:mtlx/conditional/logical_not";
34720 this.onNodeCreated = function() {
34721 //console.log('Node created:', this);
34722}
34723 this.onRemoved = function() {
34724 //console.log('Node removed:', this);
34725 }
34726 this.onPropertyChanged = function(name, value, prev_value) {
34727 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34728 }
34729 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34730 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34731 }
34732 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34733 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34734 }
34735 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34736 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34737 }
34738 this.bgcolor = '#111';
34739 this.color = '#532200';
34740 this.title_text_color = '#000';
34741 this.shape = LiteGraph.CARD_SHAPE;
34742 this.boxcolor = '#060';
34743}

◆ mtlx_conditional_logical_or()

function mtlx_conditional_logical_or ( )

mtlx_conditional_logical_or

Library: mtlx. Category: and. Type: boolean LiteGraph id: mtlx/conditional/logical_or

Definition at line 34609 of file mtlx_stdlib.js.

34609 {
34610 this.nodedef_icon = '';
34611 this.nodedef_name = 'ND_logical_or';
34612 this.nodedef_type = 'boolean';
34613 this.nodedef_node = 'or';
34614 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/or.html';
34615 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_or_out_genglsl.png';
34616 this.nodedef_group = 'conditional';
34617 this.addInput('in1','boolean');
34618 this.addProperty('in1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34619 this.addInput('in2','boolean');
34620 this.addProperty('in2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34621 this.addOutput('out','boolean');
34622 this.title = 'or_boolean';
34623 this.desc = "MaterialX:mtlx/conditional/logical_or";
34624 this.onNodeCreated = function() {
34625 //console.log('Node created:', this);
34626}
34627 this.onRemoved = function() {
34628 //console.log('Node removed:', this);
34629 }
34630 this.onPropertyChanged = function(name, value, prev_value) {
34631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34632 }
34633 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34635 }
34636 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34638 }
34639 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34641 }
34642 this.bgcolor = '#111';
34643 this.color = '#532200';
34644 this.title_text_color = '#000';
34645 this.shape = LiteGraph.CARD_SHAPE;
34646 this.boxcolor = '#060';
34647}

◆ mtlx_conditional_logical_xor()

function mtlx_conditional_logical_xor ( )

mtlx_conditional_logical_xor

Library: mtlx. Category: or. Type: boolean LiteGraph id: mtlx/conditional/logical_xor

Definition at line 34658 of file mtlx_stdlib.js.

34658 {
34659 this.nodedef_icon = '';
34660 this.nodedef_name = 'ND_logical_xor';
34661 this.nodedef_type = 'boolean';
34662 this.nodedef_node = 'xor';
34663 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/xor.html';
34664 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_xor_out_genglsl.png';
34665 this.nodedef_group = 'conditional';
34666 this.addInput('in1','boolean');
34667 this.addProperty('in1', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34668 this.addInput('in2','boolean');
34669 this.addProperty('in2', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34670 this.addOutput('out','boolean');
34671 this.title = 'xor_boolean';
34672 this.desc = "MaterialX:mtlx/conditional/logical_xor";
34673 this.onNodeCreated = function() {
34674 //console.log('Node created:', this);
34675}
34676 this.onRemoved = function() {
34677 //console.log('Node removed:', this);
34678 }
34679 this.onPropertyChanged = function(name, value, prev_value) {
34680 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34681 }
34682 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34683 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34684 }
34685 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34686 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34687 }
34688 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34689 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34690 }
34691 this.bgcolor = '#111';
34692 this.color = '#532200';
34693 this.title_text_color = '#000';
34694 this.shape = LiteGraph.CARD_SHAPE;
34695 this.boxcolor = '#060';
34696}

◆ mtlx_conditional_switch_color3()

function mtlx_conditional_switch_color3 ( )

mtlx_conditional_switch_color3

Library: mtlx. Category: switch. Type: color3 LiteGraph id: mtlx/conditional/switch_color3

Definition at line 30027 of file mtlx_stdlib.js.

30027 {
30028 this.nodedef_icon = '';
30029 this.nodedef_name = 'ND_switch_color3';
30030 this.nodedef_type = 'color3';
30031 this.nodedef_node = 'switch';
30032 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30033 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color3_out_genglsl.png';
30034 this.nodedef_group = 'conditional';
30035 this.addInput('in1','color3');
30036 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30037 this.addInput('in2','color3');
30038 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30039 this.addInput('in3','color3');
30040 this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30041 this.addInput('in4','color3');
30042 this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30043 this.addInput('in5','color3');
30044 this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30045 this.addInput('in6','color3');
30046 this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30047 this.addInput('in7','color3');
30048 this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30049 this.addInput('in8','color3');
30050 this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30051 this.addInput('in9','color3');
30052 this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30053 this.addInput('in10','color3');
30054 this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30055 this.addInput('which','float');
30056 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30057 this.addOutput('out','color3');
30058 this.title = 'switch_color3';
30059 this.desc = "MaterialX:mtlx/conditional/switch_color3";
30060 this.onNodeCreated = function() {
30061 //console.log('Node created:', this);
30062}
30063 this.onRemoved = function() {
30064 //console.log('Node removed:', this);
30065 }
30066 this.onPropertyChanged = function(name, value, prev_value) {
30067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30068 }
30069 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30071 }
30072 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30074 }
30075 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30077 }
30078 this.bgcolor = '#111';
30079 this.color = '#532200';
30080 this.title_text_color = '#000';
30081 this.shape = LiteGraph.CARD_SHAPE;
30082 this.boxcolor = '#37A';
30083}

◆ mtlx_conditional_switch_color3I()

function mtlx_conditional_switch_color3I ( )

mtlx_conditional_switch_color3I

Library: mtlx. Category: switch. Type: color3 LiteGraph id: mtlx/conditional/switch_color3I

Definition at line 30563 of file mtlx_stdlib.js.

30563 {
30564 this.nodedef_icon = '';
30565 this.nodedef_name = 'ND_switch_color3I';
30566 this.nodedef_type = 'color3';
30567 this.nodedef_node = 'switch';
30568 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30569 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color3I_out_genglsl.png';
30570 this.nodedef_group = 'conditional';
30571 this.addInput('in1','color3');
30572 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30573 this.addInput('in2','color3');
30574 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30575 this.addInput('in3','color3');
30576 this.addProperty('in3', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30577 this.addInput('in4','color3');
30578 this.addProperty('in4', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30579 this.addInput('in5','color3');
30580 this.addProperty('in5', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30581 this.addInput('in6','color3');
30582 this.addProperty('in6', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30583 this.addInput('in7','color3');
30584 this.addProperty('in7', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30585 this.addInput('in8','color3');
30586 this.addProperty('in8', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30587 this.addInput('in9','color3');
30588 this.addProperty('in9', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30589 this.addInput('in10','color3');
30590 this.addProperty('in10', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30591 this.addInput('which','integer');
30592 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30593 this.addOutput('out','color3');
30594 this.title = 'switch_color3';
30595 this.desc = "MaterialX:mtlx/conditional/switch_color3I";
30596 this.onNodeCreated = function() {
30597 //console.log('Node created:', this);
30598}
30599 this.onRemoved = function() {
30600 //console.log('Node removed:', this);
30601 }
30602 this.onPropertyChanged = function(name, value, prev_value) {
30603 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30604 }
30605 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30606 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30607 }
30608 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30609 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30610 }
30611 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30612 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30613 }
30614 this.bgcolor = '#111';
30615 this.color = '#532200';
30616 this.title_text_color = '#000';
30617 this.shape = LiteGraph.CARD_SHAPE;
30618 this.boxcolor = '#37A';
30619}

◆ mtlx_conditional_switch_color4()

function mtlx_conditional_switch_color4 ( )

mtlx_conditional_switch_color4

Library: mtlx. Category: switch. Type: color4 LiteGraph id: mtlx/conditional/switch_color4

Definition at line 30094 of file mtlx_stdlib.js.

30094 {
30095 this.nodedef_icon = '';
30096 this.nodedef_name = 'ND_switch_color4';
30097 this.nodedef_type = 'color4';
30098 this.nodedef_node = 'switch';
30099 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30100 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color4_out_genglsl.png';
30101 this.nodedef_group = 'conditional';
30102 this.addInput('in1','color4');
30103 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30104 this.addInput('in2','color4');
30105 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30106 this.addInput('in3','color4');
30107 this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30108 this.addInput('in4','color4');
30109 this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30110 this.addInput('in5','color4');
30111 this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30112 this.addInput('in6','color4');
30113 this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30114 this.addInput('in7','color4');
30115 this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30116 this.addInput('in8','color4');
30117 this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30118 this.addInput('in9','color4');
30119 this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30120 this.addInput('in10','color4');
30121 this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30122 this.addInput('which','float');
30123 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30124 this.addOutput('out','color4');
30125 this.title = 'switch_color4';
30126 this.desc = "MaterialX:mtlx/conditional/switch_color4";
30127 this.onNodeCreated = function() {
30128 //console.log('Node created:', this);
30129}
30130 this.onRemoved = function() {
30131 //console.log('Node removed:', this);
30132 }
30133 this.onPropertyChanged = function(name, value, prev_value) {
30134 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30135 }
30136 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30137 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30138 }
30139 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30140 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30141 }
30142 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30143 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30144 }
30145 this.bgcolor = '#111';
30146 this.color = '#532200';
30147 this.title_text_color = '#000';
30148 this.shape = LiteGraph.CARD_SHAPE;
30149 this.boxcolor = '#69A';
30150}

◆ mtlx_conditional_switch_color4I()

function mtlx_conditional_switch_color4I ( )

mtlx_conditional_switch_color4I

Library: mtlx. Category: switch. Type: color4 LiteGraph id: mtlx/conditional/switch_color4I

Definition at line 30630 of file mtlx_stdlib.js.

30630 {
30631 this.nodedef_icon = '';
30632 this.nodedef_name = 'ND_switch_color4I';
30633 this.nodedef_type = 'color4';
30634 this.nodedef_node = 'switch';
30635 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30636 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color4I_out_genglsl.png';
30637 this.nodedef_group = 'conditional';
30638 this.addInput('in1','color4');
30639 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30640 this.addInput('in2','color4');
30641 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30642 this.addInput('in3','color4');
30643 this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30644 this.addInput('in4','color4');
30645 this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30646 this.addInput('in5','color4');
30647 this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30648 this.addInput('in6','color4');
30649 this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30650 this.addInput('in7','color4');
30651 this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30652 this.addInput('in8','color4');
30653 this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30654 this.addInput('in9','color4');
30655 this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30656 this.addInput('in10','color4');
30657 this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30658 this.addInput('which','integer');
30659 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30660 this.addOutput('out','color4');
30661 this.title = 'switch_color4';
30662 this.desc = "MaterialX:mtlx/conditional/switch_color4I";
30663 this.onNodeCreated = function() {
30664 //console.log('Node created:', this);
30665}
30666 this.onRemoved = function() {
30667 //console.log('Node removed:', this);
30668 }
30669 this.onPropertyChanged = function(name, value, prev_value) {
30670 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30671 }
30672 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30673 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30674 }
30675 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30676 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30677 }
30678 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30679 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30680 }
30681 this.bgcolor = '#111';
30682 this.color = '#532200';
30683 this.title_text_color = '#000';
30684 this.shape = LiteGraph.CARD_SHAPE;
30685 this.boxcolor = '#69A';
30686}

◆ mtlx_conditional_switch_float()

function mtlx_conditional_switch_float ( )

mtlx_conditional_switch_float

Library: mtlx. Category: ifequal. Type: float LiteGraph id: mtlx/conditional/switch_float

Definition at line 29960 of file mtlx_stdlib.js.

29960 {
29961 this.nodedef_icon = '';
29962 this.nodedef_name = 'ND_switch_float';
29963 this.nodedef_type = 'float';
29964 this.nodedef_node = 'switch';
29965 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
29966 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_float_out_genglsl.png';
29967 this.nodedef_group = 'conditional';
29968 this.addInput('in1','float');
29969 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29970 this.addInput('in2','float');
29971 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29972 this.addInput('in3','float');
29973 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29974 this.addInput('in4','float');
29975 this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29976 this.addInput('in5','float');
29977 this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29978 this.addInput('in6','float');
29979 this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29980 this.addInput('in7','float');
29981 this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29982 this.addInput('in8','float');
29983 this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29984 this.addInput('in9','float');
29985 this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29986 this.addInput('in10','float');
29987 this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29988 this.addInput('which','float');
29989 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
29990 this.addOutput('out','float');
29991 this.title = 'switch_float';
29992 this.desc = "MaterialX:mtlx/conditional/switch_float";
29993 this.onNodeCreated = function() {
29994 //console.log('Node created:', this);
29995}
29996 this.onRemoved = function() {
29997 //console.log('Node removed:', this);
29998 }
29999 this.onPropertyChanged = function(name, value, prev_value) {
30000 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30001 }
30002 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30003 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30004 }
30005 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30006 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30007 }
30008 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30009 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30010 }
30011 this.bgcolor = '#111';
30012 this.color = '#532200';
30013 this.title_text_color = '#000';
30014 this.shape = LiteGraph.CARD_SHAPE;
30015 this.boxcolor = '#161';
30016}

◆ mtlx_conditional_switch_floatI()

function mtlx_conditional_switch_floatI ( )

mtlx_conditional_switch_floatI

Library: mtlx. Category: switch. Type: float LiteGraph id: mtlx/conditional/switch_floatI

Definition at line 30496 of file mtlx_stdlib.js.

30496 {
30497 this.nodedef_icon = '';
30498 this.nodedef_name = 'ND_switch_floatI';
30499 this.nodedef_type = 'float';
30500 this.nodedef_node = 'switch';
30501 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30502 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_floatI_out_genglsl.png';
30503 this.nodedef_group = 'conditional';
30504 this.addInput('in1','float');
30505 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30506 this.addInput('in2','float');
30507 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30508 this.addInput('in3','float');
30509 this.addProperty('in3', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30510 this.addInput('in4','float');
30511 this.addProperty('in4', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30512 this.addInput('in5','float');
30513 this.addProperty('in5', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30514 this.addInput('in6','float');
30515 this.addProperty('in6', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30516 this.addInput('in7','float');
30517 this.addProperty('in7', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30518 this.addInput('in8','float');
30519 this.addProperty('in8', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30520 this.addInput('in9','float');
30521 this.addProperty('in9', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30522 this.addInput('in10','float');
30523 this.addProperty('in10', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30524 this.addInput('which','integer');
30525 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30526 this.addOutput('out','float');
30527 this.title = 'switch_float';
30528 this.desc = "MaterialX:mtlx/conditional/switch_floatI";
30529 this.onNodeCreated = function() {
30530 //console.log('Node created:', this);
30531}
30532 this.onRemoved = function() {
30533 //console.log('Node removed:', this);
30534 }
30535 this.onPropertyChanged = function(name, value, prev_value) {
30536 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30537 }
30538 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30539 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30540 }
30541 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30542 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30543 }
30544 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30545 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30546 }
30547 this.bgcolor = '#111';
30548 this.color = '#532200';
30549 this.title_text_color = '#000';
30550 this.shape = LiteGraph.CARD_SHAPE;
30551 this.boxcolor = '#161';
30552}

◆ mtlx_conditional_switch_matrix33()

function mtlx_conditional_switch_matrix33 ( )

mtlx_conditional_switch_matrix33

Library: mtlx. Category: switch. Type: matrix33 LiteGraph id: mtlx/conditional/switch_matrix33

Definition at line 30362 of file mtlx_stdlib.js.

30362 {
30363 this.nodedef_icon = '';
30364 this.nodedef_name = 'ND_switch_matrix33';
30365 this.nodedef_type = 'matrix33';
30366 this.nodedef_node = 'switch';
30367 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30368 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix33_out_genglsl.png';
30369 this.nodedef_group = 'conditional';
30370 this.addInput('in1','matrix33');
30371 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":"","defaultgeomprop":""});
30372 this.addInput('in2','matrix33');
30373 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":"","defaultgeomprop":""});
30374 this.addInput('in3','matrix33');
30375 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":"","defaultgeomprop":""});
30376 this.addInput('in4','matrix33');
30377 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":"","defaultgeomprop":""});
30378 this.addInput('in5','matrix33');
30379 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":"","defaultgeomprop":""});
30380 this.addInput('in6','matrix33');
30381 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":"","defaultgeomprop":""});
30382 this.addInput('in7','matrix33');
30383 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":"","defaultgeomprop":""});
30384 this.addInput('in8','matrix33');
30385 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":"","defaultgeomprop":""});
30386 this.addInput('in9','matrix33');
30387 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":"","defaultgeomprop":""});
30388 this.addInput('in10','matrix33');
30389 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":"","defaultgeomprop":""});
30390 this.addInput('which','float');
30391 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30392 this.addOutput('out','matrix33');
30393 this.title = 'switch_matrix33';
30394 this.desc = "MaterialX:mtlx/conditional/switch_matrix33";
30395 this.onNodeCreated = function() {
30396 //console.log('Node created:', this);
30397}
30398 this.onRemoved = function() {
30399 //console.log('Node removed:', this);
30400 }
30401 this.onPropertyChanged = function(name, value, prev_value) {
30402 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30403 }
30404 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30405 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30406 }
30407 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30408 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30409 }
30410 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30411 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30412 }
30413 this.bgcolor = '#111';
30414 this.color = '#532200';
30415 this.title_text_color = '#000';
30416 this.shape = LiteGraph.CARD_SHAPE;
30417 this.boxcolor = '#333';
30418}

◆ mtlx_conditional_switch_matrix33I()

function mtlx_conditional_switch_matrix33I ( )

mtlx_conditional_switch_matrix33I

Library: mtlx. Category: switch. Type: matrix33 LiteGraph id: mtlx/conditional/switch_matrix33I

Definition at line 30898 of file mtlx_stdlib.js.

30898 {
30899 this.nodedef_icon = '';
30900 this.nodedef_name = 'ND_switch_matrix33I';
30901 this.nodedef_type = 'matrix33';
30902 this.nodedef_node = 'switch';
30903 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30904 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix33I_out_genglsl.png';
30905 this.nodedef_group = 'conditional';
30906 this.addInput('in1','matrix33');
30907 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":"","defaultgeomprop":""});
30908 this.addInput('in2','matrix33');
30909 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":"","defaultgeomprop":""});
30910 this.addInput('in3','matrix33');
30911 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":"","defaultgeomprop":""});
30912 this.addInput('in4','matrix33');
30913 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":"","defaultgeomprop":""});
30914 this.addInput('in5','matrix33');
30915 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":"","defaultgeomprop":""});
30916 this.addInput('in6','matrix33');
30917 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":"","defaultgeomprop":""});
30918 this.addInput('in7','matrix33');
30919 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":"","defaultgeomprop":""});
30920 this.addInput('in8','matrix33');
30921 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":"","defaultgeomprop":""});
30922 this.addInput('in9','matrix33');
30923 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":"","defaultgeomprop":""});
30924 this.addInput('in10','matrix33');
30925 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":"","defaultgeomprop":""});
30926 this.addInput('which','integer');
30927 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30928 this.addOutput('out','matrix33');
30929 this.title = 'switch_matrix33';
30930 this.desc = "MaterialX:mtlx/conditional/switch_matrix33I";
30931 this.onNodeCreated = function() {
30932 //console.log('Node created:', this);
30933}
30934 this.onRemoved = function() {
30935 //console.log('Node removed:', this);
30936 }
30937 this.onPropertyChanged = function(name, value, prev_value) {
30938 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30939 }
30940 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30941 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30942 }
30943 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30944 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30945 }
30946 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30947 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30948 }
30949 this.bgcolor = '#111';
30950 this.color = '#532200';
30951 this.title_text_color = '#000';
30952 this.shape = LiteGraph.CARD_SHAPE;
30953 this.boxcolor = '#333';
30954}

◆ mtlx_conditional_switch_matrix44()

function mtlx_conditional_switch_matrix44 ( )

mtlx_conditional_switch_matrix44

Library: mtlx. Category: switch. Type: matrix44 LiteGraph id: mtlx/conditional/switch_matrix44

Definition at line 30429 of file mtlx_stdlib.js.

30429 {
30430 this.nodedef_icon = '';
30431 this.nodedef_name = 'ND_switch_matrix44';
30432 this.nodedef_type = 'matrix44';
30433 this.nodedef_node = 'switch';
30434 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30435 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix44_out_genglsl.png';
30436 this.nodedef_group = 'conditional';
30437 this.addInput('in1','matrix44');
30438 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":"","defaultgeomprop":""});
30439 this.addInput('in2','matrix44');
30440 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":"","defaultgeomprop":""});
30441 this.addInput('in3','matrix44');
30442 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":"","defaultgeomprop":""});
30443 this.addInput('in4','matrix44');
30444 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":"","defaultgeomprop":""});
30445 this.addInput('in5','matrix44');
30446 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":"","defaultgeomprop":""});
30447 this.addInput('in6','matrix44');
30448 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":"","defaultgeomprop":""});
30449 this.addInput('in7','matrix44');
30450 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":"","defaultgeomprop":""});
30451 this.addInput('in8','matrix44');
30452 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":"","defaultgeomprop":""});
30453 this.addInput('in9','matrix44');
30454 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":"","defaultgeomprop":""});
30455 this.addInput('in10','matrix44');
30456 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":"","defaultgeomprop":""});
30457 this.addInput('which','float');
30458 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30459 this.addOutput('out','matrix44');
30460 this.title = 'switch_matrix44';
30461 this.desc = "MaterialX:mtlx/conditional/switch_matrix44";
30462 this.onNodeCreated = function() {
30463 //console.log('Node created:', this);
30464}
30465 this.onRemoved = function() {
30466 //console.log('Node removed:', this);
30467 }
30468 this.onPropertyChanged = function(name, value, prev_value) {
30469 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30470 }
30471 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30472 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30473 }
30474 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30475 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30476 }
30477 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30478 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30479 }
30480 this.bgcolor = '#111';
30481 this.color = '#532200';
30482 this.title_text_color = '#000';
30483 this.shape = LiteGraph.CARD_SHAPE;
30484 this.boxcolor = '#444';
30485}

◆ mtlx_conditional_switch_matrix44I()

function mtlx_conditional_switch_matrix44I ( )

mtlx_conditional_switch_matrix44I

Library: mtlx. Category: switch. Type: matrix44 LiteGraph id: mtlx/conditional/switch_matrix44I

Definition at line 30965 of file mtlx_stdlib.js.

30965 {
30966 this.nodedef_icon = '';
30967 this.nodedef_name = 'ND_switch_matrix44I';
30968 this.nodedef_type = 'matrix44';
30969 this.nodedef_node = 'switch';
30970 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30971 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix44I_out_genglsl.png';
30972 this.nodedef_group = 'conditional';
30973 this.addInput('in1','matrix44');
30974 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":"","defaultgeomprop":""});
30975 this.addInput('in2','matrix44');
30976 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":"","defaultgeomprop":""});
30977 this.addInput('in3','matrix44');
30978 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":"","defaultgeomprop":""});
30979 this.addInput('in4','matrix44');
30980 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":"","defaultgeomprop":""});
30981 this.addInput('in5','matrix44');
30982 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":"","defaultgeomprop":""});
30983 this.addInput('in6','matrix44');
30984 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":"","defaultgeomprop":""});
30985 this.addInput('in7','matrix44');
30986 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":"","defaultgeomprop":""});
30987 this.addInput('in8','matrix44');
30988 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":"","defaultgeomprop":""});
30989 this.addInput('in9','matrix44');
30990 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":"","defaultgeomprop":""});
30991 this.addInput('in10','matrix44');
30992 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":"","defaultgeomprop":""});
30993 this.addInput('which','integer');
30994 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30995 this.addOutput('out','matrix44');
30996 this.title = 'switch_matrix44';
30997 this.desc = "MaterialX:mtlx/conditional/switch_matrix44I";
30998 this.onNodeCreated = function() {
30999 //console.log('Node created:', this);
31000}
31001 this.onRemoved = function() {
31002 //console.log('Node removed:', this);
31003 }
31004 this.onPropertyChanged = function(name, value, prev_value) {
31005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31006 }
31007 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
31008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
31009 }
31010 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
31011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
31012 }
31013 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
31014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
31015 }
31016 this.bgcolor = '#111';
31017 this.color = '#532200';
31018 this.title_text_color = '#000';
31019 this.shape = LiteGraph.CARD_SHAPE;
31020 this.boxcolor = '#444';
31021}

◆ mtlx_conditional_switch_vector2()

function mtlx_conditional_switch_vector2 ( )

mtlx_conditional_switch_vector2

Library: mtlx. Category: switch. Type: vector2 LiteGraph id: mtlx/conditional/switch_vector2

Definition at line 30161 of file mtlx_stdlib.js.

30161 {
30162 this.nodedef_icon = '';
30163 this.nodedef_name = 'ND_switch_vector2';
30164 this.nodedef_type = 'vector2';
30165 this.nodedef_node = 'switch';
30166 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30167 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector2_out_genglsl.png';
30168 this.nodedef_group = 'conditional';
30169 this.addInput('in1','vector2');
30170 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30171 this.addInput('in2','vector2');
30172 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30173 this.addInput('in3','vector2');
30174 this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30175 this.addInput('in4','vector2');
30176 this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30177 this.addInput('in5','vector2');
30178 this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30179 this.addInput('in6','vector2');
30180 this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30181 this.addInput('in7','vector2');
30182 this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30183 this.addInput('in8','vector2');
30184 this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30185 this.addInput('in9','vector2');
30186 this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30187 this.addInput('in10','vector2');
30188 this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30189 this.addInput('which','float');
30190 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30191 this.addOutput('out','vector2');
30192 this.title = 'switch_vector2';
30193 this.desc = "MaterialX:mtlx/conditional/switch_vector2";
30194 this.onNodeCreated = function() {
30195 //console.log('Node created:', this);
30196}
30197 this.onRemoved = function() {
30198 //console.log('Node removed:', this);
30199 }
30200 this.onPropertyChanged = function(name, value, prev_value) {
30201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30202 }
30203 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30205 }
30206 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30208 }
30209 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30211 }
30212 this.bgcolor = '#111';
30213 this.color = '#532200';
30214 this.title_text_color = '#000';
30215 this.shape = LiteGraph.CARD_SHAPE;
30216 this.boxcolor = '#265';
30217}

◆ mtlx_conditional_switch_vector2I()

function mtlx_conditional_switch_vector2I ( )

mtlx_conditional_switch_vector2I

Library: mtlx. Category: switch. Type: vector2 LiteGraph id: mtlx/conditional/switch_vector2I

Definition at line 30697 of file mtlx_stdlib.js.

30697 {
30698 this.nodedef_icon = '';
30699 this.nodedef_name = 'ND_switch_vector2I';
30700 this.nodedef_type = 'vector2';
30701 this.nodedef_node = 'switch';
30702 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30703 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector2I_out_genglsl.png';
30704 this.nodedef_group = 'conditional';
30705 this.addInput('in1','vector2');
30706 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30707 this.addInput('in2','vector2');
30708 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30709 this.addInput('in3','vector2');
30710 this.addProperty('in3', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30711 this.addInput('in4','vector2');
30712 this.addProperty('in4', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30713 this.addInput('in5','vector2');
30714 this.addProperty('in5', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30715 this.addInput('in6','vector2');
30716 this.addProperty('in6', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30717 this.addInput('in7','vector2');
30718 this.addProperty('in7', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30719 this.addInput('in8','vector2');
30720 this.addProperty('in8', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30721 this.addInput('in9','vector2');
30722 this.addProperty('in9', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30723 this.addInput('in10','vector2');
30724 this.addProperty('in10', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30725 this.addInput('which','integer');
30726 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30727 this.addOutput('out','vector2');
30728 this.title = 'switch_vector2';
30729 this.desc = "MaterialX:mtlx/conditional/switch_vector2I";
30730 this.onNodeCreated = function() {
30731 //console.log('Node created:', this);
30732}
30733 this.onRemoved = function() {
30734 //console.log('Node removed:', this);
30735 }
30736 this.onPropertyChanged = function(name, value, prev_value) {
30737 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30738 }
30739 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30740 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30741 }
30742 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30743 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30744 }
30745 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30746 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30747 }
30748 this.bgcolor = '#111';
30749 this.color = '#532200';
30750 this.title_text_color = '#000';
30751 this.shape = LiteGraph.CARD_SHAPE;
30752 this.boxcolor = '#265';
30753}

◆ mtlx_conditional_switch_vector3()

function mtlx_conditional_switch_vector3 ( )

mtlx_conditional_switch_vector3

Library: mtlx. Category: switch. Type: vector3 LiteGraph id: mtlx/conditional/switch_vector3

Definition at line 30228 of file mtlx_stdlib.js.

30228 {
30229 this.nodedef_icon = '';
30230 this.nodedef_name = 'ND_switch_vector3';
30231 this.nodedef_type = 'vector3';
30232 this.nodedef_node = 'switch';
30233 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30234 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector3_out_genglsl.png';
30235 this.nodedef_group = 'conditional';
30236 this.addInput('in1','vector3');
30237 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30238 this.addInput('in2','vector3');
30239 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30240 this.addInput('in3','vector3');
30241 this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30242 this.addInput('in4','vector3');
30243 this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30244 this.addInput('in5','vector3');
30245 this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30246 this.addInput('in6','vector3');
30247 this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30248 this.addInput('in7','vector3');
30249 this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30250 this.addInput('in8','vector3');
30251 this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30252 this.addInput('in9','vector3');
30253 this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30254 this.addInput('in10','vector3');
30255 this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30256 this.addInput('which','float');
30257 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30258 this.addOutput('out','vector3');
30259 this.title = 'switch_vector3';
30260 this.desc = "MaterialX:mtlx/conditional/switch_vector3";
30261 this.onNodeCreated = function() {
30262 //console.log('Node created:', this);
30263}
30264 this.onRemoved = function() {
30265 //console.log('Node removed:', this);
30266 }
30267 this.onPropertyChanged = function(name, value, prev_value) {
30268 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30269 }
30270 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30271 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30272 }
30273 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30274 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30275 }
30276 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30277 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30278 }
30279 this.bgcolor = '#111';
30280 this.color = '#532200';
30281 this.title_text_color = '#000';
30282 this.shape = LiteGraph.CARD_SHAPE;
30283 this.boxcolor = '#465';
30284}

◆ mtlx_conditional_switch_vector3I()

function mtlx_conditional_switch_vector3I ( )

mtlx_conditional_switch_vector3I

Library: mtlx. Category: switch. Type: vector3 LiteGraph id: mtlx/conditional/switch_vector3I

Definition at line 30764 of file mtlx_stdlib.js.

30764 {
30765 this.nodedef_icon = '';
30766 this.nodedef_name = 'ND_switch_vector3I';
30767 this.nodedef_type = 'vector3';
30768 this.nodedef_node = 'switch';
30769 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30770 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector3I_out_genglsl.png';
30771 this.nodedef_group = 'conditional';
30772 this.addInput('in1','vector3');
30773 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30774 this.addInput('in2','vector3');
30775 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30776 this.addInput('in3','vector3');
30777 this.addProperty('in3', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30778 this.addInput('in4','vector3');
30779 this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30780 this.addInput('in5','vector3');
30781 this.addProperty('in5', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30782 this.addInput('in6','vector3');
30783 this.addProperty('in6', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30784 this.addInput('in7','vector3');
30785 this.addProperty('in7', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30786 this.addInput('in8','vector3');
30787 this.addProperty('in8', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30788 this.addInput('in9','vector3');
30789 this.addProperty('in9', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30790 this.addInput('in10','vector3');
30791 this.addProperty('in10', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30792 this.addInput('which','integer');
30793 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30794 this.addOutput('out','vector3');
30795 this.title = 'switch_vector3';
30796 this.desc = "MaterialX:mtlx/conditional/switch_vector3I";
30797 this.onNodeCreated = function() {
30798 //console.log('Node created:', this);
30799}
30800 this.onRemoved = function() {
30801 //console.log('Node removed:', this);
30802 }
30803 this.onPropertyChanged = function(name, value, prev_value) {
30804 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30805 }
30806 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30807 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30808 }
30809 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30810 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30811 }
30812 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30813 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30814 }
30815 this.bgcolor = '#111';
30816 this.color = '#532200';
30817 this.title_text_color = '#000';
30818 this.shape = LiteGraph.CARD_SHAPE;
30819 this.boxcolor = '#465';
30820}

◆ mtlx_conditional_switch_vector4()

function mtlx_conditional_switch_vector4 ( )

mtlx_conditional_switch_vector4

Library: mtlx. Category: switch. Type: vector4 LiteGraph id: mtlx/conditional/switch_vector4

Definition at line 30295 of file mtlx_stdlib.js.

30295 {
30296 this.nodedef_icon = '';
30297 this.nodedef_name = 'ND_switch_vector4';
30298 this.nodedef_type = 'vector4';
30299 this.nodedef_node = 'switch';
30300 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30301 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector4_out_genglsl.png';
30302 this.nodedef_group = 'conditional';
30303 this.addInput('in1','vector4');
30304 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30305 this.addInput('in2','vector4');
30306 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30307 this.addInput('in3','vector4');
30308 this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30309 this.addInput('in4','vector4');
30310 this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30311 this.addInput('in5','vector4');
30312 this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30313 this.addInput('in6','vector4');
30314 this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30315 this.addInput('in7','vector4');
30316 this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30317 this.addInput('in8','vector4');
30318 this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30319 this.addInput('in9','vector4');
30320 this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30321 this.addInput('in10','vector4');
30322 this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30323 this.addInput('which','float');
30324 this.addProperty('which', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30325 this.addOutput('out','vector4');
30326 this.title = 'switch_vector4';
30327 this.desc = "MaterialX:mtlx/conditional/switch_vector4";
30328 this.onNodeCreated = function() {
30329 //console.log('Node created:', this);
30330}
30331 this.onRemoved = function() {
30332 //console.log('Node removed:', this);
30333 }
30334 this.onPropertyChanged = function(name, value, prev_value) {
30335 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30336 }
30337 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30338 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30339 }
30340 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30341 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30342 }
30343 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30344 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30345 }
30346 this.bgcolor = '#111';
30347 this.color = '#532200';
30348 this.title_text_color = '#000';
30349 this.shape = LiteGraph.CARD_SHAPE;
30350 this.boxcolor = '#275';
30351}

◆ mtlx_conditional_switch_vector4I()

function mtlx_conditional_switch_vector4I ( )

mtlx_conditional_switch_vector4I

Library: mtlx. Category: switch. Type: vector4 LiteGraph id: mtlx/conditional/switch_vector4I

Definition at line 30831 of file mtlx_stdlib.js.

30831 {
30832 this.nodedef_icon = '';
30833 this.nodedef_name = 'ND_switch_vector4I';
30834 this.nodedef_type = 'vector4';
30835 this.nodedef_node = 'switch';
30836 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30837 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector4I_out_genglsl.png';
30838 this.nodedef_group = 'conditional';
30839 this.addInput('in1','vector4');
30840 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30841 this.addInput('in2','vector4');
30842 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30843 this.addInput('in3','vector4');
30844 this.addProperty('in3', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30845 this.addInput('in4','vector4');
30846 this.addProperty('in4', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30847 this.addInput('in5','vector4');
30848 this.addProperty('in5', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30849 this.addInput('in6','vector4');
30850 this.addProperty('in6', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30851 this.addInput('in7','vector4');
30852 this.addProperty('in7', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30853 this.addInput('in8','vector4');
30854 this.addProperty('in8', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30855 this.addInput('in9','vector4');
30856 this.addProperty('in9', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30857 this.addInput('in10','vector4');
30858 this.addProperty('in10', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30859 this.addInput('which','integer');
30860 this.addProperty('which', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
30861 this.addOutput('out','vector4');
30862 this.title = 'switch_vector4';
30863 this.desc = "MaterialX:mtlx/conditional/switch_vector4I";
30864 this.onNodeCreated = function() {
30865 //console.log('Node created:', this);
30866}
30867 this.onRemoved = function() {
30868 //console.log('Node removed:', this);
30869 }
30870 this.onPropertyChanged = function(name, value, prev_value) {
30871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
30872 }
30873 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
30874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
30875 }
30876 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
30877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
30878 }
30879 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
30880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
30881 }
30882 this.bgcolor = '#111';
30883 this.color = '#532200';
30884 this.title_text_color = '#000';
30885 this.shape = LiteGraph.CARD_SHAPE;
30886 this.boxcolor = '#275';
30887}

◆ mtlx_convolution2d_blur_color3()

function mtlx_convolution2d_blur_color3 ( )

mtlx_convolution2d_blur_color3

Library: mtlx. Category: blur. Type: color3 LiteGraph id: mtlx/convolution2d/blur_color3

Definition at line 34262 of file mtlx_stdlib.js.

34262 {
34263 this.nodedef_icon = '';
34264 this.nodedef_name = 'ND_blur_color3';
34265 this.nodedef_type = 'color3';
34266 this.nodedef_node = 'blur';
34267 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34268 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_color3_out_genglsl.png';
34269 this.nodedef_group = 'convolution2d';
34270 this.addInput('in','color3');
34271 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34272 this.addInput('size','float');
34273 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34274 this.addInput('filtertype','string');
34275 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34276 this.addOutput('out','color3');
34277 this.title = 'blur_color3';
34278 this.desc = "MaterialX:mtlx/convolution2d/blur_color3";
34279 this.onNodeCreated = function() {
34280 //console.log('Node created:', this);
34281}
34282 this.onRemoved = function() {
34283 //console.log('Node removed:', this);
34284 }
34285 this.onPropertyChanged = function(name, value, prev_value) {
34286 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34287 }
34288 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34289 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34290 }
34291 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34292 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34293 }
34294 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34295 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34296 }
34297 this.bgcolor = '#111';
34298 this.color = '#222';
34299 this.shape = LiteGraph.ROUND_SHAPE;
34300 this.boxcolor = '#37A';
34301}

◆ mtlx_convolution2d_blur_color4()

function mtlx_convolution2d_blur_color4 ( )

mtlx_convolution2d_blur_color4

Library: mtlx. Category: blur. Type: color4 LiteGraph id: mtlx/convolution2d/blur_color4

Definition at line 34312 of file mtlx_stdlib.js.

34312 {
34313 this.nodedef_icon = '';
34314 this.nodedef_name = 'ND_blur_color4';
34315 this.nodedef_type = 'color4';
34316 this.nodedef_node = 'blur';
34317 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34318 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_color4_out_genglsl.png';
34319 this.nodedef_group = 'convolution2d';
34320 this.addInput('in','color4');
34321 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34322 this.addInput('size','float');
34323 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34324 this.addInput('filtertype','string');
34325 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34326 this.addOutput('out','color4');
34327 this.title = 'blur_color4';
34328 this.desc = "MaterialX:mtlx/convolution2d/blur_color4";
34329 this.onNodeCreated = function() {
34330 //console.log('Node created:', this);
34331}
34332 this.onRemoved = function() {
34333 //console.log('Node removed:', this);
34334 }
34335 this.onPropertyChanged = function(name, value, prev_value) {
34336 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34337 }
34338 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34339 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34340 }
34341 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34342 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34343 }
34344 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34345 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34346 }
34347 this.bgcolor = '#111';
34348 this.color = '#222';
34349 this.shape = LiteGraph.ROUND_SHAPE;
34350 this.boxcolor = '#69A';
34351}

◆ mtlx_convolution2d_blur_float()

function mtlx_convolution2d_blur_float ( )

mtlx_convolution2d_blur_float

Library: mtlx. Category: separate4. Type: float LiteGraph id: mtlx/convolution2d/blur_float

Definition at line 34212 of file mtlx_stdlib.js.

34212 {
34213 this.nodedef_icon = '';
34214 this.nodedef_name = 'ND_blur_float';
34215 this.nodedef_type = 'float';
34216 this.nodedef_node = 'blur';
34217 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34218 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_float_out_genglsl.png';
34219 this.nodedef_group = 'convolution2d';
34220 this.addInput('in','float');
34221 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34222 this.addInput('size','float');
34223 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34224 this.addInput('filtertype','string');
34225 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34226 this.addOutput('out','float');
34227 this.title = 'blur_float';
34228 this.desc = "MaterialX:mtlx/convolution2d/blur_float";
34229 this.onNodeCreated = function() {
34230 //console.log('Node created:', this);
34231}
34232 this.onRemoved = function() {
34233 //console.log('Node removed:', this);
34234 }
34235 this.onPropertyChanged = function(name, value, prev_value) {
34236 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34237 }
34238 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34239 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34240 }
34241 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34242 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34243 }
34244 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34245 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34246 }
34247 this.bgcolor = '#111';
34248 this.color = '#222';
34249 this.shape = LiteGraph.ROUND_SHAPE;
34250 this.boxcolor = '#161';
34251}

◆ mtlx_convolution2d_blur_vector2()

function mtlx_convolution2d_blur_vector2 ( )

mtlx_convolution2d_blur_vector2

Library: mtlx. Category: blur. Type: vector2 LiteGraph id: mtlx/convolution2d/blur_vector2

Definition at line 34362 of file mtlx_stdlib.js.

34362 {
34363 this.nodedef_icon = '';
34364 this.nodedef_name = 'ND_blur_vector2';
34365 this.nodedef_type = 'vector2';
34366 this.nodedef_node = 'blur';
34367 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34368 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector2_out_genglsl.png';
34369 this.nodedef_group = 'convolution2d';
34370 this.addInput('in','vector2');
34371 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34372 this.addInput('size','float');
34373 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34374 this.addInput('filtertype','string');
34375 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34376 this.addOutput('out','vector2');
34377 this.title = 'blur_vector2';
34378 this.desc = "MaterialX:mtlx/convolution2d/blur_vector2";
34379 this.onNodeCreated = function() {
34380 //console.log('Node created:', this);
34381}
34382 this.onRemoved = function() {
34383 //console.log('Node removed:', this);
34384 }
34385 this.onPropertyChanged = function(name, value, prev_value) {
34386 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34387 }
34388 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34389 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34390 }
34391 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34392 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34393 }
34394 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34395 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34396 }
34397 this.bgcolor = '#111';
34398 this.color = '#222';
34399 this.shape = LiteGraph.ROUND_SHAPE;
34400 this.boxcolor = '#265';
34401}

◆ mtlx_convolution2d_blur_vector3()

function mtlx_convolution2d_blur_vector3 ( )

mtlx_convolution2d_blur_vector3

Library: mtlx. Category: blur. Type: vector3 LiteGraph id: mtlx/convolution2d/blur_vector3

Definition at line 34412 of file mtlx_stdlib.js.

34412 {
34413 this.nodedef_icon = '';
34414 this.nodedef_name = 'ND_blur_vector3';
34415 this.nodedef_type = 'vector3';
34416 this.nodedef_node = 'blur';
34417 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34418 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector3_out_genglsl.png';
34419 this.nodedef_group = 'convolution2d';
34420 this.addInput('in','vector3');
34421 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34422 this.addInput('size','float');
34423 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34424 this.addInput('filtertype','string');
34425 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34426 this.addOutput('out','vector3');
34427 this.title = 'blur_vector3';
34428 this.desc = "MaterialX:mtlx/convolution2d/blur_vector3";
34429 this.onNodeCreated = function() {
34430 //console.log('Node created:', this);
34431}
34432 this.onRemoved = function() {
34433 //console.log('Node removed:', this);
34434 }
34435 this.onPropertyChanged = function(name, value, prev_value) {
34436 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34437 }
34438 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34439 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34440 }
34441 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34442 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34443 }
34444 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34445 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34446 }
34447 this.bgcolor = '#111';
34448 this.color = '#222';
34449 this.shape = LiteGraph.ROUND_SHAPE;
34450 this.boxcolor = '#465';
34451}

◆ mtlx_convolution2d_blur_vector4()

function mtlx_convolution2d_blur_vector4 ( )

mtlx_convolution2d_blur_vector4

Library: mtlx. Category: blur. Type: vector4 LiteGraph id: mtlx/convolution2d/blur_vector4

Definition at line 34462 of file mtlx_stdlib.js.

34462 {
34463 this.nodedef_icon = '';
34464 this.nodedef_name = 'ND_blur_vector4';
34465 this.nodedef_type = 'vector4';
34466 this.nodedef_node = 'blur';
34467 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34468 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector4_out_genglsl.png';
34469 this.nodedef_group = 'convolution2d';
34470 this.addInput('in','vector4');
34471 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34472 this.addInput('size','float');
34473 this.addProperty('size', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34474 this.addInput('filtertype','string');
34475 this.addProperty('filtertype', 'box', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["box","gaussian"]});
34476 this.addOutput('out','vector4');
34477 this.title = 'blur_vector4';
34478 this.desc = "MaterialX:mtlx/convolution2d/blur_vector4";
34479 this.onNodeCreated = function() {
34480 //console.log('Node created:', this);
34481}
34482 this.onRemoved = function() {
34483 //console.log('Node removed:', this);
34484 }
34485 this.onPropertyChanged = function(name, value, prev_value) {
34486 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34487 }
34488 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34489 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34490 }
34491 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34492 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34493 }
34494 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34495 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34496 }
34497 this.bgcolor = '#111';
34498 this.color = '#222';
34499 this.shape = LiteGraph.ROUND_SHAPE;
34500 this.boxcolor = '#275';
34501}

◆ mtlx_convolution2d_heighttonormal_vector3()

function mtlx_convolution2d_heighttonormal_vector3 ( )

mtlx_convolution2d_heighttonormal_vector3

Library: mtlx. Category: blur. Type: vector3 LiteGraph id: mtlx/convolution2d/heighttonormal_vector3

Definition at line 34512 of file mtlx_stdlib.js.

34512 {
34513 this.nodedef_icon = '';
34514 this.nodedef_name = 'ND_heighttonormal_vector3';
34515 this.nodedef_type = 'vector3';
34516 this.nodedef_node = 'heighttonormal';
34517 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/heighttonormal.html';
34518 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_heighttonormal_vector3_out_genglsl.png';
34519 this.nodedef_group = 'convolution2d';
34520 this.addInput('in','float');
34521 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34522 this.addInput('scale','float');
34523 this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34524 this.addOutput('out','vector3');
34525 this.title = 'heighttonormal_vector3';
34526 this.desc = "MaterialX:mtlx/convolution2d/heighttonormal_vector3";
34527 this.onNodeCreated = function() {
34528 //console.log('Node created:', this);
34529}
34530 this.onRemoved = function() {
34531 //console.log('Node removed:', this);
34532 }
34533 this.onPropertyChanged = function(name, value, prev_value) {
34534 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34535 }
34536 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34537 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34538 }
34539 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34540 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34541 }
34542 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34543 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34544 }
34545 this.bgcolor = '#111';
34546 this.color = '#222';
34547 this.shape = LiteGraph.ROUND_SHAPE;
34548 this.boxcolor = '#465';
34549}

◆ mtlx_geometric_bitangent_vector3()

function mtlx_geometric_bitangent_vector3 ( )

mtlx_geometric_bitangent_vector3

Library: mtlx. Category: tangent. Type: vector3 LiteGraph id: mtlx/geometric/bitangent_vector3

Definition at line 8411 of file mtlx_stdlib.js.

8411 {
8412 this.nodedef_icon = '';
8413 this.nodedef_name = 'ND_bitangent_vector3';
8414 this.nodedef_type = 'vector3';
8415 this.nodedef_node = 'bitangent';
8416 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/bitangent.html';
8417 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_bitangent_vector3_out_genglsl.png';
8418 this.nodedef_group = 'geometric';
8419 this.addInput('space','string');
8420 this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["model","object","world"]});
8421 this.addInput('index','integer');
8422 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8423 this.addOutput('out','vector3');
8424 this.title = 'bitangent_vector3';
8425 this.desc = "MaterialX:mtlx/geometric/bitangent_vector3";
8426 this.onNodeCreated = function() {
8427 //console.log('Node created:', this);
8428}
8429 this.onRemoved = function() {
8430 //console.log('Node removed:', this);
8431 }
8432 this.onPropertyChanged = function(name, value, prev_value) {
8433 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8434 }
8435 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8436 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8437 }
8438 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8439 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8440 }
8441 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8442 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8443 }
8444 this.bgcolor = '#111';
8445 this.color = '#222';
8446 this.shape = LiteGraph.ROUND_SHAPE;
8447 this.boxcolor = '#465';
8448}

◆ mtlx_geometric_bump_vector3()

function mtlx_geometric_bump_vector3 ( )

mtlx_geometric_bump_vector3

Library: mtlx. Category: geompropvalue. Type: vector3 LiteGraph id: mtlx/geometric/bump_vector3

Definition at line 9121 of file mtlx_stdlib.js.

9121 {
9122 this.nodedef_icon = '';
9123 this.nodedef_name = 'ND_bump_vector3';
9124 this.nodedef_type = 'vector3';
9125 this.nodedef_node = 'bump';
9126 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/bump.html';
9127 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_bump_vector3_out_genglsl.png';
9128 this.nodedef_group = 'geometric';
9129 this.addInput('height','float');
9130 this.addProperty('height', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Height","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
9131 this.addInput('scale','float');
9132 this.addProperty('scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
9133 this.addInput('normal','vector3');
9134 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
9135 this.addInput('tangent','vector3');
9136 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
9137 this.addOutput('out','vector3');
9138 this.title = 'bump_vector3';
9139 this.desc = "MaterialX:mtlx/geometric/bump_vector3";
9140 this.onNodeCreated = function() {
9141 //console.log('Node created:', this);
9142}
9143 this.onRemoved = function() {
9144 //console.log('Node removed:', this);
9145 }
9146 this.onPropertyChanged = function(name, value, prev_value) {
9147 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9148 }
9149 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9150 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9151 }
9152 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9153 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9154 }
9155 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9156 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9157 }
9158 this.bgcolor = '#111';
9159 this.color = '#222';
9160 this.shape = LiteGraph.ROUND_SHAPE;
9161 this.boxcolor = '#465';
9162}

◆ mtlx_geometric_geomcolor_color3()

function mtlx_geometric_geomcolor_color3 ( )

mtlx_geometric_geomcolor_color3

Library: mtlx. Category: geomcolor. Type: color3 LiteGraph id: mtlx/geometric/geomcolor_color3

Definition at line 8597 of file mtlx_stdlib.js.

8597 {
8598 this.nodedef_icon = '';
8599 this.nodedef_name = 'ND_geomcolor_color3';
8600 this.nodedef_type = 'color3';
8601 this.nodedef_node = 'geomcolor';
8602 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8603 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_color3_out_genglsl.png';
8604 this.nodedef_group = 'geometric';
8605 this.addInput('index','integer');
8606 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8607 this.addOutput('out','color3');
8608 this.title = 'geomcolor_color3';
8609 this.desc = "MaterialX:mtlx/geometric/geomcolor_color3";
8610 this.onNodeCreated = function() {
8611 //console.log('Node created:', this);
8612}
8613 this.onRemoved = function() {
8614 //console.log('Node removed:', this);
8615 }
8616 this.onPropertyChanged = function(name, value, prev_value) {
8617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8618 }
8619 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8621 }
8622 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8624 }
8625 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8627 }
8628 this.bgcolor = '#111';
8629 this.color = '#222';
8630 this.shape = LiteGraph.ROUND_SHAPE;
8631 this.boxcolor = '#37A';
8632}

◆ mtlx_geometric_geomcolor_color4()

function mtlx_geometric_geomcolor_color4 ( )

mtlx_geometric_geomcolor_color4

Library: mtlx. Category: geomcolor. Type: color4 LiteGraph id: mtlx/geometric/geomcolor_color4

Definition at line 8643 of file mtlx_stdlib.js.

8643 {
8644 this.nodedef_icon = '';
8645 this.nodedef_name = 'ND_geomcolor_color4';
8646 this.nodedef_type = 'color4';
8647 this.nodedef_node = 'geomcolor';
8648 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8649 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_color4_out_genglsl.png';
8650 this.nodedef_group = 'geometric';
8651 this.addInput('index','integer');
8652 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8653 this.addOutput('out','color4');
8654 this.title = 'geomcolor_color4';
8655 this.desc = "MaterialX:mtlx/geometric/geomcolor_color4";
8656 this.onNodeCreated = function() {
8657 //console.log('Node created:', this);
8658}
8659 this.onRemoved = function() {
8660 //console.log('Node removed:', this);
8661 }
8662 this.onPropertyChanged = function(name, value, prev_value) {
8663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8664 }
8665 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8667 }
8668 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8670 }
8671 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8673 }
8674 this.bgcolor = '#111';
8675 this.color = '#222';
8676 this.shape = LiteGraph.ROUND_SHAPE;
8677 this.boxcolor = '#69A';
8678}

◆ mtlx_geometric_geomcolor_float()

function mtlx_geometric_geomcolor_float ( )

mtlx_geometric_geomcolor_float

Library: mtlx. Category: texcoord. Type: float LiteGraph id: mtlx/geometric/geomcolor_float

Definition at line 8551 of file mtlx_stdlib.js.

8551 {
8552 this.nodedef_icon = '';
8553 this.nodedef_name = 'ND_geomcolor_float';
8554 this.nodedef_type = 'float';
8555 this.nodedef_node = 'geomcolor';
8556 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8557 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_float_out_genglsl.png';
8558 this.nodedef_group = 'geometric';
8559 this.addInput('index','integer');
8560 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8561 this.addOutput('out','float');
8562 this.title = 'geomcolor_float';
8563 this.desc = "MaterialX:mtlx/geometric/geomcolor_float";
8564 this.onNodeCreated = function() {
8565 //console.log('Node created:', this);
8566}
8567 this.onRemoved = function() {
8568 //console.log('Node removed:', this);
8569 }
8570 this.onPropertyChanged = function(name, value, prev_value) {
8571 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8572 }
8573 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8574 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8575 }
8576 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8577 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8578 }
8579 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8580 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8581 }
8582 this.bgcolor = '#111';
8583 this.color = '#222';
8584 this.shape = LiteGraph.ROUND_SHAPE;
8585 this.boxcolor = '#161';
8586}

◆ mtlx_geometric_geompropvalue_boolean()

function mtlx_geometric_geompropvalue_boolean ( )

mtlx_geometric_geompropvalue_boolean

Library: mtlx. Category: geompropvalue. Type: boolean LiteGraph id: mtlx/geometric/geompropvalue_boolean

Definition at line 8737 of file mtlx_stdlib.js.

8737 {
8738 this.nodedef_icon = '';
8739 this.nodedef_name = 'ND_geompropvalue_boolean';
8740 this.nodedef_type = 'boolean';
8741 this.nodedef_node = 'geompropvalue';
8742 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8743 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_boolean_out_genglsl.png';
8744 this.nodedef_group = 'geometric';
8745 this.addInput('geomprop','string');
8746 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8747 this.addInput('default','boolean');
8748 this.addProperty('default', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8749 this.addOutput('out','boolean');
8750 this.title = 'geompropvalue_boolean';
8751 this.desc = "MaterialX:mtlx/geometric/geompropvalue_boolean";
8752 this.onNodeCreated = function() {
8753 //console.log('Node created:', this);
8754}
8755 this.onRemoved = function() {
8756 //console.log('Node removed:', this);
8757 }
8758 this.onPropertyChanged = function(name, value, prev_value) {
8759 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8760 }
8761 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8762 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8763 }
8764 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8765 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8766 }
8767 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8768 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8769 }
8770 this.bgcolor = '#111';
8771 this.color = '#222';
8772 this.shape = LiteGraph.ROUND_SHAPE;
8773 this.boxcolor = '#060';
8774}

◆ mtlx_geometric_geompropvalue_color3()

function mtlx_geometric_geompropvalue_color3 ( )

mtlx_geometric_geompropvalue_color3

Library: mtlx. Category: geompropvalue. Type: color3 LiteGraph id: mtlx/geometric/geompropvalue_color3

Definition at line 8881 of file mtlx_stdlib.js.

8881 {
8882 this.nodedef_icon = '';
8883 this.nodedef_name = 'ND_geompropvalue_color3';
8884 this.nodedef_type = 'color3';
8885 this.nodedef_node = 'geompropvalue';
8886 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8887 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_color3_out_genglsl.png';
8888 this.nodedef_group = 'geometric';
8889 this.addInput('geomprop','string');
8890 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8891 this.addInput('default','color3');
8892 this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8893 this.addOutput('out','color3');
8894 this.title = 'geompropvalue_color3';
8895 this.desc = "MaterialX:mtlx/geometric/geompropvalue_color3";
8896 this.onNodeCreated = function() {
8897 //console.log('Node created:', this);
8898}
8899 this.onRemoved = function() {
8900 //console.log('Node removed:', this);
8901 }
8902 this.onPropertyChanged = function(name, value, prev_value) {
8903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8904 }
8905 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8907 }
8908 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8910 }
8911 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8913 }
8914 this.bgcolor = '#111';
8915 this.color = '#222';
8916 this.shape = LiteGraph.ROUND_SHAPE;
8917 this.boxcolor = '#37A';
8918}

◆ mtlx_geometric_geompropvalue_color4()

function mtlx_geometric_geompropvalue_color4 ( )

mtlx_geometric_geompropvalue_color4

Library: mtlx. Category: geompropvalue. Type: color4 LiteGraph id: mtlx/geometric/geompropvalue_color4

Definition at line 8929 of file mtlx_stdlib.js.

8929 {
8930 this.nodedef_icon = '';
8931 this.nodedef_name = 'ND_geompropvalue_color4';
8932 this.nodedef_type = 'color4';
8933 this.nodedef_node = 'geompropvalue';
8934 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8935 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_color4_out_genglsl.png';
8936 this.nodedef_group = 'geometric';
8937 this.addInput('geomprop','string');
8938 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8939 this.addInput('default','color4');
8940 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8941 this.addOutput('out','color4');
8942 this.title = 'geompropvalue_color4';
8943 this.desc = "MaterialX:mtlx/geometric/geompropvalue_color4";
8944 this.onNodeCreated = function() {
8945 //console.log('Node created:', this);
8946}
8947 this.onRemoved = function() {
8948 //console.log('Node removed:', this);
8949 }
8950 this.onPropertyChanged = function(name, value, prev_value) {
8951 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8952 }
8953 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8954 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8955 }
8956 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8957 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8958 }
8959 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8960 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8961 }
8962 this.bgcolor = '#111';
8963 this.color = '#222';
8964 this.shape = LiteGraph.ROUND_SHAPE;
8965 this.boxcolor = '#69A';
8966}

◆ mtlx_geometric_geompropvalue_float()

function mtlx_geometric_geompropvalue_float ( )

mtlx_geometric_geompropvalue_float

Library: mtlx. Category: geompropvalue. Type: float LiteGraph id: mtlx/geometric/geompropvalue_float

Definition at line 8833 of file mtlx_stdlib.js.

8833 {
8834 this.nodedef_icon = '';
8835 this.nodedef_name = 'ND_geompropvalue_float';
8836 this.nodedef_type = 'float';
8837 this.nodedef_node = 'geompropvalue';
8838 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8839 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_float_out_genglsl.png';
8840 this.nodedef_group = 'geometric';
8841 this.addInput('geomprop','string');
8842 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8843 this.addInput('default','float');
8844 this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8845 this.addOutput('out','float');
8846 this.title = 'geompropvalue_float';
8847 this.desc = "MaterialX:mtlx/geometric/geompropvalue_float";
8848 this.onNodeCreated = function() {
8849 //console.log('Node created:', this);
8850}
8851 this.onRemoved = function() {
8852 //console.log('Node removed:', this);
8853 }
8854 this.onPropertyChanged = function(name, value, prev_value) {
8855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8856 }
8857 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8859 }
8860 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8862 }
8863 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8865 }
8866 this.bgcolor = '#111';
8867 this.color = '#222';
8868 this.shape = LiteGraph.ROUND_SHAPE;
8869 this.boxcolor = '#161';
8870}

◆ mtlx_geometric_geompropvalue_integer()

function mtlx_geometric_geompropvalue_integer ( )

mtlx_geometric_geompropvalue_integer

Library: mtlx. Category: geomcolor. Type: integer LiteGraph id: mtlx/geometric/geompropvalue_integer

Definition at line 8689 of file mtlx_stdlib.js.

8689 {
8690 this.nodedef_icon = '';
8691 this.nodedef_name = 'ND_geompropvalue_integer';
8692 this.nodedef_type = 'integer';
8693 this.nodedef_node = 'geompropvalue';
8694 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8695 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_integer_out_genglsl.png';
8696 this.nodedef_group = 'geometric';
8697 this.addInput('geomprop','string');
8698 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8699 this.addInput('default','integer');
8700 this.addProperty('default', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8701 this.addOutput('out','integer');
8702 this.title = 'geompropvalue_integer';
8703 this.desc = "MaterialX:mtlx/geometric/geompropvalue_integer";
8704 this.onNodeCreated = function() {
8705 //console.log('Node created:', this);
8706}
8707 this.onRemoved = function() {
8708 //console.log('Node removed:', this);
8709 }
8710 this.onPropertyChanged = function(name, value, prev_value) {
8711 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8712 }
8713 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8714 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8715 }
8716 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8717 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8718 }
8719 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8720 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8721 }
8722 this.bgcolor = '#111';
8723 this.color = '#222';
8724 this.shape = LiteGraph.ROUND_SHAPE;
8725 this.boxcolor = '#A32';
8726}

◆ mtlx_geometric_geompropvalue_string()

function mtlx_geometric_geompropvalue_string ( )

mtlx_geometric_geompropvalue_string

Library: mtlx. Category: geompropvalue. Type: string LiteGraph id: mtlx/geometric/geompropvalue_string

Definition at line 8785 of file mtlx_stdlib.js.

8785 {
8786 this.nodedef_icon = '';
8787 this.nodedef_name = 'ND_geompropvalue_string';
8788 this.nodedef_type = 'string';
8789 this.nodedef_node = 'geompropvalue';
8790 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8791 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_string_out_genglsl.png';
8792 this.nodedef_group = 'geometric';
8793 this.addInput('geomprop','string');
8794 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8795 this.addInput('default','string');
8796 this.addProperty('default', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8797 this.addOutput('out','string');
8798 this.title = 'geompropvalue_string';
8799 this.desc = "MaterialX:mtlx/geometric/geompropvalue_string";
8800 this.onNodeCreated = function() {
8801 //console.log('Node created:', this);
8802}
8803 this.onRemoved = function() {
8804 //console.log('Node removed:', this);
8805 }
8806 this.onPropertyChanged = function(name, value, prev_value) {
8807 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8808 }
8809 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8810 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8811 }
8812 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8813 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8814 }
8815 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8816 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8817 }
8818 this.bgcolor = '#111';
8819 this.color = '#222';
8820 this.shape = LiteGraph.ROUND_SHAPE;
8821 this.boxcolor = '#395';
8822}

◆ mtlx_geometric_geompropvalue_vector2()

function mtlx_geometric_geompropvalue_vector2 ( )

mtlx_geometric_geompropvalue_vector2

Library: mtlx. Category: geompropvalue. Type: vector2 LiteGraph id: mtlx/geometric/geompropvalue_vector2

Definition at line 8977 of file mtlx_stdlib.js.

8977 {
8978 this.nodedef_icon = '';
8979 this.nodedef_name = 'ND_geompropvalue_vector2';
8980 this.nodedef_type = 'vector2';
8981 this.nodedef_node = 'geompropvalue';
8982 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8983 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector2_out_genglsl.png';
8984 this.nodedef_group = 'geometric';
8985 this.addInput('geomprop','string');
8986 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8987 this.addInput('default','vector2');
8988 this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8989 this.addOutput('out','vector2');
8990 this.title = 'geompropvalue_vector2';
8991 this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector2";
8992 this.onNodeCreated = function() {
8993 //console.log('Node created:', this);
8994}
8995 this.onRemoved = function() {
8996 //console.log('Node removed:', this);
8997 }
8998 this.onPropertyChanged = function(name, value, prev_value) {
8999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9000 }
9001 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9003 }
9004 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9006 }
9007 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9009 }
9010 this.bgcolor = '#111';
9011 this.color = '#222';
9012 this.shape = LiteGraph.ROUND_SHAPE;
9013 this.boxcolor = '#265';
9014}

◆ mtlx_geometric_geompropvalue_vector3()

function mtlx_geometric_geompropvalue_vector3 ( )

mtlx_geometric_geompropvalue_vector3

Library: mtlx. Category: geompropvalue. Type: vector3 LiteGraph id: mtlx/geometric/geompropvalue_vector3

Definition at line 9025 of file mtlx_stdlib.js.

9025 {
9026 this.nodedef_icon = '';
9027 this.nodedef_name = 'ND_geompropvalue_vector3';
9028 this.nodedef_type = 'vector3';
9029 this.nodedef_node = 'geompropvalue';
9030 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
9031 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector3_out_genglsl.png';
9032 this.nodedef_group = 'geometric';
9033 this.addInput('geomprop','string');
9034 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9035 this.addInput('default','vector3');
9036 this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9037 this.addOutput('out','vector3');
9038 this.title = 'geompropvalue_vector3';
9039 this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector3";
9040 this.onNodeCreated = function() {
9041 //console.log('Node created:', this);
9042}
9043 this.onRemoved = function() {
9044 //console.log('Node removed:', this);
9045 }
9046 this.onPropertyChanged = function(name, value, prev_value) {
9047 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9048 }
9049 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9050 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9051 }
9052 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9053 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9054 }
9055 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9056 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9057 }
9058 this.bgcolor = '#111';
9059 this.color = '#222';
9060 this.shape = LiteGraph.ROUND_SHAPE;
9061 this.boxcolor = '#465';
9062}

◆ mtlx_geometric_geompropvalue_vector4()

function mtlx_geometric_geompropvalue_vector4 ( )

mtlx_geometric_geompropvalue_vector4

Library: mtlx. Category: geompropvalue. Type: vector4 LiteGraph id: mtlx/geometric/geompropvalue_vector4

Definition at line 9073 of file mtlx_stdlib.js.

9073 {
9074 this.nodedef_icon = '';
9075 this.nodedef_name = 'ND_geompropvalue_vector4';
9076 this.nodedef_type = 'vector4';
9077 this.nodedef_node = 'geompropvalue';
9078 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
9079 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector4_out_genglsl.png';
9080 this.nodedef_group = 'geometric';
9081 this.addInput('geomprop','string');
9082 this.addProperty('geomprop', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9083 this.addInput('default','vector4');
9084 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9085 this.addOutput('out','vector4');
9086 this.title = 'geompropvalue_vector4';
9087 this.desc = "MaterialX:mtlx/geometric/geompropvalue_vector4";
9088 this.onNodeCreated = function() {
9089 //console.log('Node created:', this);
9090}
9091 this.onRemoved = function() {
9092 //console.log('Node removed:', this);
9093 }
9094 this.onPropertyChanged = function(name, value, prev_value) {
9095 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9096 }
9097 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9098 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9099 }
9100 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9101 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9102 }
9103 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9104 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9105 }
9106 this.bgcolor = '#111';
9107 this.color = '#222';
9108 this.shape = LiteGraph.ROUND_SHAPE;
9109 this.boxcolor = '#275';
9110}

◆ mtlx_geometric_normal_vector3()

function mtlx_geometric_normal_vector3 ( )

mtlx_geometric_normal_vector3

Library: mtlx. Category: position. Type: vector3 LiteGraph id: mtlx/geometric/normal_vector3

Definition at line 8317 of file mtlx_stdlib.js.

8317 {
8318 this.nodedef_icon = '';
8319 this.nodedef_name = 'ND_normal_vector3';
8320 this.nodedef_type = 'vector3';
8321 this.nodedef_node = 'normal';
8322 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normal.html';
8323 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normal_vector3_out_genglsl.png';
8324 this.nodedef_group = 'geometric';
8325 this.addInput('space','string');
8326 this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["model","object","world"]});
8327 this.addOutput('out','vector3');
8328 this.title = 'normal_vector3';
8329 this.desc = "MaterialX:mtlx/geometric/normal_vector3";
8330 this.onNodeCreated = function() {
8331 //console.log('Node created:', this);
8332}
8333 this.onRemoved = function() {
8334 //console.log('Node removed:', this);
8335 }
8336 this.onPropertyChanged = function(name, value, prev_value) {
8337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8338 }
8339 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8341 }
8342 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8344 }
8345 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8347 }
8348 this.bgcolor = '#111';
8349 this.color = '#222';
8350 this.shape = LiteGraph.ROUND_SHAPE;
8351 this.boxcolor = '#465';
8352}

◆ mtlx_geometric_position_vector3()

function mtlx_geometric_position_vector3 ( )

mtlx_geometric_position_vector3

Library: mtlx. Category: tiledhexagons. Type: vector3 LiteGraph id: mtlx/geometric/position_vector3

Definition at line 8271 of file mtlx_stdlib.js.

8271 {
8272 this.nodedef_icon = '';
8273 this.nodedef_name = 'ND_position_vector3';
8274 this.nodedef_type = 'vector3';
8275 this.nodedef_node = 'position';
8276 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/position.html';
8277 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_position_vector3_out_genglsl.png';
8278 this.nodedef_group = 'geometric';
8279 this.addInput('space','string');
8280 this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["model","object","world"]});
8281 this.addOutput('out','vector3');
8282 this.title = 'position_vector3';
8283 this.desc = "MaterialX:mtlx/geometric/position_vector3";
8284 this.onNodeCreated = function() {
8285 //console.log('Node created:', this);
8286}
8287 this.onRemoved = function() {
8288 //console.log('Node removed:', this);
8289 }
8290 this.onPropertyChanged = function(name, value, prev_value) {
8291 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8292 }
8293 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8294 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8295 }
8296 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8297 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8298 }
8299 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8300 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8301 }
8302 this.bgcolor = '#111';
8303 this.color = '#222';
8304 this.shape = LiteGraph.ROUND_SHAPE;
8305 this.boxcolor = '#465';
8306}

◆ mtlx_geometric_tangent_vector3()

function mtlx_geometric_tangent_vector3 ( )

mtlx_geometric_tangent_vector3

Library: mtlx. Category: normal. Type: vector3 LiteGraph id: mtlx/geometric/tangent_vector3

Definition at line 8363 of file mtlx_stdlib.js.

8363 {
8364 this.nodedef_icon = '';
8365 this.nodedef_name = 'ND_tangent_vector3';
8366 this.nodedef_type = 'vector3';
8367 this.nodedef_node = 'tangent';
8368 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tangent.html';
8369 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tangent_vector3_out_genglsl.png';
8370 this.nodedef_group = 'geometric';
8371 this.addInput('space','string');
8372 this.addProperty('space', 'object', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["model","object","world"]});
8373 this.addInput('index','integer');
8374 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8375 this.addOutput('out','vector3');
8376 this.title = 'tangent_vector3';
8377 this.desc = "MaterialX:mtlx/geometric/tangent_vector3";
8378 this.onNodeCreated = function() {
8379 //console.log('Node created:', this);
8380}
8381 this.onRemoved = function() {
8382 //console.log('Node removed:', this);
8383 }
8384 this.onPropertyChanged = function(name, value, prev_value) {
8385 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8386 }
8387 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8388 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8389 }
8390 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8391 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8392 }
8393 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8394 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8395 }
8396 this.bgcolor = '#111';
8397 this.color = '#222';
8398 this.shape = LiteGraph.ROUND_SHAPE;
8399 this.boxcolor = '#465';
8400}

◆ mtlx_geometric_texcoord_vector2()

function mtlx_geometric_texcoord_vector2 ( )

mtlx_geometric_texcoord_vector2

Library: mtlx. Category: bitangent. Type: vector2 LiteGraph id: mtlx/geometric/texcoord_vector2

Definition at line 8459 of file mtlx_stdlib.js.

8459 {
8460 this.nodedef_icon = '';
8461 this.nodedef_name = 'ND_texcoord_vector2';
8462 this.nodedef_type = 'vector2';
8463 this.nodedef_node = 'texcoord';
8464 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/texcoord.html';
8465 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_texcoord_vector2_out_genglsl.png';
8466 this.nodedef_group = 'geometric';
8467 this.addInput('index','integer');
8468 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8469 this.addOutput('out','vector2');
8470 this.title = 'texcoord_vector2';
8471 this.desc = "MaterialX:mtlx/geometric/texcoord_vector2";
8472 this.onNodeCreated = function() {
8473 //console.log('Node created:', this);
8474}
8475 this.onRemoved = function() {
8476 //console.log('Node removed:', this);
8477 }
8478 this.onPropertyChanged = function(name, value, prev_value) {
8479 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8480 }
8481 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8482 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8483 }
8484 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8485 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8486 }
8487 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8488 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8489 }
8490 this.bgcolor = '#111';
8491 this.color = '#222';
8492 this.shape = LiteGraph.ROUND_SHAPE;
8493 this.boxcolor = '#265';
8494}

◆ mtlx_geometric_texcoord_vector3()

function mtlx_geometric_texcoord_vector3 ( )

mtlx_geometric_texcoord_vector3

Library: mtlx. Category: texcoord. Type: vector3 LiteGraph id: mtlx/geometric/texcoord_vector3

Definition at line 8505 of file mtlx_stdlib.js.

8505 {
8506 this.nodedef_icon = '';
8507 this.nodedef_name = 'ND_texcoord_vector3';
8508 this.nodedef_type = 'vector3';
8509 this.nodedef_node = 'texcoord';
8510 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/texcoord.html';
8511 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_texcoord_vector3_out_genglsl.png';
8512 this.nodedef_group = 'geometric';
8513 this.addInput('index','integer');
8514 this.addProperty('index', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8515 this.addOutput('out','vector3');
8516 this.title = 'texcoord_vector3';
8517 this.desc = "MaterialX:mtlx/geometric/texcoord_vector3";
8518 this.onNodeCreated = function() {
8519 //console.log('Node created:', this);
8520}
8521 this.onRemoved = function() {
8522 //console.log('Node removed:', this);
8523 }
8524 this.onPropertyChanged = function(name, value, prev_value) {
8525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8526 }
8527 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8529 }
8530 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8532 }
8533 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8535 }
8536 this.bgcolor = '#111';
8537 this.color = '#222';
8538 this.shape = LiteGraph.ROUND_SHAPE;
8539 this.boxcolor = '#465';
8540}

◆ mtlx_geometric_UsdPrimvarReader_boolean()

function mtlx_geometric_UsdPrimvarReader_boolean ( )

mtlx_geometric_UsdPrimvarReader_boolean

Library: mtlx. Category: UsdPrimvarReader. Type: boolean LiteGraph id: mtlx/geometric/UsdPrimvarReader_boolean

Definition at line 38535 of file mtlx_stdlib.js.

38535 {
38536 this.nodedef_icon = './Icons/openusd_logo.webp';
38537 this.nodedef_name = 'ND_UsdPrimvarReader_boolean';
38538 this.nodedef_type = 'boolean';
38539 this.nodedef_node = 'UsdPrimvarReader';
38540 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38541 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_boolean_out_genglsl.png';
38542 this.nodedef_group = 'geometric';
38543 this.addInput('varname','string');
38544 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38545 this.addInput('fallback','boolean');
38546 this.addProperty('fallback', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38547 this.addOutput('out','boolean');
38548 this.title = 'UsdPrimvarReader_boolean';
38549 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_boolean";
38550 this.onNodeCreated = function() {
38551 //console.log('Node created:', this);
38552}
38553 this.onRemoved = function() {
38554 //console.log('Node removed:', this);
38555 }
38556 this.onPropertyChanged = function(name, value, prev_value) {
38557 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38558 }
38559 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38560 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38561 }
38562 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38563 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38564 }
38565 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38566 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38567 }
38568 this.bgcolor = '#111';
38569 this.color = '#222';
38570 this.shape = LiteGraph.ROUND_SHAPE;
38571 this.boxcolor = '#060';
38572}

◆ mtlx_geometric_UsdPrimvarReader_float()

function mtlx_geometric_UsdPrimvarReader_float ( )

mtlx_geometric_UsdPrimvarReader_float

Library: mtlx. Category: UsdPrimvarReader. Type: float LiteGraph id: mtlx/geometric/UsdPrimvarReader_float

Definition at line 38631 of file mtlx_stdlib.js.

38631 {
38632 this.nodedef_icon = './Icons/openusd_logo.webp';
38633 this.nodedef_name = 'ND_UsdPrimvarReader_float';
38634 this.nodedef_type = 'float';
38635 this.nodedef_node = 'UsdPrimvarReader';
38636 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38637 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_float_out_genglsl.png';
38638 this.nodedef_group = 'geometric';
38639 this.addInput('varname','string');
38640 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38641 this.addInput('fallback','float');
38642 this.addProperty('fallback', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38643 this.addOutput('out','float');
38644 this.title = 'UsdPrimvarReader_float';
38645 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_float";
38646 this.onNodeCreated = function() {
38647 //console.log('Node created:', this);
38648}
38649 this.onRemoved = function() {
38650 //console.log('Node removed:', this);
38651 }
38652 this.onPropertyChanged = function(name, value, prev_value) {
38653 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38654 }
38655 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38656 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38657 }
38658 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38659 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38660 }
38661 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38662 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38663 }
38664 this.bgcolor = '#111';
38665 this.color = '#222';
38666 this.shape = LiteGraph.ROUND_SHAPE;
38667 this.boxcolor = '#161';
38668}

◆ mtlx_geometric_UsdPrimvarReader_integer()

function mtlx_geometric_UsdPrimvarReader_integer ( )

mtlx_geometric_UsdPrimvarReader_integer

Library: mtlx. Category: UsdUVTexture. Type: integer LiteGraph id: mtlx/geometric/UsdPrimvarReader_integer

Definition at line 38487 of file mtlx_stdlib.js.

38487 {
38488 this.nodedef_icon = './Icons/openusd_logo.webp';
38489 this.nodedef_name = 'ND_UsdPrimvarReader_integer';
38490 this.nodedef_type = 'integer';
38491 this.nodedef_node = 'UsdPrimvarReader';
38492 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38493 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_integer_out_genglsl.png';
38494 this.nodedef_group = 'geometric';
38495 this.addInput('varname','string');
38496 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38497 this.addInput('fallback','integer');
38498 this.addProperty('fallback', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38499 this.addOutput('out','integer');
38500 this.title = 'UsdPrimvarReader_integer';
38501 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_integer";
38502 this.onNodeCreated = function() {
38503 //console.log('Node created:', this);
38504}
38505 this.onRemoved = function() {
38506 //console.log('Node removed:', this);
38507 }
38508 this.onPropertyChanged = function(name, value, prev_value) {
38509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38510 }
38511 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38513 }
38514 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38516 }
38517 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38519 }
38520 this.bgcolor = '#111';
38521 this.color = '#222';
38522 this.shape = LiteGraph.ROUND_SHAPE;
38523 this.boxcolor = '#A32';
38524}

◆ mtlx_geometric_UsdPrimvarReader_string()

function mtlx_geometric_UsdPrimvarReader_string ( )

mtlx_geometric_UsdPrimvarReader_string

Library: mtlx. Category: UsdPrimvarReader. Type: string LiteGraph id: mtlx/geometric/UsdPrimvarReader_string

Definition at line 38583 of file mtlx_stdlib.js.

38583 {
38584 this.nodedef_icon = './Icons/openusd_logo.webp';
38585 this.nodedef_name = 'ND_UsdPrimvarReader_string';
38586 this.nodedef_type = 'string';
38587 this.nodedef_node = 'UsdPrimvarReader';
38588 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38589 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_string_out_genglsl.png';
38590 this.nodedef_group = 'geometric';
38591 this.addInput('varname','string');
38592 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38593 this.addInput('fallback','string');
38594 this.addProperty('fallback', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38595 this.addOutput('out','string');
38596 this.title = 'UsdPrimvarReader_string';
38597 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_string";
38598 this.onNodeCreated = function() {
38599 //console.log('Node created:', this);
38600}
38601 this.onRemoved = function() {
38602 //console.log('Node removed:', this);
38603 }
38604 this.onPropertyChanged = function(name, value, prev_value) {
38605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38606 }
38607 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38609 }
38610 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38612 }
38613 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38615 }
38616 this.bgcolor = '#111';
38617 this.color = '#222';
38618 this.shape = LiteGraph.ROUND_SHAPE;
38619 this.boxcolor = '#395';
38620}

◆ mtlx_geometric_UsdPrimvarReader_vector2()

function mtlx_geometric_UsdPrimvarReader_vector2 ( )

mtlx_geometric_UsdPrimvarReader_vector2

Library: mtlx. Category: UsdPrimvarReader. Type: vector2 LiteGraph id: mtlx/geometric/UsdPrimvarReader_vector2

Definition at line 38679 of file mtlx_stdlib.js.

38679 {
38680 this.nodedef_icon = './Icons/openusd_logo.webp';
38681 this.nodedef_name = 'ND_UsdPrimvarReader_vector2';
38682 this.nodedef_type = 'vector2';
38683 this.nodedef_node = 'UsdPrimvarReader';
38684 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38685 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector2_out_genglsl.png';
38686 this.nodedef_group = 'geometric';
38687 this.addInput('varname','string');
38688 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38689 this.addInput('fallback','vector2');
38690 this.addProperty('fallback', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38691 this.addOutput('out','vector2');
38692 this.title = 'UsdPrimvarReader_vector2';
38693 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector2";
38694 this.onNodeCreated = function() {
38695 //console.log('Node created:', this);
38696}
38697 this.onRemoved = function() {
38698 //console.log('Node removed:', this);
38699 }
38700 this.onPropertyChanged = function(name, value, prev_value) {
38701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38702 }
38703 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38705 }
38706 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38708 }
38709 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38711 }
38712 this.bgcolor = '#111';
38713 this.color = '#222';
38714 this.shape = LiteGraph.ROUND_SHAPE;
38715 this.boxcolor = '#265';
38716}

◆ mtlx_geometric_UsdPrimvarReader_vector3()

function mtlx_geometric_UsdPrimvarReader_vector3 ( )

mtlx_geometric_UsdPrimvarReader_vector3

Library: mtlx. Category: UsdPrimvarReader. Type: vector3 LiteGraph id: mtlx/geometric/UsdPrimvarReader_vector3

Definition at line 38727 of file mtlx_stdlib.js.

38727 {
38728 this.nodedef_icon = './Icons/openusd_logo.webp';
38729 this.nodedef_name = 'ND_UsdPrimvarReader_vector3';
38730 this.nodedef_type = 'vector3';
38731 this.nodedef_node = 'UsdPrimvarReader';
38732 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38733 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector3_out_genglsl.png';
38734 this.nodedef_group = 'geometric';
38735 this.addInput('varname','string');
38736 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38737 this.addInput('fallback','vector3');
38738 this.addProperty('fallback', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38739 this.addOutput('out','vector3');
38740 this.title = 'UsdPrimvarReader_vector3';
38741 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector3";
38742 this.onNodeCreated = function() {
38743 //console.log('Node created:', this);
38744}
38745 this.onRemoved = function() {
38746 //console.log('Node removed:', this);
38747 }
38748 this.onPropertyChanged = function(name, value, prev_value) {
38749 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38750 }
38751 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38752 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38753 }
38754 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38755 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38756 }
38757 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38758 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38759 }
38760 this.bgcolor = '#111';
38761 this.color = '#222';
38762 this.shape = LiteGraph.ROUND_SHAPE;
38763 this.boxcolor = '#465';
38764}

◆ mtlx_geometric_UsdPrimvarReader_vector4()

function mtlx_geometric_UsdPrimvarReader_vector4 ( )

mtlx_geometric_UsdPrimvarReader_vector4

Library: mtlx. Category: UsdPrimvarReader. Type: vector4 LiteGraph id: mtlx/geometric/UsdPrimvarReader_vector4

Definition at line 38775 of file mtlx_stdlib.js.

38775 {
38776 this.nodedef_icon = './Icons/openusd_logo.webp';
38777 this.nodedef_name = 'ND_UsdPrimvarReader_vector4';
38778 this.nodedef_type = 'vector4';
38779 this.nodedef_node = 'UsdPrimvarReader';
38780 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38781 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector4_out_genglsl.png';
38782 this.nodedef_group = 'geometric';
38783 this.addInput('varname','string');
38784 this.addProperty('varname', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38785 this.addInput('fallback','vector4');
38786 this.addProperty('fallback', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38787 this.addOutput('out','vector4');
38788 this.title = 'UsdPrimvarReader_vector4';
38789 this.desc = "MaterialX:mtlx/geometric/UsdPrimvarReader_vector4";
38790 this.onNodeCreated = function() {
38791 //console.log('Node created:', this);
38792}
38793 this.onRemoved = function() {
38794 //console.log('Node removed:', this);
38795 }
38796 this.onPropertyChanged = function(name, value, prev_value) {
38797 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38798 }
38799 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38800 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38801 }
38802 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38803 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38804 }
38805 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38806 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38807 }
38808 this.bgcolor = '#111';
38809 this.color = '#222';
38810 this.shape = LiteGraph.ROUND_SHAPE;
38811 this.boxcolor = '#275';
38812}

◆ mtlx_global_ambientocclusion_float()

function mtlx_global_ambientocclusion_float ( )

mtlx_global_ambientocclusion_float

Library: mtlx. Category: bump. Type: float LiteGraph id: mtlx/global/ambientocclusion_float

Definition at line 9173 of file mtlx_stdlib.js.

9173 {
9174 this.nodedef_icon = '';
9175 this.nodedef_name = 'ND_ambientocclusion_float';
9176 this.nodedef_type = 'float';
9177 this.nodedef_node = 'ambientocclusion';
9178 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ambientocclusion.html';
9179 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ambientocclusion_float_out_genglsl.png';
9180 this.nodedef_group = 'global';
9181 this.addInput('coneangle','float');
9182 this.addProperty('coneangle', 90.0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9183 this.addInput('maxdistance','float');
9184 this.addProperty('maxdistance', 1e38, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9185 this.addOutput('out','float');
9186 this.title = 'ambientocclusion_float';
9187 this.desc = "MaterialX:mtlx/global/ambientocclusion_float";
9188 this.onNodeCreated = function() {
9189 //console.log('Node created:', this);
9190}
9191 this.onRemoved = function() {
9192 //console.log('Node removed:', this);
9193 }
9194 this.onPropertyChanged = function(name, value, prev_value) {
9195 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9196 }
9197 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9198 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9199 }
9200 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9201 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9202 }
9203 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9204 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9205 }
9206 this.bgcolor = '#111';
9207 this.color = '#222';
9208 this.shape = LiteGraph.ROUND_SHAPE;
9209 this.boxcolor = '#161';
9210}

◆ mtlx_input_input_boolean()

function mtlx_input_input_boolean ( )

mtlx_input_input_boolean

Library: mtlx. Category: input. Type: boolean LiteGraph id: mtlx/input/input_boolean

Definition at line 452 of file mtlx_stdlib.js.

452 {
453 this.nodedef_icon = '';
454 this.nodedef_name = 'ND_input_boolean';
455 this.nodedef_node = 'input';
456 this.nodedef_type = 'boolean';
457 this.nodedef_group = 'input';
458 this.addInput('in', 'boolean');
459 this.addProperty('in', false, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
460 this.addOutput('out', 'boolean');
461 this.title = 'input_boolean';
462 this.desc = "MaterialX:mtlx/input/input_boolean";
463 this.onNodeCreated = function() {
464 //console.log('Node created:', this);
465 }
466 this.onRemoved = function() {
467 //console.log('Node removed:', this);
468 }
469 this.onPropertyChanged = function(name, value, prev_value) {
470 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
471 }
472 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
473 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
474 }
475 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
476 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
477 }
478 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
479 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
480 }
481 this.color = '#004C94';
482 this.bgcolor = '#000';
483 this.boxcolor = '#060';
484 this.shape = LiteGraph.ROUND_SHAPE;
485 this.onExecute = function() {
486 console.log('Executing node: ', this);
487 }
488}

◆ mtlx_input_input_BSDF()

function mtlx_input_input_BSDF ( )

mtlx_input_input_BSDF

Library: mtlx. Category: input. Type: BSDF LiteGraph id: mtlx/input/input_BSDF

Definition at line 540 of file mtlx_stdlib.js.

540 {
541 this.nodedef_icon = '';
542 this.nodedef_name = 'ND_input_BSDF';
543 this.nodedef_node = 'input';
544 this.nodedef_type = 'BSDF';
545 this.nodedef_group = 'input';
546 this.addInput('in', 'BSDF');
547 this.addProperty('in', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
548 this.addOutput('out', 'BSDF');
549 this.title = 'input_BSDF';
550 this.desc = "MaterialX:mtlx/input/input_BSDF";
551 this.onNodeCreated = function() {
552 //console.log('Node created:', this);
553 }
554 this.onRemoved = function() {
555 //console.log('Node removed:', this);
556 }
557 this.onPropertyChanged = function(name, value, prev_value) {
558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
559 }
560 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
562 }
563 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
565 }
566 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
568 }
569 this.color = '#004C94';
570 this.bgcolor = '#000';
571 this.shape = LiteGraph.ROUND_SHAPE;
572 this.onExecute = function() {
573 console.log('Executing node: ', this);
574 }
575}

◆ mtlx_input_input_color3()

function mtlx_input_input_color3 ( )

mtlx_input_input_color3

Library: mtlx. Category: input. Type: color3 LiteGraph id: mtlx/input/input_color3

Definition at line 56 of file mtlx_stdlib.js.

56 {
57 this.nodedef_icon = '';
58 this.nodedef_name = 'ND_input_color3';
59 this.nodedef_node = 'input';
60 this.nodedef_type = 'color3';
61 this.nodedef_group = 'input';
62 this.addInput('in', 'color3');
63 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
64 this.addOutput('out', 'color3');
65 this.title = 'input_color3';
66 this.desc = "MaterialX:mtlx/input/input_color3";
67 this.onNodeCreated = function() {
68 //console.log('Node created:', this);
69 }
70 this.onRemoved = function() {
71 //console.log('Node removed:', this);
72 }
73 this.onPropertyChanged = function(name, value, prev_value) {
74 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
75 }
76 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
77 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
78 }
79 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
80 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
81 }
82 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
83 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
84 }
85 this.color = '#004C94';
86 this.bgcolor = '#000';
87 this.boxcolor = '#37A';
88 this.shape = LiteGraph.ROUND_SHAPE;
89 this.onExecute = function() {
90 console.log('Executing node: ', this);
91 }
92}

◆ mtlx_input_input_color4()

function mtlx_input_input_color4 ( )

mtlx_input_input_color4

Library: mtlx. Category: input. Type: color4 LiteGraph id: mtlx/input/input_color4

Definition at line 100 of file mtlx_stdlib.js.

100 {
101 this.nodedef_icon = '';
102 this.nodedef_name = 'ND_input_color4';
103 this.nodedef_node = 'input';
104 this.nodedef_type = 'color4';
105 this.nodedef_group = 'input';
106 this.addInput('in', 'color4');
107 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
108 this.addOutput('out', 'color4');
109 this.title = 'input_color4';
110 this.desc = "MaterialX:mtlx/input/input_color4";
111 this.onNodeCreated = function() {
112 //console.log('Node created:', this);
113 }
114 this.onRemoved = function() {
115 //console.log('Node removed:', this);
116 }
117 this.onPropertyChanged = function(name, value, prev_value) {
118 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
119 }
120 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
121 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
122 }
123 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
124 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
125 }
126 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
127 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
128 }
129 this.color = '#004C94';
130 this.bgcolor = '#000';
131 this.boxcolor = '#69A';
132 this.shape = LiteGraph.ROUND_SHAPE;
133 this.onExecute = function() {
134 console.log('Executing node: ', this);
135 }
136}

◆ mtlx_input_input_displacementshader()

function mtlx_input_input_displacementshader ( )

mtlx_input_input_displacementshader

Library: mtlx. Category: input. Type: displacementshader LiteGraph id: mtlx/input/input_displacementshader

Definition at line 755 of file mtlx_stdlib.js.

755 {
756 this.nodedef_icon = '';
757 this.nodedef_name = 'ND_input_displacementshader';
758 this.nodedef_node = 'input';
759 this.nodedef_type = 'displacementshader';
760 this.nodedef_group = 'input';
761 this.addInput('in', 'displacementshader');
762 this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
763 this.addOutput('out', 'displacementshader');
764 this.title = 'input_displacementshader';
765 this.desc = "MaterialX:mtlx/input/input_displacementshader";
766 this.onNodeCreated = function() {
767 //console.log('Node created:', this);
768 }
769 this.onRemoved = function() {
770 //console.log('Node removed:', this);
771 }
772 this.onPropertyChanged = function(name, value, prev_value) {
773 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
774 }
775 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
776 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
777 }
778 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
779 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
780 }
781 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
782 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
783 }
784 this.color = '#004C94';
785 this.bgcolor = '#000';
786 this.shape = LiteGraph.ROUND_SHAPE;
787 this.onExecute = function() {
788 console.log('Executing node: ', this);
789 }
790}

◆ mtlx_input_input_EDF()

function mtlx_input_input_EDF ( )

mtlx_input_input_EDF

Library: mtlx. Category: input. Type: EDF LiteGraph id: mtlx/input/input_EDF

Definition at line 583 of file mtlx_stdlib.js.

583 {
584 this.nodedef_icon = '';
585 this.nodedef_name = 'ND_input_EDF';
586 this.nodedef_node = 'input';
587 this.nodedef_type = 'EDF';
588 this.nodedef_group = 'input';
589 this.addInput('in', 'EDF');
590 this.addProperty('in', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
591 this.addOutput('out', 'EDF');
592 this.title = 'input_EDF';
593 this.desc = "MaterialX:mtlx/input/input_EDF";
594 this.onNodeCreated = function() {
595 //console.log('Node created:', this);
596 }
597 this.onRemoved = function() {
598 //console.log('Node removed:', this);
599 }
600 this.onPropertyChanged = function(name, value, prev_value) {
601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
602 }
603 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
605 }
606 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
608 }
609 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
611 }
612 this.color = '#004C94';
613 this.bgcolor = '#000';
614 this.shape = LiteGraph.ROUND_SHAPE;
615 this.onExecute = function() {
616 console.log('Executing node: ', this);
617 }
618}

◆ mtlx_input_input_filename()

function mtlx_input_input_filename ( )

mtlx_input_input_filename

Library: mtlx. Category: input. Type: filename LiteGraph id: mtlx/input/input_filename

Definition at line 496 of file mtlx_stdlib.js.

496 {
497 this.nodedef_icon = '';
498 this.nodedef_name = 'ND_input_filename';
499 this.nodedef_node = 'input';
500 this.nodedef_type = 'filename';
501 this.nodedef_group = 'input';
502 this.addInput('in', 'filename');
503 this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
504 this.addOutput('out', 'filename');
505 this.title = 'input_filename';
506 this.desc = "MaterialX:mtlx/input/input_filename";
507 this.onNodeCreated = function() {
508 //console.log('Node created:', this);
509 }
510 this.onRemoved = function() {
511 //console.log('Node removed:', this);
512 }
513 this.onPropertyChanged = function(name, value, prev_value) {
514 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
515 }
516 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
517 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
518 }
519 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
520 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
521 }
522 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
523 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
524 }
525 this.color = '#004C94';
526 this.bgcolor = '#000';
527 this.boxcolor = '#888';
528 this.shape = LiteGraph.ROUND_SHAPE;
529 this.onExecute = function() {
530 console.log('Executing node: ', this);
531 }
532}

◆ mtlx_input_input_float()

function mtlx_input_input_float ( )

mtlx_input_input_float

Library: mtlx. Category: input. Type: float LiteGraph id: mtlx/input/input_float

Definition at line 12 of file mtlx_stdlib.js.

12 {
13 this.nodedef_icon = '';
14 this.nodedef_name = 'ND_input_float';
15 this.nodedef_node = 'input';
16 this.nodedef_type = 'float';
17 this.nodedef_group = 'input';
18 this.addInput('in', 'float');
19 this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
20 this.addOutput('out', 'float');
21 this.title = 'input_float';
22 this.desc = "MaterialX:mtlx/input/input_float";
23 this.onNodeCreated = function() {
24 //console.log('Node created:', this);
25 }
26 this.onRemoved = function() {
27 //console.log('Node removed:', this);
28 }
29 this.onPropertyChanged = function(name, value, prev_value) {
30 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
31 }
32 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34 }
35 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37 }
38 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40 }
41 this.color = '#004C94';
42 this.bgcolor = '#000';
43 this.boxcolor = '#161';
44 this.shape = LiteGraph.ROUND_SHAPE;
45 this.onExecute = function() {
46 console.log('Executing node: ', this);
47 }
48}

◆ mtlx_input_input_integer()

function mtlx_input_input_integer ( )

mtlx_input_input_integer

Library: mtlx. Category: input. Type: integer LiteGraph id: mtlx/input/input_integer

Definition at line 364 of file mtlx_stdlib.js.

364 {
365 this.nodedef_icon = '';
366 this.nodedef_name = 'ND_input_integer';
367 this.nodedef_node = 'input';
368 this.nodedef_type = 'integer';
369 this.nodedef_group = 'input';
370 this.addInput('in', 'integer');
371 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
372 this.addOutput('out', 'integer');
373 this.title = 'input_integer';
374 this.desc = "MaterialX:mtlx/input/input_integer";
375 this.onNodeCreated = function() {
376 //console.log('Node created:', this);
377 }
378 this.onRemoved = function() {
379 //console.log('Node removed:', this);
380 }
381 this.onPropertyChanged = function(name, value, prev_value) {
382 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
383 }
384 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
385 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
386 }
387 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
388 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
389 }
390 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
391 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
392 }
393 this.color = '#004C94';
394 this.bgcolor = '#000';
395 this.boxcolor = '#A32';
396 this.shape = LiteGraph.ROUND_SHAPE;
397 this.onExecute = function() {
398 console.log('Executing node: ', this);
399 }
400}

◆ mtlx_input_input_lightshader()

function mtlx_input_input_lightshader ( )

mtlx_input_input_lightshader

Library: mtlx. Category: input. Type: lightshader LiteGraph id: mtlx/input/input_lightshader

Definition at line 798 of file mtlx_stdlib.js.

798 {
799 this.nodedef_icon = '';
800 this.nodedef_name = 'ND_input_lightshader';
801 this.nodedef_node = 'input';
802 this.nodedef_type = 'lightshader';
803 this.nodedef_group = 'input';
804 this.addInput('in', 'lightshader');
805 this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
806 this.addOutput('out', 'lightshader');
807 this.title = 'input_lightshader';
808 this.desc = "MaterialX:mtlx/input/input_lightshader";
809 this.onNodeCreated = function() {
810 //console.log('Node created:', this);
811 }
812 this.onRemoved = function() {
813 //console.log('Node removed:', this);
814 }
815 this.onPropertyChanged = function(name, value, prev_value) {
816 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
817 }
818 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
819 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
820 }
821 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
822 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
823 }
824 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
825 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
826 }
827 this.color = '#004C94';
828 this.bgcolor = '#000';
829 this.shape = LiteGraph.ROUND_SHAPE;
830 this.onExecute = function() {
831 console.log('Executing node: ', this);
832 }
833}

◆ mtlx_input_input_material()

function mtlx_input_input_material ( )

mtlx_input_input_material

Library: mtlx. Category: input. Type: material LiteGraph id: mtlx/input/input_material

Definition at line 841 of file mtlx_stdlib.js.

841 {
842 this.nodedef_icon = '';
843 this.nodedef_name = 'ND_input_material';
844 this.nodedef_node = 'input';
845 this.nodedef_type = 'material';
846 this.nodedef_group = 'input';
847 this.addInput('in', 'material');
848 this.addProperty('in', '', 'material',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
849 this.addOutput('out', 'material');
850 this.title = 'input_material';
851 this.desc = "MaterialX:mtlx/input/input_material";
852 this.onNodeCreated = function() {
853 //console.log('Node created:', this);
854 }
855 this.onRemoved = function() {
856 //console.log('Node removed:', this);
857 }
858 this.onPropertyChanged = function(name, value, prev_value) {
859 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
860 }
861 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
862 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
863 }
864 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
865 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
866 }
867 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
868 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
869 }
870 this.color = '#004C94';
871 this.bgcolor = '#000';
872 this.shape = LiteGraph.ROUND_SHAPE;
873 this.onExecute = function() {
874 console.log('Executing node: ', this);
875 }
876}

◆ mtlx_input_input_matrix33()

function mtlx_input_input_matrix33 ( )

mtlx_input_input_matrix33

Library: mtlx. Category: input. Type: matrix33 LiteGraph id: mtlx/input/input_matrix33

Definition at line 276 of file mtlx_stdlib.js.

276 {
277 this.nodedef_icon = '';
278 this.nodedef_name = 'ND_input_matrix33';
279 this.nodedef_node = 'input';
280 this.nodedef_type = 'matrix33';
281 this.nodedef_group = 'input';
282 this.addInput('in', 'matrix33');
283 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":""});
284 this.addOutput('out', 'matrix33');
285 this.title = 'input_matrix33';
286 this.desc = "MaterialX:mtlx/input/input_matrix33";
287 this.onNodeCreated = function() {
288 //console.log('Node created:', this);
289 }
290 this.onRemoved = function() {
291 //console.log('Node removed:', this);
292 }
293 this.onPropertyChanged = function(name, value, prev_value) {
294 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
295 }
296 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
297 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
298 }
299 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
300 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
301 }
302 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
303 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
304 }
305 this.color = '#004C94';
306 this.bgcolor = '#000';
307 this.boxcolor = '#333';
308 this.shape = LiteGraph.ROUND_SHAPE;
309 this.onExecute = function() {
310 console.log('Executing node: ', this);
311 }
312}

◆ mtlx_input_input_matrix44()

function mtlx_input_input_matrix44 ( )

mtlx_input_input_matrix44

Library: mtlx. Category: input. Type: matrix44 LiteGraph id: mtlx/input/input_matrix44

Definition at line 320 of file mtlx_stdlib.js.

320 {
321 this.nodedef_icon = '';
322 this.nodedef_name = 'ND_input_matrix44';
323 this.nodedef_node = 'input';
324 this.nodedef_type = 'matrix44';
325 this.nodedef_group = 'input';
326 this.addInput('in', 'matrix44');
327 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":""});
328 this.addOutput('out', 'matrix44');
329 this.title = 'input_matrix44';
330 this.desc = "MaterialX:mtlx/input/input_matrix44";
331 this.onNodeCreated = function() {
332 //console.log('Node created:', this);
333 }
334 this.onRemoved = function() {
335 //console.log('Node removed:', this);
336 }
337 this.onPropertyChanged = function(name, value, prev_value) {
338 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
339 }
340 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
341 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
342 }
343 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
344 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
345 }
346 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
347 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
348 }
349 this.color = '#004C94';
350 this.bgcolor = '#000';
351 this.boxcolor = '#444';
352 this.shape = LiteGraph.ROUND_SHAPE;
353 this.onExecute = function() {
354 console.log('Executing node: ', this);
355 }
356}

◆ mtlx_input_input_string()

function mtlx_input_input_string ( )

mtlx_input_input_string

Library: mtlx. Category: input. Type: string LiteGraph id: mtlx/input/input_string

Definition at line 408 of file mtlx_stdlib.js.

408 {
409 this.nodedef_icon = '';
410 this.nodedef_name = 'ND_input_string';
411 this.nodedef_node = 'input';
412 this.nodedef_type = 'string';
413 this.nodedef_group = 'input';
414 this.addInput('in', 'string');
415 this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
416 this.addOutput('out', 'string');
417 this.title = 'input_string';
418 this.desc = "MaterialX:mtlx/input/input_string";
419 this.onNodeCreated = function() {
420 //console.log('Node created:', this);
421 }
422 this.onRemoved = function() {
423 //console.log('Node removed:', this);
424 }
425 this.onPropertyChanged = function(name, value, prev_value) {
426 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
427 }
428 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
429 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
430 }
431 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
432 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
433 }
434 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
435 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
436 }
437 this.color = '#004C94';
438 this.bgcolor = '#000';
439 this.boxcolor = '#395';
440 this.shape = LiteGraph.ROUND_SHAPE;
441 this.onExecute = function() {
442 console.log('Executing node: ', this);
443 }
444}

◆ mtlx_input_input_surfaceshader()

function mtlx_input_input_surfaceshader ( )

mtlx_input_input_surfaceshader

Library: mtlx. Category: input. Type: surfaceshader LiteGraph id: mtlx/input/input_surfaceshader

Definition at line 669 of file mtlx_stdlib.js.

669 {
670 this.nodedef_icon = '';
671 this.nodedef_name = 'ND_input_surfaceshader';
672 this.nodedef_node = 'input';
673 this.nodedef_type = 'surfaceshader';
674 this.nodedef_group = 'input';
675 this.addInput('in', 'surfaceshader');
676 this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
677 this.addOutput('out', 'surfaceshader');
678 this.title = 'input_surfaceshader';
679 this.desc = "MaterialX:mtlx/input/input_surfaceshader";
680 this.onNodeCreated = function() {
681 //console.log('Node created:', this);
682 }
683 this.onRemoved = function() {
684 //console.log('Node removed:', this);
685 }
686 this.onPropertyChanged = function(name, value, prev_value) {
687 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
688 }
689 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
690 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
691 }
692 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
693 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
694 }
695 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
696 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
697 }
698 this.color = '#004C94';
699 this.bgcolor = '#000';
700 this.shape = LiteGraph.ROUND_SHAPE;
701 this.onExecute = function() {
702 console.log('Executing node: ', this);
703 }
704}

◆ mtlx_input_input_VDF()

function mtlx_input_input_VDF ( )

mtlx_input_input_VDF

Library: mtlx. Category: input. Type: VDF LiteGraph id: mtlx/input/input_VDF

Definition at line 626 of file mtlx_stdlib.js.

626 {
627 this.nodedef_icon = '';
628 this.nodedef_name = 'ND_input_VDF';
629 this.nodedef_node = 'input';
630 this.nodedef_type = 'VDF';
631 this.nodedef_group = 'input';
632 this.addInput('in', 'VDF');
633 this.addProperty('in', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
634 this.addOutput('out', 'VDF');
635 this.title = 'input_VDF';
636 this.desc = "MaterialX:mtlx/input/input_VDF";
637 this.onNodeCreated = function() {
638 //console.log('Node created:', this);
639 }
640 this.onRemoved = function() {
641 //console.log('Node removed:', this);
642 }
643 this.onPropertyChanged = function(name, value, prev_value) {
644 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
645 }
646 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
647 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
648 }
649 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
650 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
651 }
652 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
653 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
654 }
655 this.color = '#004C94';
656 this.bgcolor = '#000';
657 this.shape = LiteGraph.ROUND_SHAPE;
658 this.onExecute = function() {
659 console.log('Executing node: ', this);
660 }
661}

◆ mtlx_input_input_vector2()

function mtlx_input_input_vector2 ( )

mtlx_input_input_vector2

Library: mtlx. Category: input. Type: vector2 LiteGraph id: mtlx/input/input_vector2

Definition at line 144 of file mtlx_stdlib.js.

144 {
145 this.nodedef_icon = '';
146 this.nodedef_name = 'ND_input_vector2';
147 this.nodedef_node = 'input';
148 this.nodedef_type = 'vector2';
149 this.nodedef_group = 'input';
150 this.addInput('in', 'vector2');
151 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
152 this.addOutput('out', 'vector2');
153 this.title = 'input_vector2';
154 this.desc = "MaterialX:mtlx/input/input_vector2";
155 this.onNodeCreated = function() {
156 //console.log('Node created:', this);
157 }
158 this.onRemoved = function() {
159 //console.log('Node removed:', this);
160 }
161 this.onPropertyChanged = function(name, value, prev_value) {
162 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
163 }
164 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
165 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
166 }
167 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
168 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
169 }
170 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
171 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
172 }
173 this.color = '#004C94';
174 this.bgcolor = '#000';
175 this.boxcolor = '#265';
176 this.shape = LiteGraph.ROUND_SHAPE;
177 this.onExecute = function() {
178 console.log('Executing node: ', this);
179 }
180}

◆ mtlx_input_input_vector2array()

function mtlx_input_input_vector2array ( )

mtlx_input_input_vector2array

Library: mtlx. Category: input. Type: vector2array LiteGraph id: mtlx/input/input_vector2array

Definition at line 884 of file mtlx_stdlib.js.

884 {
885 this.nodedef_icon = '';
886 this.nodedef_name = 'ND_input_vector2array';
887 this.nodedef_node = 'input';
888 this.nodedef_type = 'vector2array';
889 this.nodedef_group = 'input';
890 this.addInput('in', 'vector2array');
891 this.addProperty('in', '', 'vector2array',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
892 this.addOutput('out', 'vector2array');
893 this.title = 'input_vector2array';
894 this.desc = "MaterialX:mtlx/input/input_vector2array";
895 this.onNodeCreated = function() {
896 //console.log('Node created:', this);
897 }
898 this.onRemoved = function() {
899 //console.log('Node removed:', this);
900 }
901 this.onPropertyChanged = function(name, value, prev_value) {
902 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
903 }
904 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
905 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
906 }
907 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
908 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
909 }
910 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
911 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
912 }
913 this.color = '#004C94';
914 this.bgcolor = '#000';
915 this.shape = LiteGraph.ROUND_SHAPE;
916 this.onExecute = function() {
917 console.log('Executing node: ', this);
918 }
919}

◆ mtlx_input_input_vector3()

function mtlx_input_input_vector3 ( )

mtlx_input_input_vector3

Library: mtlx. Category: input. Type: vector3 LiteGraph id: mtlx/input/input_vector3

Definition at line 188 of file mtlx_stdlib.js.

188 {
189 this.nodedef_icon = '';
190 this.nodedef_name = 'ND_input_vector3';
191 this.nodedef_node = 'input';
192 this.nodedef_type = 'vector3';
193 this.nodedef_group = 'input';
194 this.addInput('in', 'vector3');
195 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
196 this.addOutput('out', 'vector3');
197 this.title = 'input_vector3';
198 this.desc = "MaterialX:mtlx/input/input_vector3";
199 this.onNodeCreated = function() {
200 //console.log('Node created:', this);
201 }
202 this.onRemoved = function() {
203 //console.log('Node removed:', this);
204 }
205 this.onPropertyChanged = function(name, value, prev_value) {
206 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
207 }
208 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
209 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
210 }
211 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
212 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
213 }
214 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
215 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
216 }
217 this.color = '#004C94';
218 this.bgcolor = '#000';
219 this.boxcolor = '#465';
220 this.shape = LiteGraph.ROUND_SHAPE;
221 this.onExecute = function() {
222 console.log('Executing node: ', this);
223 }
224}

◆ mtlx_input_input_vector4()

function mtlx_input_input_vector4 ( )

mtlx_input_input_vector4

Library: mtlx. Category: input. Type: vector4 LiteGraph id: mtlx/input/input_vector4

Definition at line 232 of file mtlx_stdlib.js.

232 {
233 this.nodedef_icon = '';
234 this.nodedef_name = 'ND_input_vector4';
235 this.nodedef_node = 'input';
236 this.nodedef_type = 'vector4';
237 this.nodedef_group = 'input';
238 this.addInput('in', 'vector4');
239 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
240 this.addOutput('out', 'vector4');
241 this.title = 'input_vector4';
242 this.desc = "MaterialX:mtlx/input/input_vector4";
243 this.onNodeCreated = function() {
244 //console.log('Node created:', this);
245 }
246 this.onRemoved = function() {
247 //console.log('Node removed:', this);
248 }
249 this.onPropertyChanged = function(name, value, prev_value) {
250 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
251 }
252 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
253 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
254 }
255 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
256 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
257 }
258 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
259 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
260 }
261 this.color = '#004C94';
262 this.bgcolor = '#000';
263 this.boxcolor = '#275';
264 this.shape = LiteGraph.ROUND_SHAPE;
265 this.onExecute = function() {
266 console.log('Executing node: ', this);
267 }
268}

◆ mtlx_input_input_volumeshader()

function mtlx_input_input_volumeshader ( )

mtlx_input_input_volumeshader

Library: mtlx. Category: input. Type: volumeshader LiteGraph id: mtlx/input/input_volumeshader

Definition at line 712 of file mtlx_stdlib.js.

712 {
713 this.nodedef_icon = '';
714 this.nodedef_name = 'ND_input_volumeshader';
715 this.nodedef_node = 'input';
716 this.nodedef_type = 'volumeshader';
717 this.nodedef_group = 'input';
718 this.addInput('in', 'volumeshader');
719 this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":""});
720 this.addOutput('out', 'volumeshader');
721 this.title = 'input_volumeshader';
722 this.desc = "MaterialX:mtlx/input/input_volumeshader";
723 this.onNodeCreated = function() {
724 //console.log('Node created:', this);
725 }
726 this.onRemoved = function() {
727 //console.log('Node removed:', this);
728 }
729 this.onPropertyChanged = function(name, value, prev_value) {
730 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
731 }
732 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
733 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
734 }
735 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
736 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
737 }
738 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
739 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
740 }
741 this.color = '#004C94';
742 this.bgcolor = '#000';
743 this.shape = LiteGraph.ROUND_SHAPE;
744 this.onExecute = function() {
745 console.log('Executing node: ', this);
746 }
747}

◆ mtlx_light_directional_light()

function mtlx_light_directional_light ( )

mtlx_light_directional_light

Library: mtlx. Category: point_light. Type: lightshader LiteGraph id: mtlx/light/directional_light

Definition at line 41247 of file mtlx_stdlib.js.

41247 {
41248 this.nodedef_icon = '';
41249 this.nodedef_name = 'ND_directional_light';
41250 this.nodedef_type = 'lightshader';
41251 this.nodedef_node = 'directional_light';
41252 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/directional_light.html';
41253 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_directional_light_out_genglsl.png';
41254 this.nodedef_group = 'light';
41255 this.addInput('direction','vector3');
41256 this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41257 this.addInput('color','color3');
41258 this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41259 this.addInput('intensity','float');
41260 this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41261 this.addOutput('out','lightshader');
41262 this.title = 'directional_light_lightshader';
41263 this.desc = "MaterialX:mtlx/light/directional_light";
41264 this.onNodeCreated = function() {
41265 //console.log('Node created:', this);
41266}
41267 this.onRemoved = function() {
41268 //console.log('Node removed:', this);
41269 }
41270 this.onPropertyChanged = function(name, value, prev_value) {
41271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41272 }
41273 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41275 }
41276 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41278 }
41279 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41281 }
41282 this.bgcolor = '#111';
41283 this.color = '#222';
41284 this.shape = LiteGraph.ROUND_SHAPE;
41285}

◆ mtlx_light_point_light()

function mtlx_light_point_light ( )

mtlx_light_point_light

Library: mtlx. Category: lin_displayp3_to_lin_rec709. Type: lightshader LiteGraph id: mtlx/light/point_light

Definition at line 41196 of file mtlx_stdlib.js.

41196 {
41197 this.nodedef_icon = '';
41198 this.nodedef_name = 'ND_point_light';
41199 this.nodedef_type = 'lightshader';
41200 this.nodedef_node = 'point_light';
41201 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/point_light.html';
41202 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_point_light_out_genglsl.png';
41203 this.nodedef_group = 'light';
41204 this.addInput('position','vector3');
41205 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41206 this.addInput('color','color3');
41207 this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41208 this.addInput('intensity','float');
41209 this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41210 this.addInput('decay_rate','float');
41211 this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41212 this.addOutput('out','lightshader');
41213 this.title = 'point_light_lightshader';
41214 this.desc = "MaterialX:mtlx/light/point_light";
41215 this.onNodeCreated = function() {
41216 //console.log('Node created:', this);
41217}
41218 this.onRemoved = function() {
41219 //console.log('Node removed:', this);
41220 }
41221 this.onPropertyChanged = function(name, value, prev_value) {
41222 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41223 }
41224 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41225 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41226 }
41227 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41228 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41229 }
41230 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41231 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41232 }
41233 this.bgcolor = '#111';
41234 this.color = '#222';
41235 this.shape = LiteGraph.ROUND_SHAPE;
41236}

◆ mtlx_light_spot_light()

function mtlx_light_spot_light ( )

mtlx_light_spot_light

Library: mtlx. Category: directional_light. Type: lightshader LiteGraph id: mtlx/light/spot_light

Definition at line 41296 of file mtlx_stdlib.js.

41296 {
41297 this.nodedef_icon = '';
41298 this.nodedef_name = 'ND_spot_light';
41299 this.nodedef_type = 'lightshader';
41300 this.nodedef_node = 'spot_light';
41301 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/spot_light.html';
41302 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_spot_light_out_genglsl.png';
41303 this.nodedef_group = 'light';
41304 this.addInput('position','vector3');
41305 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41306 this.addInput('direction','vector3');
41307 this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41308 this.addInput('color','color3');
41309 this.addProperty('color', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41310 this.addInput('intensity','float');
41311 this.addProperty('intensity', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41312 this.addInput('decay_rate','float');
41313 this.addProperty('decay_rate', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41314 this.addInput('inner_angle','float');
41315 this.addProperty('inner_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41316 this.addInput('outer_angle','float');
41317 this.addProperty('outer_angle', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
41318 this.addOutput('out','lightshader');
41319 this.title = 'spot_light_lightshader';
41320 this.desc = "MaterialX:mtlx/light/spot_light";
41321 this.onNodeCreated = function() {
41322 //console.log('Node created:', this);
41323}
41324 this.onRemoved = function() {
41325 //console.log('Node removed:', this);
41326 }
41327 this.onPropertyChanged = function(name, value, prev_value) {
41328 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
41329 }
41330 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
41331 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
41332 }
41333 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
41334 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
41335 }
41336 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
41337 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
41338 }
41339 this.bgcolor = '#111';
41340 this.color = '#222';
41341 this.shape = LiteGraph.ROUND_SHAPE;
41342}

◆ mtlx_material_surfacematerial()

function mtlx_material_surfacematerial ( )

mtlx_material_surfacematerial

Library: mtlx. Category: undefined. Type: material LiteGraph id: mtlx/material/surfacematerial

Definition at line 1842 of file mtlx_stdlib.js.

1842 {
1843 this.nodedef_icon = '';
1844 this.nodedef_name = 'ND_surfacematerial';
1845 this.nodedef_type = 'material';
1846 this.nodedef_node = 'surfacematerial';
1847 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surfacematerial.html';
1848 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surfacematerial_out_genglsl.png';
1849 this.nodedef_group = 'material';
1850 this.addInput('surfaceshader','surfaceshader');
1851 this.addProperty('surfaceshader', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1852 this.addInput('backsurfaceshader','surfaceshader');
1853 this.addProperty('backsurfaceshader', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1854 this.addInput('displacementshader','displacementshader');
1855 this.addProperty('displacementshader', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1856 this.addOutput('out','material');
1857 this.title = 'surfacematerial_material';
1858 this.desc = "MaterialX:mtlx/material/surfacematerial";
1859 this.onNodeCreated = function() {
1860 //console.log('Node created:', this);
1861}
1862 this.onRemoved = function() {
1863 //console.log('Node removed:', this);
1864 }
1865 this.onPropertyChanged = function(name, value, prev_value) {
1866 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1867 }
1868 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1869 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1870 }
1871 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1872 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1873 }
1874 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1875 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1876 }
1877 this.bgcolor = '#111';
1878 this.color = '#151';
1879 this.shape = LiteGraph.BOX_SHAPE;
1880}

◆ mtlx_material_volumematerial()

function mtlx_material_volumematerial ( )

mtlx_material_volumematerial

Library: mtlx. Category: surfacematerial. Type: material LiteGraph id: mtlx/material/volumematerial

Definition at line 1891 of file mtlx_stdlib.js.

1891 {
1892 this.nodedef_icon = '';
1893 this.nodedef_name = 'ND_volumematerial';
1894 this.nodedef_type = 'material';
1895 this.nodedef_node = 'volumematerial';
1896 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/volumematerial.html';
1897 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_volumematerial_out_genglsl.png';
1898 this.nodedef_group = 'material';
1899 this.addInput('volumeshader','volumeshader');
1900 this.addProperty('volumeshader', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1901 this.addOutput('out','material');
1902 this.title = 'volumematerial_material';
1903 this.desc = "MaterialX:mtlx/material/volumematerial";
1904 this.onNodeCreated = function() {
1905 //console.log('Node created:', this);
1906}
1907 this.onRemoved = function() {
1908 //console.log('Node removed:', this);
1909 }
1910 this.onPropertyChanged = function(name, value, prev_value) {
1911 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1912 }
1913 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1914 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1915 }
1916 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1917 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1918 }
1919 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1920 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1921 }
1922 this.bgcolor = '#111';
1923 this.color = '#151';
1924 this.shape = LiteGraph.BOX_SHAPE;
1925}

◆ mtlx_math_absval_color3()

function mtlx_math_absval_color3 ( )

mtlx_math_absval_color3

Library: mtlx. Category: absval. Type: color3 LiteGraph id: mtlx/math/absval_color3

Definition at line 13197 of file mtlx_stdlib.js.

13197 {
13198 this.nodedef_icon = '';
13199 this.nodedef_name = 'ND_absval_color3';
13200 this.nodedef_type = 'color3';
13201 this.nodedef_node = 'absval';
13202 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13203 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_color3_out_genglsl.png';
13204 this.nodedef_group = 'math';
13205 this.addInput('in','color3');
13206 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13207 this.addOutput('out','color3');
13208 this.title = 'absval_color3';
13209 this.desc = "MaterialX:mtlx/math/absval_color3";
13210 this.onNodeCreated = function() {
13211 //console.log('Node created:', this);
13212}
13213 this.onRemoved = function() {
13214 //console.log('Node removed:', this);
13215 }
13216 this.onPropertyChanged = function(name, value, prev_value) {
13217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13218 }
13219 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13221 }
13222 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13224 }
13225 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13227 }
13228 this.bgcolor = '#111';
13229 this.color = '#222';
13230 this.shape = LiteGraph.ROUND_SHAPE;
13231 this.boxcolor = '#37A';
13232}

◆ mtlx_math_absval_color4()

function mtlx_math_absval_color4 ( )

mtlx_math_absval_color4

Library: mtlx. Category: absval. Type: color4 LiteGraph id: mtlx/math/absval_color4

Definition at line 13243 of file mtlx_stdlib.js.

13243 {
13244 this.nodedef_icon = '';
13245 this.nodedef_name = 'ND_absval_color4';
13246 this.nodedef_type = 'color4';
13247 this.nodedef_node = 'absval';
13248 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13249 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_color4_out_genglsl.png';
13250 this.nodedef_group = 'math';
13251 this.addInput('in','color4');
13252 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13253 this.addOutput('out','color4');
13254 this.title = 'absval_color4';
13255 this.desc = "MaterialX:mtlx/math/absval_color4";
13256 this.onNodeCreated = function() {
13257 //console.log('Node created:', this);
13258}
13259 this.onRemoved = function() {
13260 //console.log('Node removed:', this);
13261 }
13262 this.onPropertyChanged = function(name, value, prev_value) {
13263 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13264 }
13265 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13266 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13267 }
13268 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13269 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13270 }
13271 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13272 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13273 }
13274 this.bgcolor = '#111';
13275 this.color = '#222';
13276 this.shape = LiteGraph.ROUND_SHAPE;
13277 this.boxcolor = '#69A';
13278}

◆ mtlx_math_absval_float()

function mtlx_math_absval_float ( )

mtlx_math_absval_float

Library: mtlx. Category: invert. Type: float LiteGraph id: mtlx/math/absval_float

Definition at line 13151 of file mtlx_stdlib.js.

13151 {
13152 this.nodedef_icon = '';
13153 this.nodedef_name = 'ND_absval_float';
13154 this.nodedef_type = 'float';
13155 this.nodedef_node = 'absval';
13156 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13157 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_float_out_genglsl.png';
13158 this.nodedef_group = 'math';
13159 this.addInput('in','float');
13160 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13161 this.addOutput('out','float');
13162 this.title = 'absval_float';
13163 this.desc = "MaterialX:mtlx/math/absval_float";
13164 this.onNodeCreated = function() {
13165 //console.log('Node created:', this);
13166}
13167 this.onRemoved = function() {
13168 //console.log('Node removed:', this);
13169 }
13170 this.onPropertyChanged = function(name, value, prev_value) {
13171 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13172 }
13173 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13174 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13175 }
13176 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13177 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13178 }
13179 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13180 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13181 }
13182 this.bgcolor = '#111';
13183 this.color = '#222';
13184 this.shape = LiteGraph.ROUND_SHAPE;
13185 this.boxcolor = '#161';
13186}

◆ mtlx_math_absval_vector2()

function mtlx_math_absval_vector2 ( )

mtlx_math_absval_vector2

Library: mtlx. Category: absval. Type: vector2 LiteGraph id: mtlx/math/absval_vector2

Definition at line 13289 of file mtlx_stdlib.js.

13289 {
13290 this.nodedef_icon = '';
13291 this.nodedef_name = 'ND_absval_vector2';
13292 this.nodedef_type = 'vector2';
13293 this.nodedef_node = 'absval';
13294 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13295 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector2_out_genglsl.png';
13296 this.nodedef_group = 'math';
13297 this.addInput('in','vector2');
13298 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13299 this.addOutput('out','vector2');
13300 this.title = 'absval_vector2';
13301 this.desc = "MaterialX:mtlx/math/absval_vector2";
13302 this.onNodeCreated = function() {
13303 //console.log('Node created:', this);
13304}
13305 this.onRemoved = function() {
13306 //console.log('Node removed:', this);
13307 }
13308 this.onPropertyChanged = function(name, value, prev_value) {
13309 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13310 }
13311 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13312 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13313 }
13314 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13315 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13316 }
13317 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13318 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13319 }
13320 this.bgcolor = '#111';
13321 this.color = '#222';
13322 this.shape = LiteGraph.ROUND_SHAPE;
13323 this.boxcolor = '#265';
13324}

◆ mtlx_math_absval_vector3()

function mtlx_math_absval_vector3 ( )

mtlx_math_absval_vector3

Library: mtlx. Category: absval. Type: vector3 LiteGraph id: mtlx/math/absval_vector3

Definition at line 13335 of file mtlx_stdlib.js.

13335 {
13336 this.nodedef_icon = '';
13337 this.nodedef_name = 'ND_absval_vector3';
13338 this.nodedef_type = 'vector3';
13339 this.nodedef_node = 'absval';
13340 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13341 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector3_out_genglsl.png';
13342 this.nodedef_group = 'math';
13343 this.addInput('in','vector3');
13344 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13345 this.addOutput('out','vector3');
13346 this.title = 'absval_vector3';
13347 this.desc = "MaterialX:mtlx/math/absval_vector3";
13348 this.onNodeCreated = function() {
13349 //console.log('Node created:', this);
13350}
13351 this.onRemoved = function() {
13352 //console.log('Node removed:', this);
13353 }
13354 this.onPropertyChanged = function(name, value, prev_value) {
13355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13356 }
13357 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13359 }
13360 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13362 }
13363 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13365 }
13366 this.bgcolor = '#111';
13367 this.color = '#222';
13368 this.shape = LiteGraph.ROUND_SHAPE;
13369 this.boxcolor = '#465';
13370}

◆ mtlx_math_absval_vector4()

function mtlx_math_absval_vector4 ( )

mtlx_math_absval_vector4

Library: mtlx. Category: absval. Type: vector4 LiteGraph id: mtlx/math/absval_vector4

Definition at line 13381 of file mtlx_stdlib.js.

13381 {
13382 this.nodedef_icon = '';
13383 this.nodedef_name = 'ND_absval_vector4';
13384 this.nodedef_type = 'vector4';
13385 this.nodedef_node = 'absval';
13386 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13387 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector4_out_genglsl.png';
13388 this.nodedef_group = 'math';
13389 this.addInput('in','vector4');
13390 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13391 this.addOutput('out','vector4');
13392 this.title = 'absval_vector4';
13393 this.desc = "MaterialX:mtlx/math/absval_vector4";
13394 this.onNodeCreated = function() {
13395 //console.log('Node created:', this);
13396}
13397 this.onRemoved = function() {
13398 //console.log('Node removed:', this);
13399 }
13400 this.onPropertyChanged = function(name, value, prev_value) {
13401 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13402 }
13403 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13404 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13405 }
13406 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13407 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13408 }
13409 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13410 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13411 }
13412 this.bgcolor = '#111';
13413 this.color = '#222';
13414 this.shape = LiteGraph.ROUND_SHAPE;
13415 this.boxcolor = '#275';
13416}

◆ mtlx_math_acos_float()

function mtlx_math_acos_float ( )

mtlx_math_acos_float

Library: mtlx. Category: asin. Type: float LiteGraph id: mtlx/math/acos_float

Definition at line 15633 of file mtlx_stdlib.js.

15633 {
15634 this.nodedef_icon = '';
15635 this.nodedef_name = 'ND_acos_float';
15636 this.nodedef_type = 'float';
15637 this.nodedef_node = 'acos';
15638 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15639 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_float_out_genglsl.png';
15640 this.nodedef_group = 'math';
15641 this.addInput('in','float');
15642 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15643 this.addOutput('out','float');
15644 this.title = 'acos_float';
15645 this.desc = "MaterialX:mtlx/math/acos_float";
15646 this.onNodeCreated = function() {
15647 //console.log('Node created:', this);
15648}
15649 this.onRemoved = function() {
15650 //console.log('Node removed:', this);
15651 }
15652 this.onPropertyChanged = function(name, value, prev_value) {
15653 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15654 }
15655 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15656 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15657 }
15658 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15659 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15660 }
15661 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15662 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15663 }
15664 this.bgcolor = '#111';
15665 this.color = '#222';
15666 this.shape = LiteGraph.ROUND_SHAPE;
15667 this.boxcolor = '#161';
15668}

◆ mtlx_math_acos_vector2()

function mtlx_math_acos_vector2 ( )

mtlx_math_acos_vector2

Library: mtlx. Category: asin. Type: vector2 LiteGraph id: mtlx/math/acos_vector2

Definition at line 15911 of file mtlx_stdlib.js.

15911 {
15912 this.nodedef_icon = '';
15913 this.nodedef_name = 'ND_acos_vector2';
15914 this.nodedef_type = 'vector2';
15915 this.nodedef_node = 'acos';
15916 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15917 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector2_out_genglsl.png';
15918 this.nodedef_group = 'math';
15919 this.addInput('in','vector2');
15920 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15921 this.addOutput('out','vector2');
15922 this.title = 'acos_vector2';
15923 this.desc = "MaterialX:mtlx/math/acos_vector2";
15924 this.onNodeCreated = function() {
15925 //console.log('Node created:', this);
15926}
15927 this.onRemoved = function() {
15928 //console.log('Node removed:', this);
15929 }
15930 this.onPropertyChanged = function(name, value, prev_value) {
15931 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15932 }
15933 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15934 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15935 }
15936 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15937 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15938 }
15939 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15940 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15941 }
15942 this.bgcolor = '#111';
15943 this.color = '#222';
15944 this.shape = LiteGraph.ROUND_SHAPE;
15945 this.boxcolor = '#265';
15946}

◆ mtlx_math_acos_vector3()

function mtlx_math_acos_vector3 ( )

mtlx_math_acos_vector3

Library: mtlx. Category: asin. Type: vector3 LiteGraph id: mtlx/math/acos_vector3

Definition at line 16189 of file mtlx_stdlib.js.

16189 {
16190 this.nodedef_icon = '';
16191 this.nodedef_name = 'ND_acos_vector3';
16192 this.nodedef_type = 'vector3';
16193 this.nodedef_node = 'acos';
16194 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16195 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector3_out_genglsl.png';
16196 this.nodedef_group = 'math';
16197 this.addInput('in','vector3');
16198 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16199 this.addOutput('out','vector3');
16200 this.title = 'acos_vector3';
16201 this.desc = "MaterialX:mtlx/math/acos_vector3";
16202 this.onNodeCreated = function() {
16203 //console.log('Node created:', this);
16204}
16205 this.onRemoved = function() {
16206 //console.log('Node removed:', this);
16207 }
16208 this.onPropertyChanged = function(name, value, prev_value) {
16209 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16210 }
16211 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16212 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16213 }
16214 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16215 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16216 }
16217 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16218 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16219 }
16220 this.bgcolor = '#111';
16221 this.color = '#222';
16222 this.shape = LiteGraph.ROUND_SHAPE;
16223 this.boxcolor = '#465';
16224}

◆ mtlx_math_acos_vector4()

function mtlx_math_acos_vector4 ( )

mtlx_math_acos_vector4

Library: mtlx. Category: asin. Type: vector4 LiteGraph id: mtlx/math/acos_vector4

Definition at line 16467 of file mtlx_stdlib.js.

16467 {
16468 this.nodedef_icon = '';
16469 this.nodedef_name = 'ND_acos_vector4';
16470 this.nodedef_type = 'vector4';
16471 this.nodedef_node = 'acos';
16472 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16473 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector4_out_genglsl.png';
16474 this.nodedef_group = 'math';
16475 this.addInput('in','vector4');
16476 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16477 this.addOutput('out','vector4');
16478 this.title = 'acos_vector4';
16479 this.desc = "MaterialX:mtlx/math/acos_vector4";
16480 this.onNodeCreated = function() {
16481 //console.log('Node created:', this);
16482}
16483 this.onRemoved = function() {
16484 //console.log('Node removed:', this);
16485 }
16486 this.onPropertyChanged = function(name, value, prev_value) {
16487 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16488 }
16489 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16490 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16491 }
16492 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16493 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16494 }
16495 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16496 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16497 }
16498 this.bgcolor = '#111';
16499 this.color = '#222';
16500 this.shape = LiteGraph.ROUND_SHAPE;
16501 this.boxcolor = '#275';
16502}

◆ mtlx_math_add_color3()

function mtlx_math_add_color3 ( )

mtlx_math_add_color3

Library: mtlx. Category: add. Type: color3 LiteGraph id: mtlx/math/add_color3

Definition at line 9407 of file mtlx_stdlib.js.

9407 {
9408 this.nodedef_icon = '';
9409 this.nodedef_name = 'ND_add_color3';
9410 this.nodedef_type = 'color3';
9411 this.nodedef_node = 'add';
9412 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9413 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color3_out_genglsl.png';
9414 this.nodedef_group = 'math';
9415 this.addInput('in1','color3');
9416 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9417 this.addInput('in2','color3');
9418 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9419 this.addOutput('out','color3');
9420 this.title = 'add_color3';
9421 this.desc = "MaterialX:mtlx/math/add_color3";
9422 this.onNodeCreated = function() {
9423 //console.log('Node created:', this);
9424}
9425 this.onRemoved = function() {
9426 //console.log('Node removed:', this);
9427 }
9428 this.onPropertyChanged = function(name, value, prev_value) {
9429 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9430 }
9431 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9432 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9433 }
9434 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9435 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9436 }
9437 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9438 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9439 }
9440 this.bgcolor = '#111';
9441 this.color = '#222';
9442 this.shape = LiteGraph.ROUND_SHAPE;
9443 this.boxcolor = '#37A';
9444}

◆ mtlx_math_add_color3FA()

function mtlx_math_add_color3FA ( )

mtlx_math_add_color3FA

Library: mtlx. Category: add. Type: color3 LiteGraph id: mtlx/math/add_color3FA

Definition at line 9743 of file mtlx_stdlib.js.

9743 {
9744 this.nodedef_icon = '';
9745 this.nodedef_name = 'ND_add_color3FA';
9746 this.nodedef_type = 'color3';
9747 this.nodedef_node = 'add';
9748 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9749 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color3FA_out_genglsl.png';
9750 this.nodedef_group = 'math';
9751 this.addInput('in1','color3');
9752 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9753 this.addInput('in2','float');
9754 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9755 this.addOutput('out','color3');
9756 this.title = 'add_color3';
9757 this.desc = "MaterialX:mtlx/math/add_color3FA";
9758 this.onNodeCreated = function() {
9759 //console.log('Node created:', this);
9760}
9761 this.onRemoved = function() {
9762 //console.log('Node removed:', this);
9763 }
9764 this.onPropertyChanged = function(name, value, prev_value) {
9765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9766 }
9767 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9769 }
9770 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9772 }
9773 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9775 }
9776 this.bgcolor = '#111';
9777 this.color = '#222';
9778 this.shape = LiteGraph.ROUND_SHAPE;
9779 this.boxcolor = '#37A';
9780}

◆ mtlx_math_add_color4()

function mtlx_math_add_color4 ( )

mtlx_math_add_color4

Library: mtlx. Category: add. Type: color4 LiteGraph id: mtlx/math/add_color4

Definition at line 9455 of file mtlx_stdlib.js.

9455 {
9456 this.nodedef_icon = '';
9457 this.nodedef_name = 'ND_add_color4';
9458 this.nodedef_type = 'color4';
9459 this.nodedef_node = 'add';
9460 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9461 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color4_out_genglsl.png';
9462 this.nodedef_group = 'math';
9463 this.addInput('in1','color4');
9464 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9465 this.addInput('in2','color4');
9466 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9467 this.addOutput('out','color4');
9468 this.title = 'add_color4';
9469 this.desc = "MaterialX:mtlx/math/add_color4";
9470 this.onNodeCreated = function() {
9471 //console.log('Node created:', this);
9472}
9473 this.onRemoved = function() {
9474 //console.log('Node removed:', this);
9475 }
9476 this.onPropertyChanged = function(name, value, prev_value) {
9477 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9478 }
9479 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9480 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9481 }
9482 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9483 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9484 }
9485 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9486 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9487 }
9488 this.bgcolor = '#111';
9489 this.color = '#222';
9490 this.shape = LiteGraph.ROUND_SHAPE;
9491 this.boxcolor = '#69A';
9492}

◆ mtlx_math_add_color4FA()

function mtlx_math_add_color4FA ( )

mtlx_math_add_color4FA

Library: mtlx. Category: add. Type: color4 LiteGraph id: mtlx/math/add_color4FA

Definition at line 9791 of file mtlx_stdlib.js.

9791 {
9792 this.nodedef_icon = '';
9793 this.nodedef_name = 'ND_add_color4FA';
9794 this.nodedef_type = 'color4';
9795 this.nodedef_node = 'add';
9796 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9797 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color4FA_out_genglsl.png';
9798 this.nodedef_group = 'math';
9799 this.addInput('in1','color4');
9800 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9801 this.addInput('in2','float');
9802 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9803 this.addOutput('out','color4');
9804 this.title = 'add_color4';
9805 this.desc = "MaterialX:mtlx/math/add_color4FA";
9806 this.onNodeCreated = function() {
9807 //console.log('Node created:', this);
9808}
9809 this.onRemoved = function() {
9810 //console.log('Node removed:', this);
9811 }
9812 this.onPropertyChanged = function(name, value, prev_value) {
9813 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9814 }
9815 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9816 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9817 }
9818 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9819 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9820 }
9821 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9822 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9823 }
9824 this.bgcolor = '#111';
9825 this.color = '#222';
9826 this.shape = LiteGraph.ROUND_SHAPE;
9827 this.boxcolor = '#69A';
9828}

◆ mtlx_math_add_float()

function mtlx_math_add_float ( )

mtlx_math_add_float

Library: mtlx. Category: time. Type: float LiteGraph id: mtlx/math/add_float

Definition at line 9311 of file mtlx_stdlib.js.

9311 {
9312 this.nodedef_icon = '';
9313 this.nodedef_name = 'ND_add_float';
9314 this.nodedef_type = 'float';
9315 this.nodedef_node = 'add';
9316 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9317 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_float_out_genglsl.png';
9318 this.nodedef_group = 'math';
9319 this.addInput('in1','float');
9320 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9321 this.addInput('in2','float');
9322 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9323 this.addOutput('out','float');
9324 this.title = 'add_float';
9325 this.desc = "MaterialX:mtlx/math/add_float";
9326 this.onNodeCreated = function() {
9327 //console.log('Node created:', this);
9328}
9329 this.onRemoved = function() {
9330 //console.log('Node removed:', this);
9331 }
9332 this.onPropertyChanged = function(name, value, prev_value) {
9333 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9334 }
9335 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9336 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9337 }
9338 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9339 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9340 }
9341 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9342 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9343 }
9344 this.bgcolor = '#111';
9345 this.color = '#222';
9346 this.shape = LiteGraph.ROUND_SHAPE;
9347 this.boxcolor = '#161';
9348}

◆ mtlx_math_add_integer()

function mtlx_math_add_integer ( )

mtlx_math_add_integer

Library: mtlx. Category: add. Type: integer LiteGraph id: mtlx/math/add_integer

Definition at line 9359 of file mtlx_stdlib.js.

9359 {
9360 this.nodedef_icon = '';
9361 this.nodedef_name = 'ND_add_integer';
9362 this.nodedef_type = 'integer';
9363 this.nodedef_node = 'add';
9364 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9365 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_integer_out_genglsl.png';
9366 this.nodedef_group = 'math';
9367 this.addInput('in1','integer');
9368 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9369 this.addInput('in2','integer');
9370 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9371 this.addOutput('out','integer');
9372 this.title = 'add_integer';
9373 this.desc = "MaterialX:mtlx/math/add_integer";
9374 this.onNodeCreated = function() {
9375 //console.log('Node created:', this);
9376}
9377 this.onRemoved = function() {
9378 //console.log('Node removed:', this);
9379 }
9380 this.onPropertyChanged = function(name, value, prev_value) {
9381 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9382 }
9383 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9384 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9385 }
9386 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9387 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9388 }
9389 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9390 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9391 }
9392 this.bgcolor = '#111';
9393 this.color = '#222';
9394 this.shape = LiteGraph.ROUND_SHAPE;
9395 this.boxcolor = '#A32';
9396}

◆ mtlx_math_add_matrix33()

function mtlx_math_add_matrix33 ( )

mtlx_math_add_matrix33

Library: mtlx. Category: add. Type: matrix33 LiteGraph id: mtlx/math/add_matrix33

Definition at line 9647 of file mtlx_stdlib.js.

9647 {
9648 this.nodedef_icon = '';
9649 this.nodedef_name = 'ND_add_matrix33';
9650 this.nodedef_type = 'matrix33';
9651 this.nodedef_node = 'add';
9652 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9653 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix33_out_genglsl.png';
9654 this.nodedef_group = 'math';
9655 this.addInput('in1','matrix33');
9656 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":"","defaultgeomprop":""});
9657 this.addInput('in2','matrix33');
9658 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":"","defaultgeomprop":""});
9659 this.addOutput('out','matrix33');
9660 this.title = 'add_matrix33';
9661 this.desc = "MaterialX:mtlx/math/add_matrix33";
9662 this.onNodeCreated = function() {
9663 //console.log('Node created:', this);
9664}
9665 this.onRemoved = function() {
9666 //console.log('Node removed:', this);
9667 }
9668 this.onPropertyChanged = function(name, value, prev_value) {
9669 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9670 }
9671 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9672 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9673 }
9674 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9675 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9676 }
9677 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9678 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9679 }
9680 this.bgcolor = '#111';
9681 this.color = '#222';
9682 this.shape = LiteGraph.ROUND_SHAPE;
9683 this.boxcolor = '#333';
9684}

◆ mtlx_math_add_matrix33FA()

function mtlx_math_add_matrix33FA ( )

mtlx_math_add_matrix33FA

Library: mtlx. Category: add. Type: matrix33 LiteGraph id: mtlx/math/add_matrix33FA

Definition at line 9983 of file mtlx_stdlib.js.

9983 {
9984 this.nodedef_icon = '';
9985 this.nodedef_name = 'ND_add_matrix33FA';
9986 this.nodedef_type = 'matrix33';
9987 this.nodedef_node = 'add';
9988 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9989 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix33FA_out_genglsl.png';
9990 this.nodedef_group = 'math';
9991 this.addInput('in1','matrix33');
9992 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":"","defaultgeomprop":""});
9993 this.addInput('in2','float');
9994 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9995 this.addOutput('out','matrix33');
9996 this.title = 'add_matrix33';
9997 this.desc = "MaterialX:mtlx/math/add_matrix33FA";
9998 this.onNodeCreated = function() {
9999 //console.log('Node created:', this);
10000}
10001 this.onRemoved = function() {
10002 //console.log('Node removed:', this);
10003 }
10004 this.onPropertyChanged = function(name, value, prev_value) {
10005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10006 }
10007 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10009 }
10010 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10012 }
10013 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10015 }
10016 this.bgcolor = '#111';
10017 this.color = '#222';
10018 this.shape = LiteGraph.ROUND_SHAPE;
10019 this.boxcolor = '#333';
10020}

◆ mtlx_math_add_matrix44()

function mtlx_math_add_matrix44 ( )

mtlx_math_add_matrix44

Library: mtlx. Category: add. Type: matrix44 LiteGraph id: mtlx/math/add_matrix44

Definition at line 9695 of file mtlx_stdlib.js.

9695 {
9696 this.nodedef_icon = '';
9697 this.nodedef_name = 'ND_add_matrix44';
9698 this.nodedef_type = 'matrix44';
9699 this.nodedef_node = 'add';
9700 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9701 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix44_out_genglsl.png';
9702 this.nodedef_group = 'math';
9703 this.addInput('in1','matrix44');
9704 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":"","defaultgeomprop":""});
9705 this.addInput('in2','matrix44');
9706 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":"","defaultgeomprop":""});
9707 this.addOutput('out','matrix44');
9708 this.title = 'add_matrix44';
9709 this.desc = "MaterialX:mtlx/math/add_matrix44";
9710 this.onNodeCreated = function() {
9711 //console.log('Node created:', this);
9712}
9713 this.onRemoved = function() {
9714 //console.log('Node removed:', this);
9715 }
9716 this.onPropertyChanged = function(name, value, prev_value) {
9717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9718 }
9719 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9721 }
9722 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9724 }
9725 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9727 }
9728 this.bgcolor = '#111';
9729 this.color = '#222';
9730 this.shape = LiteGraph.ROUND_SHAPE;
9731 this.boxcolor = '#444';
9732}

◆ mtlx_math_add_matrix44FA()

function mtlx_math_add_matrix44FA ( )

mtlx_math_add_matrix44FA

Library: mtlx. Category: add. Type: matrix44 LiteGraph id: mtlx/math/add_matrix44FA

Definition at line 10031 of file mtlx_stdlib.js.

10031 {
10032 this.nodedef_icon = '';
10033 this.nodedef_name = 'ND_add_matrix44FA';
10034 this.nodedef_type = 'matrix44';
10035 this.nodedef_node = 'add';
10036 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
10037 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix44FA_out_genglsl.png';
10038 this.nodedef_group = 'math';
10039 this.addInput('in1','matrix44');
10040 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":"","defaultgeomprop":""});
10041 this.addInput('in2','float');
10042 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10043 this.addOutput('out','matrix44');
10044 this.title = 'add_matrix44';
10045 this.desc = "MaterialX:mtlx/math/add_matrix44FA";
10046 this.onNodeCreated = function() {
10047 //console.log('Node created:', this);
10048}
10049 this.onRemoved = function() {
10050 //console.log('Node removed:', this);
10051 }
10052 this.onPropertyChanged = function(name, value, prev_value) {
10053 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10054 }
10055 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10056 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10057 }
10058 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10059 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10060 }
10061 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10062 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10063 }
10064 this.bgcolor = '#111';
10065 this.color = '#222';
10066 this.shape = LiteGraph.ROUND_SHAPE;
10067 this.boxcolor = '#444';
10068}

◆ mtlx_math_add_vector2()

function mtlx_math_add_vector2 ( )

mtlx_math_add_vector2

Library: mtlx. Category: add. Type: vector2 LiteGraph id: mtlx/math/add_vector2

Definition at line 9503 of file mtlx_stdlib.js.

9503 {
9504 this.nodedef_icon = '';
9505 this.nodedef_name = 'ND_add_vector2';
9506 this.nodedef_type = 'vector2';
9507 this.nodedef_node = 'add';
9508 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9509 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector2_out_genglsl.png';
9510 this.nodedef_group = 'math';
9511 this.addInput('in1','vector2');
9512 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9513 this.addInput('in2','vector2');
9514 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9515 this.addOutput('out','vector2');
9516 this.title = 'add_vector2';
9517 this.desc = "MaterialX:mtlx/math/add_vector2";
9518 this.onNodeCreated = function() {
9519 //console.log('Node created:', this);
9520}
9521 this.onRemoved = function() {
9522 //console.log('Node removed:', this);
9523 }
9524 this.onPropertyChanged = function(name, value, prev_value) {
9525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9526 }
9527 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9529 }
9530 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9532 }
9533 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9535 }
9536 this.bgcolor = '#111';
9537 this.color = '#222';
9538 this.shape = LiteGraph.ROUND_SHAPE;
9539 this.boxcolor = '#265';
9540}

◆ mtlx_math_add_vector2FA()

function mtlx_math_add_vector2FA ( )

mtlx_math_add_vector2FA

Library: mtlx. Category: add. Type: vector2 LiteGraph id: mtlx/math/add_vector2FA

Definition at line 9839 of file mtlx_stdlib.js.

9839 {
9840 this.nodedef_icon = '';
9841 this.nodedef_name = 'ND_add_vector2FA';
9842 this.nodedef_type = 'vector2';
9843 this.nodedef_node = 'add';
9844 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9845 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector2FA_out_genglsl.png';
9846 this.nodedef_group = 'math';
9847 this.addInput('in1','vector2');
9848 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9849 this.addInput('in2','float');
9850 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9851 this.addOutput('out','vector2');
9852 this.title = 'add_vector2';
9853 this.desc = "MaterialX:mtlx/math/add_vector2FA";
9854 this.onNodeCreated = function() {
9855 //console.log('Node created:', this);
9856}
9857 this.onRemoved = function() {
9858 //console.log('Node removed:', this);
9859 }
9860 this.onPropertyChanged = function(name, value, prev_value) {
9861 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9862 }
9863 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9864 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9865 }
9866 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9867 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9868 }
9869 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9870 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9871 }
9872 this.bgcolor = '#111';
9873 this.color = '#222';
9874 this.shape = LiteGraph.ROUND_SHAPE;
9875 this.boxcolor = '#265';
9876}

◆ mtlx_math_add_vector3()

function mtlx_math_add_vector3 ( )

mtlx_math_add_vector3

Library: mtlx. Category: add. Type: vector3 LiteGraph id: mtlx/math/add_vector3

Definition at line 9551 of file mtlx_stdlib.js.

9551 {
9552 this.nodedef_icon = '';
9553 this.nodedef_name = 'ND_add_vector3';
9554 this.nodedef_type = 'vector3';
9555 this.nodedef_node = 'add';
9556 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9557 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector3_out_genglsl.png';
9558 this.nodedef_group = 'math';
9559 this.addInput('in1','vector3');
9560 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9561 this.addInput('in2','vector3');
9562 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9563 this.addOutput('out','vector3');
9564 this.title = 'add_vector3';
9565 this.desc = "MaterialX:mtlx/math/add_vector3";
9566 this.onNodeCreated = function() {
9567 //console.log('Node created:', this);
9568}
9569 this.onRemoved = function() {
9570 //console.log('Node removed:', this);
9571 }
9572 this.onPropertyChanged = function(name, value, prev_value) {
9573 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9574 }
9575 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9576 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9577 }
9578 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9579 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9580 }
9581 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9582 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9583 }
9584 this.bgcolor = '#111';
9585 this.color = '#222';
9586 this.shape = LiteGraph.ROUND_SHAPE;
9587 this.boxcolor = '#465';
9588}

◆ mtlx_math_add_vector3FA()

function mtlx_math_add_vector3FA ( )

mtlx_math_add_vector3FA

Library: mtlx. Category: add. Type: vector3 LiteGraph id: mtlx/math/add_vector3FA

Definition at line 9887 of file mtlx_stdlib.js.

9887 {
9888 this.nodedef_icon = '';
9889 this.nodedef_name = 'ND_add_vector3FA';
9890 this.nodedef_type = 'vector3';
9891 this.nodedef_node = 'add';
9892 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9893 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector3FA_out_genglsl.png';
9894 this.nodedef_group = 'math';
9895 this.addInput('in1','vector3');
9896 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9897 this.addInput('in2','float');
9898 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9899 this.addOutput('out','vector3');
9900 this.title = 'add_vector3';
9901 this.desc = "MaterialX:mtlx/math/add_vector3FA";
9902 this.onNodeCreated = function() {
9903 //console.log('Node created:', this);
9904}
9905 this.onRemoved = function() {
9906 //console.log('Node removed:', this);
9907 }
9908 this.onPropertyChanged = function(name, value, prev_value) {
9909 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9910 }
9911 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9912 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9913 }
9914 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9915 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9916 }
9917 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9918 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9919 }
9920 this.bgcolor = '#111';
9921 this.color = '#222';
9922 this.shape = LiteGraph.ROUND_SHAPE;
9923 this.boxcolor = '#465';
9924}

◆ mtlx_math_add_vector4()

function mtlx_math_add_vector4 ( )

mtlx_math_add_vector4

Library: mtlx. Category: add. Type: vector4 LiteGraph id: mtlx/math/add_vector4

Definition at line 9599 of file mtlx_stdlib.js.

9599 {
9600 this.nodedef_icon = '';
9601 this.nodedef_name = 'ND_add_vector4';
9602 this.nodedef_type = 'vector4';
9603 this.nodedef_node = 'add';
9604 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9605 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector4_out_genglsl.png';
9606 this.nodedef_group = 'math';
9607 this.addInput('in1','vector4');
9608 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9609 this.addInput('in2','vector4');
9610 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9611 this.addOutput('out','vector4');
9612 this.title = 'add_vector4';
9613 this.desc = "MaterialX:mtlx/math/add_vector4";
9614 this.onNodeCreated = function() {
9615 //console.log('Node created:', this);
9616}
9617 this.onRemoved = function() {
9618 //console.log('Node removed:', this);
9619 }
9620 this.onPropertyChanged = function(name, value, prev_value) {
9621 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9622 }
9623 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9624 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9625 }
9626 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9627 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9628 }
9629 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9630 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9631 }
9632 this.bgcolor = '#111';
9633 this.color = '#222';
9634 this.shape = LiteGraph.ROUND_SHAPE;
9635 this.boxcolor = '#275';
9636}

◆ mtlx_math_add_vector4FA()

function mtlx_math_add_vector4FA ( )

mtlx_math_add_vector4FA

Library: mtlx. Category: add. Type: vector4 LiteGraph id: mtlx/math/add_vector4FA

Definition at line 9935 of file mtlx_stdlib.js.

9935 {
9936 this.nodedef_icon = '';
9937 this.nodedef_name = 'ND_add_vector4FA';
9938 this.nodedef_type = 'vector4';
9939 this.nodedef_node = 'add';
9940 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9941 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector4FA_out_genglsl.png';
9942 this.nodedef_group = 'math';
9943 this.addInput('in1','vector4');
9944 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9945 this.addInput('in2','float');
9946 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
9947 this.addOutput('out','vector4');
9948 this.title = 'add_vector4';
9949 this.desc = "MaterialX:mtlx/math/add_vector4FA";
9950 this.onNodeCreated = function() {
9951 //console.log('Node created:', this);
9952}
9953 this.onRemoved = function() {
9954 //console.log('Node removed:', this);
9955 }
9956 this.onPropertyChanged = function(name, value, prev_value) {
9957 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
9958 }
9959 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
9960 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
9961 }
9962 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
9963 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
9964 }
9965 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
9966 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
9967 }
9968 this.bgcolor = '#111';
9969 this.color = '#222';
9970 this.shape = LiteGraph.ROUND_SHAPE;
9971 this.boxcolor = '#275';
9972}

◆ mtlx_math_asin_float()

function mtlx_math_asin_float ( )

mtlx_math_asin_float

Library: mtlx. Category: tan. Type: float LiteGraph id: mtlx/math/asin_float

Definition at line 15587 of file mtlx_stdlib.js.

15587 {
15588 this.nodedef_icon = '';
15589 this.nodedef_name = 'ND_asin_float';
15590 this.nodedef_type = 'float';
15591 this.nodedef_node = 'asin';
15592 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15593 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_float_out_genglsl.png';
15594 this.nodedef_group = 'math';
15595 this.addInput('in','float');
15596 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15597 this.addOutput('out','float');
15598 this.title = 'asin_float';
15599 this.desc = "MaterialX:mtlx/math/asin_float";
15600 this.onNodeCreated = function() {
15601 //console.log('Node created:', this);
15602}
15603 this.onRemoved = function() {
15604 //console.log('Node removed:', this);
15605 }
15606 this.onPropertyChanged = function(name, value, prev_value) {
15607 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15608 }
15609 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15610 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15611 }
15612 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15613 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15614 }
15615 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15616 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15617 }
15618 this.bgcolor = '#111';
15619 this.color = '#222';
15620 this.shape = LiteGraph.ROUND_SHAPE;
15621 this.boxcolor = '#161';
15622}

◆ mtlx_math_asin_vector2()

function mtlx_math_asin_vector2 ( )

mtlx_math_asin_vector2

Library: mtlx. Category: tan. Type: vector2 LiteGraph id: mtlx/math/asin_vector2

Definition at line 15865 of file mtlx_stdlib.js.

15865 {
15866 this.nodedef_icon = '';
15867 this.nodedef_name = 'ND_asin_vector2';
15868 this.nodedef_type = 'vector2';
15869 this.nodedef_node = 'asin';
15870 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15871 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector2_out_genglsl.png';
15872 this.nodedef_group = 'math';
15873 this.addInput('in','vector2');
15874 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15875 this.addOutput('out','vector2');
15876 this.title = 'asin_vector2';
15877 this.desc = "MaterialX:mtlx/math/asin_vector2";
15878 this.onNodeCreated = function() {
15879 //console.log('Node created:', this);
15880}
15881 this.onRemoved = function() {
15882 //console.log('Node removed:', this);
15883 }
15884 this.onPropertyChanged = function(name, value, prev_value) {
15885 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15886 }
15887 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15888 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15889 }
15890 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15891 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15892 }
15893 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15894 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15895 }
15896 this.bgcolor = '#111';
15897 this.color = '#222';
15898 this.shape = LiteGraph.ROUND_SHAPE;
15899 this.boxcolor = '#265';
15900}

◆ mtlx_math_asin_vector3()

function mtlx_math_asin_vector3 ( )

mtlx_math_asin_vector3

Library: mtlx. Category: tan. Type: vector3 LiteGraph id: mtlx/math/asin_vector3

Definition at line 16143 of file mtlx_stdlib.js.

16143 {
16144 this.nodedef_icon = '';
16145 this.nodedef_name = 'ND_asin_vector3';
16146 this.nodedef_type = 'vector3';
16147 this.nodedef_node = 'asin';
16148 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16149 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector3_out_genglsl.png';
16150 this.nodedef_group = 'math';
16151 this.addInput('in','vector3');
16152 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16153 this.addOutput('out','vector3');
16154 this.title = 'asin_vector3';
16155 this.desc = "MaterialX:mtlx/math/asin_vector3";
16156 this.onNodeCreated = function() {
16157 //console.log('Node created:', this);
16158}
16159 this.onRemoved = function() {
16160 //console.log('Node removed:', this);
16161 }
16162 this.onPropertyChanged = function(name, value, prev_value) {
16163 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16164 }
16165 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16166 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16167 }
16168 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16169 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16170 }
16171 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16172 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16173 }
16174 this.bgcolor = '#111';
16175 this.color = '#222';
16176 this.shape = LiteGraph.ROUND_SHAPE;
16177 this.boxcolor = '#465';
16178}

◆ mtlx_math_asin_vector4()

function mtlx_math_asin_vector4 ( )

mtlx_math_asin_vector4

Library: mtlx. Category: tan. Type: vector4 LiteGraph id: mtlx/math/asin_vector4

Definition at line 16421 of file mtlx_stdlib.js.

16421 {
16422 this.nodedef_icon = '';
16423 this.nodedef_name = 'ND_asin_vector4';
16424 this.nodedef_type = 'vector4';
16425 this.nodedef_node = 'asin';
16426 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16427 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector4_out_genglsl.png';
16428 this.nodedef_group = 'math';
16429 this.addInput('in','vector4');
16430 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16431 this.addOutput('out','vector4');
16432 this.title = 'asin_vector4';
16433 this.desc = "MaterialX:mtlx/math/asin_vector4";
16434 this.onNodeCreated = function() {
16435 //console.log('Node created:', this);
16436}
16437 this.onRemoved = function() {
16438 //console.log('Node removed:', this);
16439 }
16440 this.onPropertyChanged = function(name, value, prev_value) {
16441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16442 }
16443 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16445 }
16446 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16448 }
16449 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16451 }
16452 this.bgcolor = '#111';
16453 this.color = '#222';
16454 this.shape = LiteGraph.ROUND_SHAPE;
16455 this.boxcolor = '#275';
16456}

◆ mtlx_math_atan2_float()

function mtlx_math_atan2_float ( )

mtlx_math_atan2_float

Library: mtlx. Category: acos. Type: float LiteGraph id: mtlx/math/atan2_float

Definition at line 15679 of file mtlx_stdlib.js.

15679 {
15680 this.nodedef_icon = '';
15681 this.nodedef_name = 'ND_atan2_float';
15682 this.nodedef_type = 'float';
15683 this.nodedef_node = 'atan2';
15684 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
15685 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_float_out_genglsl.png';
15686 this.nodedef_group = 'math';
15687 this.addInput('iny','float');
15688 this.addProperty('iny', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15689 this.addInput('inx','float');
15690 this.addProperty('inx', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15691 this.addOutput('out','float');
15692 this.title = 'atan2_float';
15693 this.desc = "MaterialX:mtlx/math/atan2_float";
15694 this.onNodeCreated = function() {
15695 //console.log('Node created:', this);
15696}
15697 this.onRemoved = function() {
15698 //console.log('Node removed:', this);
15699 }
15700 this.onPropertyChanged = function(name, value, prev_value) {
15701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15702 }
15703 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15705 }
15706 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15708 }
15709 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15711 }
15712 this.bgcolor = '#111';
15713 this.color = '#222';
15714 this.shape = LiteGraph.ROUND_SHAPE;
15715 this.boxcolor = '#161';
15716}

◆ mtlx_math_atan2_vector2()

function mtlx_math_atan2_vector2 ( )

mtlx_math_atan2_vector2

Library: mtlx. Category: acos. Type: vector2 LiteGraph id: mtlx/math/atan2_vector2

Definition at line 15957 of file mtlx_stdlib.js.

15957 {
15958 this.nodedef_icon = '';
15959 this.nodedef_name = 'ND_atan2_vector2';
15960 this.nodedef_type = 'vector2';
15961 this.nodedef_node = 'atan2';
15962 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
15963 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector2_out_genglsl.png';
15964 this.nodedef_group = 'math';
15965 this.addInput('iny','vector2');
15966 this.addProperty('iny', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15967 this.addInput('inx','vector2');
15968 this.addProperty('inx', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15969 this.addOutput('out','vector2');
15970 this.title = 'atan2_vector2';
15971 this.desc = "MaterialX:mtlx/math/atan2_vector2";
15972 this.onNodeCreated = function() {
15973 //console.log('Node created:', this);
15974}
15975 this.onRemoved = function() {
15976 //console.log('Node removed:', this);
15977 }
15978 this.onPropertyChanged = function(name, value, prev_value) {
15979 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15980 }
15981 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15982 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15983 }
15984 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15985 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15986 }
15987 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15988 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15989 }
15990 this.bgcolor = '#111';
15991 this.color = '#222';
15992 this.shape = LiteGraph.ROUND_SHAPE;
15993 this.boxcolor = '#265';
15994}

◆ mtlx_math_atan2_vector3()

function mtlx_math_atan2_vector3 ( )

mtlx_math_atan2_vector3

Library: mtlx. Category: acos. Type: vector3 LiteGraph id: mtlx/math/atan2_vector3

Definition at line 16235 of file mtlx_stdlib.js.

16235 {
16236 this.nodedef_icon = '';
16237 this.nodedef_name = 'ND_atan2_vector3';
16238 this.nodedef_type = 'vector3';
16239 this.nodedef_node = 'atan2';
16240 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16241 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector3_out_genglsl.png';
16242 this.nodedef_group = 'math';
16243 this.addInput('iny','vector3');
16244 this.addProperty('iny', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16245 this.addInput('inx','vector3');
16246 this.addProperty('inx', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16247 this.addOutput('out','vector3');
16248 this.title = 'atan2_vector3';
16249 this.desc = "MaterialX:mtlx/math/atan2_vector3";
16250 this.onNodeCreated = function() {
16251 //console.log('Node created:', this);
16252}
16253 this.onRemoved = function() {
16254 //console.log('Node removed:', this);
16255 }
16256 this.onPropertyChanged = function(name, value, prev_value) {
16257 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16258 }
16259 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16260 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16261 }
16262 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16263 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16264 }
16265 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16266 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16267 }
16268 this.bgcolor = '#111';
16269 this.color = '#222';
16270 this.shape = LiteGraph.ROUND_SHAPE;
16271 this.boxcolor = '#465';
16272}

◆ mtlx_math_atan2_vector4()

function mtlx_math_atan2_vector4 ( )

mtlx_math_atan2_vector4

Library: mtlx. Category: acos. Type: vector4 LiteGraph id: mtlx/math/atan2_vector4

Definition at line 16513 of file mtlx_stdlib.js.

16513 {
16514 this.nodedef_icon = '';
16515 this.nodedef_name = 'ND_atan2_vector4';
16516 this.nodedef_type = 'vector4';
16517 this.nodedef_node = 'atan2';
16518 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16519 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector4_out_genglsl.png';
16520 this.nodedef_group = 'math';
16521 this.addInput('iny','vector4');
16522 this.addProperty('iny', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16523 this.addInput('inx','vector4');
16524 this.addProperty('inx', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16525 this.addOutput('out','vector4');
16526 this.title = 'atan2_vector4';
16527 this.desc = "MaterialX:mtlx/math/atan2_vector4";
16528 this.onNodeCreated = function() {
16529 //console.log('Node created:', this);
16530}
16531 this.onRemoved = function() {
16532 //console.log('Node removed:', this);
16533 }
16534 this.onPropertyChanged = function(name, value, prev_value) {
16535 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16536 }
16537 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16538 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16539 }
16540 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16541 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16542 }
16543 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16544 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16545 }
16546 this.bgcolor = '#111';
16547 this.color = '#222';
16548 this.shape = LiteGraph.ROUND_SHAPE;
16549 this.boxcolor = '#275';
16550}

◆ mtlx_math_ceil_color3()

function mtlx_math_ceil_color3 ( )

mtlx_math_ceil_color3

Library: mtlx. Category: ceil. Type: color3 LiteGraph id: mtlx/math/ceil_color3

Definition at line 13795 of file mtlx_stdlib.js.

13795 {
13796 this.nodedef_icon = '';
13797 this.nodedef_name = 'ND_ceil_color3';
13798 this.nodedef_type = 'color3';
13799 this.nodedef_node = 'ceil';
13800 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13801 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_color3_out_genglsl.png';
13802 this.nodedef_group = 'math';
13803 this.addInput('in','color3');
13804 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13805 this.addOutput('out','color3');
13806 this.title = 'ceil_color3';
13807 this.desc = "MaterialX:mtlx/math/ceil_color3";
13808 this.onNodeCreated = function() {
13809 //console.log('Node created:', this);
13810}
13811 this.onRemoved = function() {
13812 //console.log('Node removed:', this);
13813 }
13814 this.onPropertyChanged = function(name, value, prev_value) {
13815 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13816 }
13817 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13818 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13819 }
13820 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13821 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13822 }
13823 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13824 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13825 }
13826 this.bgcolor = '#111';
13827 this.color = '#222';
13828 this.shape = LiteGraph.ROUND_SHAPE;
13829 this.boxcolor = '#37A';
13830}

◆ mtlx_math_ceil_color4()

function mtlx_math_ceil_color4 ( )

mtlx_math_ceil_color4

Library: mtlx. Category: ceil. Type: color4 LiteGraph id: mtlx/math/ceil_color4

Definition at line 13841 of file mtlx_stdlib.js.

13841 {
13842 this.nodedef_icon = '';
13843 this.nodedef_name = 'ND_ceil_color4';
13844 this.nodedef_type = 'color4';
13845 this.nodedef_node = 'ceil';
13846 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13847 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_color4_out_genglsl.png';
13848 this.nodedef_group = 'math';
13849 this.addInput('in','color4');
13850 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13851 this.addOutput('out','color4');
13852 this.title = 'ceil_color4';
13853 this.desc = "MaterialX:mtlx/math/ceil_color4";
13854 this.onNodeCreated = function() {
13855 //console.log('Node created:', this);
13856}
13857 this.onRemoved = function() {
13858 //console.log('Node removed:', this);
13859 }
13860 this.onPropertyChanged = function(name, value, prev_value) {
13861 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13862 }
13863 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13864 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13865 }
13866 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13867 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13868 }
13869 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13870 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13871 }
13872 this.bgcolor = '#111';
13873 this.color = '#222';
13874 this.shape = LiteGraph.ROUND_SHAPE;
13875 this.boxcolor = '#69A';
13876}

◆ mtlx_math_ceil_float()

function mtlx_math_ceil_float ( )

mtlx_math_ceil_float

Library: mtlx. Category: floor. Type: float LiteGraph id: mtlx/math/ceil_float

Definition at line 13749 of file mtlx_stdlib.js.

13749 {
13750 this.nodedef_icon = '';
13751 this.nodedef_name = 'ND_ceil_float';
13752 this.nodedef_type = 'float';
13753 this.nodedef_node = 'ceil';
13754 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13755 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_float_out_genglsl.png';
13756 this.nodedef_group = 'math';
13757 this.addInput('in','float');
13758 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13759 this.addOutput('out','float');
13760 this.title = 'ceil_float';
13761 this.desc = "MaterialX:mtlx/math/ceil_float";
13762 this.onNodeCreated = function() {
13763 //console.log('Node created:', this);
13764}
13765 this.onRemoved = function() {
13766 //console.log('Node removed:', this);
13767 }
13768 this.onPropertyChanged = function(name, value, prev_value) {
13769 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13770 }
13771 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13772 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13773 }
13774 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13775 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13776 }
13777 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13778 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13779 }
13780 this.bgcolor = '#111';
13781 this.color = '#222';
13782 this.shape = LiteGraph.ROUND_SHAPE;
13783 this.boxcolor = '#161';
13784}

◆ mtlx_math_ceil_integer()

function mtlx_math_ceil_integer ( )

mtlx_math_ceil_integer

Library: mtlx. Category: ceil. Type: integer LiteGraph id: mtlx/math/ceil_integer

Definition at line 14025 of file mtlx_stdlib.js.

14025 {
14026 this.nodedef_icon = '';
14027 this.nodedef_name = 'ND_ceil_integer';
14028 this.nodedef_type = 'integer';
14029 this.nodedef_node = 'ceil';
14030 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
14031 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_integer_out_genglsl.png';
14032 this.nodedef_group = 'math';
14033 this.addInput('in','float');
14034 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14035 this.addOutput('out','integer');
14036 this.title = 'ceil_integer';
14037 this.desc = "MaterialX:mtlx/math/ceil_integer";
14038 this.onNodeCreated = function() {
14039 //console.log('Node created:', this);
14040}
14041 this.onRemoved = function() {
14042 //console.log('Node removed:', this);
14043 }
14044 this.onPropertyChanged = function(name, value, prev_value) {
14045 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14046 }
14047 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14048 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14049 }
14050 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14051 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14052 }
14053 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14054 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14055 }
14056 this.bgcolor = '#111';
14057 this.color = '#222';
14058 this.shape = LiteGraph.ROUND_SHAPE;
14059 this.boxcolor = '#A32';
14060}

◆ mtlx_math_ceil_vector2()

function mtlx_math_ceil_vector2 ( )

mtlx_math_ceil_vector2

Library: mtlx. Category: ceil. Type: vector2 LiteGraph id: mtlx/math/ceil_vector2

Definition at line 13887 of file mtlx_stdlib.js.

13887 {
13888 this.nodedef_icon = '';
13889 this.nodedef_name = 'ND_ceil_vector2';
13890 this.nodedef_type = 'vector2';
13891 this.nodedef_node = 'ceil';
13892 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13893 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector2_out_genglsl.png';
13894 this.nodedef_group = 'math';
13895 this.addInput('in','vector2');
13896 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13897 this.addOutput('out','vector2');
13898 this.title = 'ceil_vector2';
13899 this.desc = "MaterialX:mtlx/math/ceil_vector2";
13900 this.onNodeCreated = function() {
13901 //console.log('Node created:', this);
13902}
13903 this.onRemoved = function() {
13904 //console.log('Node removed:', this);
13905 }
13906 this.onPropertyChanged = function(name, value, prev_value) {
13907 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13908 }
13909 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13910 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13911 }
13912 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13913 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13914 }
13915 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13916 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13917 }
13918 this.bgcolor = '#111';
13919 this.color = '#222';
13920 this.shape = LiteGraph.ROUND_SHAPE;
13921 this.boxcolor = '#265';
13922}

◆ mtlx_math_ceil_vector3()

function mtlx_math_ceil_vector3 ( )

mtlx_math_ceil_vector3

Library: mtlx. Category: ceil. Type: vector3 LiteGraph id: mtlx/math/ceil_vector3

Definition at line 13933 of file mtlx_stdlib.js.

13933 {
13934 this.nodedef_icon = '';
13935 this.nodedef_name = 'ND_ceil_vector3';
13936 this.nodedef_type = 'vector3';
13937 this.nodedef_node = 'ceil';
13938 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13939 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector3_out_genglsl.png';
13940 this.nodedef_group = 'math';
13941 this.addInput('in','vector3');
13942 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13943 this.addOutput('out','vector3');
13944 this.title = 'ceil_vector3';
13945 this.desc = "MaterialX:mtlx/math/ceil_vector3";
13946 this.onNodeCreated = function() {
13947 //console.log('Node created:', this);
13948}
13949 this.onRemoved = function() {
13950 //console.log('Node removed:', this);
13951 }
13952 this.onPropertyChanged = function(name, value, prev_value) {
13953 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13954 }
13955 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13956 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13957 }
13958 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13959 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13960 }
13961 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13962 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13963 }
13964 this.bgcolor = '#111';
13965 this.color = '#222';
13966 this.shape = LiteGraph.ROUND_SHAPE;
13967 this.boxcolor = '#465';
13968}

◆ mtlx_math_ceil_vector4()

function mtlx_math_ceil_vector4 ( )

mtlx_math_ceil_vector4

Library: mtlx. Category: ceil. Type: vector4 LiteGraph id: mtlx/math/ceil_vector4

Definition at line 13979 of file mtlx_stdlib.js.

13979 {
13980 this.nodedef_icon = '';
13981 this.nodedef_name = 'ND_ceil_vector4';
13982 this.nodedef_type = 'vector4';
13983 this.nodedef_node = 'ceil';
13984 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13985 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector4_out_genglsl.png';
13986 this.nodedef_group = 'math';
13987 this.addInput('in','vector4');
13988 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13989 this.addOutput('out','vector4');
13990 this.title = 'ceil_vector4';
13991 this.desc = "MaterialX:mtlx/math/ceil_vector4";
13992 this.onNodeCreated = function() {
13993 //console.log('Node created:', this);
13994}
13995 this.onRemoved = function() {
13996 //console.log('Node removed:', this);
13997 }
13998 this.onPropertyChanged = function(name, value, prev_value) {
13999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14000 }
14001 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14003 }
14004 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14006 }
14007 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14009 }
14010 this.bgcolor = '#111';
14011 this.color = '#222';
14012 this.shape = LiteGraph.ROUND_SHAPE;
14013 this.boxcolor = '#275';
14014}

◆ mtlx_math_clamp_color3()

function mtlx_math_clamp_color3 ( )

mtlx_math_clamp_color3

Library: mtlx. Category: clamp. Type: color3 LiteGraph id: mtlx/math/clamp_color3

Definition at line 17439 of file mtlx_stdlib.js.

17439 {
17440 this.nodedef_icon = '';
17441 this.nodedef_name = 'ND_clamp_color3';
17442 this.nodedef_type = 'color3';
17443 this.nodedef_node = 'clamp';
17444 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17445 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color3_out_genglsl.png';
17446 this.nodedef_group = 'math';
17447 this.addInput('in','color3');
17448 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17449 this.addInput('low','color3');
17450 this.addProperty('low', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17451 this.addInput('high','color3');
17452 this.addProperty('high', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17453 this.addOutput('out','color3');
17454 this.title = 'clamp_color3';
17455 this.desc = "MaterialX:mtlx/math/clamp_color3";
17456 this.onNodeCreated = function() {
17457 //console.log('Node created:', this);
17458}
17459 this.onRemoved = function() {
17460 //console.log('Node removed:', this);
17461 }
17462 this.onPropertyChanged = function(name, value, prev_value) {
17463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17464 }
17465 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17467 }
17468 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17470 }
17471 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17473 }
17474 this.bgcolor = '#111';
17475 this.color = '#222';
17476 this.shape = LiteGraph.ROUND_SHAPE;
17477 this.boxcolor = '#37A';
17478}

◆ mtlx_math_clamp_color3FA()

function mtlx_math_clamp_color3FA ( )

mtlx_math_clamp_color3FA

Library: mtlx. Category: clamp. Type: color3 LiteGraph id: mtlx/math/clamp_color3FA

Definition at line 17689 of file mtlx_stdlib.js.

17689 {
17690 this.nodedef_icon = '';
17691 this.nodedef_name = 'ND_clamp_color3FA';
17692 this.nodedef_type = 'color3';
17693 this.nodedef_node = 'clamp';
17694 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17695 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color3FA_out_genglsl.png';
17696 this.nodedef_group = 'math';
17697 this.addInput('in','color3');
17698 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17699 this.addInput('low','float');
17700 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17701 this.addInput('high','float');
17702 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17703 this.addOutput('out','color3');
17704 this.title = 'clamp_color3';
17705 this.desc = "MaterialX:mtlx/math/clamp_color3FA";
17706 this.onNodeCreated = function() {
17707 //console.log('Node created:', this);
17708}
17709 this.onRemoved = function() {
17710 //console.log('Node removed:', this);
17711 }
17712 this.onPropertyChanged = function(name, value, prev_value) {
17713 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17714 }
17715 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17716 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17717 }
17718 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17719 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17720 }
17721 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17722 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17723 }
17724 this.bgcolor = '#111';
17725 this.color = '#222';
17726 this.shape = LiteGraph.ROUND_SHAPE;
17727 this.boxcolor = '#37A';
17728}

◆ mtlx_math_clamp_color4()

function mtlx_math_clamp_color4 ( )

mtlx_math_clamp_color4

Library: mtlx. Category: clamp. Type: color4 LiteGraph id: mtlx/math/clamp_color4

Definition at line 17489 of file mtlx_stdlib.js.

17489 {
17490 this.nodedef_icon = '';
17491 this.nodedef_name = 'ND_clamp_color4';
17492 this.nodedef_type = 'color4';
17493 this.nodedef_node = 'clamp';
17494 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17495 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color4_out_genglsl.png';
17496 this.nodedef_group = 'math';
17497 this.addInput('in','color4');
17498 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17499 this.addInput('low','color4');
17500 this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17501 this.addInput('high','color4');
17502 this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17503 this.addOutput('out','color4');
17504 this.title = 'clamp_color4';
17505 this.desc = "MaterialX:mtlx/math/clamp_color4";
17506 this.onNodeCreated = function() {
17507 //console.log('Node created:', this);
17508}
17509 this.onRemoved = function() {
17510 //console.log('Node removed:', this);
17511 }
17512 this.onPropertyChanged = function(name, value, prev_value) {
17513 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17514 }
17515 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17516 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17517 }
17518 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17519 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17520 }
17521 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17522 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17523 }
17524 this.bgcolor = '#111';
17525 this.color = '#222';
17526 this.shape = LiteGraph.ROUND_SHAPE;
17527 this.boxcolor = '#69A';
17528}

◆ mtlx_math_clamp_color4FA()

function mtlx_math_clamp_color4FA ( )

mtlx_math_clamp_color4FA

Library: mtlx. Category: clamp. Type: color4 LiteGraph id: mtlx/math/clamp_color4FA

Definition at line 17739 of file mtlx_stdlib.js.

17739 {
17740 this.nodedef_icon = '';
17741 this.nodedef_name = 'ND_clamp_color4FA';
17742 this.nodedef_type = 'color4';
17743 this.nodedef_node = 'clamp';
17744 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17745 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color4FA_out_genglsl.png';
17746 this.nodedef_group = 'math';
17747 this.addInput('in','color4');
17748 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17749 this.addInput('low','float');
17750 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17751 this.addInput('high','float');
17752 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17753 this.addOutput('out','color4');
17754 this.title = 'clamp_color4';
17755 this.desc = "MaterialX:mtlx/math/clamp_color4FA";
17756 this.onNodeCreated = function() {
17757 //console.log('Node created:', this);
17758}
17759 this.onRemoved = function() {
17760 //console.log('Node removed:', this);
17761 }
17762 this.onPropertyChanged = function(name, value, prev_value) {
17763 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17764 }
17765 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17766 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17767 }
17768 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17769 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17770 }
17771 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17772 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17773 }
17774 this.bgcolor = '#111';
17775 this.color = '#222';
17776 this.shape = LiteGraph.ROUND_SHAPE;
17777 this.boxcolor = '#69A';
17778}

◆ mtlx_math_clamp_float()

function mtlx_math_clamp_float ( )

mtlx_math_clamp_float

Library: mtlx. Category: sign. Type: float LiteGraph id: mtlx/math/clamp_float

Definition at line 17389 of file mtlx_stdlib.js.

17389 {
17390 this.nodedef_icon = '';
17391 this.nodedef_name = 'ND_clamp_float';
17392 this.nodedef_type = 'float';
17393 this.nodedef_node = 'clamp';
17394 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17395 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_float_out_genglsl.png';
17396 this.nodedef_group = 'math';
17397 this.addInput('in','float');
17398 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17399 this.addInput('low','float');
17400 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17401 this.addInput('high','float');
17402 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17403 this.addOutput('out','float');
17404 this.title = 'clamp_float';
17405 this.desc = "MaterialX:mtlx/math/clamp_float";
17406 this.onNodeCreated = function() {
17407 //console.log('Node created:', this);
17408}
17409 this.onRemoved = function() {
17410 //console.log('Node removed:', this);
17411 }
17412 this.onPropertyChanged = function(name, value, prev_value) {
17413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17414 }
17415 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17417 }
17418 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17420 }
17421 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17423 }
17424 this.bgcolor = '#111';
17425 this.color = '#222';
17426 this.shape = LiteGraph.ROUND_SHAPE;
17427 this.boxcolor = '#161';
17428}

◆ mtlx_math_clamp_vector2()

function mtlx_math_clamp_vector2 ( )

mtlx_math_clamp_vector2

Library: mtlx. Category: clamp. Type: vector2 LiteGraph id: mtlx/math/clamp_vector2

Definition at line 17539 of file mtlx_stdlib.js.

17539 {
17540 this.nodedef_icon = '';
17541 this.nodedef_name = 'ND_clamp_vector2';
17542 this.nodedef_type = 'vector2';
17543 this.nodedef_node = 'clamp';
17544 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17545 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector2_out_genglsl.png';
17546 this.nodedef_group = 'math';
17547 this.addInput('in','vector2');
17548 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17549 this.addInput('low','vector2');
17550 this.addProperty('low', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17551 this.addInput('high','vector2');
17552 this.addProperty('high', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17553 this.addOutput('out','vector2');
17554 this.title = 'clamp_vector2';
17555 this.desc = "MaterialX:mtlx/math/clamp_vector2";
17556 this.onNodeCreated = function() {
17557 //console.log('Node created:', this);
17558}
17559 this.onRemoved = function() {
17560 //console.log('Node removed:', this);
17561 }
17562 this.onPropertyChanged = function(name, value, prev_value) {
17563 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17564 }
17565 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17566 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17567 }
17568 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17569 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17570 }
17571 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17572 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17573 }
17574 this.bgcolor = '#111';
17575 this.color = '#222';
17576 this.shape = LiteGraph.ROUND_SHAPE;
17577 this.boxcolor = '#265';
17578}

◆ mtlx_math_clamp_vector2FA()

function mtlx_math_clamp_vector2FA ( )

mtlx_math_clamp_vector2FA

Library: mtlx. Category: clamp. Type: vector2 LiteGraph id: mtlx/math/clamp_vector2FA

Definition at line 17789 of file mtlx_stdlib.js.

17789 {
17790 this.nodedef_icon = '';
17791 this.nodedef_name = 'ND_clamp_vector2FA';
17792 this.nodedef_type = 'vector2';
17793 this.nodedef_node = 'clamp';
17794 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17795 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector2FA_out_genglsl.png';
17796 this.nodedef_group = 'math';
17797 this.addInput('in','vector2');
17798 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17799 this.addInput('low','float');
17800 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17801 this.addInput('high','float');
17802 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17803 this.addOutput('out','vector2');
17804 this.title = 'clamp_vector2';
17805 this.desc = "MaterialX:mtlx/math/clamp_vector2FA";
17806 this.onNodeCreated = function() {
17807 //console.log('Node created:', this);
17808}
17809 this.onRemoved = function() {
17810 //console.log('Node removed:', this);
17811 }
17812 this.onPropertyChanged = function(name, value, prev_value) {
17813 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17814 }
17815 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17816 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17817 }
17818 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17819 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17820 }
17821 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17822 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17823 }
17824 this.bgcolor = '#111';
17825 this.color = '#222';
17826 this.shape = LiteGraph.ROUND_SHAPE;
17827 this.boxcolor = '#265';
17828}

◆ mtlx_math_clamp_vector3()

function mtlx_math_clamp_vector3 ( )

mtlx_math_clamp_vector3

Library: mtlx. Category: clamp. Type: vector3 LiteGraph id: mtlx/math/clamp_vector3

Definition at line 17589 of file mtlx_stdlib.js.

17589 {
17590 this.nodedef_icon = '';
17591 this.nodedef_name = 'ND_clamp_vector3';
17592 this.nodedef_type = 'vector3';
17593 this.nodedef_node = 'clamp';
17594 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17595 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector3_out_genglsl.png';
17596 this.nodedef_group = 'math';
17597 this.addInput('in','vector3');
17598 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17599 this.addInput('low','vector3');
17600 this.addProperty('low', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17601 this.addInput('high','vector3');
17602 this.addProperty('high', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17603 this.addOutput('out','vector3');
17604 this.title = 'clamp_vector3';
17605 this.desc = "MaterialX:mtlx/math/clamp_vector3";
17606 this.onNodeCreated = function() {
17607 //console.log('Node created:', this);
17608}
17609 this.onRemoved = function() {
17610 //console.log('Node removed:', this);
17611 }
17612 this.onPropertyChanged = function(name, value, prev_value) {
17613 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17614 }
17615 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17616 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17617 }
17618 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17619 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17620 }
17621 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17622 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17623 }
17624 this.bgcolor = '#111';
17625 this.color = '#222';
17626 this.shape = LiteGraph.ROUND_SHAPE;
17627 this.boxcolor = '#465';
17628}

◆ mtlx_math_clamp_vector3FA()

function mtlx_math_clamp_vector3FA ( )

mtlx_math_clamp_vector3FA

Library: mtlx. Category: clamp. Type: vector3 LiteGraph id: mtlx/math/clamp_vector3FA

Definition at line 17839 of file mtlx_stdlib.js.

17839 {
17840 this.nodedef_icon = '';
17841 this.nodedef_name = 'ND_clamp_vector3FA';
17842 this.nodedef_type = 'vector3';
17843 this.nodedef_node = 'clamp';
17844 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17845 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector3FA_out_genglsl.png';
17846 this.nodedef_group = 'math';
17847 this.addInput('in','vector3');
17848 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17849 this.addInput('low','float');
17850 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17851 this.addInput('high','float');
17852 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17853 this.addOutput('out','vector3');
17854 this.title = 'clamp_vector3';
17855 this.desc = "MaterialX:mtlx/math/clamp_vector3FA";
17856 this.onNodeCreated = function() {
17857 //console.log('Node created:', this);
17858}
17859 this.onRemoved = function() {
17860 //console.log('Node removed:', this);
17861 }
17862 this.onPropertyChanged = function(name, value, prev_value) {
17863 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17864 }
17865 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17866 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17867 }
17868 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17869 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17870 }
17871 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17872 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17873 }
17874 this.bgcolor = '#111';
17875 this.color = '#222';
17876 this.shape = LiteGraph.ROUND_SHAPE;
17877 this.boxcolor = '#465';
17878}

◆ mtlx_math_clamp_vector4()

function mtlx_math_clamp_vector4 ( )

mtlx_math_clamp_vector4

Library: mtlx. Category: clamp. Type: vector4 LiteGraph id: mtlx/math/clamp_vector4

Definition at line 17639 of file mtlx_stdlib.js.

17639 {
17640 this.nodedef_icon = '';
17641 this.nodedef_name = 'ND_clamp_vector4';
17642 this.nodedef_type = 'vector4';
17643 this.nodedef_node = 'clamp';
17644 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17645 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector4_out_genglsl.png';
17646 this.nodedef_group = 'math';
17647 this.addInput('in','vector4');
17648 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17649 this.addInput('low','vector4');
17650 this.addProperty('low', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17651 this.addInput('high','vector4');
17652 this.addProperty('high', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17653 this.addOutput('out','vector4');
17654 this.title = 'clamp_vector4';
17655 this.desc = "MaterialX:mtlx/math/clamp_vector4";
17656 this.onNodeCreated = function() {
17657 //console.log('Node created:', this);
17658}
17659 this.onRemoved = function() {
17660 //console.log('Node removed:', this);
17661 }
17662 this.onPropertyChanged = function(name, value, prev_value) {
17663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17664 }
17665 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17667 }
17668 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17670 }
17671 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17673 }
17674 this.bgcolor = '#111';
17675 this.color = '#222';
17676 this.shape = LiteGraph.ROUND_SHAPE;
17677 this.boxcolor = '#275';
17678}

◆ mtlx_math_clamp_vector4FA()

function mtlx_math_clamp_vector4FA ( )

mtlx_math_clamp_vector4FA

Library: mtlx. Category: clamp. Type: vector4 LiteGraph id: mtlx/math/clamp_vector4FA

Definition at line 17889 of file mtlx_stdlib.js.

17889 {
17890 this.nodedef_icon = '';
17891 this.nodedef_name = 'ND_clamp_vector4FA';
17892 this.nodedef_type = 'vector4';
17893 this.nodedef_node = 'clamp';
17894 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17895 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector4FA_out_genglsl.png';
17896 this.nodedef_group = 'math';
17897 this.addInput('in','vector4');
17898 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17899 this.addInput('low','float');
17900 this.addProperty('low', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17901 this.addInput('high','float');
17902 this.addProperty('high', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17903 this.addOutput('out','vector4');
17904 this.title = 'clamp_vector4';
17905 this.desc = "MaterialX:mtlx/math/clamp_vector4FA";
17906 this.onNodeCreated = function() {
17907 //console.log('Node created:', this);
17908}
17909 this.onRemoved = function() {
17910 //console.log('Node removed:', this);
17911 }
17912 this.onPropertyChanged = function(name, value, prev_value) {
17913 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17914 }
17915 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17916 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17917 }
17918 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17919 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17920 }
17921 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17922 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17923 }
17924 this.bgcolor = '#111';
17925 this.color = '#222';
17926 this.shape = LiteGraph.ROUND_SHAPE;
17927 this.boxcolor = '#275';
17928}

◆ mtlx_math_cos_float()

function mtlx_math_cos_float ( )

mtlx_math_cos_float

Library: mtlx. Category: sin. Type: float LiteGraph id: mtlx/math/cos_float

Definition at line 15495 of file mtlx_stdlib.js.

15495 {
15496 this.nodedef_icon = '';
15497 this.nodedef_name = 'ND_cos_float';
15498 this.nodedef_type = 'float';
15499 this.nodedef_node = 'cos';
15500 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15501 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_float_out_genglsl.png';
15502 this.nodedef_group = 'math';
15503 this.addInput('in','float');
15504 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15505 this.addOutput('out','float');
15506 this.title = 'cos_float';
15507 this.desc = "MaterialX:mtlx/math/cos_float";
15508 this.onNodeCreated = function() {
15509 //console.log('Node created:', this);
15510}
15511 this.onRemoved = function() {
15512 //console.log('Node removed:', this);
15513 }
15514 this.onPropertyChanged = function(name, value, prev_value) {
15515 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15516 }
15517 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15518 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15519 }
15520 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15521 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15522 }
15523 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15524 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15525 }
15526 this.bgcolor = '#111';
15527 this.color = '#222';
15528 this.shape = LiteGraph.ROUND_SHAPE;
15529 this.boxcolor = '#161';
15530}

◆ mtlx_math_cos_vector2()

function mtlx_math_cos_vector2 ( )

mtlx_math_cos_vector2

Library: mtlx. Category: sin. Type: vector2 LiteGraph id: mtlx/math/cos_vector2

Definition at line 15773 of file mtlx_stdlib.js.

15773 {
15774 this.nodedef_icon = '';
15775 this.nodedef_name = 'ND_cos_vector2';
15776 this.nodedef_type = 'vector2';
15777 this.nodedef_node = 'cos';
15778 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15779 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector2_out_genglsl.png';
15780 this.nodedef_group = 'math';
15781 this.addInput('in','vector2');
15782 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15783 this.addOutput('out','vector2');
15784 this.title = 'cos_vector2';
15785 this.desc = "MaterialX:mtlx/math/cos_vector2";
15786 this.onNodeCreated = function() {
15787 //console.log('Node created:', this);
15788}
15789 this.onRemoved = function() {
15790 //console.log('Node removed:', this);
15791 }
15792 this.onPropertyChanged = function(name, value, prev_value) {
15793 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15794 }
15795 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15796 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15797 }
15798 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15799 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15800 }
15801 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15802 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15803 }
15804 this.bgcolor = '#111';
15805 this.color = '#222';
15806 this.shape = LiteGraph.ROUND_SHAPE;
15807 this.boxcolor = '#265';
15808}

◆ mtlx_math_cos_vector3()

function mtlx_math_cos_vector3 ( )

mtlx_math_cos_vector3

Library: mtlx. Category: sin. Type: vector3 LiteGraph id: mtlx/math/cos_vector3

Definition at line 16051 of file mtlx_stdlib.js.

16051 {
16052 this.nodedef_icon = '';
16053 this.nodedef_name = 'ND_cos_vector3';
16054 this.nodedef_type = 'vector3';
16055 this.nodedef_node = 'cos';
16056 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16057 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector3_out_genglsl.png';
16058 this.nodedef_group = 'math';
16059 this.addInput('in','vector3');
16060 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16061 this.addOutput('out','vector3');
16062 this.title = 'cos_vector3';
16063 this.desc = "MaterialX:mtlx/math/cos_vector3";
16064 this.onNodeCreated = function() {
16065 //console.log('Node created:', this);
16066}
16067 this.onRemoved = function() {
16068 //console.log('Node removed:', this);
16069 }
16070 this.onPropertyChanged = function(name, value, prev_value) {
16071 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16072 }
16073 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16074 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16075 }
16076 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16077 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16078 }
16079 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16080 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16081 }
16082 this.bgcolor = '#111';
16083 this.color = '#222';
16084 this.shape = LiteGraph.ROUND_SHAPE;
16085 this.boxcolor = '#465';
16086}

◆ mtlx_math_cos_vector4()

function mtlx_math_cos_vector4 ( )

mtlx_math_cos_vector4

Library: mtlx. Category: sin. Type: vector4 LiteGraph id: mtlx/math/cos_vector4

Definition at line 16329 of file mtlx_stdlib.js.

16329 {
16330 this.nodedef_icon = '';
16331 this.nodedef_name = 'ND_cos_vector4';
16332 this.nodedef_type = 'vector4';
16333 this.nodedef_node = 'cos';
16334 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16335 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector4_out_genglsl.png';
16336 this.nodedef_group = 'math';
16337 this.addInput('in','vector4');
16338 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16339 this.addOutput('out','vector4');
16340 this.title = 'cos_vector4';
16341 this.desc = "MaterialX:mtlx/math/cos_vector4";
16342 this.onNodeCreated = function() {
16343 //console.log('Node created:', this);
16344}
16345 this.onRemoved = function() {
16346 //console.log('Node removed:', this);
16347 }
16348 this.onPropertyChanged = function(name, value, prev_value) {
16349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16350 }
16351 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16353 }
16354 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16356 }
16357 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16359 }
16360 this.bgcolor = '#111';
16361 this.color = '#222';
16362 this.shape = LiteGraph.ROUND_SHAPE;
16363 this.boxcolor = '#275';
16364}

◆ mtlx_math_creatematrix_vector3_matrix33()

function mtlx_math_creatematrix_vector3_matrix33 ( )

mtlx_math_creatematrix_vector3_matrix33

Library: mtlx. Category: combine4. Type: matrix33 LiteGraph id: mtlx/math/creatematrix_vector3_matrix33

Definition at line 33582 of file mtlx_stdlib.js.

33582 {
33583 this.nodedef_icon = '';
33584 this.nodedef_name = 'ND_creatematrix_vector3_matrix33';
33585 this.nodedef_type = 'matrix33';
33586 this.nodedef_node = 'creatematrix';
33587 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33588 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix33_out_genglsl.png';
33589 this.nodedef_group = 'math';
33590 this.addInput('in1','vector3');
33591 this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33592 this.addInput('in2','vector3');
33593 this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33594 this.addInput('in3','vector3');
33595 this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33596 this.addOutput('out','matrix33');
33597 this.title = 'creatematrix_matrix33';
33598 this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix33";
33599 this.onNodeCreated = function() {
33600 //console.log('Node created:', this);
33601}
33602 this.onRemoved = function() {
33603 //console.log('Node removed:', this);
33604 }
33605 this.onPropertyChanged = function(name, value, prev_value) {
33606 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33607 }
33608 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33609 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33610 }
33611 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33612 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33613 }
33614 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33615 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33616 }
33617 this.bgcolor = '#111';
33618 this.color = '#222';
33619 this.shape = LiteGraph.ROUND_SHAPE;
33620 this.boxcolor = '#333';
33621}

◆ mtlx_math_creatematrix_vector3_matrix44()

function mtlx_math_creatematrix_vector3_matrix44 ( )

mtlx_math_creatematrix_vector3_matrix44

Library: mtlx. Category: creatematrix. Type: matrix44 LiteGraph id: mtlx/math/creatematrix_vector3_matrix44

Definition at line 33632 of file mtlx_stdlib.js.

33632 {
33633 this.nodedef_icon = '';
33634 this.nodedef_name = 'ND_creatematrix_vector3_matrix44';
33635 this.nodedef_type = 'matrix44';
33636 this.nodedef_node = 'creatematrix';
33637 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33638 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix44_out_genglsl.png';
33639 this.nodedef_group = 'math';
33640 this.addInput('in1','vector3');
33641 this.addProperty('in1', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33642 this.addInput('in2','vector3');
33643 this.addProperty('in2', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33644 this.addInput('in3','vector3');
33645 this.addProperty('in3', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33646 this.addInput('in4','vector3');
33647 this.addProperty('in4', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33648 this.addOutput('out','matrix44');
33649 this.title = 'creatematrix_matrix44';
33650 this.desc = "MaterialX:mtlx/math/creatematrix_vector3_matrix44";
33651 this.onNodeCreated = function() {
33652 //console.log('Node created:', this);
33653}
33654 this.onRemoved = function() {
33655 //console.log('Node removed:', this);
33656 }
33657 this.onPropertyChanged = function(name, value, prev_value) {
33658 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33659 }
33660 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33661 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33662 }
33663 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33664 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33665 }
33666 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33667 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33668 }
33669 this.bgcolor = '#111';
33670 this.color = '#222';
33671 this.shape = LiteGraph.ROUND_SHAPE;
33672 this.boxcolor = '#444';
33673}

◆ mtlx_math_creatematrix_vector4_matrix44()

function mtlx_math_creatematrix_vector4_matrix44 ( )

mtlx_math_creatematrix_vector4_matrix44

Library: mtlx. Category: creatematrix. Type: matrix44 LiteGraph id: mtlx/math/creatematrix_vector4_matrix44

Definition at line 33684 of file mtlx_stdlib.js.

33684 {
33685 this.nodedef_icon = '';
33686 this.nodedef_name = 'ND_creatematrix_vector4_matrix44';
33687 this.nodedef_type = 'matrix44';
33688 this.nodedef_node = 'creatematrix';
33689 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33690 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector4_matrix44_out_genglsl.png';
33691 this.nodedef_group = 'math';
33692 this.addInput('in1','vector4');
33693 this.addProperty('in1', [1.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33694 this.addInput('in2','vector4');
33695 this.addProperty('in2', [0.0, 1.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33696 this.addInput('in3','vector4');
33697 this.addProperty('in3', [0.0, 0.0, 1.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33698 this.addInput('in4','vector4');
33699 this.addProperty('in4', [0.0, 0.0, 0.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33700 this.addOutput('out','matrix44');
33701 this.title = 'creatematrix_matrix44';
33702 this.desc = "MaterialX:mtlx/math/creatematrix_vector4_matrix44";
33703 this.onNodeCreated = function() {
33704 //console.log('Node created:', this);
33705}
33706 this.onRemoved = function() {
33707 //console.log('Node removed:', this);
33708 }
33709 this.onPropertyChanged = function(name, value, prev_value) {
33710 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33711 }
33712 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33713 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33714 }
33715 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33716 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33717 }
33718 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33719 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33720 }
33721 this.bgcolor = '#111';
33722 this.color = '#222';
33723 this.shape = LiteGraph.ROUND_SHAPE;
33724 this.boxcolor = '#444';
33725}

◆ mtlx_math_crossproduct_vector3()

function mtlx_math_crossproduct_vector3 ( )

mtlx_math_crossproduct_vector3

Library: mtlx. Category: dotproduct. Type: vector3 LiteGraph id: mtlx/math/crossproduct_vector3

Definition at line 19559 of file mtlx_stdlib.js.

19559 {
19560 this.nodedef_icon = '';
19561 this.nodedef_name = 'ND_crossproduct_vector3';
19562 this.nodedef_type = 'vector3';
19563 this.nodedef_node = 'crossproduct';
19564 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/crossproduct.html';
19565 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_crossproduct_vector3_out_genglsl.png';
19566 this.nodedef_group = 'math';
19567 this.addInput('in1','vector3');
19568 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19569 this.addInput('in2','vector3');
19570 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19571 this.addOutput('out','vector3');
19572 this.title = 'crossproduct_vector3';
19573 this.desc = "MaterialX:mtlx/math/crossproduct_vector3";
19574 this.onNodeCreated = function() {
19575 //console.log('Node created:', this);
19576}
19577 this.onRemoved = function() {
19578 //console.log('Node removed:', this);
19579 }
19580 this.onPropertyChanged = function(name, value, prev_value) {
19581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19582 }
19583 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19585 }
19586 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19588 }
19589 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19591 }
19592 this.bgcolor = '#111';
19593 this.color = '#222';
19594 this.shape = LiteGraph.ROUND_SHAPE;
19595 this.boxcolor = '#465';
19596}

◆ mtlx_math_determinant_matrix33()

function mtlx_math_determinant_matrix33 ( )

mtlx_math_determinant_matrix33

Library: mtlx. Category: transpose. Type: float LiteGraph id: mtlx/math/determinant_matrix33

Definition at line 20149 of file mtlx_stdlib.js.

20149 {
20150 this.nodedef_icon = '';
20151 this.nodedef_name = 'ND_determinant_matrix33';
20152 this.nodedef_type = 'float';
20153 this.nodedef_node = 'determinant';
20154 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/determinant.html';
20155 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_determinant_matrix33_out_genglsl.png';
20156 this.nodedef_group = 'math';
20157 this.addInput('in','matrix33');
20158 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":"","defaultgeomprop":""});
20159 this.addOutput('out','float');
20160 this.title = 'determinant_float';
20161 this.desc = "MaterialX:mtlx/math/determinant_matrix33";
20162 this.onNodeCreated = function() {
20163 //console.log('Node created:', this);
20164}
20165 this.onRemoved = function() {
20166 //console.log('Node removed:', this);
20167 }
20168 this.onPropertyChanged = function(name, value, prev_value) {
20169 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20170 }
20171 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20172 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20173 }
20174 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20175 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20176 }
20177 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20178 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20179 }
20180 this.bgcolor = '#111';
20181 this.color = '#222';
20182 this.shape = LiteGraph.ROUND_SHAPE;
20183 this.boxcolor = '#161';
20184}

◆ mtlx_math_determinant_matrix44()

function mtlx_math_determinant_matrix44 ( )

mtlx_math_determinant_matrix44

Library: mtlx. Category: determinant. Type: float LiteGraph id: mtlx/math/determinant_matrix44

Definition at line 20195 of file mtlx_stdlib.js.

20195 {
20196 this.nodedef_icon = '';
20197 this.nodedef_name = 'ND_determinant_matrix44';
20198 this.nodedef_type = 'float';
20199 this.nodedef_node = 'determinant';
20200 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/determinant.html';
20201 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_determinant_matrix44_out_genglsl.png';
20202 this.nodedef_group = 'math';
20203 this.addInput('in','matrix44');
20204 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":"","defaultgeomprop":""});
20205 this.addOutput('out','float');
20206 this.title = 'determinant_float';
20207 this.desc = "MaterialX:mtlx/math/determinant_matrix44";
20208 this.onNodeCreated = function() {
20209 //console.log('Node created:', this);
20210}
20211 this.onRemoved = function() {
20212 //console.log('Node removed:', this);
20213 }
20214 this.onPropertyChanged = function(name, value, prev_value) {
20215 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20216 }
20217 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20218 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20219 }
20220 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20221 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20222 }
20223 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20224 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20225 }
20226 this.bgcolor = '#111';
20227 this.color = '#222';
20228 this.shape = LiteGraph.ROUND_SHAPE;
20229 this.boxcolor = '#161';
20230}

◆ mtlx_math_distance_vector2()

function mtlx_math_distance_vector2 ( )

mtlx_math_distance_vector2

Library: mtlx. Category: magnitude. Type: float LiteGraph id: mtlx/math/distance_vector2

Definition at line 19271 of file mtlx_stdlib.js.

19271 {
19272 this.nodedef_icon = '';
19273 this.nodedef_name = 'ND_distance_vector2';
19274 this.nodedef_type = 'float';
19275 this.nodedef_node = 'distance';
19276 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19277 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector2_out_genglsl.png';
19278 this.nodedef_group = 'math';
19279 this.addInput('in1','vector2');
19280 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19281 this.addInput('in2','vector2');
19282 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19283 this.addOutput('out','float');
19284 this.title = 'distance_float';
19285 this.desc = "MaterialX:mtlx/math/distance_vector2";
19286 this.onNodeCreated = function() {
19287 //console.log('Node created:', this);
19288}
19289 this.onRemoved = function() {
19290 //console.log('Node removed:', this);
19291 }
19292 this.onPropertyChanged = function(name, value, prev_value) {
19293 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19294 }
19295 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19296 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19297 }
19298 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19299 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19300 }
19301 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19302 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19303 }
19304 this.bgcolor = '#111';
19305 this.color = '#222';
19306 this.shape = LiteGraph.ROUND_SHAPE;
19307 this.boxcolor = '#161';
19308}

◆ mtlx_math_distance_vector3()

function mtlx_math_distance_vector3 ( )

mtlx_math_distance_vector3

Library: mtlx. Category: distance. Type: float LiteGraph id: mtlx/math/distance_vector3

Definition at line 19319 of file mtlx_stdlib.js.

19319 {
19320 this.nodedef_icon = '';
19321 this.nodedef_name = 'ND_distance_vector3';
19322 this.nodedef_type = 'float';
19323 this.nodedef_node = 'distance';
19324 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19325 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector3_out_genglsl.png';
19326 this.nodedef_group = 'math';
19327 this.addInput('in1','vector3');
19328 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19329 this.addInput('in2','vector3');
19330 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19331 this.addOutput('out','float');
19332 this.title = 'distance_float';
19333 this.desc = "MaterialX:mtlx/math/distance_vector3";
19334 this.onNodeCreated = function() {
19335 //console.log('Node created:', this);
19336}
19337 this.onRemoved = function() {
19338 //console.log('Node removed:', this);
19339 }
19340 this.onPropertyChanged = function(name, value, prev_value) {
19341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19342 }
19343 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19345 }
19346 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19348 }
19349 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19351 }
19352 this.bgcolor = '#111';
19353 this.color = '#222';
19354 this.shape = LiteGraph.ROUND_SHAPE;
19355 this.boxcolor = '#161';
19356}

◆ mtlx_math_distance_vector4()

function mtlx_math_distance_vector4 ( )

mtlx_math_distance_vector4

Library: mtlx. Category: distance. Type: float LiteGraph id: mtlx/math/distance_vector4

Definition at line 19367 of file mtlx_stdlib.js.

19367 {
19368 this.nodedef_icon = '';
19369 this.nodedef_name = 'ND_distance_vector4';
19370 this.nodedef_type = 'float';
19371 this.nodedef_node = 'distance';
19372 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19373 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector4_out_genglsl.png';
19374 this.nodedef_group = 'math';
19375 this.addInput('in1','vector4');
19376 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19377 this.addInput('in2','vector4');
19378 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"in2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19379 this.addOutput('out','float');
19380 this.title = 'distance_float';
19381 this.desc = "MaterialX:mtlx/math/distance_vector4";
19382 this.onNodeCreated = function() {
19383 //console.log('Node created:', this);
19384}
19385 this.onRemoved = function() {
19386 //console.log('Node removed:', this);
19387 }
19388 this.onPropertyChanged = function(name, value, prev_value) {
19389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19390 }
19391 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19393 }
19394 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19396 }
19397 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19399 }
19400 this.bgcolor = '#111';
19401 this.color = '#222';
19402 this.shape = LiteGraph.ROUND_SHAPE;
19403 this.boxcolor = '#161';
19404}

◆ mtlx_math_divide_color3()

function mtlx_math_divide_color3 ( )

mtlx_math_divide_color3

Library: mtlx. Category: divide. Type: color3 LiteGraph id: mtlx/math/divide_color3

Definition at line 11519 of file mtlx_stdlib.js.

11519 {
11520 this.nodedef_icon = '';
11521 this.nodedef_name = 'ND_divide_color3';
11522 this.nodedef_type = 'color3';
11523 this.nodedef_node = 'divide';
11524 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11525 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color3_out_genglsl.png';
11526 this.nodedef_group = 'math';
11527 this.addInput('in1','color3');
11528 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11529 this.addInput('in2','color3');
11530 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11531 this.addOutput('out','color3');
11532 this.title = 'divide_color3';
11533 this.desc = "MaterialX:mtlx/math/divide_color3";
11534 this.onNodeCreated = function() {
11535 //console.log('Node created:', this);
11536}
11537 this.onRemoved = function() {
11538 //console.log('Node removed:', this);
11539 }
11540 this.onPropertyChanged = function(name, value, prev_value) {
11541 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11542 }
11543 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11544 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11545 }
11546 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11547 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11548 }
11549 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11550 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11551 }
11552 this.bgcolor = '#111';
11553 this.color = '#222';
11554 this.shape = LiteGraph.ROUND_SHAPE;
11555 this.boxcolor = '#37A';
11556}

◆ mtlx_math_divide_color3FA()

function mtlx_math_divide_color3FA ( )

mtlx_math_divide_color3FA

Library: mtlx. Category: divide. Type: color3 LiteGraph id: mtlx/math/divide_color3FA

Definition at line 11855 of file mtlx_stdlib.js.

11855 {
11856 this.nodedef_icon = '';
11857 this.nodedef_name = 'ND_divide_color3FA';
11858 this.nodedef_type = 'color3';
11859 this.nodedef_node = 'divide';
11860 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11861 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color3FA_out_genglsl.png';
11862 this.nodedef_group = 'math';
11863 this.addInput('in1','color3');
11864 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11865 this.addInput('in2','float');
11866 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11867 this.addOutput('out','color3');
11868 this.title = 'divide_color3';
11869 this.desc = "MaterialX:mtlx/math/divide_color3FA";
11870 this.onNodeCreated = function() {
11871 //console.log('Node created:', this);
11872}
11873 this.onRemoved = function() {
11874 //console.log('Node removed:', this);
11875 }
11876 this.onPropertyChanged = function(name, value, prev_value) {
11877 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11878 }
11879 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11880 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11881 }
11882 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11883 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11884 }
11885 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11886 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11887 }
11888 this.bgcolor = '#111';
11889 this.color = '#222';
11890 this.shape = LiteGraph.ROUND_SHAPE;
11891 this.boxcolor = '#37A';
11892}

◆ mtlx_math_divide_color4()

function mtlx_math_divide_color4 ( )

mtlx_math_divide_color4

Library: mtlx. Category: divide. Type: color4 LiteGraph id: mtlx/math/divide_color4

Definition at line 11567 of file mtlx_stdlib.js.

11567 {
11568 this.nodedef_icon = '';
11569 this.nodedef_name = 'ND_divide_color4';
11570 this.nodedef_type = 'color4';
11571 this.nodedef_node = 'divide';
11572 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11573 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color4_out_genglsl.png';
11574 this.nodedef_group = 'math';
11575 this.addInput('in1','color4');
11576 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11577 this.addInput('in2','color4');
11578 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11579 this.addOutput('out','color4');
11580 this.title = 'divide_color4';
11581 this.desc = "MaterialX:mtlx/math/divide_color4";
11582 this.onNodeCreated = function() {
11583 //console.log('Node created:', this);
11584}
11585 this.onRemoved = function() {
11586 //console.log('Node removed:', this);
11587 }
11588 this.onPropertyChanged = function(name, value, prev_value) {
11589 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11590 }
11591 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11592 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11593 }
11594 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11595 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11596 }
11597 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11598 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11599 }
11600 this.bgcolor = '#111';
11601 this.color = '#222';
11602 this.shape = LiteGraph.ROUND_SHAPE;
11603 this.boxcolor = '#69A';
11604}

◆ mtlx_math_divide_color4FA()

function mtlx_math_divide_color4FA ( )

mtlx_math_divide_color4FA

Library: mtlx. Category: divide. Type: color4 LiteGraph id: mtlx/math/divide_color4FA

Definition at line 11903 of file mtlx_stdlib.js.

11903 {
11904 this.nodedef_icon = '';
11905 this.nodedef_name = 'ND_divide_color4FA';
11906 this.nodedef_type = 'color4';
11907 this.nodedef_node = 'divide';
11908 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11909 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color4FA_out_genglsl.png';
11910 this.nodedef_group = 'math';
11911 this.addInput('in1','color4');
11912 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11913 this.addInput('in2','float');
11914 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11915 this.addOutput('out','color4');
11916 this.title = 'divide_color4';
11917 this.desc = "MaterialX:mtlx/math/divide_color4FA";
11918 this.onNodeCreated = function() {
11919 //console.log('Node created:', this);
11920}
11921 this.onRemoved = function() {
11922 //console.log('Node removed:', this);
11923 }
11924 this.onPropertyChanged = function(name, value, prev_value) {
11925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11926 }
11927 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11929 }
11930 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11932 }
11933 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11935 }
11936 this.bgcolor = '#111';
11937 this.color = '#222';
11938 this.shape = LiteGraph.ROUND_SHAPE;
11939 this.boxcolor = '#69A';
11940}

◆ mtlx_math_divide_float()

function mtlx_math_divide_float ( )

mtlx_math_divide_float

Library: mtlx. Category: multiply. Type: float LiteGraph id: mtlx/math/divide_float

Definition at line 11471 of file mtlx_stdlib.js.

11471 {
11472 this.nodedef_icon = '';
11473 this.nodedef_name = 'ND_divide_float';
11474 this.nodedef_type = 'float';
11475 this.nodedef_node = 'divide';
11476 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11477 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_float_out_genglsl.png';
11478 this.nodedef_group = 'math';
11479 this.addInput('in1','float');
11480 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11481 this.addInput('in2','float');
11482 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11483 this.addOutput('out','float');
11484 this.title = 'divide_float';
11485 this.desc = "MaterialX:mtlx/math/divide_float";
11486 this.onNodeCreated = function() {
11487 //console.log('Node created:', this);
11488}
11489 this.onRemoved = function() {
11490 //console.log('Node removed:', this);
11491 }
11492 this.onPropertyChanged = function(name, value, prev_value) {
11493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11494 }
11495 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11497 }
11498 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11500 }
11501 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11503 }
11504 this.bgcolor = '#111';
11505 this.color = '#222';
11506 this.shape = LiteGraph.ROUND_SHAPE;
11507 this.boxcolor = '#161';
11508}

◆ mtlx_math_divide_matrix33()

function mtlx_math_divide_matrix33 ( )

mtlx_math_divide_matrix33

Library: mtlx. Category: divide. Type: matrix33 LiteGraph id: mtlx/math/divide_matrix33

Definition at line 11759 of file mtlx_stdlib.js.

11759 {
11760 this.nodedef_icon = '';
11761 this.nodedef_name = 'ND_divide_matrix33';
11762 this.nodedef_type = 'matrix33';
11763 this.nodedef_node = 'divide';
11764 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11765 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_matrix33_out_genglsl.png';
11766 this.nodedef_group = 'math';
11767 this.addInput('in1','matrix33');
11768 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":"","defaultgeomprop":""});
11769 this.addInput('in2','matrix33');
11770 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":"","defaultgeomprop":""});
11771 this.addOutput('out','matrix33');
11772 this.title = 'divide_matrix33';
11773 this.desc = "MaterialX:mtlx/math/divide_matrix33";
11774 this.onNodeCreated = function() {
11775 //console.log('Node created:', this);
11776}
11777 this.onRemoved = function() {
11778 //console.log('Node removed:', this);
11779 }
11780 this.onPropertyChanged = function(name, value, prev_value) {
11781 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11782 }
11783 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11784 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11785 }
11786 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11787 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11788 }
11789 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11790 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11791 }
11792 this.bgcolor = '#111';
11793 this.color = '#222';
11794 this.shape = LiteGraph.ROUND_SHAPE;
11795 this.boxcolor = '#333';
11796}

◆ mtlx_math_divide_matrix44()

function mtlx_math_divide_matrix44 ( )

mtlx_math_divide_matrix44

Library: mtlx. Category: divide. Type: matrix44 LiteGraph id: mtlx/math/divide_matrix44

Definition at line 11807 of file mtlx_stdlib.js.

11807 {
11808 this.nodedef_icon = '';
11809 this.nodedef_name = 'ND_divide_matrix44';
11810 this.nodedef_type = 'matrix44';
11811 this.nodedef_node = 'divide';
11812 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11813 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_matrix44_out_genglsl.png';
11814 this.nodedef_group = 'math';
11815 this.addInput('in1','matrix44');
11816 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":"","defaultgeomprop":""});
11817 this.addInput('in2','matrix44');
11818 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":"","defaultgeomprop":""});
11819 this.addOutput('out','matrix44');
11820 this.title = 'divide_matrix44';
11821 this.desc = "MaterialX:mtlx/math/divide_matrix44";
11822 this.onNodeCreated = function() {
11823 //console.log('Node created:', this);
11824}
11825 this.onRemoved = function() {
11826 //console.log('Node removed:', this);
11827 }
11828 this.onPropertyChanged = function(name, value, prev_value) {
11829 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11830 }
11831 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11832 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11833 }
11834 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11835 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11836 }
11837 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11838 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11839 }
11840 this.bgcolor = '#111';
11841 this.color = '#222';
11842 this.shape = LiteGraph.ROUND_SHAPE;
11843 this.boxcolor = '#444';
11844}

◆ mtlx_math_divide_vector2()

function mtlx_math_divide_vector2 ( )

mtlx_math_divide_vector2

Library: mtlx. Category: divide. Type: vector2 LiteGraph id: mtlx/math/divide_vector2

Definition at line 11615 of file mtlx_stdlib.js.

11615 {
11616 this.nodedef_icon = '';
11617 this.nodedef_name = 'ND_divide_vector2';
11618 this.nodedef_type = 'vector2';
11619 this.nodedef_node = 'divide';
11620 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11621 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector2_out_genglsl.png';
11622 this.nodedef_group = 'math';
11623 this.addInput('in1','vector2');
11624 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11625 this.addInput('in2','vector2');
11626 this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11627 this.addOutput('out','vector2');
11628 this.title = 'divide_vector2';
11629 this.desc = "MaterialX:mtlx/math/divide_vector2";
11630 this.onNodeCreated = function() {
11631 //console.log('Node created:', this);
11632}
11633 this.onRemoved = function() {
11634 //console.log('Node removed:', this);
11635 }
11636 this.onPropertyChanged = function(name, value, prev_value) {
11637 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11638 }
11639 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11640 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11641 }
11642 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11643 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11644 }
11645 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11646 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11647 }
11648 this.bgcolor = '#111';
11649 this.color = '#222';
11650 this.shape = LiteGraph.ROUND_SHAPE;
11651 this.boxcolor = '#265';
11652}

◆ mtlx_math_divide_vector2FA()

function mtlx_math_divide_vector2FA ( )

mtlx_math_divide_vector2FA

Library: mtlx. Category: divide. Type: vector2 LiteGraph id: mtlx/math/divide_vector2FA

Definition at line 11951 of file mtlx_stdlib.js.

11951 {
11952 this.nodedef_icon = '';
11953 this.nodedef_name = 'ND_divide_vector2FA';
11954 this.nodedef_type = 'vector2';
11955 this.nodedef_node = 'divide';
11956 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11957 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector2FA_out_genglsl.png';
11958 this.nodedef_group = 'math';
11959 this.addInput('in1','vector2');
11960 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11961 this.addInput('in2','float');
11962 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11963 this.addOutput('out','vector2');
11964 this.title = 'divide_vector2';
11965 this.desc = "MaterialX:mtlx/math/divide_vector2FA";
11966 this.onNodeCreated = function() {
11967 //console.log('Node created:', this);
11968}
11969 this.onRemoved = function() {
11970 //console.log('Node removed:', this);
11971 }
11972 this.onPropertyChanged = function(name, value, prev_value) {
11973 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11974 }
11975 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11976 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11977 }
11978 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11979 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11980 }
11981 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11982 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11983 }
11984 this.bgcolor = '#111';
11985 this.color = '#222';
11986 this.shape = LiteGraph.ROUND_SHAPE;
11987 this.boxcolor = '#265';
11988}

◆ mtlx_math_divide_vector3()

function mtlx_math_divide_vector3 ( )

mtlx_math_divide_vector3

Library: mtlx. Category: divide. Type: vector3 LiteGraph id: mtlx/math/divide_vector3

Definition at line 11663 of file mtlx_stdlib.js.

11663 {
11664 this.nodedef_icon = '';
11665 this.nodedef_name = 'ND_divide_vector3';
11666 this.nodedef_type = 'vector3';
11667 this.nodedef_node = 'divide';
11668 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11669 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector3_out_genglsl.png';
11670 this.nodedef_group = 'math';
11671 this.addInput('in1','vector3');
11672 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11673 this.addInput('in2','vector3');
11674 this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11675 this.addOutput('out','vector3');
11676 this.title = 'divide_vector3';
11677 this.desc = "MaterialX:mtlx/math/divide_vector3";
11678 this.onNodeCreated = function() {
11679 //console.log('Node created:', this);
11680}
11681 this.onRemoved = function() {
11682 //console.log('Node removed:', this);
11683 }
11684 this.onPropertyChanged = function(name, value, prev_value) {
11685 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11686 }
11687 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11688 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11689 }
11690 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11691 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11692 }
11693 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11694 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11695 }
11696 this.bgcolor = '#111';
11697 this.color = '#222';
11698 this.shape = LiteGraph.ROUND_SHAPE;
11699 this.boxcolor = '#465';
11700}

◆ mtlx_math_divide_vector3FA()

function mtlx_math_divide_vector3FA ( )

mtlx_math_divide_vector3FA

Library: mtlx. Category: divide. Type: vector3 LiteGraph id: mtlx/math/divide_vector3FA

Definition at line 11999 of file mtlx_stdlib.js.

11999 {
12000 this.nodedef_icon = '';
12001 this.nodedef_name = 'ND_divide_vector3FA';
12002 this.nodedef_type = 'vector3';
12003 this.nodedef_node = 'divide';
12004 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
12005 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector3FA_out_genglsl.png';
12006 this.nodedef_group = 'math';
12007 this.addInput('in1','vector3');
12008 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12009 this.addInput('in2','float');
12010 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12011 this.addOutput('out','vector3');
12012 this.title = 'divide_vector3';
12013 this.desc = "MaterialX:mtlx/math/divide_vector3FA";
12014 this.onNodeCreated = function() {
12015 //console.log('Node created:', this);
12016}
12017 this.onRemoved = function() {
12018 //console.log('Node removed:', this);
12019 }
12020 this.onPropertyChanged = function(name, value, prev_value) {
12021 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12022 }
12023 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12024 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12025 }
12026 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12027 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12028 }
12029 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12030 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12031 }
12032 this.bgcolor = '#111';
12033 this.color = '#222';
12034 this.shape = LiteGraph.ROUND_SHAPE;
12035 this.boxcolor = '#465';
12036}

◆ mtlx_math_divide_vector4()

function mtlx_math_divide_vector4 ( )

mtlx_math_divide_vector4

Library: mtlx. Category: divide. Type: vector4 LiteGraph id: mtlx/math/divide_vector4

Definition at line 11711 of file mtlx_stdlib.js.

11711 {
11712 this.nodedef_icon = '';
11713 this.nodedef_name = 'ND_divide_vector4';
11714 this.nodedef_type = 'vector4';
11715 this.nodedef_node = 'divide';
11716 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11717 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector4_out_genglsl.png';
11718 this.nodedef_group = 'math';
11719 this.addInput('in1','vector4');
11720 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11721 this.addInput('in2','vector4');
11722 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11723 this.addOutput('out','vector4');
11724 this.title = 'divide_vector4';
11725 this.desc = "MaterialX:mtlx/math/divide_vector4";
11726 this.onNodeCreated = function() {
11727 //console.log('Node created:', this);
11728}
11729 this.onRemoved = function() {
11730 //console.log('Node removed:', this);
11731 }
11732 this.onPropertyChanged = function(name, value, prev_value) {
11733 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11734 }
11735 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11736 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11737 }
11738 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11739 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11740 }
11741 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11742 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11743 }
11744 this.bgcolor = '#111';
11745 this.color = '#222';
11746 this.shape = LiteGraph.ROUND_SHAPE;
11747 this.boxcolor = '#275';
11748}

◆ mtlx_math_divide_vector4FA()

function mtlx_math_divide_vector4FA ( )

mtlx_math_divide_vector4FA

Library: mtlx. Category: divide. Type: vector4 LiteGraph id: mtlx/math/divide_vector4FA

Definition at line 12047 of file mtlx_stdlib.js.

12047 {
12048 this.nodedef_icon = '';
12049 this.nodedef_name = 'ND_divide_vector4FA';
12050 this.nodedef_type = 'vector4';
12051 this.nodedef_node = 'divide';
12052 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
12053 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector4FA_out_genglsl.png';
12054 this.nodedef_group = 'math';
12055 this.addInput('in1','vector4');
12056 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12057 this.addInput('in2','float');
12058 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12059 this.addOutput('out','vector4');
12060 this.title = 'divide_vector4';
12061 this.desc = "MaterialX:mtlx/math/divide_vector4FA";
12062 this.onNodeCreated = function() {
12063 //console.log('Node created:', this);
12064}
12065 this.onRemoved = function() {
12066 //console.log('Node removed:', this);
12067 }
12068 this.onPropertyChanged = function(name, value, prev_value) {
12069 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12070 }
12071 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12072 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12073 }
12074 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12075 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12076 }
12077 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12078 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12079 }
12080 this.bgcolor = '#111';
12081 this.color = '#222';
12082 this.shape = LiteGraph.ROUND_SHAPE;
12083 this.boxcolor = '#275';
12084}

◆ mtlx_math_dotproduct_vector2()

function mtlx_math_dotproduct_vector2 ( )

mtlx_math_dotproduct_vector2

Library: mtlx. Category: distance. Type: float LiteGraph id: mtlx/math/dotproduct_vector2

Definition at line 19415 of file mtlx_stdlib.js.

19415 {
19416 this.nodedef_icon = '';
19417 this.nodedef_name = 'ND_dotproduct_vector2';
19418 this.nodedef_type = 'float';
19419 this.nodedef_node = 'dotproduct';
19420 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19421 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector2_out_genglsl.png';
19422 this.nodedef_group = 'math';
19423 this.addInput('in1','vector2');
19424 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19425 this.addInput('in2','vector2');
19426 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19427 this.addOutput('out','float');
19428 this.title = 'dotproduct_float';
19429 this.desc = "MaterialX:mtlx/math/dotproduct_vector2";
19430 this.onNodeCreated = function() {
19431 //console.log('Node created:', this);
19432}
19433 this.onRemoved = function() {
19434 //console.log('Node removed:', this);
19435 }
19436 this.onPropertyChanged = function(name, value, prev_value) {
19437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19438 }
19439 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19441 }
19442 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19444 }
19445 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19447 }
19448 this.bgcolor = '#111';
19449 this.color = '#222';
19450 this.shape = LiteGraph.ROUND_SHAPE;
19451 this.boxcolor = '#161';
19452}

◆ mtlx_math_dotproduct_vector3()

function mtlx_math_dotproduct_vector3 ( )

mtlx_math_dotproduct_vector3

Library: mtlx. Category: dotproduct. Type: float LiteGraph id: mtlx/math/dotproduct_vector3

Definition at line 19463 of file mtlx_stdlib.js.

19463 {
19464 this.nodedef_icon = '';
19465 this.nodedef_name = 'ND_dotproduct_vector3';
19466 this.nodedef_type = 'float';
19467 this.nodedef_node = 'dotproduct';
19468 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19469 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector3_out_genglsl.png';
19470 this.nodedef_group = 'math';
19471 this.addInput('in1','vector3');
19472 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19473 this.addInput('in2','vector3');
19474 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19475 this.addOutput('out','float');
19476 this.title = 'dotproduct_float';
19477 this.desc = "MaterialX:mtlx/math/dotproduct_vector3";
19478 this.onNodeCreated = function() {
19479 //console.log('Node created:', this);
19480}
19481 this.onRemoved = function() {
19482 //console.log('Node removed:', this);
19483 }
19484 this.onPropertyChanged = function(name, value, prev_value) {
19485 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19486 }
19487 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19488 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19489 }
19490 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19491 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19492 }
19493 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19494 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19495 }
19496 this.bgcolor = '#111';
19497 this.color = '#222';
19498 this.shape = LiteGraph.ROUND_SHAPE;
19499 this.boxcolor = '#161';
19500}

◆ mtlx_math_dotproduct_vector4()

function mtlx_math_dotproduct_vector4 ( )

mtlx_math_dotproduct_vector4

Library: mtlx. Category: dotproduct. Type: float LiteGraph id: mtlx/math/dotproduct_vector4

Definition at line 19511 of file mtlx_stdlib.js.

19511 {
19512 this.nodedef_icon = '';
19513 this.nodedef_name = 'ND_dotproduct_vector4';
19514 this.nodedef_type = 'float';
19515 this.nodedef_node = 'dotproduct';
19516 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19517 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector4_out_genglsl.png';
19518 this.nodedef_group = 'math';
19519 this.addInput('in1','vector4');
19520 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19521 this.addInput('in2','vector4');
19522 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19523 this.addOutput('out','float');
19524 this.title = 'dotproduct_float';
19525 this.desc = "MaterialX:mtlx/math/dotproduct_vector4";
19526 this.onNodeCreated = function() {
19527 //console.log('Node created:', this);
19528}
19529 this.onRemoved = function() {
19530 //console.log('Node removed:', this);
19531 }
19532 this.onPropertyChanged = function(name, value, prev_value) {
19533 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19534 }
19535 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19536 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19537 }
19538 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19539 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19540 }
19541 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19542 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19543 }
19544 this.bgcolor = '#111';
19545 this.color = '#222';
19546 this.shape = LiteGraph.ROUND_SHAPE;
19547 this.boxcolor = '#161';
19548}

◆ mtlx_math_exp_float()

function mtlx_math_exp_float ( )

mtlx_math_exp_float

Library: mtlx. Category: ln. Type: float LiteGraph id: mtlx/math/exp_float

Definition at line 16653 of file mtlx_stdlib.js.

16653 {
16654 this.nodedef_icon = '';
16655 this.nodedef_name = 'ND_exp_float';
16656 this.nodedef_type = 'float';
16657 this.nodedef_node = 'exp';
16658 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16659 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_float_out_genglsl.png';
16660 this.nodedef_group = 'math';
16661 this.addInput('in','float');
16662 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16663 this.addOutput('out','float');
16664 this.title = 'exp_float';
16665 this.desc = "MaterialX:mtlx/math/exp_float";
16666 this.onNodeCreated = function() {
16667 //console.log('Node created:', this);
16668}
16669 this.onRemoved = function() {
16670 //console.log('Node removed:', this);
16671 }
16672 this.onPropertyChanged = function(name, value, prev_value) {
16673 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16674 }
16675 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16676 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16677 }
16678 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16679 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16680 }
16681 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16682 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16683 }
16684 this.bgcolor = '#111';
16685 this.color = '#222';
16686 this.shape = LiteGraph.ROUND_SHAPE;
16687 this.boxcolor = '#161';
16688}

◆ mtlx_math_exp_vector2()

function mtlx_math_exp_vector2 ( )

mtlx_math_exp_vector2

Library: mtlx. Category: ln. Type: vector2 LiteGraph id: mtlx/math/exp_vector2

Definition at line 16791 of file mtlx_stdlib.js.

16791 {
16792 this.nodedef_icon = '';
16793 this.nodedef_name = 'ND_exp_vector2';
16794 this.nodedef_type = 'vector2';
16795 this.nodedef_node = 'exp';
16796 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16797 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector2_out_genglsl.png';
16798 this.nodedef_group = 'math';
16799 this.addInput('in','vector2');
16800 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16801 this.addOutput('out','vector2');
16802 this.title = 'exp_vector2';
16803 this.desc = "MaterialX:mtlx/math/exp_vector2";
16804 this.onNodeCreated = function() {
16805 //console.log('Node created:', this);
16806}
16807 this.onRemoved = function() {
16808 //console.log('Node removed:', this);
16809 }
16810 this.onPropertyChanged = function(name, value, prev_value) {
16811 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16812 }
16813 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16814 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16815 }
16816 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16817 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16818 }
16819 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16820 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16821 }
16822 this.bgcolor = '#111';
16823 this.color = '#222';
16824 this.shape = LiteGraph.ROUND_SHAPE;
16825 this.boxcolor = '#265';
16826}

◆ mtlx_math_exp_vector3()

function mtlx_math_exp_vector3 ( )

mtlx_math_exp_vector3

Library: mtlx. Category: ln. Type: vector3 LiteGraph id: mtlx/math/exp_vector3

Definition at line 16929 of file mtlx_stdlib.js.

16929 {
16930 this.nodedef_icon = '';
16931 this.nodedef_name = 'ND_exp_vector3';
16932 this.nodedef_type = 'vector3';
16933 this.nodedef_node = 'exp';
16934 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16935 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector3_out_genglsl.png';
16936 this.nodedef_group = 'math';
16937 this.addInput('in','vector3');
16938 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16939 this.addOutput('out','vector3');
16940 this.title = 'exp_vector3';
16941 this.desc = "MaterialX:mtlx/math/exp_vector3";
16942 this.onNodeCreated = function() {
16943 //console.log('Node created:', this);
16944}
16945 this.onRemoved = function() {
16946 //console.log('Node removed:', this);
16947 }
16948 this.onPropertyChanged = function(name, value, prev_value) {
16949 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16950 }
16951 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16952 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16953 }
16954 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16955 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16956 }
16957 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16958 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16959 }
16960 this.bgcolor = '#111';
16961 this.color = '#222';
16962 this.shape = LiteGraph.ROUND_SHAPE;
16963 this.boxcolor = '#465';
16964}

◆ mtlx_math_exp_vector4()

function mtlx_math_exp_vector4 ( )

mtlx_math_exp_vector4

Library: mtlx. Category: ln. Type: vector4 LiteGraph id: mtlx/math/exp_vector4

Definition at line 17067 of file mtlx_stdlib.js.

17067 {
17068 this.nodedef_icon = '';
17069 this.nodedef_name = 'ND_exp_vector4';
17070 this.nodedef_type = 'vector4';
17071 this.nodedef_node = 'exp';
17072 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
17073 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector4_out_genglsl.png';
17074 this.nodedef_group = 'math';
17075 this.addInput('in','vector4');
17076 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17077 this.addOutput('out','vector4');
17078 this.title = 'exp_vector4';
17079 this.desc = "MaterialX:mtlx/math/exp_vector4";
17080 this.onNodeCreated = function() {
17081 //console.log('Node created:', this);
17082}
17083 this.onRemoved = function() {
17084 //console.log('Node removed:', this);
17085 }
17086 this.onPropertyChanged = function(name, value, prev_value) {
17087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17088 }
17089 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17091 }
17092 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17094 }
17095 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17097 }
17098 this.bgcolor = '#111';
17099 this.color = '#222';
17100 this.shape = LiteGraph.ROUND_SHAPE;
17101 this.boxcolor = '#275';
17102}

◆ mtlx_math_floor_color3()

function mtlx_math_floor_color3 ( )

mtlx_math_floor_color3

Library: mtlx. Category: floor. Type: color3 LiteGraph id: mtlx/math/floor_color3

Definition at line 13473 of file mtlx_stdlib.js.

13473 {
13474 this.nodedef_icon = '';
13475 this.nodedef_name = 'ND_floor_color3';
13476 this.nodedef_type = 'color3';
13477 this.nodedef_node = 'floor';
13478 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13479 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_color3_out_genglsl.png';
13480 this.nodedef_group = 'math';
13481 this.addInput('in','color3');
13482 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13483 this.addOutput('out','color3');
13484 this.title = 'floor_color3';
13485 this.desc = "MaterialX:mtlx/math/floor_color3";
13486 this.onNodeCreated = function() {
13487 //console.log('Node created:', this);
13488}
13489 this.onRemoved = function() {
13490 //console.log('Node removed:', this);
13491 }
13492 this.onPropertyChanged = function(name, value, prev_value) {
13493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13494 }
13495 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13497 }
13498 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13500 }
13501 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13503 }
13504 this.bgcolor = '#111';
13505 this.color = '#222';
13506 this.shape = LiteGraph.ROUND_SHAPE;
13507 this.boxcolor = '#37A';
13508}

◆ mtlx_math_floor_color4()

function mtlx_math_floor_color4 ( )

mtlx_math_floor_color4

Library: mtlx. Category: floor. Type: color4 LiteGraph id: mtlx/math/floor_color4

Definition at line 13519 of file mtlx_stdlib.js.

13519 {
13520 this.nodedef_icon = '';
13521 this.nodedef_name = 'ND_floor_color4';
13522 this.nodedef_type = 'color4';
13523 this.nodedef_node = 'floor';
13524 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13525 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_color4_out_genglsl.png';
13526 this.nodedef_group = 'math';
13527 this.addInput('in','color4');
13528 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13529 this.addOutput('out','color4');
13530 this.title = 'floor_color4';
13531 this.desc = "MaterialX:mtlx/math/floor_color4";
13532 this.onNodeCreated = function() {
13533 //console.log('Node created:', this);
13534}
13535 this.onRemoved = function() {
13536 //console.log('Node removed:', this);
13537 }
13538 this.onPropertyChanged = function(name, value, prev_value) {
13539 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13540 }
13541 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13542 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13543 }
13544 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13545 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13546 }
13547 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13548 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13549 }
13550 this.bgcolor = '#111';
13551 this.color = '#222';
13552 this.shape = LiteGraph.ROUND_SHAPE;
13553 this.boxcolor = '#69A';
13554}

◆ mtlx_math_floor_float()

function mtlx_math_floor_float ( )

mtlx_math_floor_float

Library: mtlx. Category: absval. Type: float LiteGraph id: mtlx/math/floor_float

Definition at line 13427 of file mtlx_stdlib.js.

13427 {
13428 this.nodedef_icon = '';
13429 this.nodedef_name = 'ND_floor_float';
13430 this.nodedef_type = 'float';
13431 this.nodedef_node = 'floor';
13432 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13433 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_float_out_genglsl.png';
13434 this.nodedef_group = 'math';
13435 this.addInput('in','float');
13436 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13437 this.addOutput('out','float');
13438 this.title = 'floor_float';
13439 this.desc = "MaterialX:mtlx/math/floor_float";
13440 this.onNodeCreated = function() {
13441 //console.log('Node created:', this);
13442}
13443 this.onRemoved = function() {
13444 //console.log('Node removed:', this);
13445 }
13446 this.onPropertyChanged = function(name, value, prev_value) {
13447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13448 }
13449 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13451 }
13452 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13454 }
13455 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13457 }
13458 this.bgcolor = '#111';
13459 this.color = '#222';
13460 this.shape = LiteGraph.ROUND_SHAPE;
13461 this.boxcolor = '#161';
13462}

◆ mtlx_math_floor_integer()

function mtlx_math_floor_integer ( )

mtlx_math_floor_integer

Library: mtlx. Category: floor. Type: integer LiteGraph id: mtlx/math/floor_integer

Definition at line 13703 of file mtlx_stdlib.js.

13703 {
13704 this.nodedef_icon = '';
13705 this.nodedef_name = 'ND_floor_integer';
13706 this.nodedef_type = 'integer';
13707 this.nodedef_node = 'floor';
13708 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13709 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_integer_out_genglsl.png';
13710 this.nodedef_group = 'math';
13711 this.addInput('in','float');
13712 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13713 this.addOutput('out','integer');
13714 this.title = 'floor_integer';
13715 this.desc = "MaterialX:mtlx/math/floor_integer";
13716 this.onNodeCreated = function() {
13717 //console.log('Node created:', this);
13718}
13719 this.onRemoved = function() {
13720 //console.log('Node removed:', this);
13721 }
13722 this.onPropertyChanged = function(name, value, prev_value) {
13723 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13724 }
13725 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13726 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13727 }
13728 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13729 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13730 }
13731 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13732 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13733 }
13734 this.bgcolor = '#111';
13735 this.color = '#222';
13736 this.shape = LiteGraph.ROUND_SHAPE;
13737 this.boxcolor = '#A32';
13738}

◆ mtlx_math_floor_vector2()

function mtlx_math_floor_vector2 ( )

mtlx_math_floor_vector2

Library: mtlx. Category: floor. Type: vector2 LiteGraph id: mtlx/math/floor_vector2

Definition at line 13565 of file mtlx_stdlib.js.

13565 {
13566 this.nodedef_icon = '';
13567 this.nodedef_name = 'ND_floor_vector2';
13568 this.nodedef_type = 'vector2';
13569 this.nodedef_node = 'floor';
13570 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13571 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector2_out_genglsl.png';
13572 this.nodedef_group = 'math';
13573 this.addInput('in','vector2');
13574 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13575 this.addOutput('out','vector2');
13576 this.title = 'floor_vector2';
13577 this.desc = "MaterialX:mtlx/math/floor_vector2";
13578 this.onNodeCreated = function() {
13579 //console.log('Node created:', this);
13580}
13581 this.onRemoved = function() {
13582 //console.log('Node removed:', this);
13583 }
13584 this.onPropertyChanged = function(name, value, prev_value) {
13585 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13586 }
13587 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13588 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13589 }
13590 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13591 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13592 }
13593 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13594 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13595 }
13596 this.bgcolor = '#111';
13597 this.color = '#222';
13598 this.shape = LiteGraph.ROUND_SHAPE;
13599 this.boxcolor = '#265';
13600}

◆ mtlx_math_floor_vector3()

function mtlx_math_floor_vector3 ( )

mtlx_math_floor_vector3

Library: mtlx. Category: floor. Type: vector3 LiteGraph id: mtlx/math/floor_vector3

Definition at line 13611 of file mtlx_stdlib.js.

13611 {
13612 this.nodedef_icon = '';
13613 this.nodedef_name = 'ND_floor_vector3';
13614 this.nodedef_type = 'vector3';
13615 this.nodedef_node = 'floor';
13616 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13617 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector3_out_genglsl.png';
13618 this.nodedef_group = 'math';
13619 this.addInput('in','vector3');
13620 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13621 this.addOutput('out','vector3');
13622 this.title = 'floor_vector3';
13623 this.desc = "MaterialX:mtlx/math/floor_vector3";
13624 this.onNodeCreated = function() {
13625 //console.log('Node created:', this);
13626}
13627 this.onRemoved = function() {
13628 //console.log('Node removed:', this);
13629 }
13630 this.onPropertyChanged = function(name, value, prev_value) {
13631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13632 }
13633 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13635 }
13636 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13638 }
13639 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13641 }
13642 this.bgcolor = '#111';
13643 this.color = '#222';
13644 this.shape = LiteGraph.ROUND_SHAPE;
13645 this.boxcolor = '#465';
13646}

◆ mtlx_math_floor_vector4()

function mtlx_math_floor_vector4 ( )

mtlx_math_floor_vector4

Library: mtlx. Category: floor. Type: vector4 LiteGraph id: mtlx/math/floor_vector4

Definition at line 13657 of file mtlx_stdlib.js.

13657 {
13658 this.nodedef_icon = '';
13659 this.nodedef_name = 'ND_floor_vector4';
13660 this.nodedef_type = 'vector4';
13661 this.nodedef_node = 'floor';
13662 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13663 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector4_out_genglsl.png';
13664 this.nodedef_group = 'math';
13665 this.addInput('in','vector4');
13666 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13667 this.addOutput('out','vector4');
13668 this.title = 'floor_vector4';
13669 this.desc = "MaterialX:mtlx/math/floor_vector4";
13670 this.onNodeCreated = function() {
13671 //console.log('Node created:', this);
13672}
13673 this.onRemoved = function() {
13674 //console.log('Node removed:', this);
13675 }
13676 this.onPropertyChanged = function(name, value, prev_value) {
13677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13678 }
13679 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13681 }
13682 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13684 }
13685 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13687 }
13688 this.bgcolor = '#111';
13689 this.color = '#222';
13690 this.shape = LiteGraph.ROUND_SHAPE;
13691 this.boxcolor = '#275';
13692}

◆ mtlx_math_invert_color3()

function mtlx_math_invert_color3 ( )

mtlx_math_invert_color3

Library: mtlx. Category: invert. Type: color3 LiteGraph id: mtlx/math/invert_color3

Definition at line 12671 of file mtlx_stdlib.js.

12671 {
12672 this.nodedef_icon = '';
12673 this.nodedef_name = 'ND_invert_color3';
12674 this.nodedef_type = 'color3';
12675 this.nodedef_node = 'invert';
12676 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12677 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color3_out_genglsl.png';
12678 this.nodedef_group = 'math';
12679 this.addInput('in','color3');
12680 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12681 this.addInput('amount','color3');
12682 this.addProperty('amount', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12683 this.addOutput('out','color3');
12684 this.title = 'invert_color3';
12685 this.desc = "MaterialX:mtlx/math/invert_color3";
12686 this.onNodeCreated = function() {
12687 //console.log('Node created:', this);
12688}
12689 this.onRemoved = function() {
12690 //console.log('Node removed:', this);
12691 }
12692 this.onPropertyChanged = function(name, value, prev_value) {
12693 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12694 }
12695 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12696 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12697 }
12698 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12699 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12700 }
12701 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12702 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12703 }
12704 this.bgcolor = '#111';
12705 this.color = '#222';
12706 this.shape = LiteGraph.ROUND_SHAPE;
12707 this.boxcolor = '#37A';
12708}

◆ mtlx_math_invert_color3FA()

function mtlx_math_invert_color3FA ( )

mtlx_math_invert_color3FA

Library: mtlx. Category: invert. Type: color3 LiteGraph id: mtlx/math/invert_color3FA

Definition at line 12911 of file mtlx_stdlib.js.

12911 {
12912 this.nodedef_icon = '';
12913 this.nodedef_name = 'ND_invert_color3FA';
12914 this.nodedef_type = 'color3';
12915 this.nodedef_node = 'invert';
12916 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12917 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color3FA_out_genglsl.png';
12918 this.nodedef_group = 'math';
12919 this.addInput('in','color3');
12920 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12921 this.addInput('amount','float');
12922 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12923 this.addOutput('out','color3');
12924 this.title = 'invert_color3';
12925 this.desc = "MaterialX:mtlx/math/invert_color3FA";
12926 this.onNodeCreated = function() {
12927 //console.log('Node created:', this);
12928}
12929 this.onRemoved = function() {
12930 //console.log('Node removed:', this);
12931 }
12932 this.onPropertyChanged = function(name, value, prev_value) {
12933 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12934 }
12935 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12936 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12937 }
12938 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12939 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12940 }
12941 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12942 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12943 }
12944 this.bgcolor = '#111';
12945 this.color = '#222';
12946 this.shape = LiteGraph.ROUND_SHAPE;
12947 this.boxcolor = '#37A';
12948}

◆ mtlx_math_invert_color4()

function mtlx_math_invert_color4 ( )

mtlx_math_invert_color4

Library: mtlx. Category: invert. Type: color4 LiteGraph id: mtlx/math/invert_color4

Definition at line 12719 of file mtlx_stdlib.js.

12719 {
12720 this.nodedef_icon = '';
12721 this.nodedef_name = 'ND_invert_color4';
12722 this.nodedef_type = 'color4';
12723 this.nodedef_node = 'invert';
12724 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12725 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color4_out_genglsl.png';
12726 this.nodedef_group = 'math';
12727 this.addInput('in','color4');
12728 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12729 this.addInput('amount','color4');
12730 this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12731 this.addOutput('out','color4');
12732 this.title = 'invert_color4';
12733 this.desc = "MaterialX:mtlx/math/invert_color4";
12734 this.onNodeCreated = function() {
12735 //console.log('Node created:', this);
12736}
12737 this.onRemoved = function() {
12738 //console.log('Node removed:', this);
12739 }
12740 this.onPropertyChanged = function(name, value, prev_value) {
12741 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12742 }
12743 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12744 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12745 }
12746 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12747 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12748 }
12749 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12750 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12751 }
12752 this.bgcolor = '#111';
12753 this.color = '#222';
12754 this.shape = LiteGraph.ROUND_SHAPE;
12755 this.boxcolor = '#69A';
12756}

◆ mtlx_math_invert_color4FA()

function mtlx_math_invert_color4FA ( )

mtlx_math_invert_color4FA

Library: mtlx. Category: invert. Type: color4 LiteGraph id: mtlx/math/invert_color4FA

Definition at line 12959 of file mtlx_stdlib.js.

12959 {
12960 this.nodedef_icon = '';
12961 this.nodedef_name = 'ND_invert_color4FA';
12962 this.nodedef_type = 'color4';
12963 this.nodedef_node = 'invert';
12964 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12965 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color4FA_out_genglsl.png';
12966 this.nodedef_group = 'math';
12967 this.addInput('in','color4');
12968 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12969 this.addInput('amount','float');
12970 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12971 this.addOutput('out','color4');
12972 this.title = 'invert_color4';
12973 this.desc = "MaterialX:mtlx/math/invert_color4FA";
12974 this.onNodeCreated = function() {
12975 //console.log('Node created:', this);
12976}
12977 this.onRemoved = function() {
12978 //console.log('Node removed:', this);
12979 }
12980 this.onPropertyChanged = function(name, value, prev_value) {
12981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12982 }
12983 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12985 }
12986 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12988 }
12989 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12991 }
12992 this.bgcolor = '#111';
12993 this.color = '#222';
12994 this.shape = LiteGraph.ROUND_SHAPE;
12995 this.boxcolor = '#69A';
12996}

◆ mtlx_math_invert_float()

function mtlx_math_invert_float ( )

mtlx_math_invert_float

Library: mtlx. Category: modulo. Type: float LiteGraph id: mtlx/math/invert_float

Definition at line 12623 of file mtlx_stdlib.js.

12623 {
12624 this.nodedef_icon = '';
12625 this.nodedef_name = 'ND_invert_float';
12626 this.nodedef_type = 'float';
12627 this.nodedef_node = 'invert';
12628 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12629 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_float_out_genglsl.png';
12630 this.nodedef_group = 'math';
12631 this.addInput('in','float');
12632 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12633 this.addInput('amount','float');
12634 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12635 this.addOutput('out','float');
12636 this.title = 'invert_float';
12637 this.desc = "MaterialX:mtlx/math/invert_float";
12638 this.onNodeCreated = function() {
12639 //console.log('Node created:', this);
12640}
12641 this.onRemoved = function() {
12642 //console.log('Node removed:', this);
12643 }
12644 this.onPropertyChanged = function(name, value, prev_value) {
12645 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12646 }
12647 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12648 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12649 }
12650 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12651 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12652 }
12653 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12654 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12655 }
12656 this.bgcolor = '#111';
12657 this.color = '#222';
12658 this.shape = LiteGraph.ROUND_SHAPE;
12659 this.boxcolor = '#161';
12660}

◆ mtlx_math_invert_vector2()

function mtlx_math_invert_vector2 ( )

mtlx_math_invert_vector2

Library: mtlx. Category: invert. Type: vector2 LiteGraph id: mtlx/math/invert_vector2

Definition at line 12767 of file mtlx_stdlib.js.

12767 {
12768 this.nodedef_icon = '';
12769 this.nodedef_name = 'ND_invert_vector2';
12770 this.nodedef_type = 'vector2';
12771 this.nodedef_node = 'invert';
12772 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12773 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector2_out_genglsl.png';
12774 this.nodedef_group = 'math';
12775 this.addInput('in','vector2');
12776 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12777 this.addInput('amount','vector2');
12778 this.addProperty('amount', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12779 this.addOutput('out','vector2');
12780 this.title = 'invert_vector2';
12781 this.desc = "MaterialX:mtlx/math/invert_vector2";
12782 this.onNodeCreated = function() {
12783 //console.log('Node created:', this);
12784}
12785 this.onRemoved = function() {
12786 //console.log('Node removed:', this);
12787 }
12788 this.onPropertyChanged = function(name, value, prev_value) {
12789 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12790 }
12791 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12792 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12793 }
12794 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12795 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12796 }
12797 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12798 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12799 }
12800 this.bgcolor = '#111';
12801 this.color = '#222';
12802 this.shape = LiteGraph.ROUND_SHAPE;
12803 this.boxcolor = '#265';
12804}

◆ mtlx_math_invert_vector2FA()

function mtlx_math_invert_vector2FA ( )

mtlx_math_invert_vector2FA

Library: mtlx. Category: invert. Type: vector2 LiteGraph id: mtlx/math/invert_vector2FA

Definition at line 13007 of file mtlx_stdlib.js.

13007 {
13008 this.nodedef_icon = '';
13009 this.nodedef_name = 'ND_invert_vector2FA';
13010 this.nodedef_type = 'vector2';
13011 this.nodedef_node = 'invert';
13012 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13013 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector2FA_out_genglsl.png';
13014 this.nodedef_group = 'math';
13015 this.addInput('in','vector2');
13016 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13017 this.addInput('amount','float');
13018 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13019 this.addOutput('out','vector2');
13020 this.title = 'invert_vector2';
13021 this.desc = "MaterialX:mtlx/math/invert_vector2FA";
13022 this.onNodeCreated = function() {
13023 //console.log('Node created:', this);
13024}
13025 this.onRemoved = function() {
13026 //console.log('Node removed:', this);
13027 }
13028 this.onPropertyChanged = function(name, value, prev_value) {
13029 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13030 }
13031 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13032 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13033 }
13034 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13035 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13036 }
13037 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13038 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13039 }
13040 this.bgcolor = '#111';
13041 this.color = '#222';
13042 this.shape = LiteGraph.ROUND_SHAPE;
13043 this.boxcolor = '#265';
13044}

◆ mtlx_math_invert_vector3()

function mtlx_math_invert_vector3 ( )

mtlx_math_invert_vector3

Library: mtlx. Category: invert. Type: vector3 LiteGraph id: mtlx/math/invert_vector3

Definition at line 12815 of file mtlx_stdlib.js.

12815 {
12816 this.nodedef_icon = '';
12817 this.nodedef_name = 'ND_invert_vector3';
12818 this.nodedef_type = 'vector3';
12819 this.nodedef_node = 'invert';
12820 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12821 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector3_out_genglsl.png';
12822 this.nodedef_group = 'math';
12823 this.addInput('in','vector3');
12824 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12825 this.addInput('amount','vector3');
12826 this.addProperty('amount', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12827 this.addOutput('out','vector3');
12828 this.title = 'invert_vector3';
12829 this.desc = "MaterialX:mtlx/math/invert_vector3";
12830 this.onNodeCreated = function() {
12831 //console.log('Node created:', this);
12832}
12833 this.onRemoved = function() {
12834 //console.log('Node removed:', this);
12835 }
12836 this.onPropertyChanged = function(name, value, prev_value) {
12837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12838 }
12839 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12841 }
12842 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12844 }
12845 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12847 }
12848 this.bgcolor = '#111';
12849 this.color = '#222';
12850 this.shape = LiteGraph.ROUND_SHAPE;
12851 this.boxcolor = '#465';
12852}

◆ mtlx_math_invert_vector3FA()

function mtlx_math_invert_vector3FA ( )

mtlx_math_invert_vector3FA

Library: mtlx. Category: invert. Type: vector3 LiteGraph id: mtlx/math/invert_vector3FA

Definition at line 13055 of file mtlx_stdlib.js.

13055 {
13056 this.nodedef_icon = '';
13057 this.nodedef_name = 'ND_invert_vector3FA';
13058 this.nodedef_type = 'vector3';
13059 this.nodedef_node = 'invert';
13060 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13061 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector3FA_out_genglsl.png';
13062 this.nodedef_group = 'math';
13063 this.addInput('in','vector3');
13064 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13065 this.addInput('amount','float');
13066 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13067 this.addOutput('out','vector3');
13068 this.title = 'invert_vector3';
13069 this.desc = "MaterialX:mtlx/math/invert_vector3FA";
13070 this.onNodeCreated = function() {
13071 //console.log('Node created:', this);
13072}
13073 this.onRemoved = function() {
13074 //console.log('Node removed:', this);
13075 }
13076 this.onPropertyChanged = function(name, value, prev_value) {
13077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13078 }
13079 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13081 }
13082 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13084 }
13085 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13087 }
13088 this.bgcolor = '#111';
13089 this.color = '#222';
13090 this.shape = LiteGraph.ROUND_SHAPE;
13091 this.boxcolor = '#465';
13092}

◆ mtlx_math_invert_vector4()

function mtlx_math_invert_vector4 ( )

mtlx_math_invert_vector4

Library: mtlx. Category: invert. Type: vector4 LiteGraph id: mtlx/math/invert_vector4

Definition at line 12863 of file mtlx_stdlib.js.

12863 {
12864 this.nodedef_icon = '';
12865 this.nodedef_name = 'ND_invert_vector4';
12866 this.nodedef_type = 'vector4';
12867 this.nodedef_node = 'invert';
12868 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12869 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector4_out_genglsl.png';
12870 this.nodedef_group = 'math';
12871 this.addInput('in','vector4');
12872 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12873 this.addInput('amount','vector4');
12874 this.addProperty('amount', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12875 this.addOutput('out','vector4');
12876 this.title = 'invert_vector4';
12877 this.desc = "MaterialX:mtlx/math/invert_vector4";
12878 this.onNodeCreated = function() {
12879 //console.log('Node created:', this);
12880}
12881 this.onRemoved = function() {
12882 //console.log('Node removed:', this);
12883 }
12884 this.onPropertyChanged = function(name, value, prev_value) {
12885 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12886 }
12887 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12888 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12889 }
12890 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12891 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12892 }
12893 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12894 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12895 }
12896 this.bgcolor = '#111';
12897 this.color = '#222';
12898 this.shape = LiteGraph.ROUND_SHAPE;
12899 this.boxcolor = '#275';
12900}

◆ mtlx_math_invert_vector4FA()

function mtlx_math_invert_vector4FA ( )

mtlx_math_invert_vector4FA

Library: mtlx. Category: invert. Type: vector4 LiteGraph id: mtlx/math/invert_vector4FA

Definition at line 13103 of file mtlx_stdlib.js.

13103 {
13104 this.nodedef_icon = '';
13105 this.nodedef_name = 'ND_invert_vector4FA';
13106 this.nodedef_type = 'vector4';
13107 this.nodedef_node = 'invert';
13108 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13109 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector4FA_out_genglsl.png';
13110 this.nodedef_group = 'math';
13111 this.addInput('in','vector4');
13112 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13113 this.addInput('amount','float');
13114 this.addProperty('amount', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
13115 this.addOutput('out','vector4');
13116 this.title = 'invert_vector4';
13117 this.desc = "MaterialX:mtlx/math/invert_vector4FA";
13118 this.onNodeCreated = function() {
13119 //console.log('Node created:', this);
13120}
13121 this.onRemoved = function() {
13122 //console.log('Node removed:', this);
13123 }
13124 this.onPropertyChanged = function(name, value, prev_value) {
13125 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
13126 }
13127 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
13128 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
13129 }
13130 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
13131 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
13132 }
13133 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
13134 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
13135 }
13136 this.bgcolor = '#111';
13137 this.color = '#222';
13138 this.shape = LiteGraph.ROUND_SHAPE;
13139 this.boxcolor = '#275';
13140}

◆ mtlx_math_invertmatrix_matrix33()

function mtlx_math_invertmatrix_matrix33 ( )

mtlx_math_invertmatrix_matrix33

Library: mtlx. Category: determinant. Type: matrix33 LiteGraph id: mtlx/math/invertmatrix_matrix33

Definition at line 20241 of file mtlx_stdlib.js.

20241 {
20242 this.nodedef_icon = '';
20243 this.nodedef_name = 'ND_invertmatrix_matrix33';
20244 this.nodedef_type = 'matrix33';
20245 this.nodedef_node = 'invertmatrix';
20246 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invertmatrix.html';
20247 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invertmatrix_matrix33_out_genglsl.png';
20248 this.nodedef_group = 'math';
20249 this.addInput('in','matrix33');
20250 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":"","defaultgeomprop":""});
20251 this.addOutput('out','matrix33');
20252 this.title = 'invertmatrix_matrix33';
20253 this.desc = "MaterialX:mtlx/math/invertmatrix_matrix33";
20254 this.onNodeCreated = function() {
20255 //console.log('Node created:', this);
20256}
20257 this.onRemoved = function() {
20258 //console.log('Node removed:', this);
20259 }
20260 this.onPropertyChanged = function(name, value, prev_value) {
20261 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20262 }
20263 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20264 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20265 }
20266 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20267 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20268 }
20269 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20270 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20271 }
20272 this.bgcolor = '#111';
20273 this.color = '#222';
20274 this.shape = LiteGraph.ROUND_SHAPE;
20275 this.boxcolor = '#333';
20276}

◆ mtlx_math_invertmatrix_matrix44()

function mtlx_math_invertmatrix_matrix44 ( )

mtlx_math_invertmatrix_matrix44

Library: mtlx. Category: invertmatrix. Type: matrix44 LiteGraph id: mtlx/math/invertmatrix_matrix44

Definition at line 20287 of file mtlx_stdlib.js.

20287 {
20288 this.nodedef_icon = '';
20289 this.nodedef_name = 'ND_invertmatrix_matrix44';
20290 this.nodedef_type = 'matrix44';
20291 this.nodedef_node = 'invertmatrix';
20292 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invertmatrix.html';
20293 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invertmatrix_matrix44_out_genglsl.png';
20294 this.nodedef_group = 'math';
20295 this.addInput('in','matrix44');
20296 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":"","defaultgeomprop":""});
20297 this.addOutput('out','matrix44');
20298 this.title = 'invertmatrix_matrix44';
20299 this.desc = "MaterialX:mtlx/math/invertmatrix_matrix44";
20300 this.onNodeCreated = function() {
20301 //console.log('Node created:', this);
20302}
20303 this.onRemoved = function() {
20304 //console.log('Node removed:', this);
20305 }
20306 this.onPropertyChanged = function(name, value, prev_value) {
20307 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20308 }
20309 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20310 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20311 }
20312 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20313 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20314 }
20315 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20316 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20317 }
20318 this.bgcolor = '#111';
20319 this.color = '#222';
20320 this.shape = LiteGraph.ROUND_SHAPE;
20321 this.boxcolor = '#444';
20322}

◆ mtlx_math_ln_float()

function mtlx_math_ln_float ( )

mtlx_math_ln_float

Library: mtlx. Category: sqrt. Type: float LiteGraph id: mtlx/math/ln_float

Definition at line 16607 of file mtlx_stdlib.js.

16607 {
16608 this.nodedef_icon = '';
16609 this.nodedef_name = 'ND_ln_float';
16610 this.nodedef_type = 'float';
16611 this.nodedef_node = 'ln';
16612 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16613 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_float_out_genglsl.png';
16614 this.nodedef_group = 'math';
16615 this.addInput('in','float');
16616 this.addProperty('in', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16617 this.addOutput('out','float');
16618 this.title = 'ln_float';
16619 this.desc = "MaterialX:mtlx/math/ln_float";
16620 this.onNodeCreated = function() {
16621 //console.log('Node created:', this);
16622}
16623 this.onRemoved = function() {
16624 //console.log('Node removed:', this);
16625 }
16626 this.onPropertyChanged = function(name, value, prev_value) {
16627 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16628 }
16629 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16630 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16631 }
16632 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16633 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16634 }
16635 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16636 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16637 }
16638 this.bgcolor = '#111';
16639 this.color = '#222';
16640 this.shape = LiteGraph.ROUND_SHAPE;
16641 this.boxcolor = '#161';
16642}

◆ mtlx_math_ln_vector2()

function mtlx_math_ln_vector2 ( )

mtlx_math_ln_vector2

Library: mtlx. Category: sqrt. Type: vector2 LiteGraph id: mtlx/math/ln_vector2

Definition at line 16745 of file mtlx_stdlib.js.

16745 {
16746 this.nodedef_icon = '';
16747 this.nodedef_name = 'ND_ln_vector2';
16748 this.nodedef_type = 'vector2';
16749 this.nodedef_node = 'ln';
16750 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16751 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector2_out_genglsl.png';
16752 this.nodedef_group = 'math';
16753 this.addInput('in','vector2');
16754 this.addProperty('in', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16755 this.addOutput('out','vector2');
16756 this.title = 'ln_vector2';
16757 this.desc = "MaterialX:mtlx/math/ln_vector2";
16758 this.onNodeCreated = function() {
16759 //console.log('Node created:', this);
16760}
16761 this.onRemoved = function() {
16762 //console.log('Node removed:', this);
16763 }
16764 this.onPropertyChanged = function(name, value, prev_value) {
16765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16766 }
16767 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16769 }
16770 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16772 }
16773 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16775 }
16776 this.bgcolor = '#111';
16777 this.color = '#222';
16778 this.shape = LiteGraph.ROUND_SHAPE;
16779 this.boxcolor = '#265';
16780}

◆ mtlx_math_ln_vector3()

function mtlx_math_ln_vector3 ( )

mtlx_math_ln_vector3

Library: mtlx. Category: sqrt. Type: vector3 LiteGraph id: mtlx/math/ln_vector3

Definition at line 16883 of file mtlx_stdlib.js.

16883 {
16884 this.nodedef_icon = '';
16885 this.nodedef_name = 'ND_ln_vector3';
16886 this.nodedef_type = 'vector3';
16887 this.nodedef_node = 'ln';
16888 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16889 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector3_out_genglsl.png';
16890 this.nodedef_group = 'math';
16891 this.addInput('in','vector3');
16892 this.addProperty('in', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16893 this.addOutput('out','vector3');
16894 this.title = 'ln_vector3';
16895 this.desc = "MaterialX:mtlx/math/ln_vector3";
16896 this.onNodeCreated = function() {
16897 //console.log('Node created:', this);
16898}
16899 this.onRemoved = function() {
16900 //console.log('Node removed:', this);
16901 }
16902 this.onPropertyChanged = function(name, value, prev_value) {
16903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16904 }
16905 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16907 }
16908 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16910 }
16911 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16913 }
16914 this.bgcolor = '#111';
16915 this.color = '#222';
16916 this.shape = LiteGraph.ROUND_SHAPE;
16917 this.boxcolor = '#465';
16918}

◆ mtlx_math_ln_vector4()

function mtlx_math_ln_vector4 ( )

mtlx_math_ln_vector4

Library: mtlx. Category: sqrt. Type: vector4 LiteGraph id: mtlx/math/ln_vector4

Definition at line 17021 of file mtlx_stdlib.js.

17021 {
17022 this.nodedef_icon = '';
17023 this.nodedef_name = 'ND_ln_vector4';
17024 this.nodedef_type = 'vector4';
17025 this.nodedef_node = 'ln';
17026 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
17027 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector4_out_genglsl.png';
17028 this.nodedef_group = 'math';
17029 this.addInput('in','vector4');
17030 this.addProperty('in', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17031 this.addOutput('out','vector4');
17032 this.title = 'ln_vector4';
17033 this.desc = "MaterialX:mtlx/math/ln_vector4";
17034 this.onNodeCreated = function() {
17035 //console.log('Node created:', this);
17036}
17037 this.onRemoved = function() {
17038 //console.log('Node removed:', this);
17039 }
17040 this.onPropertyChanged = function(name, value, prev_value) {
17041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17042 }
17043 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17045 }
17046 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17048 }
17049 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17051 }
17052 this.bgcolor = '#111';
17053 this.color = '#222';
17054 this.shape = LiteGraph.ROUND_SHAPE;
17055 this.boxcolor = '#275';
17056}

◆ mtlx_math_magnitude_vector2()

function mtlx_math_magnitude_vector2 ( )

mtlx_math_magnitude_vector2

Library: mtlx. Category: normalize. Type: float LiteGraph id: mtlx/math/magnitude_vector2

Definition at line 19133 of file mtlx_stdlib.js.

19133 {
19134 this.nodedef_icon = '';
19135 this.nodedef_name = 'ND_magnitude_vector2';
19136 this.nodedef_type = 'float';
19137 this.nodedef_node = 'magnitude';
19138 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19139 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector2_out_genglsl.png';
19140 this.nodedef_group = 'math';
19141 this.addInput('in','vector2');
19142 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19143 this.addOutput('out','float');
19144 this.title = 'magnitude_float';
19145 this.desc = "MaterialX:mtlx/math/magnitude_vector2";
19146 this.onNodeCreated = function() {
19147 //console.log('Node created:', this);
19148}
19149 this.onRemoved = function() {
19150 //console.log('Node removed:', this);
19151 }
19152 this.onPropertyChanged = function(name, value, prev_value) {
19153 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19154 }
19155 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19156 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19157 }
19158 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19159 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19160 }
19161 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19162 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19163 }
19164 this.bgcolor = '#111';
19165 this.color = '#222';
19166 this.shape = LiteGraph.ROUND_SHAPE;
19167 this.boxcolor = '#161';
19168}

◆ mtlx_math_magnitude_vector3()

function mtlx_math_magnitude_vector3 ( )

mtlx_math_magnitude_vector3

Library: mtlx. Category: magnitude. Type: float LiteGraph id: mtlx/math/magnitude_vector3

Definition at line 19179 of file mtlx_stdlib.js.

19179 {
19180 this.nodedef_icon = '';
19181 this.nodedef_name = 'ND_magnitude_vector3';
19182 this.nodedef_type = 'float';
19183 this.nodedef_node = 'magnitude';
19184 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19185 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector3_out_genglsl.png';
19186 this.nodedef_group = 'math';
19187 this.addInput('in','vector3');
19188 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19189 this.addOutput('out','float');
19190 this.title = 'magnitude_float';
19191 this.desc = "MaterialX:mtlx/math/magnitude_vector3";
19192 this.onNodeCreated = function() {
19193 //console.log('Node created:', this);
19194}
19195 this.onRemoved = function() {
19196 //console.log('Node removed:', this);
19197 }
19198 this.onPropertyChanged = function(name, value, prev_value) {
19199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19200 }
19201 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19203 }
19204 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19206 }
19207 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19209 }
19210 this.bgcolor = '#111';
19211 this.color = '#222';
19212 this.shape = LiteGraph.ROUND_SHAPE;
19213 this.boxcolor = '#161';
19214}

◆ mtlx_math_magnitude_vector4()

function mtlx_math_magnitude_vector4 ( )

mtlx_math_magnitude_vector4

Library: mtlx. Category: magnitude. Type: float LiteGraph id: mtlx/math/magnitude_vector4

Definition at line 19225 of file mtlx_stdlib.js.

19225 {
19226 this.nodedef_icon = '';
19227 this.nodedef_name = 'ND_magnitude_vector4';
19228 this.nodedef_type = 'float';
19229 this.nodedef_node = 'magnitude';
19230 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19231 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector4_out_genglsl.png';
19232 this.nodedef_group = 'math';
19233 this.addInput('in','vector4');
19234 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19235 this.addOutput('out','float');
19236 this.title = 'magnitude_float';
19237 this.desc = "MaterialX:mtlx/math/magnitude_vector4";
19238 this.onNodeCreated = function() {
19239 //console.log('Node created:', this);
19240}
19241 this.onRemoved = function() {
19242 //console.log('Node removed:', this);
19243 }
19244 this.onPropertyChanged = function(name, value, prev_value) {
19245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19246 }
19247 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19249 }
19250 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19252 }
19253 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19255 }
19256 this.bgcolor = '#111';
19257 this.color = '#222';
19258 this.shape = LiteGraph.ROUND_SHAPE;
19259 this.boxcolor = '#161';
19260}

◆ mtlx_math_max_color3()

function mtlx_math_max_color3 ( )

mtlx_math_max_color3

Library: mtlx. Category: max. Type: color3 LiteGraph id: mtlx/math/max_color3

Definition at line 18515 of file mtlx_stdlib.js.

18515 {
18516 this.nodedef_icon = '';
18517 this.nodedef_name = 'ND_max_color3';
18518 this.nodedef_type = 'color3';
18519 this.nodedef_node = 'max';
18520 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18521 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color3_out_genglsl.png';
18522 this.nodedef_group = 'math';
18523 this.addInput('in1','color3');
18524 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18525 this.addInput('in2','color3');
18526 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18527 this.addOutput('out','color3');
18528 this.title = 'max_color3';
18529 this.desc = "MaterialX:mtlx/math/max_color3";
18530 this.onNodeCreated = function() {
18531 //console.log('Node created:', this);
18532}
18533 this.onRemoved = function() {
18534 //console.log('Node removed:', this);
18535 }
18536 this.onPropertyChanged = function(name, value, prev_value) {
18537 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18538 }
18539 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18540 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18541 }
18542 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18543 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18544 }
18545 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18546 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18547 }
18548 this.bgcolor = '#111';
18549 this.color = '#222';
18550 this.shape = LiteGraph.ROUND_SHAPE;
18551 this.boxcolor = '#37A';
18552}

◆ mtlx_math_max_color3FA()

function mtlx_math_max_color3FA ( )

mtlx_math_max_color3FA

Library: mtlx. Category: max. Type: color3 LiteGraph id: mtlx/math/max_color3FA

Definition at line 18755 of file mtlx_stdlib.js.

18755 {
18756 this.nodedef_icon = '';
18757 this.nodedef_name = 'ND_max_color3FA';
18758 this.nodedef_type = 'color3';
18759 this.nodedef_node = 'max';
18760 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18761 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color3FA_out_genglsl.png';
18762 this.nodedef_group = 'math';
18763 this.addInput('in1','color3');
18764 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18765 this.addInput('in2','float');
18766 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18767 this.addOutput('out','color3');
18768 this.title = 'max_color3';
18769 this.desc = "MaterialX:mtlx/math/max_color3FA";
18770 this.onNodeCreated = function() {
18771 //console.log('Node created:', this);
18772}
18773 this.onRemoved = function() {
18774 //console.log('Node removed:', this);
18775 }
18776 this.onPropertyChanged = function(name, value, prev_value) {
18777 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18778 }
18779 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18780 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18781 }
18782 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18783 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18784 }
18785 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18786 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18787 }
18788 this.bgcolor = '#111';
18789 this.color = '#222';
18790 this.shape = LiteGraph.ROUND_SHAPE;
18791 this.boxcolor = '#37A';
18792}

◆ mtlx_math_max_color4()

function mtlx_math_max_color4 ( )

mtlx_math_max_color4

Library: mtlx. Category: max. Type: color4 LiteGraph id: mtlx/math/max_color4

Definition at line 18563 of file mtlx_stdlib.js.

18563 {
18564 this.nodedef_icon = '';
18565 this.nodedef_name = 'ND_max_color4';
18566 this.nodedef_type = 'color4';
18567 this.nodedef_node = 'max';
18568 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18569 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color4_out_genglsl.png';
18570 this.nodedef_group = 'math';
18571 this.addInput('in1','color4');
18572 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18573 this.addInput('in2','color4');
18574 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18575 this.addOutput('out','color4');
18576 this.title = 'max_color4';
18577 this.desc = "MaterialX:mtlx/math/max_color4";
18578 this.onNodeCreated = function() {
18579 //console.log('Node created:', this);
18580}
18581 this.onRemoved = function() {
18582 //console.log('Node removed:', this);
18583 }
18584 this.onPropertyChanged = function(name, value, prev_value) {
18585 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18586 }
18587 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18588 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18589 }
18590 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18591 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18592 }
18593 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18594 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18595 }
18596 this.bgcolor = '#111';
18597 this.color = '#222';
18598 this.shape = LiteGraph.ROUND_SHAPE;
18599 this.boxcolor = '#69A';
18600}

◆ mtlx_math_max_color4FA()

function mtlx_math_max_color4FA ( )

mtlx_math_max_color4FA

Library: mtlx. Category: max. Type: color4 LiteGraph id: mtlx/math/max_color4FA

Definition at line 18803 of file mtlx_stdlib.js.

18803 {
18804 this.nodedef_icon = '';
18805 this.nodedef_name = 'ND_max_color4FA';
18806 this.nodedef_type = 'color4';
18807 this.nodedef_node = 'max';
18808 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18809 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color4FA_out_genglsl.png';
18810 this.nodedef_group = 'math';
18811 this.addInput('in1','color4');
18812 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18813 this.addInput('in2','float');
18814 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18815 this.addOutput('out','color4');
18816 this.title = 'max_color4';
18817 this.desc = "MaterialX:mtlx/math/max_color4FA";
18818 this.onNodeCreated = function() {
18819 //console.log('Node created:', this);
18820}
18821 this.onRemoved = function() {
18822 //console.log('Node removed:', this);
18823 }
18824 this.onPropertyChanged = function(name, value, prev_value) {
18825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18826 }
18827 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18829 }
18830 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18832 }
18833 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18835 }
18836 this.bgcolor = '#111';
18837 this.color = '#222';
18838 this.shape = LiteGraph.ROUND_SHAPE;
18839 this.boxcolor = '#69A';
18840}

◆ mtlx_math_max_float()

function mtlx_math_max_float ( )

mtlx_math_max_float

Library: mtlx. Category: min. Type: float LiteGraph id: mtlx/math/max_float

Definition at line 18467 of file mtlx_stdlib.js.

18467 {
18468 this.nodedef_icon = '';
18469 this.nodedef_name = 'ND_max_float';
18470 this.nodedef_type = 'float';
18471 this.nodedef_node = 'max';
18472 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18473 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_float_out_genglsl.png';
18474 this.nodedef_group = 'math';
18475 this.addInput('in1','float');
18476 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18477 this.addInput('in2','float');
18478 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18479 this.addOutput('out','float');
18480 this.title = 'max_float';
18481 this.desc = "MaterialX:mtlx/math/max_float";
18482 this.onNodeCreated = function() {
18483 //console.log('Node created:', this);
18484}
18485 this.onRemoved = function() {
18486 //console.log('Node removed:', this);
18487 }
18488 this.onPropertyChanged = function(name, value, prev_value) {
18489 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18490 }
18491 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18492 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18493 }
18494 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18495 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18496 }
18497 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18498 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18499 }
18500 this.bgcolor = '#111';
18501 this.color = '#222';
18502 this.shape = LiteGraph.ROUND_SHAPE;
18503 this.boxcolor = '#161';
18504}

◆ mtlx_math_max_vector2()

function mtlx_math_max_vector2 ( )

mtlx_math_max_vector2

Library: mtlx. Category: max. Type: vector2 LiteGraph id: mtlx/math/max_vector2

Definition at line 18611 of file mtlx_stdlib.js.

18611 {
18612 this.nodedef_icon = '';
18613 this.nodedef_name = 'ND_max_vector2';
18614 this.nodedef_type = 'vector2';
18615 this.nodedef_node = 'max';
18616 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18617 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector2_out_genglsl.png';
18618 this.nodedef_group = 'math';
18619 this.addInput('in1','vector2');
18620 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18621 this.addInput('in2','vector2');
18622 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18623 this.addOutput('out','vector2');
18624 this.title = 'max_vector2';
18625 this.desc = "MaterialX:mtlx/math/max_vector2";
18626 this.onNodeCreated = function() {
18627 //console.log('Node created:', this);
18628}
18629 this.onRemoved = function() {
18630 //console.log('Node removed:', this);
18631 }
18632 this.onPropertyChanged = function(name, value, prev_value) {
18633 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18634 }
18635 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18636 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18637 }
18638 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18639 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18640 }
18641 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18642 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18643 }
18644 this.bgcolor = '#111';
18645 this.color = '#222';
18646 this.shape = LiteGraph.ROUND_SHAPE;
18647 this.boxcolor = '#265';
18648}

◆ mtlx_math_max_vector2FA()

function mtlx_math_max_vector2FA ( )

mtlx_math_max_vector2FA

Library: mtlx. Category: max. Type: vector2 LiteGraph id: mtlx/math/max_vector2FA

Definition at line 18851 of file mtlx_stdlib.js.

18851 {
18852 this.nodedef_icon = '';
18853 this.nodedef_name = 'ND_max_vector2FA';
18854 this.nodedef_type = 'vector2';
18855 this.nodedef_node = 'max';
18856 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18857 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector2FA_out_genglsl.png';
18858 this.nodedef_group = 'math';
18859 this.addInput('in1','vector2');
18860 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18861 this.addInput('in2','float');
18862 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18863 this.addOutput('out','vector2');
18864 this.title = 'max_vector2';
18865 this.desc = "MaterialX:mtlx/math/max_vector2FA";
18866 this.onNodeCreated = function() {
18867 //console.log('Node created:', this);
18868}
18869 this.onRemoved = function() {
18870 //console.log('Node removed:', this);
18871 }
18872 this.onPropertyChanged = function(name, value, prev_value) {
18873 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18874 }
18875 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18876 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18877 }
18878 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18879 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18880 }
18881 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18882 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18883 }
18884 this.bgcolor = '#111';
18885 this.color = '#222';
18886 this.shape = LiteGraph.ROUND_SHAPE;
18887 this.boxcolor = '#265';
18888}

◆ mtlx_math_max_vector3()

function mtlx_math_max_vector3 ( )

mtlx_math_max_vector3

Library: mtlx. Category: max. Type: vector3 LiteGraph id: mtlx/math/max_vector3

Definition at line 18659 of file mtlx_stdlib.js.

18659 {
18660 this.nodedef_icon = '';
18661 this.nodedef_name = 'ND_max_vector3';
18662 this.nodedef_type = 'vector3';
18663 this.nodedef_node = 'max';
18664 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18665 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector3_out_genglsl.png';
18666 this.nodedef_group = 'math';
18667 this.addInput('in1','vector3');
18668 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18669 this.addInput('in2','vector3');
18670 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18671 this.addOutput('out','vector3');
18672 this.title = 'max_vector3';
18673 this.desc = "MaterialX:mtlx/math/max_vector3";
18674 this.onNodeCreated = function() {
18675 //console.log('Node created:', this);
18676}
18677 this.onRemoved = function() {
18678 //console.log('Node removed:', this);
18679 }
18680 this.onPropertyChanged = function(name, value, prev_value) {
18681 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18682 }
18683 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18684 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18685 }
18686 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18687 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18688 }
18689 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18690 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18691 }
18692 this.bgcolor = '#111';
18693 this.color = '#222';
18694 this.shape = LiteGraph.ROUND_SHAPE;
18695 this.boxcolor = '#465';
18696}

◆ mtlx_math_max_vector3FA()

function mtlx_math_max_vector3FA ( )

mtlx_math_max_vector3FA

Library: mtlx. Category: max. Type: vector3 LiteGraph id: mtlx/math/max_vector3FA

Definition at line 18899 of file mtlx_stdlib.js.

18899 {
18900 this.nodedef_icon = '';
18901 this.nodedef_name = 'ND_max_vector3FA';
18902 this.nodedef_type = 'vector3';
18903 this.nodedef_node = 'max';
18904 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18905 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector3FA_out_genglsl.png';
18906 this.nodedef_group = 'math';
18907 this.addInput('in1','vector3');
18908 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18909 this.addInput('in2','float');
18910 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18911 this.addOutput('out','vector3');
18912 this.title = 'max_vector3';
18913 this.desc = "MaterialX:mtlx/math/max_vector3FA";
18914 this.onNodeCreated = function() {
18915 //console.log('Node created:', this);
18916}
18917 this.onRemoved = function() {
18918 //console.log('Node removed:', this);
18919 }
18920 this.onPropertyChanged = function(name, value, prev_value) {
18921 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18922 }
18923 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18924 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18925 }
18926 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18927 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18928 }
18929 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18930 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18931 }
18932 this.bgcolor = '#111';
18933 this.color = '#222';
18934 this.shape = LiteGraph.ROUND_SHAPE;
18935 this.boxcolor = '#465';
18936}

◆ mtlx_math_max_vector4()

function mtlx_math_max_vector4 ( )

mtlx_math_max_vector4

Library: mtlx. Category: max. Type: vector4 LiteGraph id: mtlx/math/max_vector4

Definition at line 18707 of file mtlx_stdlib.js.

18707 {
18708 this.nodedef_icon = '';
18709 this.nodedef_name = 'ND_max_vector4';
18710 this.nodedef_type = 'vector4';
18711 this.nodedef_node = 'max';
18712 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18713 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector4_out_genglsl.png';
18714 this.nodedef_group = 'math';
18715 this.addInput('in1','vector4');
18716 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18717 this.addInput('in2','vector4');
18718 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18719 this.addOutput('out','vector4');
18720 this.title = 'max_vector4';
18721 this.desc = "MaterialX:mtlx/math/max_vector4";
18722 this.onNodeCreated = function() {
18723 //console.log('Node created:', this);
18724}
18725 this.onRemoved = function() {
18726 //console.log('Node removed:', this);
18727 }
18728 this.onPropertyChanged = function(name, value, prev_value) {
18729 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18730 }
18731 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18732 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18733 }
18734 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18735 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18736 }
18737 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18738 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18739 }
18740 this.bgcolor = '#111';
18741 this.color = '#222';
18742 this.shape = LiteGraph.ROUND_SHAPE;
18743 this.boxcolor = '#275';
18744}

◆ mtlx_math_max_vector4FA()

function mtlx_math_max_vector4FA ( )

mtlx_math_max_vector4FA

Library: mtlx. Category: max. Type: vector4 LiteGraph id: mtlx/math/max_vector4FA

Definition at line 18947 of file mtlx_stdlib.js.

18947 {
18948 this.nodedef_icon = '';
18949 this.nodedef_name = 'ND_max_vector4FA';
18950 this.nodedef_type = 'vector4';
18951 this.nodedef_node = 'max';
18952 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18953 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector4FA_out_genglsl.png';
18954 this.nodedef_group = 'math';
18955 this.addInput('in1','vector4');
18956 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18957 this.addInput('in2','float');
18958 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18959 this.addOutput('out','vector4');
18960 this.title = 'max_vector4';
18961 this.desc = "MaterialX:mtlx/math/max_vector4FA";
18962 this.onNodeCreated = function() {
18963 //console.log('Node created:', this);
18964}
18965 this.onRemoved = function() {
18966 //console.log('Node removed:', this);
18967 }
18968 this.onPropertyChanged = function(name, value, prev_value) {
18969 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18970 }
18971 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18972 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18973 }
18974 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18975 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18976 }
18977 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18978 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18979 }
18980 this.bgcolor = '#111';
18981 this.color = '#222';
18982 this.shape = LiteGraph.ROUND_SHAPE;
18983 this.boxcolor = '#275';
18984}

◆ mtlx_math_min_color3()

function mtlx_math_min_color3 ( )

mtlx_math_min_color3

Library: mtlx. Category: min. Type: color3 LiteGraph id: mtlx/math/min_color3

Definition at line 17987 of file mtlx_stdlib.js.

17987 {
17988 this.nodedef_icon = '';
17989 this.nodedef_name = 'ND_min_color3';
17990 this.nodedef_type = 'color3';
17991 this.nodedef_node = 'min';
17992 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
17993 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color3_out_genglsl.png';
17994 this.nodedef_group = 'math';
17995 this.addInput('in1','color3');
17996 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17997 this.addInput('in2','color3');
17998 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17999 this.addOutput('out','color3');
18000 this.title = 'min_color3';
18001 this.desc = "MaterialX:mtlx/math/min_color3";
18002 this.onNodeCreated = function() {
18003 //console.log('Node created:', this);
18004}
18005 this.onRemoved = function() {
18006 //console.log('Node removed:', this);
18007 }
18008 this.onPropertyChanged = function(name, value, prev_value) {
18009 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18010 }
18011 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18012 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18013 }
18014 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18015 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18016 }
18017 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18018 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18019 }
18020 this.bgcolor = '#111';
18021 this.color = '#222';
18022 this.shape = LiteGraph.ROUND_SHAPE;
18023 this.boxcolor = '#37A';
18024}

◆ mtlx_math_min_color3FA()

function mtlx_math_min_color3FA ( )

mtlx_math_min_color3FA

Library: mtlx. Category: min. Type: color3 LiteGraph id: mtlx/math/min_color3FA

Definition at line 18227 of file mtlx_stdlib.js.

18227 {
18228 this.nodedef_icon = '';
18229 this.nodedef_name = 'ND_min_color3FA';
18230 this.nodedef_type = 'color3';
18231 this.nodedef_node = 'min';
18232 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18233 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color3FA_out_genglsl.png';
18234 this.nodedef_group = 'math';
18235 this.addInput('in1','color3');
18236 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18237 this.addInput('in2','float');
18238 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18239 this.addOutput('out','color3');
18240 this.title = 'min_color3';
18241 this.desc = "MaterialX:mtlx/math/min_color3FA";
18242 this.onNodeCreated = function() {
18243 //console.log('Node created:', this);
18244}
18245 this.onRemoved = function() {
18246 //console.log('Node removed:', this);
18247 }
18248 this.onPropertyChanged = function(name, value, prev_value) {
18249 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18250 }
18251 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18252 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18253 }
18254 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18255 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18256 }
18257 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18258 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18259 }
18260 this.bgcolor = '#111';
18261 this.color = '#222';
18262 this.shape = LiteGraph.ROUND_SHAPE;
18263 this.boxcolor = '#37A';
18264}

◆ mtlx_math_min_color4()

function mtlx_math_min_color4 ( )

mtlx_math_min_color4

Library: mtlx. Category: min. Type: color4 LiteGraph id: mtlx/math/min_color4

Definition at line 18035 of file mtlx_stdlib.js.

18035 {
18036 this.nodedef_icon = '';
18037 this.nodedef_name = 'ND_min_color4';
18038 this.nodedef_type = 'color4';
18039 this.nodedef_node = 'min';
18040 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18041 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color4_out_genglsl.png';
18042 this.nodedef_group = 'math';
18043 this.addInput('in1','color4');
18044 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18045 this.addInput('in2','color4');
18046 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18047 this.addOutput('out','color4');
18048 this.title = 'min_color4';
18049 this.desc = "MaterialX:mtlx/math/min_color4";
18050 this.onNodeCreated = function() {
18051 //console.log('Node created:', this);
18052}
18053 this.onRemoved = function() {
18054 //console.log('Node removed:', this);
18055 }
18056 this.onPropertyChanged = function(name, value, prev_value) {
18057 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18058 }
18059 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18060 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18061 }
18062 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18063 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18064 }
18065 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18066 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18067 }
18068 this.bgcolor = '#111';
18069 this.color = '#222';
18070 this.shape = LiteGraph.ROUND_SHAPE;
18071 this.boxcolor = '#69A';
18072}

◆ mtlx_math_min_color4FA()

function mtlx_math_min_color4FA ( )

mtlx_math_min_color4FA

Library: mtlx. Category: min. Type: color4 LiteGraph id: mtlx/math/min_color4FA

Definition at line 18275 of file mtlx_stdlib.js.

18275 {
18276 this.nodedef_icon = '';
18277 this.nodedef_name = 'ND_min_color4FA';
18278 this.nodedef_type = 'color4';
18279 this.nodedef_node = 'min';
18280 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18281 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color4FA_out_genglsl.png';
18282 this.nodedef_group = 'math';
18283 this.addInput('in1','color4');
18284 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18285 this.addInput('in2','float');
18286 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18287 this.addOutput('out','color4');
18288 this.title = 'min_color4';
18289 this.desc = "MaterialX:mtlx/math/min_color4FA";
18290 this.onNodeCreated = function() {
18291 //console.log('Node created:', this);
18292}
18293 this.onRemoved = function() {
18294 //console.log('Node removed:', this);
18295 }
18296 this.onPropertyChanged = function(name, value, prev_value) {
18297 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18298 }
18299 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18300 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18301 }
18302 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18303 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18304 }
18305 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18306 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18307 }
18308 this.bgcolor = '#111';
18309 this.color = '#222';
18310 this.shape = LiteGraph.ROUND_SHAPE;
18311 this.boxcolor = '#69A';
18312}

◆ mtlx_math_min_float()

function mtlx_math_min_float ( )

mtlx_math_min_float

Library: mtlx. Category: clamp. Type: float LiteGraph id: mtlx/math/min_float

Definition at line 17939 of file mtlx_stdlib.js.

17939 {
17940 this.nodedef_icon = '';
17941 this.nodedef_name = 'ND_min_float';
17942 this.nodedef_type = 'float';
17943 this.nodedef_node = 'min';
17944 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
17945 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_float_out_genglsl.png';
17946 this.nodedef_group = 'math';
17947 this.addInput('in1','float');
17948 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17949 this.addInput('in2','float');
17950 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17951 this.addOutput('out','float');
17952 this.title = 'min_float';
17953 this.desc = "MaterialX:mtlx/math/min_float";
17954 this.onNodeCreated = function() {
17955 //console.log('Node created:', this);
17956}
17957 this.onRemoved = function() {
17958 //console.log('Node removed:', this);
17959 }
17960 this.onPropertyChanged = function(name, value, prev_value) {
17961 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17962 }
17963 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17964 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17965 }
17966 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17967 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17968 }
17969 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17970 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17971 }
17972 this.bgcolor = '#111';
17973 this.color = '#222';
17974 this.shape = LiteGraph.ROUND_SHAPE;
17975 this.boxcolor = '#161';
17976}

◆ mtlx_math_min_vector2()

function mtlx_math_min_vector2 ( )

mtlx_math_min_vector2

Library: mtlx. Category: min. Type: vector2 LiteGraph id: mtlx/math/min_vector2

Definition at line 18083 of file mtlx_stdlib.js.

18083 {
18084 this.nodedef_icon = '';
18085 this.nodedef_name = 'ND_min_vector2';
18086 this.nodedef_type = 'vector2';
18087 this.nodedef_node = 'min';
18088 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18089 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector2_out_genglsl.png';
18090 this.nodedef_group = 'math';
18091 this.addInput('in1','vector2');
18092 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18093 this.addInput('in2','vector2');
18094 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18095 this.addOutput('out','vector2');
18096 this.title = 'min_vector2';
18097 this.desc = "MaterialX:mtlx/math/min_vector2";
18098 this.onNodeCreated = function() {
18099 //console.log('Node created:', this);
18100}
18101 this.onRemoved = function() {
18102 //console.log('Node removed:', this);
18103 }
18104 this.onPropertyChanged = function(name, value, prev_value) {
18105 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18106 }
18107 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18108 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18109 }
18110 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18111 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18112 }
18113 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18114 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18115 }
18116 this.bgcolor = '#111';
18117 this.color = '#222';
18118 this.shape = LiteGraph.ROUND_SHAPE;
18119 this.boxcolor = '#265';
18120}

◆ mtlx_math_min_vector2FA()

function mtlx_math_min_vector2FA ( )

mtlx_math_min_vector2FA

Library: mtlx. Category: min. Type: vector2 LiteGraph id: mtlx/math/min_vector2FA

Definition at line 18323 of file mtlx_stdlib.js.

18323 {
18324 this.nodedef_icon = '';
18325 this.nodedef_name = 'ND_min_vector2FA';
18326 this.nodedef_type = 'vector2';
18327 this.nodedef_node = 'min';
18328 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18329 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector2FA_out_genglsl.png';
18330 this.nodedef_group = 'math';
18331 this.addInput('in1','vector2');
18332 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18333 this.addInput('in2','float');
18334 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18335 this.addOutput('out','vector2');
18336 this.title = 'min_vector2';
18337 this.desc = "MaterialX:mtlx/math/min_vector2FA";
18338 this.onNodeCreated = function() {
18339 //console.log('Node created:', this);
18340}
18341 this.onRemoved = function() {
18342 //console.log('Node removed:', this);
18343 }
18344 this.onPropertyChanged = function(name, value, prev_value) {
18345 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18346 }
18347 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18348 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18349 }
18350 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18351 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18352 }
18353 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18354 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18355 }
18356 this.bgcolor = '#111';
18357 this.color = '#222';
18358 this.shape = LiteGraph.ROUND_SHAPE;
18359 this.boxcolor = '#265';
18360}

◆ mtlx_math_min_vector3()

function mtlx_math_min_vector3 ( )

mtlx_math_min_vector3

Library: mtlx. Category: min. Type: vector3 LiteGraph id: mtlx/math/min_vector3

Definition at line 18131 of file mtlx_stdlib.js.

18131 {
18132 this.nodedef_icon = '';
18133 this.nodedef_name = 'ND_min_vector3';
18134 this.nodedef_type = 'vector3';
18135 this.nodedef_node = 'min';
18136 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18137 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector3_out_genglsl.png';
18138 this.nodedef_group = 'math';
18139 this.addInput('in1','vector3');
18140 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18141 this.addInput('in2','vector3');
18142 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18143 this.addOutput('out','vector3');
18144 this.title = 'min_vector3';
18145 this.desc = "MaterialX:mtlx/math/min_vector3";
18146 this.onNodeCreated = function() {
18147 //console.log('Node created:', this);
18148}
18149 this.onRemoved = function() {
18150 //console.log('Node removed:', this);
18151 }
18152 this.onPropertyChanged = function(name, value, prev_value) {
18153 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18154 }
18155 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18156 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18157 }
18158 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18159 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18160 }
18161 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18162 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18163 }
18164 this.bgcolor = '#111';
18165 this.color = '#222';
18166 this.shape = LiteGraph.ROUND_SHAPE;
18167 this.boxcolor = '#465';
18168}

◆ mtlx_math_min_vector3FA()

function mtlx_math_min_vector3FA ( )

mtlx_math_min_vector3FA

Library: mtlx. Category: min. Type: vector3 LiteGraph id: mtlx/math/min_vector3FA

Definition at line 18371 of file mtlx_stdlib.js.

18371 {
18372 this.nodedef_icon = '';
18373 this.nodedef_name = 'ND_min_vector3FA';
18374 this.nodedef_type = 'vector3';
18375 this.nodedef_node = 'min';
18376 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18377 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector3FA_out_genglsl.png';
18378 this.nodedef_group = 'math';
18379 this.addInput('in1','vector3');
18380 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18381 this.addInput('in2','float');
18382 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18383 this.addOutput('out','vector3');
18384 this.title = 'min_vector3';
18385 this.desc = "MaterialX:mtlx/math/min_vector3FA";
18386 this.onNodeCreated = function() {
18387 //console.log('Node created:', this);
18388}
18389 this.onRemoved = function() {
18390 //console.log('Node removed:', this);
18391 }
18392 this.onPropertyChanged = function(name, value, prev_value) {
18393 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18394 }
18395 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18396 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18397 }
18398 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18399 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18400 }
18401 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18402 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18403 }
18404 this.bgcolor = '#111';
18405 this.color = '#222';
18406 this.shape = LiteGraph.ROUND_SHAPE;
18407 this.boxcolor = '#465';
18408}

◆ mtlx_math_min_vector4()

function mtlx_math_min_vector4 ( )

mtlx_math_min_vector4

Library: mtlx. Category: min. Type: vector4 LiteGraph id: mtlx/math/min_vector4

Definition at line 18179 of file mtlx_stdlib.js.

18179 {
18180 this.nodedef_icon = '';
18181 this.nodedef_name = 'ND_min_vector4';
18182 this.nodedef_type = 'vector4';
18183 this.nodedef_node = 'min';
18184 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18185 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector4_out_genglsl.png';
18186 this.nodedef_group = 'math';
18187 this.addInput('in1','vector4');
18188 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18189 this.addInput('in2','vector4');
18190 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18191 this.addOutput('out','vector4');
18192 this.title = 'min_vector4';
18193 this.desc = "MaterialX:mtlx/math/min_vector4";
18194 this.onNodeCreated = function() {
18195 //console.log('Node created:', this);
18196}
18197 this.onRemoved = function() {
18198 //console.log('Node removed:', this);
18199 }
18200 this.onPropertyChanged = function(name, value, prev_value) {
18201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18202 }
18203 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18205 }
18206 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18208 }
18209 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18211 }
18212 this.bgcolor = '#111';
18213 this.color = '#222';
18214 this.shape = LiteGraph.ROUND_SHAPE;
18215 this.boxcolor = '#275';
18216}

◆ mtlx_math_min_vector4FA()

function mtlx_math_min_vector4FA ( )

mtlx_math_min_vector4FA

Library: mtlx. Category: min. Type: vector4 LiteGraph id: mtlx/math/min_vector4FA

Definition at line 18419 of file mtlx_stdlib.js.

18419 {
18420 this.nodedef_icon = '';
18421 this.nodedef_name = 'ND_min_vector4FA';
18422 this.nodedef_type = 'vector4';
18423 this.nodedef_node = 'min';
18424 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18425 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector4FA_out_genglsl.png';
18426 this.nodedef_group = 'math';
18427 this.addInput('in1','vector4');
18428 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18429 this.addInput('in2','float');
18430 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
18431 this.addOutput('out','vector4');
18432 this.title = 'min_vector4';
18433 this.desc = "MaterialX:mtlx/math/min_vector4FA";
18434 this.onNodeCreated = function() {
18435 //console.log('Node created:', this);
18436}
18437 this.onRemoved = function() {
18438 //console.log('Node removed:', this);
18439 }
18440 this.onPropertyChanged = function(name, value, prev_value) {
18441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
18442 }
18443 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
18444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
18445 }
18446 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
18447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
18448 }
18449 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
18450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
18451 }
18452 this.bgcolor = '#111';
18453 this.color = '#222';
18454 this.shape = LiteGraph.ROUND_SHAPE;
18455 this.boxcolor = '#275';
18456}

◆ mtlx_math_modulo_color3()

function mtlx_math_modulo_color3 ( )

mtlx_math_modulo_color3

Library: mtlx. Category: modulo. Type: color3 LiteGraph id: mtlx/math/modulo_color3

Definition at line 12143 of file mtlx_stdlib.js.

12143 {
12144 this.nodedef_icon = '';
12145 this.nodedef_name = 'ND_modulo_color3';
12146 this.nodedef_type = 'color3';
12147 this.nodedef_node = 'modulo';
12148 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12149 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color3_out_genglsl.png';
12150 this.nodedef_group = 'math';
12151 this.addInput('in1','color3');
12152 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12153 this.addInput('in2','color3');
12154 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12155 this.addOutput('out','color3');
12156 this.title = 'modulo_color3';
12157 this.desc = "MaterialX:mtlx/math/modulo_color3";
12158 this.onNodeCreated = function() {
12159 //console.log('Node created:', this);
12160}
12161 this.onRemoved = function() {
12162 //console.log('Node removed:', this);
12163 }
12164 this.onPropertyChanged = function(name, value, prev_value) {
12165 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12166 }
12167 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12168 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12169 }
12170 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12171 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12172 }
12173 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12174 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12175 }
12176 this.bgcolor = '#111';
12177 this.color = '#222';
12178 this.shape = LiteGraph.ROUND_SHAPE;
12179 this.boxcolor = '#37A';
12180}

◆ mtlx_math_modulo_color3FA()

function mtlx_math_modulo_color3FA ( )

mtlx_math_modulo_color3FA

Library: mtlx. Category: modulo. Type: color3 LiteGraph id: mtlx/math/modulo_color3FA

Definition at line 12383 of file mtlx_stdlib.js.

12383 {
12384 this.nodedef_icon = '';
12385 this.nodedef_name = 'ND_modulo_color3FA';
12386 this.nodedef_type = 'color3';
12387 this.nodedef_node = 'modulo';
12388 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12389 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color3FA_out_genglsl.png';
12390 this.nodedef_group = 'math';
12391 this.addInput('in1','color3');
12392 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12393 this.addInput('in2','float');
12394 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12395 this.addOutput('out','color3');
12396 this.title = 'modulo_color3';
12397 this.desc = "MaterialX:mtlx/math/modulo_color3FA";
12398 this.onNodeCreated = function() {
12399 //console.log('Node created:', this);
12400}
12401 this.onRemoved = function() {
12402 //console.log('Node removed:', this);
12403 }
12404 this.onPropertyChanged = function(name, value, prev_value) {
12405 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12406 }
12407 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12408 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12409 }
12410 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12411 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12412 }
12413 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12414 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12415 }
12416 this.bgcolor = '#111';
12417 this.color = '#222';
12418 this.shape = LiteGraph.ROUND_SHAPE;
12419 this.boxcolor = '#37A';
12420}

◆ mtlx_math_modulo_color4()

function mtlx_math_modulo_color4 ( )

mtlx_math_modulo_color4

Library: mtlx. Category: modulo. Type: color4 LiteGraph id: mtlx/math/modulo_color4

Definition at line 12191 of file mtlx_stdlib.js.

12191 {
12192 this.nodedef_icon = '';
12193 this.nodedef_name = 'ND_modulo_color4';
12194 this.nodedef_type = 'color4';
12195 this.nodedef_node = 'modulo';
12196 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12197 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color4_out_genglsl.png';
12198 this.nodedef_group = 'math';
12199 this.addInput('in1','color4');
12200 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12201 this.addInput('in2','color4');
12202 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12203 this.addOutput('out','color4');
12204 this.title = 'modulo_color4';
12205 this.desc = "MaterialX:mtlx/math/modulo_color4";
12206 this.onNodeCreated = function() {
12207 //console.log('Node created:', this);
12208}
12209 this.onRemoved = function() {
12210 //console.log('Node removed:', this);
12211 }
12212 this.onPropertyChanged = function(name, value, prev_value) {
12213 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12214 }
12215 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12216 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12217 }
12218 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12219 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12220 }
12221 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12222 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12223 }
12224 this.bgcolor = '#111';
12225 this.color = '#222';
12226 this.shape = LiteGraph.ROUND_SHAPE;
12227 this.boxcolor = '#69A';
12228}

◆ mtlx_math_modulo_color4FA()

function mtlx_math_modulo_color4FA ( )

mtlx_math_modulo_color4FA

Library: mtlx. Category: modulo. Type: color4 LiteGraph id: mtlx/math/modulo_color4FA

Definition at line 12431 of file mtlx_stdlib.js.

12431 {
12432 this.nodedef_icon = '';
12433 this.nodedef_name = 'ND_modulo_color4FA';
12434 this.nodedef_type = 'color4';
12435 this.nodedef_node = 'modulo';
12436 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12437 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color4FA_out_genglsl.png';
12438 this.nodedef_group = 'math';
12439 this.addInput('in1','color4');
12440 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12441 this.addInput('in2','float');
12442 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12443 this.addOutput('out','color4');
12444 this.title = 'modulo_color4';
12445 this.desc = "MaterialX:mtlx/math/modulo_color4FA";
12446 this.onNodeCreated = function() {
12447 //console.log('Node created:', this);
12448}
12449 this.onRemoved = function() {
12450 //console.log('Node removed:', this);
12451 }
12452 this.onPropertyChanged = function(name, value, prev_value) {
12453 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12454 }
12455 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12456 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12457 }
12458 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12459 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12460 }
12461 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12462 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12463 }
12464 this.bgcolor = '#111';
12465 this.color = '#222';
12466 this.shape = LiteGraph.ROUND_SHAPE;
12467 this.boxcolor = '#69A';
12468}

◆ mtlx_math_modulo_float()

function mtlx_math_modulo_float ( )

mtlx_math_modulo_float

Library: mtlx. Category: divide. Type: float LiteGraph id: mtlx/math/modulo_float

Definition at line 12095 of file mtlx_stdlib.js.

12095 {
12096 this.nodedef_icon = '';
12097 this.nodedef_name = 'ND_modulo_float';
12098 this.nodedef_type = 'float';
12099 this.nodedef_node = 'modulo';
12100 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12101 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_float_out_genglsl.png';
12102 this.nodedef_group = 'math';
12103 this.addInput('in1','float');
12104 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12105 this.addInput('in2','float');
12106 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12107 this.addOutput('out','float');
12108 this.title = 'modulo_float';
12109 this.desc = "MaterialX:mtlx/math/modulo_float";
12110 this.onNodeCreated = function() {
12111 //console.log('Node created:', this);
12112}
12113 this.onRemoved = function() {
12114 //console.log('Node removed:', this);
12115 }
12116 this.onPropertyChanged = function(name, value, prev_value) {
12117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12118 }
12119 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12121 }
12122 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12124 }
12125 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12127 }
12128 this.bgcolor = '#111';
12129 this.color = '#222';
12130 this.shape = LiteGraph.ROUND_SHAPE;
12131 this.boxcolor = '#161';
12132}

◆ mtlx_math_modulo_vector2()

function mtlx_math_modulo_vector2 ( )

mtlx_math_modulo_vector2

Library: mtlx. Category: modulo. Type: vector2 LiteGraph id: mtlx/math/modulo_vector2

Definition at line 12239 of file mtlx_stdlib.js.

12239 {
12240 this.nodedef_icon = '';
12241 this.nodedef_name = 'ND_modulo_vector2';
12242 this.nodedef_type = 'vector2';
12243 this.nodedef_node = 'modulo';
12244 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12245 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector2_out_genglsl.png';
12246 this.nodedef_group = 'math';
12247 this.addInput('in1','vector2');
12248 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12249 this.addInput('in2','vector2');
12250 this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12251 this.addOutput('out','vector2');
12252 this.title = 'modulo_vector2';
12253 this.desc = "MaterialX:mtlx/math/modulo_vector2";
12254 this.onNodeCreated = function() {
12255 //console.log('Node created:', this);
12256}
12257 this.onRemoved = function() {
12258 //console.log('Node removed:', this);
12259 }
12260 this.onPropertyChanged = function(name, value, prev_value) {
12261 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12262 }
12263 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12264 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12265 }
12266 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12267 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12268 }
12269 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12270 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12271 }
12272 this.bgcolor = '#111';
12273 this.color = '#222';
12274 this.shape = LiteGraph.ROUND_SHAPE;
12275 this.boxcolor = '#265';
12276}

◆ mtlx_math_modulo_vector2FA()

function mtlx_math_modulo_vector2FA ( )

mtlx_math_modulo_vector2FA

Library: mtlx. Category: modulo. Type: vector2 LiteGraph id: mtlx/math/modulo_vector2FA

Definition at line 12479 of file mtlx_stdlib.js.

12479 {
12480 this.nodedef_icon = '';
12481 this.nodedef_name = 'ND_modulo_vector2FA';
12482 this.nodedef_type = 'vector2';
12483 this.nodedef_node = 'modulo';
12484 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12485 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector2FA_out_genglsl.png';
12486 this.nodedef_group = 'math';
12487 this.addInput('in1','vector2');
12488 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12489 this.addInput('in2','float');
12490 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12491 this.addOutput('out','vector2');
12492 this.title = 'modulo_vector2';
12493 this.desc = "MaterialX:mtlx/math/modulo_vector2FA";
12494 this.onNodeCreated = function() {
12495 //console.log('Node created:', this);
12496}
12497 this.onRemoved = function() {
12498 //console.log('Node removed:', this);
12499 }
12500 this.onPropertyChanged = function(name, value, prev_value) {
12501 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12502 }
12503 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12504 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12505 }
12506 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12507 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12508 }
12509 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12510 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12511 }
12512 this.bgcolor = '#111';
12513 this.color = '#222';
12514 this.shape = LiteGraph.ROUND_SHAPE;
12515 this.boxcolor = '#265';
12516}

◆ mtlx_math_modulo_vector3()

function mtlx_math_modulo_vector3 ( )

mtlx_math_modulo_vector3

Library: mtlx. Category: modulo. Type: vector3 LiteGraph id: mtlx/math/modulo_vector3

Definition at line 12287 of file mtlx_stdlib.js.

12287 {
12288 this.nodedef_icon = '';
12289 this.nodedef_name = 'ND_modulo_vector3';
12290 this.nodedef_type = 'vector3';
12291 this.nodedef_node = 'modulo';
12292 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12293 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector3_out_genglsl.png';
12294 this.nodedef_group = 'math';
12295 this.addInput('in1','vector3');
12296 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12297 this.addInput('in2','vector3');
12298 this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12299 this.addOutput('out','vector3');
12300 this.title = 'modulo_vector3';
12301 this.desc = "MaterialX:mtlx/math/modulo_vector3";
12302 this.onNodeCreated = function() {
12303 //console.log('Node created:', this);
12304}
12305 this.onRemoved = function() {
12306 //console.log('Node removed:', this);
12307 }
12308 this.onPropertyChanged = function(name, value, prev_value) {
12309 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12310 }
12311 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12312 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12313 }
12314 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12315 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12316 }
12317 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12318 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12319 }
12320 this.bgcolor = '#111';
12321 this.color = '#222';
12322 this.shape = LiteGraph.ROUND_SHAPE;
12323 this.boxcolor = '#465';
12324}

◆ mtlx_math_modulo_vector3FA()

function mtlx_math_modulo_vector3FA ( )

mtlx_math_modulo_vector3FA

Library: mtlx. Category: modulo. Type: vector3 LiteGraph id: mtlx/math/modulo_vector3FA

Definition at line 12527 of file mtlx_stdlib.js.

12527 {
12528 this.nodedef_icon = '';
12529 this.nodedef_name = 'ND_modulo_vector3FA';
12530 this.nodedef_type = 'vector3';
12531 this.nodedef_node = 'modulo';
12532 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12533 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector3FA_out_genglsl.png';
12534 this.nodedef_group = 'math';
12535 this.addInput('in1','vector3');
12536 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12537 this.addInput('in2','float');
12538 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12539 this.addOutput('out','vector3');
12540 this.title = 'modulo_vector3';
12541 this.desc = "MaterialX:mtlx/math/modulo_vector3FA";
12542 this.onNodeCreated = function() {
12543 //console.log('Node created:', this);
12544}
12545 this.onRemoved = function() {
12546 //console.log('Node removed:', this);
12547 }
12548 this.onPropertyChanged = function(name, value, prev_value) {
12549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12550 }
12551 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12553 }
12554 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12556 }
12557 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12559 }
12560 this.bgcolor = '#111';
12561 this.color = '#222';
12562 this.shape = LiteGraph.ROUND_SHAPE;
12563 this.boxcolor = '#465';
12564}

◆ mtlx_math_modulo_vector4()

function mtlx_math_modulo_vector4 ( )

mtlx_math_modulo_vector4

Library: mtlx. Category: modulo. Type: vector4 LiteGraph id: mtlx/math/modulo_vector4

Definition at line 12335 of file mtlx_stdlib.js.

12335 {
12336 this.nodedef_icon = '';
12337 this.nodedef_name = 'ND_modulo_vector4';
12338 this.nodedef_type = 'vector4';
12339 this.nodedef_node = 'modulo';
12340 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12341 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector4_out_genglsl.png';
12342 this.nodedef_group = 'math';
12343 this.addInput('in1','vector4');
12344 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12345 this.addInput('in2','vector4');
12346 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12347 this.addOutput('out','vector4');
12348 this.title = 'modulo_vector4';
12349 this.desc = "MaterialX:mtlx/math/modulo_vector4";
12350 this.onNodeCreated = function() {
12351 //console.log('Node created:', this);
12352}
12353 this.onRemoved = function() {
12354 //console.log('Node removed:', this);
12355 }
12356 this.onPropertyChanged = function(name, value, prev_value) {
12357 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12358 }
12359 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12360 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12361 }
12362 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12363 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12364 }
12365 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12366 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12367 }
12368 this.bgcolor = '#111';
12369 this.color = '#222';
12370 this.shape = LiteGraph.ROUND_SHAPE;
12371 this.boxcolor = '#275';
12372}

◆ mtlx_math_modulo_vector4FA()

function mtlx_math_modulo_vector4FA ( )

mtlx_math_modulo_vector4FA

Library: mtlx. Category: modulo. Type: vector4 LiteGraph id: mtlx/math/modulo_vector4FA

Definition at line 12575 of file mtlx_stdlib.js.

12575 {
12576 this.nodedef_icon = '';
12577 this.nodedef_name = 'ND_modulo_vector4FA';
12578 this.nodedef_type = 'vector4';
12579 this.nodedef_node = 'modulo';
12580 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12581 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector4FA_out_genglsl.png';
12582 this.nodedef_group = 'math';
12583 this.addInput('in1','vector4');
12584 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12585 this.addInput('in2','float');
12586 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
12587 this.addOutput('out','vector4');
12588 this.title = 'modulo_vector4';
12589 this.desc = "MaterialX:mtlx/math/modulo_vector4FA";
12590 this.onNodeCreated = function() {
12591 //console.log('Node created:', this);
12592}
12593 this.onRemoved = function() {
12594 //console.log('Node removed:', this);
12595 }
12596 this.onPropertyChanged = function(name, value, prev_value) {
12597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
12598 }
12599 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
12600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
12601 }
12602 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
12603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
12604 }
12605 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
12606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
12607 }
12608 this.bgcolor = '#111';
12609 this.color = '#222';
12610 this.shape = LiteGraph.ROUND_SHAPE;
12611 this.boxcolor = '#275';
12612}

◆ mtlx_math_multiply_color3()

function mtlx_math_multiply_color3 ( )

mtlx_math_multiply_color3

Library: mtlx. Category: multiply. Type: color3 LiteGraph id: mtlx/math/multiply_color3

Definition at line 10895 of file mtlx_stdlib.js.

10895 {
10896 this.nodedef_icon = '';
10897 this.nodedef_name = 'ND_multiply_color3';
10898 this.nodedef_type = 'color3';
10899 this.nodedef_node = 'multiply';
10900 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10901 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color3_out_genglsl.png';
10902 this.nodedef_group = 'math';
10903 this.addInput('in1','color3');
10904 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10905 this.addInput('in2','color3');
10906 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10907 this.addOutput('out','color3');
10908 this.title = 'multiply_color3';
10909 this.desc = "MaterialX:mtlx/math/multiply_color3";
10910 this.onNodeCreated = function() {
10911 //console.log('Node created:', this);
10912}
10913 this.onRemoved = function() {
10914 //console.log('Node removed:', this);
10915 }
10916 this.onPropertyChanged = function(name, value, prev_value) {
10917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10918 }
10919 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10921 }
10922 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10924 }
10925 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10927 }
10928 this.bgcolor = '#111';
10929 this.color = '#222';
10930 this.shape = LiteGraph.ROUND_SHAPE;
10931 this.boxcolor = '#37A';
10932}

◆ mtlx_math_multiply_color3FA()

function mtlx_math_multiply_color3FA ( )

mtlx_math_multiply_color3FA

Library: mtlx. Category: multiply. Type: color3 LiteGraph id: mtlx/math/multiply_color3FA

Definition at line 11231 of file mtlx_stdlib.js.

11231 {
11232 this.nodedef_icon = '';
11233 this.nodedef_name = 'ND_multiply_color3FA';
11234 this.nodedef_type = 'color3';
11235 this.nodedef_node = 'multiply';
11236 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11237 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color3FA_out_genglsl.png';
11238 this.nodedef_group = 'math';
11239 this.addInput('in1','color3');
11240 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11241 this.addInput('in2','float');
11242 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11243 this.addOutput('out','color3');
11244 this.title = 'multiply_color3';
11245 this.desc = "MaterialX:mtlx/math/multiply_color3FA";
11246 this.onNodeCreated = function() {
11247 //console.log('Node created:', this);
11248}
11249 this.onRemoved = function() {
11250 //console.log('Node removed:', this);
11251 }
11252 this.onPropertyChanged = function(name, value, prev_value) {
11253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11254 }
11255 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11257 }
11258 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11260 }
11261 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11263 }
11264 this.bgcolor = '#111';
11265 this.color = '#222';
11266 this.shape = LiteGraph.ROUND_SHAPE;
11267 this.boxcolor = '#37A';
11268}

◆ mtlx_math_multiply_color4()

function mtlx_math_multiply_color4 ( )

mtlx_math_multiply_color4

Library: mtlx. Category: multiply. Type: color4 LiteGraph id: mtlx/math/multiply_color4

Definition at line 10943 of file mtlx_stdlib.js.

10943 {
10944 this.nodedef_icon = '';
10945 this.nodedef_name = 'ND_multiply_color4';
10946 this.nodedef_type = 'color4';
10947 this.nodedef_node = 'multiply';
10948 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10949 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color4_out_genglsl.png';
10950 this.nodedef_group = 'math';
10951 this.addInput('in1','color4');
10952 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10953 this.addInput('in2','color4');
10954 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10955 this.addOutput('out','color4');
10956 this.title = 'multiply_color4';
10957 this.desc = "MaterialX:mtlx/math/multiply_color4";
10958 this.onNodeCreated = function() {
10959 //console.log('Node created:', this);
10960}
10961 this.onRemoved = function() {
10962 //console.log('Node removed:', this);
10963 }
10964 this.onPropertyChanged = function(name, value, prev_value) {
10965 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10966 }
10967 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10968 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10969 }
10970 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10971 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10972 }
10973 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10974 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10975 }
10976 this.bgcolor = '#111';
10977 this.color = '#222';
10978 this.shape = LiteGraph.ROUND_SHAPE;
10979 this.boxcolor = '#69A';
10980}

◆ mtlx_math_multiply_color4FA()

function mtlx_math_multiply_color4FA ( )

mtlx_math_multiply_color4FA

Library: mtlx. Category: multiply. Type: color4 LiteGraph id: mtlx/math/multiply_color4FA

Definition at line 11279 of file mtlx_stdlib.js.

11279 {
11280 this.nodedef_icon = '';
11281 this.nodedef_name = 'ND_multiply_color4FA';
11282 this.nodedef_type = 'color4';
11283 this.nodedef_node = 'multiply';
11284 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11285 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color4FA_out_genglsl.png';
11286 this.nodedef_group = 'math';
11287 this.addInput('in1','color4');
11288 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11289 this.addInput('in2','float');
11290 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11291 this.addOutput('out','color4');
11292 this.title = 'multiply_color4';
11293 this.desc = "MaterialX:mtlx/math/multiply_color4FA";
11294 this.onNodeCreated = function() {
11295 //console.log('Node created:', this);
11296}
11297 this.onRemoved = function() {
11298 //console.log('Node removed:', this);
11299 }
11300 this.onPropertyChanged = function(name, value, prev_value) {
11301 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11302 }
11303 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11304 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11305 }
11306 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11307 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11308 }
11309 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11310 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11311 }
11312 this.bgcolor = '#111';
11313 this.color = '#222';
11314 this.shape = LiteGraph.ROUND_SHAPE;
11315 this.boxcolor = '#69A';
11316}

◆ mtlx_math_multiply_float()

function mtlx_math_multiply_float ( )

mtlx_math_multiply_float

Library: mtlx. Category: subtract. Type: float LiteGraph id: mtlx/math/multiply_float

Definition at line 10847 of file mtlx_stdlib.js.

10847 {
10848 this.nodedef_icon = '';
10849 this.nodedef_name = 'ND_multiply_float';
10850 this.nodedef_type = 'float';
10851 this.nodedef_node = 'multiply';
10852 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10853 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_float_out_genglsl.png';
10854 this.nodedef_group = 'math';
10855 this.addInput('in1','float');
10856 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10857 this.addInput('in2','float');
10858 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10859 this.addOutput('out','float');
10860 this.title = 'multiply_float';
10861 this.desc = "MaterialX:mtlx/math/multiply_float";
10862 this.onNodeCreated = function() {
10863 //console.log('Node created:', this);
10864}
10865 this.onRemoved = function() {
10866 //console.log('Node removed:', this);
10867 }
10868 this.onPropertyChanged = function(name, value, prev_value) {
10869 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10870 }
10871 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10872 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10873 }
10874 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10875 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10876 }
10877 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10878 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10879 }
10880 this.bgcolor = '#111';
10881 this.color = '#222';
10882 this.shape = LiteGraph.ROUND_SHAPE;
10883 this.boxcolor = '#161';
10884}

◆ mtlx_math_multiply_matrix33()

function mtlx_math_multiply_matrix33 ( )

mtlx_math_multiply_matrix33

Library: mtlx. Category: multiply. Type: matrix33 LiteGraph id: mtlx/math/multiply_matrix33

Definition at line 11135 of file mtlx_stdlib.js.

11135 {
11136 this.nodedef_icon = '';
11137 this.nodedef_name = 'ND_multiply_matrix33';
11138 this.nodedef_type = 'matrix33';
11139 this.nodedef_node = 'multiply';
11140 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11141 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_matrix33_out_genglsl.png';
11142 this.nodedef_group = 'math';
11143 this.addInput('in1','matrix33');
11144 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":"","defaultgeomprop":""});
11145 this.addInput('in2','matrix33');
11146 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":"","defaultgeomprop":""});
11147 this.addOutput('out','matrix33');
11148 this.title = 'multiply_matrix33';
11149 this.desc = "MaterialX:mtlx/math/multiply_matrix33";
11150 this.onNodeCreated = function() {
11151 //console.log('Node created:', this);
11152}
11153 this.onRemoved = function() {
11154 //console.log('Node removed:', this);
11155 }
11156 this.onPropertyChanged = function(name, value, prev_value) {
11157 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11158 }
11159 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11160 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11161 }
11162 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11163 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11164 }
11165 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11166 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11167 }
11168 this.bgcolor = '#111';
11169 this.color = '#222';
11170 this.shape = LiteGraph.ROUND_SHAPE;
11171 this.boxcolor = '#333';
11172}

◆ mtlx_math_multiply_matrix44()

function mtlx_math_multiply_matrix44 ( )

mtlx_math_multiply_matrix44

Library: mtlx. Category: multiply. Type: matrix44 LiteGraph id: mtlx/math/multiply_matrix44

Definition at line 11183 of file mtlx_stdlib.js.

11183 {
11184 this.nodedef_icon = '';
11185 this.nodedef_name = 'ND_multiply_matrix44';
11186 this.nodedef_type = 'matrix44';
11187 this.nodedef_node = 'multiply';
11188 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11189 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_matrix44_out_genglsl.png';
11190 this.nodedef_group = 'math';
11191 this.addInput('in1','matrix44');
11192 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":"","defaultgeomprop":""});
11193 this.addInput('in2','matrix44');
11194 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":"","defaultgeomprop":""});
11195 this.addOutput('out','matrix44');
11196 this.title = 'multiply_matrix44';
11197 this.desc = "MaterialX:mtlx/math/multiply_matrix44";
11198 this.onNodeCreated = function() {
11199 //console.log('Node created:', this);
11200}
11201 this.onRemoved = function() {
11202 //console.log('Node removed:', this);
11203 }
11204 this.onPropertyChanged = function(name, value, prev_value) {
11205 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11206 }
11207 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11208 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11209 }
11210 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11211 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11212 }
11213 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11214 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11215 }
11216 this.bgcolor = '#111';
11217 this.color = '#222';
11218 this.shape = LiteGraph.ROUND_SHAPE;
11219 this.boxcolor = '#444';
11220}

◆ mtlx_math_multiply_vector2()

function mtlx_math_multiply_vector2 ( )

mtlx_math_multiply_vector2

Library: mtlx. Category: multiply. Type: vector2 LiteGraph id: mtlx/math/multiply_vector2

Definition at line 10991 of file mtlx_stdlib.js.

10991 {
10992 this.nodedef_icon = '';
10993 this.nodedef_name = 'ND_multiply_vector2';
10994 this.nodedef_type = 'vector2';
10995 this.nodedef_node = 'multiply';
10996 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10997 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector2_out_genglsl.png';
10998 this.nodedef_group = 'math';
10999 this.addInput('in1','vector2');
11000 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11001 this.addInput('in2','vector2');
11002 this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11003 this.addOutput('out','vector2');
11004 this.title = 'multiply_vector2';
11005 this.desc = "MaterialX:mtlx/math/multiply_vector2";
11006 this.onNodeCreated = function() {
11007 //console.log('Node created:', this);
11008}
11009 this.onRemoved = function() {
11010 //console.log('Node removed:', this);
11011 }
11012 this.onPropertyChanged = function(name, value, prev_value) {
11013 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11014 }
11015 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11016 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11017 }
11018 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11019 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11020 }
11021 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11022 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11023 }
11024 this.bgcolor = '#111';
11025 this.color = '#222';
11026 this.shape = LiteGraph.ROUND_SHAPE;
11027 this.boxcolor = '#265';
11028}

◆ mtlx_math_multiply_vector2FA()

function mtlx_math_multiply_vector2FA ( )

mtlx_math_multiply_vector2FA

Library: mtlx. Category: multiply. Type: vector2 LiteGraph id: mtlx/math/multiply_vector2FA

Definition at line 11327 of file mtlx_stdlib.js.

11327 {
11328 this.nodedef_icon = '';
11329 this.nodedef_name = 'ND_multiply_vector2FA';
11330 this.nodedef_type = 'vector2';
11331 this.nodedef_node = 'multiply';
11332 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11333 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector2FA_out_genglsl.png';
11334 this.nodedef_group = 'math';
11335 this.addInput('in1','vector2');
11336 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11337 this.addInput('in2','float');
11338 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11339 this.addOutput('out','vector2');
11340 this.title = 'multiply_vector2';
11341 this.desc = "MaterialX:mtlx/math/multiply_vector2FA";
11342 this.onNodeCreated = function() {
11343 //console.log('Node created:', this);
11344}
11345 this.onRemoved = function() {
11346 //console.log('Node removed:', this);
11347 }
11348 this.onPropertyChanged = function(name, value, prev_value) {
11349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11350 }
11351 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11353 }
11354 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11356 }
11357 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11359 }
11360 this.bgcolor = '#111';
11361 this.color = '#222';
11362 this.shape = LiteGraph.ROUND_SHAPE;
11363 this.boxcolor = '#265';
11364}

◆ mtlx_math_multiply_vector3()

function mtlx_math_multiply_vector3 ( )

mtlx_math_multiply_vector3

Library: mtlx. Category: multiply. Type: vector3 LiteGraph id: mtlx/math/multiply_vector3

Definition at line 11039 of file mtlx_stdlib.js.

11039 {
11040 this.nodedef_icon = '';
11041 this.nodedef_name = 'ND_multiply_vector3';
11042 this.nodedef_type = 'vector3';
11043 this.nodedef_node = 'multiply';
11044 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11045 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector3_out_genglsl.png';
11046 this.nodedef_group = 'math';
11047 this.addInput('in1','vector3');
11048 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11049 this.addInput('in2','vector3');
11050 this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11051 this.addOutput('out','vector3');
11052 this.title = 'multiply_vector3';
11053 this.desc = "MaterialX:mtlx/math/multiply_vector3";
11054 this.onNodeCreated = function() {
11055 //console.log('Node created:', this);
11056}
11057 this.onRemoved = function() {
11058 //console.log('Node removed:', this);
11059 }
11060 this.onPropertyChanged = function(name, value, prev_value) {
11061 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11062 }
11063 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11064 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11065 }
11066 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11067 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11068 }
11069 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11070 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11071 }
11072 this.bgcolor = '#111';
11073 this.color = '#222';
11074 this.shape = LiteGraph.ROUND_SHAPE;
11075 this.boxcolor = '#465';
11076}

◆ mtlx_math_multiply_vector3FA()

function mtlx_math_multiply_vector3FA ( )

mtlx_math_multiply_vector3FA

Library: mtlx. Category: multiply. Type: vector3 LiteGraph id: mtlx/math/multiply_vector3FA

Definition at line 11375 of file mtlx_stdlib.js.

11375 {
11376 this.nodedef_icon = '';
11377 this.nodedef_name = 'ND_multiply_vector3FA';
11378 this.nodedef_type = 'vector3';
11379 this.nodedef_node = 'multiply';
11380 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11381 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector3FA_out_genglsl.png';
11382 this.nodedef_group = 'math';
11383 this.addInput('in1','vector3');
11384 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11385 this.addInput('in2','float');
11386 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11387 this.addOutput('out','vector3');
11388 this.title = 'multiply_vector3';
11389 this.desc = "MaterialX:mtlx/math/multiply_vector3FA";
11390 this.onNodeCreated = function() {
11391 //console.log('Node created:', this);
11392}
11393 this.onRemoved = function() {
11394 //console.log('Node removed:', this);
11395 }
11396 this.onPropertyChanged = function(name, value, prev_value) {
11397 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11398 }
11399 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11400 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11401 }
11402 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11403 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11404 }
11405 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11406 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11407 }
11408 this.bgcolor = '#111';
11409 this.color = '#222';
11410 this.shape = LiteGraph.ROUND_SHAPE;
11411 this.boxcolor = '#465';
11412}

◆ mtlx_math_multiply_vector4()

function mtlx_math_multiply_vector4 ( )

mtlx_math_multiply_vector4

Library: mtlx. Category: multiply. Type: vector4 LiteGraph id: mtlx/math/multiply_vector4

Definition at line 11087 of file mtlx_stdlib.js.

11087 {
11088 this.nodedef_icon = '';
11089 this.nodedef_name = 'ND_multiply_vector4';
11090 this.nodedef_type = 'vector4';
11091 this.nodedef_node = 'multiply';
11092 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11093 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector4_out_genglsl.png';
11094 this.nodedef_group = 'math';
11095 this.addInput('in1','vector4');
11096 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11097 this.addInput('in2','vector4');
11098 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11099 this.addOutput('out','vector4');
11100 this.title = 'multiply_vector4';
11101 this.desc = "MaterialX:mtlx/math/multiply_vector4";
11102 this.onNodeCreated = function() {
11103 //console.log('Node created:', this);
11104}
11105 this.onRemoved = function() {
11106 //console.log('Node removed:', this);
11107 }
11108 this.onPropertyChanged = function(name, value, prev_value) {
11109 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11110 }
11111 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11112 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11113 }
11114 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11115 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11116 }
11117 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11118 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11119 }
11120 this.bgcolor = '#111';
11121 this.color = '#222';
11122 this.shape = LiteGraph.ROUND_SHAPE;
11123 this.boxcolor = '#275';
11124}

◆ mtlx_math_multiply_vector4FA()

function mtlx_math_multiply_vector4FA ( )

mtlx_math_multiply_vector4FA

Library: mtlx. Category: multiply. Type: vector4 LiteGraph id: mtlx/math/multiply_vector4FA

Definition at line 11423 of file mtlx_stdlib.js.

11423 {
11424 this.nodedef_icon = '';
11425 this.nodedef_name = 'ND_multiply_vector4FA';
11426 this.nodedef_type = 'vector4';
11427 this.nodedef_node = 'multiply';
11428 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11429 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector4FA_out_genglsl.png';
11430 this.nodedef_group = 'math';
11431 this.addInput('in1','vector4');
11432 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11433 this.addInput('in2','float');
11434 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
11435 this.addOutput('out','vector4');
11436 this.title = 'multiply_vector4';
11437 this.desc = "MaterialX:mtlx/math/multiply_vector4FA";
11438 this.onNodeCreated = function() {
11439 //console.log('Node created:', this);
11440}
11441 this.onRemoved = function() {
11442 //console.log('Node removed:', this);
11443 }
11444 this.onPropertyChanged = function(name, value, prev_value) {
11445 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
11446 }
11447 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
11448 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
11449 }
11450 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
11451 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
11452 }
11453 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
11454 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
11455 }
11456 this.bgcolor = '#111';
11457 this.color = '#222';
11458 this.shape = LiteGraph.ROUND_SHAPE;
11459 this.boxcolor = '#275';
11460}

◆ mtlx_math_normalize_vector2()

function mtlx_math_normalize_vector2 ( )

mtlx_math_normalize_vector2

Library: mtlx. Category: max. Type: vector2 LiteGraph id: mtlx/math/normalize_vector2

Definition at line 18995 of file mtlx_stdlib.js.

18995 {
18996 this.nodedef_icon = '';
18997 this.nodedef_name = 'ND_normalize_vector2';
18998 this.nodedef_type = 'vector2';
18999 this.nodedef_node = 'normalize';
19000 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19001 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector2_out_genglsl.png';
19002 this.nodedef_group = 'math';
19003 this.addInput('in','vector2');
19004 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19005 this.addOutput('out','vector2');
19006 this.title = 'normalize_vector2';
19007 this.desc = "MaterialX:mtlx/math/normalize_vector2";
19008 this.onNodeCreated = function() {
19009 //console.log('Node created:', this);
19010}
19011 this.onRemoved = function() {
19012 //console.log('Node removed:', this);
19013 }
19014 this.onPropertyChanged = function(name, value, prev_value) {
19015 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19016 }
19017 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19018 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19019 }
19020 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19021 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19022 }
19023 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19024 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19025 }
19026 this.bgcolor = '#111';
19027 this.color = '#222';
19028 this.shape = LiteGraph.ROUND_SHAPE;
19029 this.boxcolor = '#265';
19030}

◆ mtlx_math_normalize_vector3()

function mtlx_math_normalize_vector3 ( )

mtlx_math_normalize_vector3

Library: mtlx. Category: normalize. Type: vector3 LiteGraph id: mtlx/math/normalize_vector3

Definition at line 19041 of file mtlx_stdlib.js.

19041 {
19042 this.nodedef_icon = '';
19043 this.nodedef_name = 'ND_normalize_vector3';
19044 this.nodedef_type = 'vector3';
19045 this.nodedef_node = 'normalize';
19046 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19047 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector3_out_genglsl.png';
19048 this.nodedef_group = 'math';
19049 this.addInput('in','vector3');
19050 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19051 this.addOutput('out','vector3');
19052 this.title = 'normalize_vector3';
19053 this.desc = "MaterialX:mtlx/math/normalize_vector3";
19054 this.onNodeCreated = function() {
19055 //console.log('Node created:', this);
19056}
19057 this.onRemoved = function() {
19058 //console.log('Node removed:', this);
19059 }
19060 this.onPropertyChanged = function(name, value, prev_value) {
19061 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19062 }
19063 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19064 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19065 }
19066 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19067 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19068 }
19069 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19070 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19071 }
19072 this.bgcolor = '#111';
19073 this.color = '#222';
19074 this.shape = LiteGraph.ROUND_SHAPE;
19075 this.boxcolor = '#465';
19076}

◆ mtlx_math_normalize_vector4()

function mtlx_math_normalize_vector4 ( )

mtlx_math_normalize_vector4

Library: mtlx. Category: normalize. Type: vector4 LiteGraph id: mtlx/math/normalize_vector4

Definition at line 19087 of file mtlx_stdlib.js.

19087 {
19088 this.nodedef_icon = '';
19089 this.nodedef_name = 'ND_normalize_vector4';
19090 this.nodedef_type = 'vector4';
19091 this.nodedef_node = 'normalize';
19092 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19093 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector4_out_genglsl.png';
19094 this.nodedef_group = 'math';
19095 this.addInput('in','vector4');
19096 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19097 this.addOutput('out','vector4');
19098 this.title = 'normalize_vector4';
19099 this.desc = "MaterialX:mtlx/math/normalize_vector4";
19100 this.onNodeCreated = function() {
19101 //console.log('Node created:', this);
19102}
19103 this.onRemoved = function() {
19104 //console.log('Node removed:', this);
19105 }
19106 this.onPropertyChanged = function(name, value, prev_value) {
19107 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19108 }
19109 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19110 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19111 }
19112 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19113 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19114 }
19115 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19116 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19117 }
19118 this.bgcolor = '#111';
19119 this.color = '#222';
19120 this.shape = LiteGraph.ROUND_SHAPE;
19121 this.boxcolor = '#275';
19122}

◆ mtlx_math_normalmap_float()

function mtlx_math_normalmap_float ( )

mtlx_math_normalmap_float

Library: mtlx. Category: transformmatrix. Type: vector3 LiteGraph id: mtlx/math/normalmap_float

Definition at line 19949 of file mtlx_stdlib.js.

19949 {
19950 this.nodedef_icon = '';
19951 this.nodedef_name = 'ND_normalmap_float';
19952 this.nodedef_type = 'vector3';
19953 this.nodedef_node = 'normalmap';
19954 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalmap.html';
19955 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalmap_float_out_genglsl.png';
19956 this.nodedef_group = 'math';
19957 this.addInput('in','vector3');
19958 this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19959 this.addInput('scale','float');
19960 this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19961 this.addInput('normal','vector3');
19962 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
19963 this.addInput('tangent','vector3');
19964 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
19965 this.addInput('bitangent','vector3');
19966 this.addProperty('bitangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Bworld"});
19967 this.addOutput('out','vector3');
19968 this.title = 'normalmap_vector3';
19969 this.desc = "MaterialX:mtlx/math/normalmap_float";
19970 this.onNodeCreated = function() {
19971 //console.log('Node created:', this);
19972}
19973 this.onRemoved = function() {
19974 //console.log('Node removed:', this);
19975 }
19976 this.onPropertyChanged = function(name, value, prev_value) {
19977 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19978 }
19979 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19980 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19981 }
19982 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19983 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19984 }
19985 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19986 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19987 }
19988 this.bgcolor = '#111';
19989 this.color = '#222';
19990 this.shape = LiteGraph.ROUND_SHAPE;
19991 this.boxcolor = '#465';
19992}

◆ mtlx_math_normalmap_vector2()

function mtlx_math_normalmap_vector2 ( )

mtlx_math_normalmap_vector2

Library: mtlx. Category: normalmap. Type: vector3 LiteGraph id: mtlx/math/normalmap_vector2

Definition at line 20003 of file mtlx_stdlib.js.

20003 {
20004 this.nodedef_icon = '';
20005 this.nodedef_name = 'ND_normalmap_vector2';
20006 this.nodedef_type = 'vector3';
20007 this.nodedef_node = 'normalmap';
20008 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalmap.html';
20009 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalmap_vector2_out_genglsl.png';
20010 this.nodedef_group = 'math';
20011 this.addInput('in','vector3');
20012 this.addProperty('in', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20013 this.addInput('scale','vector2');
20014 this.addProperty('scale', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20015 this.addInput('normal','vector3');
20016 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
20017 this.addInput('tangent','vector3');
20018 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
20019 this.addInput('bitangent','vector3');
20020 this.addProperty('bitangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Bworld"});
20021 this.addOutput('out','vector3');
20022 this.title = 'normalmap_vector3';
20023 this.desc = "MaterialX:mtlx/math/normalmap_vector2";
20024 this.onNodeCreated = function() {
20025 //console.log('Node created:', this);
20026}
20027 this.onRemoved = function() {
20028 //console.log('Node removed:', this);
20029 }
20030 this.onPropertyChanged = function(name, value, prev_value) {
20031 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20032 }
20033 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20034 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20035 }
20036 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20037 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20038 }
20039 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20040 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20041 }
20042 this.bgcolor = '#111';
20043 this.color = '#222';
20044 this.shape = LiteGraph.ROUND_SHAPE;
20045 this.boxcolor = '#465';
20046}

◆ mtlx_math_place2d_vector2()

function mtlx_math_place2d_vector2 ( )

mtlx_math_place2d_vector2

Library: mtlx. Category: rotate3d. Type: vector2 LiteGraph id: mtlx/math/place2d_vector2

Definition at line 20431 of file mtlx_stdlib.js.

20431 {
20432 this.nodedef_icon = '';
20433 this.nodedef_name = 'ND_place2d_vector2';
20434 this.nodedef_type = 'vector2';
20435 this.nodedef_node = 'place2d';
20436 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/place2d.html';
20437 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_place2d_vector2_out_genglsl.png';
20438 this.nodedef_group = 'math';
20439 this.addInput('texcoord','vector2');
20440 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20441 this.addInput('pivot','vector2');
20442 this.addProperty('pivot', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20443 this.addInput('scale','vector2');
20444 this.addProperty('scale', [1.0,1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20445 this.addInput('rotate','float');
20446 this.addProperty('rotate', 0.0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20447 this.addInput('offset','vector2');
20448 this.addProperty('offset', [0.0,0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20449 this.addInput('operationorder','integer');
20450 this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["SRT"," TRS"],"enumvalues":["0"," 1"]});
20451 this.addOutput('out','vector2');
20452 this.title = 'place2d_vector2';
20453 this.desc = "MaterialX:mtlx/math/place2d_vector2";
20454 this.onNodeCreated = function() {
20455 //console.log('Node created:', this);
20456}
20457 this.onRemoved = function() {
20458 //console.log('Node removed:', this);
20459 }
20460 this.onPropertyChanged = function(name, value, prev_value) {
20461 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20462 }
20463 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20464 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20465 }
20466 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20467 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20468 }
20469 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20470 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20471 }
20472 this.bgcolor = '#111';
20473 this.color = '#222';
20474 this.shape = LiteGraph.ROUND_SHAPE;
20475 this.boxcolor = '#265';
20476}

◆ mtlx_math_power_color3()

function mtlx_math_power_color3 ( )

mtlx_math_power_color3

Library: mtlx. Category: power. Type: color3 LiteGraph id: mtlx/math/power_color3

Definition at line 14441 of file mtlx_stdlib.js.

14441 {
14442 this.nodedef_icon = '';
14443 this.nodedef_name = 'ND_power_color3';
14444 this.nodedef_type = 'color3';
14445 this.nodedef_node = 'power';
14446 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14447 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color3_out_genglsl.png';
14448 this.nodedef_group = 'math';
14449 this.addInput('in1','color3');
14450 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14451 this.addInput('in2','color3');
14452 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14453 this.addOutput('out','color3');
14454 this.title = 'power_color3';
14455 this.desc = "MaterialX:mtlx/math/power_color3";
14456 this.onNodeCreated = function() {
14457 //console.log('Node created:', this);
14458}
14459 this.onRemoved = function() {
14460 //console.log('Node removed:', this);
14461 }
14462 this.onPropertyChanged = function(name, value, prev_value) {
14463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14464 }
14465 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14467 }
14468 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14470 }
14471 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14473 }
14474 this.bgcolor = '#111';
14475 this.color = '#222';
14476 this.shape = LiteGraph.ROUND_SHAPE;
14477 this.boxcolor = '#37A';
14478}

◆ mtlx_math_power_color3FA()

function mtlx_math_power_color3FA ( )

mtlx_math_power_color3FA

Library: mtlx. Category: power. Type: color3 LiteGraph id: mtlx/math/power_color3FA

Definition at line 14681 of file mtlx_stdlib.js.

14681 {
14682 this.nodedef_icon = '';
14683 this.nodedef_name = 'ND_power_color3FA';
14684 this.nodedef_type = 'color3';
14685 this.nodedef_node = 'power';
14686 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14687 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color3FA_out_genglsl.png';
14688 this.nodedef_group = 'math';
14689 this.addInput('in1','color3');
14690 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14691 this.addInput('in2','float');
14692 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14693 this.addOutput('out','color3');
14694 this.title = 'power_color3';
14695 this.desc = "MaterialX:mtlx/math/power_color3FA";
14696 this.onNodeCreated = function() {
14697 //console.log('Node created:', this);
14698}
14699 this.onRemoved = function() {
14700 //console.log('Node removed:', this);
14701 }
14702 this.onPropertyChanged = function(name, value, prev_value) {
14703 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14704 }
14705 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14706 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14707 }
14708 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14709 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14710 }
14711 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14712 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14713 }
14714 this.bgcolor = '#111';
14715 this.color = '#222';
14716 this.shape = LiteGraph.ROUND_SHAPE;
14717 this.boxcolor = '#37A';
14718}

◆ mtlx_math_power_color4()

function mtlx_math_power_color4 ( )

mtlx_math_power_color4

Library: mtlx. Category: power. Type: color4 LiteGraph id: mtlx/math/power_color4

Definition at line 14489 of file mtlx_stdlib.js.

14489 {
14490 this.nodedef_icon = '';
14491 this.nodedef_name = 'ND_power_color4';
14492 this.nodedef_type = 'color4';
14493 this.nodedef_node = 'power';
14494 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14495 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color4_out_genglsl.png';
14496 this.nodedef_group = 'math';
14497 this.addInput('in1','color4');
14498 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14499 this.addInput('in2','color4');
14500 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14501 this.addOutput('out','color4');
14502 this.title = 'power_color4';
14503 this.desc = "MaterialX:mtlx/math/power_color4";
14504 this.onNodeCreated = function() {
14505 //console.log('Node created:', this);
14506}
14507 this.onRemoved = function() {
14508 //console.log('Node removed:', this);
14509 }
14510 this.onPropertyChanged = function(name, value, prev_value) {
14511 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14512 }
14513 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14514 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14515 }
14516 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14517 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14518 }
14519 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14520 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14521 }
14522 this.bgcolor = '#111';
14523 this.color = '#222';
14524 this.shape = LiteGraph.ROUND_SHAPE;
14525 this.boxcolor = '#69A';
14526}

◆ mtlx_math_power_color4FA()

function mtlx_math_power_color4FA ( )

mtlx_math_power_color4FA

Library: mtlx. Category: power. Type: color4 LiteGraph id: mtlx/math/power_color4FA

Definition at line 14729 of file mtlx_stdlib.js.

14729 {
14730 this.nodedef_icon = '';
14731 this.nodedef_name = 'ND_power_color4FA';
14732 this.nodedef_type = 'color4';
14733 this.nodedef_node = 'power';
14734 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14735 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color4FA_out_genglsl.png';
14736 this.nodedef_group = 'math';
14737 this.addInput('in1','color4');
14738 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14739 this.addInput('in2','float');
14740 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14741 this.addOutput('out','color4');
14742 this.title = 'power_color4';
14743 this.desc = "MaterialX:mtlx/math/power_color4FA";
14744 this.onNodeCreated = function() {
14745 //console.log('Node created:', this);
14746}
14747 this.onRemoved = function() {
14748 //console.log('Node removed:', this);
14749 }
14750 this.onPropertyChanged = function(name, value, prev_value) {
14751 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14752 }
14753 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14754 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14755 }
14756 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14757 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14758 }
14759 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14760 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14761 }
14762 this.bgcolor = '#111';
14763 this.color = '#222';
14764 this.shape = LiteGraph.ROUND_SHAPE;
14765 this.boxcolor = '#69A';
14766}

◆ mtlx_math_power_float()

function mtlx_math_power_float ( )

mtlx_math_power_float

Library: mtlx. Category: round. Type: float LiteGraph id: mtlx/math/power_float

Definition at line 14393 of file mtlx_stdlib.js.

14393 {
14394 this.nodedef_icon = '';
14395 this.nodedef_name = 'ND_power_float';
14396 this.nodedef_type = 'float';
14397 this.nodedef_node = 'power';
14398 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14399 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_float_out_genglsl.png';
14400 this.nodedef_group = 'math';
14401 this.addInput('in1','float');
14402 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14403 this.addInput('in2','float');
14404 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14405 this.addOutput('out','float');
14406 this.title = 'power_float';
14407 this.desc = "MaterialX:mtlx/math/power_float";
14408 this.onNodeCreated = function() {
14409 //console.log('Node created:', this);
14410}
14411 this.onRemoved = function() {
14412 //console.log('Node removed:', this);
14413 }
14414 this.onPropertyChanged = function(name, value, prev_value) {
14415 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14416 }
14417 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14418 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14419 }
14420 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14421 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14422 }
14423 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14424 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14425 }
14426 this.bgcolor = '#111';
14427 this.color = '#222';
14428 this.shape = LiteGraph.ROUND_SHAPE;
14429 this.boxcolor = '#161';
14430}

◆ mtlx_math_power_vector2()

function mtlx_math_power_vector2 ( )

mtlx_math_power_vector2

Library: mtlx. Category: power. Type: vector2 LiteGraph id: mtlx/math/power_vector2

Definition at line 14537 of file mtlx_stdlib.js.

14537 {
14538 this.nodedef_icon = '';
14539 this.nodedef_name = 'ND_power_vector2';
14540 this.nodedef_type = 'vector2';
14541 this.nodedef_node = 'power';
14542 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14543 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector2_out_genglsl.png';
14544 this.nodedef_group = 'math';
14545 this.addInput('in1','vector2');
14546 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14547 this.addInput('in2','vector2');
14548 this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14549 this.addOutput('out','vector2');
14550 this.title = 'power_vector2';
14551 this.desc = "MaterialX:mtlx/math/power_vector2";
14552 this.onNodeCreated = function() {
14553 //console.log('Node created:', this);
14554}
14555 this.onRemoved = function() {
14556 //console.log('Node removed:', this);
14557 }
14558 this.onPropertyChanged = function(name, value, prev_value) {
14559 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14560 }
14561 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14562 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14563 }
14564 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14565 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14566 }
14567 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14568 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14569 }
14570 this.bgcolor = '#111';
14571 this.color = '#222';
14572 this.shape = LiteGraph.ROUND_SHAPE;
14573 this.boxcolor = '#265';
14574}

◆ mtlx_math_power_vector2FA()

function mtlx_math_power_vector2FA ( )

mtlx_math_power_vector2FA

Library: mtlx. Category: power. Type: vector2 LiteGraph id: mtlx/math/power_vector2FA

Definition at line 14777 of file mtlx_stdlib.js.

14777 {
14778 this.nodedef_icon = '';
14779 this.nodedef_name = 'ND_power_vector2FA';
14780 this.nodedef_type = 'vector2';
14781 this.nodedef_node = 'power';
14782 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14783 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector2FA_out_genglsl.png';
14784 this.nodedef_group = 'math';
14785 this.addInput('in1','vector2');
14786 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14787 this.addInput('in2','float');
14788 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14789 this.addOutput('out','vector2');
14790 this.title = 'power_vector2';
14791 this.desc = "MaterialX:mtlx/math/power_vector2FA";
14792 this.onNodeCreated = function() {
14793 //console.log('Node created:', this);
14794}
14795 this.onRemoved = function() {
14796 //console.log('Node removed:', this);
14797 }
14798 this.onPropertyChanged = function(name, value, prev_value) {
14799 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14800 }
14801 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14802 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14803 }
14804 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14805 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14806 }
14807 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14808 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14809 }
14810 this.bgcolor = '#111';
14811 this.color = '#222';
14812 this.shape = LiteGraph.ROUND_SHAPE;
14813 this.boxcolor = '#265';
14814}

◆ mtlx_math_power_vector3()

function mtlx_math_power_vector3 ( )

mtlx_math_power_vector3

Library: mtlx. Category: power. Type: vector3 LiteGraph id: mtlx/math/power_vector3

Definition at line 14585 of file mtlx_stdlib.js.

14585 {
14586 this.nodedef_icon = '';
14587 this.nodedef_name = 'ND_power_vector3';
14588 this.nodedef_type = 'vector3';
14589 this.nodedef_node = 'power';
14590 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14591 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector3_out_genglsl.png';
14592 this.nodedef_group = 'math';
14593 this.addInput('in1','vector3');
14594 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14595 this.addInput('in2','vector3');
14596 this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14597 this.addOutput('out','vector3');
14598 this.title = 'power_vector3';
14599 this.desc = "MaterialX:mtlx/math/power_vector3";
14600 this.onNodeCreated = function() {
14601 //console.log('Node created:', this);
14602}
14603 this.onRemoved = function() {
14604 //console.log('Node removed:', this);
14605 }
14606 this.onPropertyChanged = function(name, value, prev_value) {
14607 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14608 }
14609 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14610 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14611 }
14612 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14613 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14614 }
14615 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14616 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14617 }
14618 this.bgcolor = '#111';
14619 this.color = '#222';
14620 this.shape = LiteGraph.ROUND_SHAPE;
14621 this.boxcolor = '#465';
14622}

◆ mtlx_math_power_vector3FA()

function mtlx_math_power_vector3FA ( )

mtlx_math_power_vector3FA

Library: mtlx. Category: power. Type: vector3 LiteGraph id: mtlx/math/power_vector3FA

Definition at line 14825 of file mtlx_stdlib.js.

14825 {
14826 this.nodedef_icon = '';
14827 this.nodedef_name = 'ND_power_vector3FA';
14828 this.nodedef_type = 'vector3';
14829 this.nodedef_node = 'power';
14830 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14831 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector3FA_out_genglsl.png';
14832 this.nodedef_group = 'math';
14833 this.addInput('in1','vector3');
14834 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14835 this.addInput('in2','float');
14836 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14837 this.addOutput('out','vector3');
14838 this.title = 'power_vector3';
14839 this.desc = "MaterialX:mtlx/math/power_vector3FA";
14840 this.onNodeCreated = function() {
14841 //console.log('Node created:', this);
14842}
14843 this.onRemoved = function() {
14844 //console.log('Node removed:', this);
14845 }
14846 this.onPropertyChanged = function(name, value, prev_value) {
14847 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14848 }
14849 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14850 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14851 }
14852 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14853 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14854 }
14855 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14856 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14857 }
14858 this.bgcolor = '#111';
14859 this.color = '#222';
14860 this.shape = LiteGraph.ROUND_SHAPE;
14861 this.boxcolor = '#465';
14862}

◆ mtlx_math_power_vector4()

function mtlx_math_power_vector4 ( )

mtlx_math_power_vector4

Library: mtlx. Category: power. Type: vector4 LiteGraph id: mtlx/math/power_vector4

Definition at line 14633 of file mtlx_stdlib.js.

14633 {
14634 this.nodedef_icon = '';
14635 this.nodedef_name = 'ND_power_vector4';
14636 this.nodedef_type = 'vector4';
14637 this.nodedef_node = 'power';
14638 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14639 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector4_out_genglsl.png';
14640 this.nodedef_group = 'math';
14641 this.addInput('in1','vector4');
14642 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14643 this.addInput('in2','vector4');
14644 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14645 this.addOutput('out','vector4');
14646 this.title = 'power_vector4';
14647 this.desc = "MaterialX:mtlx/math/power_vector4";
14648 this.onNodeCreated = function() {
14649 //console.log('Node created:', this);
14650}
14651 this.onRemoved = function() {
14652 //console.log('Node removed:', this);
14653 }
14654 this.onPropertyChanged = function(name, value, prev_value) {
14655 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14656 }
14657 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14658 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14659 }
14660 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14661 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14662 }
14663 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14664 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14665 }
14666 this.bgcolor = '#111';
14667 this.color = '#222';
14668 this.shape = LiteGraph.ROUND_SHAPE;
14669 this.boxcolor = '#275';
14670}

◆ mtlx_math_power_vector4FA()

function mtlx_math_power_vector4FA ( )

mtlx_math_power_vector4FA

Library: mtlx. Category: power. Type: vector4 LiteGraph id: mtlx/math/power_vector4FA

Definition at line 14873 of file mtlx_stdlib.js.

14873 {
14874 this.nodedef_icon = '';
14875 this.nodedef_name = 'ND_power_vector4FA';
14876 this.nodedef_type = 'vector4';
14877 this.nodedef_node = 'power';
14878 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14879 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector4FA_out_genglsl.png';
14880 this.nodedef_group = 'math';
14881 this.addInput('in1','vector4');
14882 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14883 this.addInput('in2','float');
14884 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14885 this.addOutput('out','vector4');
14886 this.title = 'power_vector4';
14887 this.desc = "MaterialX:mtlx/math/power_vector4FA";
14888 this.onNodeCreated = function() {
14889 //console.log('Node created:', this);
14890}
14891 this.onRemoved = function() {
14892 //console.log('Node removed:', this);
14893 }
14894 this.onPropertyChanged = function(name, value, prev_value) {
14895 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14896 }
14897 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14898 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14899 }
14900 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14901 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14902 }
14903 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14904 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14905 }
14906 this.bgcolor = '#111';
14907 this.color = '#222';
14908 this.shape = LiteGraph.ROUND_SHAPE;
14909 this.boxcolor = '#275';
14910}

◆ mtlx_math_reflect_vector3()

function mtlx_math_reflect_vector3 ( )

mtlx_math_reflect_vector3

Library: mtlx. Category: trianglewave. Type: vector3 LiteGraph id: mtlx/math/reflect_vector3

Definition at line 20533 of file mtlx_stdlib.js.

20533 {
20534 this.nodedef_icon = '';
20535 this.nodedef_name = 'ND_reflect_vector3';
20536 this.nodedef_type = 'vector3';
20537 this.nodedef_node = 'reflect';
20538 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/reflect.html';
20539 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_reflect_vector3_out_genglsl.png';
20540 this.nodedef_group = 'math';
20541 this.addInput('in','vector3');
20542 this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20543 this.addInput('normal','vector3');
20544 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
20545 this.addOutput('out','vector3');
20546 this.title = 'reflect_vector3';
20547 this.desc = "MaterialX:mtlx/math/reflect_vector3";
20548 this.onNodeCreated = function() {
20549 //console.log('Node created:', this);
20550}
20551 this.onRemoved = function() {
20552 //console.log('Node removed:', this);
20553 }
20554 this.onPropertyChanged = function(name, value, prev_value) {
20555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20556 }
20557 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20559 }
20560 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20562 }
20563 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20565 }
20566 this.bgcolor = '#111';
20567 this.color = '#222';
20568 this.shape = LiteGraph.ROUND_SHAPE;
20569 this.boxcolor = '#465';
20570}

◆ mtlx_math_refract_vector3()

function mtlx_math_refract_vector3 ( )

mtlx_math_refract_vector3

Library: mtlx. Category: reflect. Type: vector3 LiteGraph id: mtlx/math/refract_vector3

Definition at line 20581 of file mtlx_stdlib.js.

20581 {
20582 this.nodedef_icon = '';
20583 this.nodedef_name = 'ND_refract_vector3';
20584 this.nodedef_type = 'vector3';
20585 this.nodedef_node = 'refract';
20586 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/refract.html';
20587 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_refract_vector3_out_genglsl.png';
20588 this.nodedef_group = 'math';
20589 this.addInput('in','vector3');
20590 this.addProperty('in', [1.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20591 this.addInput('normal','vector3');
20592 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
20593 this.addInput('ior','float');
20594 this.addProperty('ior', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20595 this.addOutput('out','vector3');
20596 this.title = 'refract_vector3';
20597 this.desc = "MaterialX:mtlx/math/refract_vector3";
20598 this.onNodeCreated = function() {
20599 //console.log('Node created:', this);
20600}
20601 this.onRemoved = function() {
20602 //console.log('Node removed:', this);
20603 }
20604 this.onPropertyChanged = function(name, value, prev_value) {
20605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20606 }
20607 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20609 }
20610 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20612 }
20613 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20615 }
20616 this.bgcolor = '#111';
20617 this.color = '#222';
20618 this.shape = LiteGraph.ROUND_SHAPE;
20619 this.boxcolor = '#465';
20620}

◆ mtlx_math_rotate2d_vector2()

function mtlx_math_rotate2d_vector2 ( )

mtlx_math_rotate2d_vector2

Library: mtlx. Category: invertmatrix. Type: vector2 LiteGraph id: mtlx/math/rotate2d_vector2

Definition at line 20333 of file mtlx_stdlib.js.

20333 {
20334 this.nodedef_icon = '';
20335 this.nodedef_name = 'ND_rotate2d_vector2';
20336 this.nodedef_type = 'vector2';
20337 this.nodedef_node = 'rotate2d';
20338 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rotate2d.html';
20339 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rotate2d_vector2_out_genglsl.png';
20340 this.nodedef_group = 'math';
20341 this.addInput('in','vector2');
20342 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20343 this.addInput('amount','float');
20344 this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20345 this.addOutput('out','vector2');
20346 this.title = 'rotate2d_vector2';
20347 this.desc = "MaterialX:mtlx/math/rotate2d_vector2";
20348 this.onNodeCreated = function() {
20349 //console.log('Node created:', this);
20350}
20351 this.onRemoved = function() {
20352 //console.log('Node removed:', this);
20353 }
20354 this.onPropertyChanged = function(name, value, prev_value) {
20355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20356 }
20357 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20359 }
20360 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20362 }
20363 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20365 }
20366 this.bgcolor = '#111';
20367 this.color = '#222';
20368 this.shape = LiteGraph.ROUND_SHAPE;
20369 this.boxcolor = '#265';
20370}

◆ mtlx_math_rotate3d_vector3()

function mtlx_math_rotate3d_vector3 ( )

mtlx_math_rotate3d_vector3

Library: mtlx. Category: rotate2d. Type: vector3 LiteGraph id: mtlx/math/rotate3d_vector3

Definition at line 20381 of file mtlx_stdlib.js.

20381 {
20382 this.nodedef_icon = '';
20383 this.nodedef_name = 'ND_rotate3d_vector3';
20384 this.nodedef_type = 'vector3';
20385 this.nodedef_node = 'rotate3d';
20386 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rotate3d.html';
20387 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rotate3d_vector3_out_genglsl.png';
20388 this.nodedef_group = 'math';
20389 this.addInput('in','vector3');
20390 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20391 this.addInput('amount','float');
20392 this.addProperty('amount', 0.0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20393 this.addInput('axis','vector3');
20394 this.addProperty('axis', [0.0, 1.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20395 this.addOutput('out','vector3');
20396 this.title = 'rotate3d_vector3';
20397 this.desc = "MaterialX:mtlx/math/rotate3d_vector3";
20398 this.onNodeCreated = function() {
20399 //console.log('Node created:', this);
20400}
20401 this.onRemoved = function() {
20402 //console.log('Node removed:', this);
20403 }
20404 this.onPropertyChanged = function(name, value, prev_value) {
20405 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20406 }
20407 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20408 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20409 }
20410 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20411 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20412 }
20413 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20414 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20415 }
20416 this.bgcolor = '#111';
20417 this.color = '#222';
20418 this.shape = LiteGraph.ROUND_SHAPE;
20419 this.boxcolor = '#465';
20420}

◆ mtlx_math_round_color3()

function mtlx_math_round_color3 ( )

mtlx_math_round_color3

Library: mtlx. Category: round. Type: color3 LiteGraph id: mtlx/math/round_color3

Definition at line 14117 of file mtlx_stdlib.js.

14117 {
14118 this.nodedef_icon = '';
14119 this.nodedef_name = 'ND_round_color3';
14120 this.nodedef_type = 'color3';
14121 this.nodedef_node = 'round';
14122 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14123 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_color3_out_genglsl.png';
14124 this.nodedef_group = 'math';
14125 this.addInput('in','color3');
14126 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14127 this.addOutput('out','color3');
14128 this.title = 'round_color3';
14129 this.desc = "MaterialX:mtlx/math/round_color3";
14130 this.onNodeCreated = function() {
14131 //console.log('Node created:', this);
14132}
14133 this.onRemoved = function() {
14134 //console.log('Node removed:', this);
14135 }
14136 this.onPropertyChanged = function(name, value, prev_value) {
14137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14138 }
14139 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14141 }
14142 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14144 }
14145 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14147 }
14148 this.bgcolor = '#111';
14149 this.color = '#222';
14150 this.shape = LiteGraph.ROUND_SHAPE;
14151 this.boxcolor = '#37A';
14152}

◆ mtlx_math_round_color4()

function mtlx_math_round_color4 ( )

mtlx_math_round_color4

Library: mtlx. Category: round. Type: color4 LiteGraph id: mtlx/math/round_color4

Definition at line 14163 of file mtlx_stdlib.js.

14163 {
14164 this.nodedef_icon = '';
14165 this.nodedef_name = 'ND_round_color4';
14166 this.nodedef_type = 'color4';
14167 this.nodedef_node = 'round';
14168 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14169 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_color4_out_genglsl.png';
14170 this.nodedef_group = 'math';
14171 this.addInput('in','color4');
14172 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14173 this.addOutput('out','color4');
14174 this.title = 'round_color4';
14175 this.desc = "MaterialX:mtlx/math/round_color4";
14176 this.onNodeCreated = function() {
14177 //console.log('Node created:', this);
14178}
14179 this.onRemoved = function() {
14180 //console.log('Node removed:', this);
14181 }
14182 this.onPropertyChanged = function(name, value, prev_value) {
14183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14184 }
14185 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14187 }
14188 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14190 }
14191 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14193 }
14194 this.bgcolor = '#111';
14195 this.color = '#222';
14196 this.shape = LiteGraph.ROUND_SHAPE;
14197 this.boxcolor = '#69A';
14198}

◆ mtlx_math_round_float()

function mtlx_math_round_float ( )

mtlx_math_round_float

Library: mtlx. Category: ceil. Type: float LiteGraph id: mtlx/math/round_float

Definition at line 14071 of file mtlx_stdlib.js.

14071 {
14072 this.nodedef_icon = '';
14073 this.nodedef_name = 'ND_round_float';
14074 this.nodedef_type = 'float';
14075 this.nodedef_node = 'round';
14076 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14077 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_float_out_genglsl.png';
14078 this.nodedef_group = 'math';
14079 this.addInput('in','float');
14080 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14081 this.addOutput('out','float');
14082 this.title = 'round_float';
14083 this.desc = "MaterialX:mtlx/math/round_float";
14084 this.onNodeCreated = function() {
14085 //console.log('Node created:', this);
14086}
14087 this.onRemoved = function() {
14088 //console.log('Node removed:', this);
14089 }
14090 this.onPropertyChanged = function(name, value, prev_value) {
14091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14092 }
14093 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14095 }
14096 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14098 }
14099 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14101 }
14102 this.bgcolor = '#111';
14103 this.color = '#222';
14104 this.shape = LiteGraph.ROUND_SHAPE;
14105 this.boxcolor = '#161';
14106}

◆ mtlx_math_round_integer()

function mtlx_math_round_integer ( )

mtlx_math_round_integer

Library: mtlx. Category: round. Type: integer LiteGraph id: mtlx/math/round_integer

Definition at line 14347 of file mtlx_stdlib.js.

14347 {
14348 this.nodedef_icon = '';
14349 this.nodedef_name = 'ND_round_integer';
14350 this.nodedef_type = 'integer';
14351 this.nodedef_node = 'round';
14352 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14353 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_integer_out_genglsl.png';
14354 this.nodedef_group = 'math';
14355 this.addInput('in','float');
14356 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14357 this.addOutput('out','integer');
14358 this.title = 'round_integer';
14359 this.desc = "MaterialX:mtlx/math/round_integer";
14360 this.onNodeCreated = function() {
14361 //console.log('Node created:', this);
14362}
14363 this.onRemoved = function() {
14364 //console.log('Node removed:', this);
14365 }
14366 this.onPropertyChanged = function(name, value, prev_value) {
14367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14368 }
14369 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14371 }
14372 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14374 }
14375 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14377 }
14378 this.bgcolor = '#111';
14379 this.color = '#222';
14380 this.shape = LiteGraph.ROUND_SHAPE;
14381 this.boxcolor = '#A32';
14382}

◆ mtlx_math_round_vector2()

function mtlx_math_round_vector2 ( )

mtlx_math_round_vector2

Library: mtlx. Category: round. Type: vector2 LiteGraph id: mtlx/math/round_vector2

Definition at line 14209 of file mtlx_stdlib.js.

14209 {
14210 this.nodedef_icon = '';
14211 this.nodedef_name = 'ND_round_vector2';
14212 this.nodedef_type = 'vector2';
14213 this.nodedef_node = 'round';
14214 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14215 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector2_out_genglsl.png';
14216 this.nodedef_group = 'math';
14217 this.addInput('in','vector2');
14218 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14219 this.addOutput('out','vector2');
14220 this.title = 'round_vector2';
14221 this.desc = "MaterialX:mtlx/math/round_vector2";
14222 this.onNodeCreated = function() {
14223 //console.log('Node created:', this);
14224}
14225 this.onRemoved = function() {
14226 //console.log('Node removed:', this);
14227 }
14228 this.onPropertyChanged = function(name, value, prev_value) {
14229 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14230 }
14231 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14232 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14233 }
14234 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14235 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14236 }
14237 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14238 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14239 }
14240 this.bgcolor = '#111';
14241 this.color = '#222';
14242 this.shape = LiteGraph.ROUND_SHAPE;
14243 this.boxcolor = '#265';
14244}

◆ mtlx_math_round_vector3()

function mtlx_math_round_vector3 ( )

mtlx_math_round_vector3

Library: mtlx. Category: round. Type: vector3 LiteGraph id: mtlx/math/round_vector3

Definition at line 14255 of file mtlx_stdlib.js.

14255 {
14256 this.nodedef_icon = '';
14257 this.nodedef_name = 'ND_round_vector3';
14258 this.nodedef_type = 'vector3';
14259 this.nodedef_node = 'round';
14260 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14261 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector3_out_genglsl.png';
14262 this.nodedef_group = 'math';
14263 this.addInput('in','vector3');
14264 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14265 this.addOutput('out','vector3');
14266 this.title = 'round_vector3';
14267 this.desc = "MaterialX:mtlx/math/round_vector3";
14268 this.onNodeCreated = function() {
14269 //console.log('Node created:', this);
14270}
14271 this.onRemoved = function() {
14272 //console.log('Node removed:', this);
14273 }
14274 this.onPropertyChanged = function(name, value, prev_value) {
14275 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14276 }
14277 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14278 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14279 }
14280 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14281 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14282 }
14283 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14284 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14285 }
14286 this.bgcolor = '#111';
14287 this.color = '#222';
14288 this.shape = LiteGraph.ROUND_SHAPE;
14289 this.boxcolor = '#465';
14290}

◆ mtlx_math_round_vector4()

function mtlx_math_round_vector4 ( )

mtlx_math_round_vector4

Library: mtlx. Category: round. Type: vector4 LiteGraph id: mtlx/math/round_vector4

Definition at line 14301 of file mtlx_stdlib.js.

14301 {
14302 this.nodedef_icon = '';
14303 this.nodedef_name = 'ND_round_vector4';
14304 this.nodedef_type = 'vector4';
14305 this.nodedef_node = 'round';
14306 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14307 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector4_out_genglsl.png';
14308 this.nodedef_group = 'math';
14309 this.addInput('in','vector4');
14310 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14311 this.addOutput('out','vector4');
14312 this.title = 'round_vector4';
14313 this.desc = "MaterialX:mtlx/math/round_vector4";
14314 this.onNodeCreated = function() {
14315 //console.log('Node created:', this);
14316}
14317 this.onRemoved = function() {
14318 //console.log('Node removed:', this);
14319 }
14320 this.onPropertyChanged = function(name, value, prev_value) {
14321 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14322 }
14323 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14324 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14325 }
14326 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14327 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14328 }
14329 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14330 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14331 }
14332 this.bgcolor = '#111';
14333 this.color = '#222';
14334 this.shape = LiteGraph.ROUND_SHAPE;
14335 this.boxcolor = '#275';
14336}

◆ mtlx_math_safepower_color3()

function mtlx_math_safepower_color3 ( )

mtlx_math_safepower_color3

Library: mtlx. Category: safepower. Type: color3 LiteGraph id: mtlx/math/safepower_color3

Definition at line 14969 of file mtlx_stdlib.js.

14969 {
14970 this.nodedef_icon = '';
14971 this.nodedef_name = 'ND_safepower_color3';
14972 this.nodedef_type = 'color3';
14973 this.nodedef_node = 'safepower';
14974 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
14975 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color3_out_genglsl.png';
14976 this.nodedef_group = 'math';
14977 this.addInput('in1','color3');
14978 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14979 this.addInput('in2','color3');
14980 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14981 this.addOutput('out','color3');
14982 this.title = 'safepower_color3';
14983 this.desc = "MaterialX:mtlx/math/safepower_color3";
14984 this.onNodeCreated = function() {
14985 //console.log('Node created:', this);
14986}
14987 this.onRemoved = function() {
14988 //console.log('Node removed:', this);
14989 }
14990 this.onPropertyChanged = function(name, value, prev_value) {
14991 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14992 }
14993 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14994 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14995 }
14996 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14997 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14998 }
14999 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15000 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15001 }
15002 this.bgcolor = '#111';
15003 this.color = '#222';
15004 this.shape = LiteGraph.ROUND_SHAPE;
15005 this.boxcolor = '#37A';
15006}

◆ mtlx_math_safepower_color3FA()

function mtlx_math_safepower_color3FA ( )

mtlx_math_safepower_color3FA

Library: mtlx. Category: safepower. Type: color3 LiteGraph id: mtlx/math/safepower_color3FA

Definition at line 15209 of file mtlx_stdlib.js.

15209 {
15210 this.nodedef_icon = '';
15211 this.nodedef_name = 'ND_safepower_color3FA';
15212 this.nodedef_type = 'color3';
15213 this.nodedef_node = 'safepower';
15214 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15215 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color3FA_out_genglsl.png';
15216 this.nodedef_group = 'math';
15217 this.addInput('in1','color3');
15218 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15219 this.addInput('in2','float');
15220 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15221 this.addOutput('out','color3');
15222 this.title = 'safepower_color3';
15223 this.desc = "MaterialX:mtlx/math/safepower_color3FA";
15224 this.onNodeCreated = function() {
15225 //console.log('Node created:', this);
15226}
15227 this.onRemoved = function() {
15228 //console.log('Node removed:', this);
15229 }
15230 this.onPropertyChanged = function(name, value, prev_value) {
15231 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15232 }
15233 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15234 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15235 }
15236 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15237 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15238 }
15239 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15240 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15241 }
15242 this.bgcolor = '#111';
15243 this.color = '#222';
15244 this.shape = LiteGraph.ROUND_SHAPE;
15245 this.boxcolor = '#37A';
15246}

◆ mtlx_math_safepower_color4()

function mtlx_math_safepower_color4 ( )

mtlx_math_safepower_color4

Library: mtlx. Category: safepower. Type: color4 LiteGraph id: mtlx/math/safepower_color4

Definition at line 15017 of file mtlx_stdlib.js.

15017 {
15018 this.nodedef_icon = '';
15019 this.nodedef_name = 'ND_safepower_color4';
15020 this.nodedef_type = 'color4';
15021 this.nodedef_node = 'safepower';
15022 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15023 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color4_out_genglsl.png';
15024 this.nodedef_group = 'math';
15025 this.addInput('in1','color4');
15026 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15027 this.addInput('in2','color4');
15028 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15029 this.addOutput('out','color4');
15030 this.title = 'safepower_color4';
15031 this.desc = "MaterialX:mtlx/math/safepower_color4";
15032 this.onNodeCreated = function() {
15033 //console.log('Node created:', this);
15034}
15035 this.onRemoved = function() {
15036 //console.log('Node removed:', this);
15037 }
15038 this.onPropertyChanged = function(name, value, prev_value) {
15039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15040 }
15041 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15043 }
15044 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15046 }
15047 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15049 }
15050 this.bgcolor = '#111';
15051 this.color = '#222';
15052 this.shape = LiteGraph.ROUND_SHAPE;
15053 this.boxcolor = '#69A';
15054}

◆ mtlx_math_safepower_color4FA()

function mtlx_math_safepower_color4FA ( )

mtlx_math_safepower_color4FA

Library: mtlx. Category: safepower. Type: color4 LiteGraph id: mtlx/math/safepower_color4FA

Definition at line 15257 of file mtlx_stdlib.js.

15257 {
15258 this.nodedef_icon = '';
15259 this.nodedef_name = 'ND_safepower_color4FA';
15260 this.nodedef_type = 'color4';
15261 this.nodedef_node = 'safepower';
15262 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15263 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color4FA_out_genglsl.png';
15264 this.nodedef_group = 'math';
15265 this.addInput('in1','color4');
15266 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15267 this.addInput('in2','float');
15268 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15269 this.addOutput('out','color4');
15270 this.title = 'safepower_color4';
15271 this.desc = "MaterialX:mtlx/math/safepower_color4FA";
15272 this.onNodeCreated = function() {
15273 //console.log('Node created:', this);
15274}
15275 this.onRemoved = function() {
15276 //console.log('Node removed:', this);
15277 }
15278 this.onPropertyChanged = function(name, value, prev_value) {
15279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15280 }
15281 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15283 }
15284 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15286 }
15287 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15289 }
15290 this.bgcolor = '#111';
15291 this.color = '#222';
15292 this.shape = LiteGraph.ROUND_SHAPE;
15293 this.boxcolor = '#69A';
15294}

◆ mtlx_math_safepower_float()

function mtlx_math_safepower_float ( )

mtlx_math_safepower_float

Library: mtlx. Category: power. Type: float LiteGraph id: mtlx/math/safepower_float

Definition at line 14921 of file mtlx_stdlib.js.

14921 {
14922 this.nodedef_icon = '';
14923 this.nodedef_name = 'ND_safepower_float';
14924 this.nodedef_type = 'float';
14925 this.nodedef_node = 'safepower';
14926 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
14927 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_float_out_genglsl.png';
14928 this.nodedef_group = 'math';
14929 this.addInput('in1','float');
14930 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14931 this.addInput('in2','float');
14932 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
14933 this.addOutput('out','float');
14934 this.title = 'safepower_float';
14935 this.desc = "MaterialX:mtlx/math/safepower_float";
14936 this.onNodeCreated = function() {
14937 //console.log('Node created:', this);
14938}
14939 this.onRemoved = function() {
14940 //console.log('Node removed:', this);
14941 }
14942 this.onPropertyChanged = function(name, value, prev_value) {
14943 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
14944 }
14945 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
14946 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
14947 }
14948 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
14949 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
14950 }
14951 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
14952 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
14953 }
14954 this.bgcolor = '#111';
14955 this.color = '#222';
14956 this.shape = LiteGraph.ROUND_SHAPE;
14957 this.boxcolor = '#161';
14958}

◆ mtlx_math_safepower_vector2()

function mtlx_math_safepower_vector2 ( )

mtlx_math_safepower_vector2

Library: mtlx. Category: safepower. Type: vector2 LiteGraph id: mtlx/math/safepower_vector2

Definition at line 15065 of file mtlx_stdlib.js.

15065 {
15066 this.nodedef_icon = '';
15067 this.nodedef_name = 'ND_safepower_vector2';
15068 this.nodedef_type = 'vector2';
15069 this.nodedef_node = 'safepower';
15070 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15071 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector2_out_genglsl.png';
15072 this.nodedef_group = 'math';
15073 this.addInput('in1','vector2');
15074 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15075 this.addInput('in2','vector2');
15076 this.addProperty('in2', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15077 this.addOutput('out','vector2');
15078 this.title = 'safepower_vector2';
15079 this.desc = "MaterialX:mtlx/math/safepower_vector2";
15080 this.onNodeCreated = function() {
15081 //console.log('Node created:', this);
15082}
15083 this.onRemoved = function() {
15084 //console.log('Node removed:', this);
15085 }
15086 this.onPropertyChanged = function(name, value, prev_value) {
15087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15088 }
15089 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15091 }
15092 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15094 }
15095 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15097 }
15098 this.bgcolor = '#111';
15099 this.color = '#222';
15100 this.shape = LiteGraph.ROUND_SHAPE;
15101 this.boxcolor = '#265';
15102}

◆ mtlx_math_safepower_vector2FA()

function mtlx_math_safepower_vector2FA ( )

mtlx_math_safepower_vector2FA

Library: mtlx. Category: safepower. Type: vector2 LiteGraph id: mtlx/math/safepower_vector2FA

Definition at line 15305 of file mtlx_stdlib.js.

15305 {
15306 this.nodedef_icon = '';
15307 this.nodedef_name = 'ND_safepower_vector2FA';
15308 this.nodedef_type = 'vector2';
15309 this.nodedef_node = 'safepower';
15310 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15311 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector2FA_out_genglsl.png';
15312 this.nodedef_group = 'math';
15313 this.addInput('in1','vector2');
15314 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15315 this.addInput('in2','float');
15316 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15317 this.addOutput('out','vector2');
15318 this.title = 'safepower_vector2';
15319 this.desc = "MaterialX:mtlx/math/safepower_vector2FA";
15320 this.onNodeCreated = function() {
15321 //console.log('Node created:', this);
15322}
15323 this.onRemoved = function() {
15324 //console.log('Node removed:', this);
15325 }
15326 this.onPropertyChanged = function(name, value, prev_value) {
15327 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15328 }
15329 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15330 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15331 }
15332 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15333 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15334 }
15335 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15336 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15337 }
15338 this.bgcolor = '#111';
15339 this.color = '#222';
15340 this.shape = LiteGraph.ROUND_SHAPE;
15341 this.boxcolor = '#265';
15342}

◆ mtlx_math_safepower_vector3()

function mtlx_math_safepower_vector3 ( )

mtlx_math_safepower_vector3

Library: mtlx. Category: safepower. Type: vector3 LiteGraph id: mtlx/math/safepower_vector3

Definition at line 15113 of file mtlx_stdlib.js.

15113 {
15114 this.nodedef_icon = '';
15115 this.nodedef_name = 'ND_safepower_vector3';
15116 this.nodedef_type = 'vector3';
15117 this.nodedef_node = 'safepower';
15118 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15119 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector3_out_genglsl.png';
15120 this.nodedef_group = 'math';
15121 this.addInput('in1','vector3');
15122 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15123 this.addInput('in2','vector3');
15124 this.addProperty('in2', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15125 this.addOutput('out','vector3');
15126 this.title = 'safepower_vector3';
15127 this.desc = "MaterialX:mtlx/math/safepower_vector3";
15128 this.onNodeCreated = function() {
15129 //console.log('Node created:', this);
15130}
15131 this.onRemoved = function() {
15132 //console.log('Node removed:', this);
15133 }
15134 this.onPropertyChanged = function(name, value, prev_value) {
15135 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15136 }
15137 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15138 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15139 }
15140 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15141 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15142 }
15143 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15144 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15145 }
15146 this.bgcolor = '#111';
15147 this.color = '#222';
15148 this.shape = LiteGraph.ROUND_SHAPE;
15149 this.boxcolor = '#465';
15150}

◆ mtlx_math_safepower_vector3FA()

function mtlx_math_safepower_vector3FA ( )

mtlx_math_safepower_vector3FA

Library: mtlx. Category: safepower. Type: vector3 LiteGraph id: mtlx/math/safepower_vector3FA

Definition at line 15353 of file mtlx_stdlib.js.

15353 {
15354 this.nodedef_icon = '';
15355 this.nodedef_name = 'ND_safepower_vector3FA';
15356 this.nodedef_type = 'vector3';
15357 this.nodedef_node = 'safepower';
15358 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15359 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector3FA_out_genglsl.png';
15360 this.nodedef_group = 'math';
15361 this.addInput('in1','vector3');
15362 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15363 this.addInput('in2','float');
15364 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15365 this.addOutput('out','vector3');
15366 this.title = 'safepower_vector3';
15367 this.desc = "MaterialX:mtlx/math/safepower_vector3FA";
15368 this.onNodeCreated = function() {
15369 //console.log('Node created:', this);
15370}
15371 this.onRemoved = function() {
15372 //console.log('Node removed:', this);
15373 }
15374 this.onPropertyChanged = function(name, value, prev_value) {
15375 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15376 }
15377 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15378 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15379 }
15380 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15381 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15382 }
15383 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15384 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15385 }
15386 this.bgcolor = '#111';
15387 this.color = '#222';
15388 this.shape = LiteGraph.ROUND_SHAPE;
15389 this.boxcolor = '#465';
15390}

◆ mtlx_math_safepower_vector4()

function mtlx_math_safepower_vector4 ( )

mtlx_math_safepower_vector4

Library: mtlx. Category: safepower. Type: vector4 LiteGraph id: mtlx/math/safepower_vector4

Definition at line 15161 of file mtlx_stdlib.js.

15161 {
15162 this.nodedef_icon = '';
15163 this.nodedef_name = 'ND_safepower_vector4';
15164 this.nodedef_type = 'vector4';
15165 this.nodedef_node = 'safepower';
15166 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15167 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector4_out_genglsl.png';
15168 this.nodedef_group = 'math';
15169 this.addInput('in1','vector4');
15170 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15171 this.addInput('in2','vector4');
15172 this.addProperty('in2', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15173 this.addOutput('out','vector4');
15174 this.title = 'safepower_vector4';
15175 this.desc = "MaterialX:mtlx/math/safepower_vector4";
15176 this.onNodeCreated = function() {
15177 //console.log('Node created:', this);
15178}
15179 this.onRemoved = function() {
15180 //console.log('Node removed:', this);
15181 }
15182 this.onPropertyChanged = function(name, value, prev_value) {
15183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15184 }
15185 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15187 }
15188 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15190 }
15191 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15193 }
15194 this.bgcolor = '#111';
15195 this.color = '#222';
15196 this.shape = LiteGraph.ROUND_SHAPE;
15197 this.boxcolor = '#275';
15198}

◆ mtlx_math_safepower_vector4FA()

function mtlx_math_safepower_vector4FA ( )

mtlx_math_safepower_vector4FA

Library: mtlx. Category: safepower. Type: vector4 LiteGraph id: mtlx/math/safepower_vector4FA

Definition at line 15401 of file mtlx_stdlib.js.

15401 {
15402 this.nodedef_icon = '';
15403 this.nodedef_name = 'ND_safepower_vector4FA';
15404 this.nodedef_type = 'vector4';
15405 this.nodedef_node = 'safepower';
15406 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15407 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector4FA_out_genglsl.png';
15408 this.nodedef_group = 'math';
15409 this.addInput('in1','vector4');
15410 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15411 this.addInput('in2','float');
15412 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15413 this.addOutput('out','vector4');
15414 this.title = 'safepower_vector4';
15415 this.desc = "MaterialX:mtlx/math/safepower_vector4FA";
15416 this.onNodeCreated = function() {
15417 //console.log('Node created:', this);
15418}
15419 this.onRemoved = function() {
15420 //console.log('Node removed:', this);
15421 }
15422 this.onPropertyChanged = function(name, value, prev_value) {
15423 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15424 }
15425 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15426 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15427 }
15428 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15429 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15430 }
15431 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15432 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15433 }
15434 this.bgcolor = '#111';
15435 this.color = '#222';
15436 this.shape = LiteGraph.ROUND_SHAPE;
15437 this.boxcolor = '#275';
15438}

◆ mtlx_math_sign_color3()

function mtlx_math_sign_color3 ( )

mtlx_math_sign_color3

Library: mtlx. Category: sign. Type: color3 LiteGraph id: mtlx/math/sign_color3

Definition at line 17159 of file mtlx_stdlib.js.

17159 {
17160 this.nodedef_icon = '';
17161 this.nodedef_name = 'ND_sign_color3';
17162 this.nodedef_type = 'color3';
17163 this.nodedef_node = 'sign';
17164 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17165 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_color3_out_genglsl.png';
17166 this.nodedef_group = 'math';
17167 this.addInput('in','color3');
17168 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17169 this.addOutput('out','color3');
17170 this.title = 'sign_color3';
17171 this.desc = "MaterialX:mtlx/math/sign_color3";
17172 this.onNodeCreated = function() {
17173 //console.log('Node created:', this);
17174}
17175 this.onRemoved = function() {
17176 //console.log('Node removed:', this);
17177 }
17178 this.onPropertyChanged = function(name, value, prev_value) {
17179 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17180 }
17181 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17182 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17183 }
17184 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17185 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17186 }
17187 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17188 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17189 }
17190 this.bgcolor = '#111';
17191 this.color = '#222';
17192 this.shape = LiteGraph.ROUND_SHAPE;
17193 this.boxcolor = '#37A';
17194}

◆ mtlx_math_sign_color4()

function mtlx_math_sign_color4 ( )

mtlx_math_sign_color4

Library: mtlx. Category: sign. Type: color4 LiteGraph id: mtlx/math/sign_color4

Definition at line 17205 of file mtlx_stdlib.js.

17205 {
17206 this.nodedef_icon = '';
17207 this.nodedef_name = 'ND_sign_color4';
17208 this.nodedef_type = 'color4';
17209 this.nodedef_node = 'sign';
17210 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17211 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_color4_out_genglsl.png';
17212 this.nodedef_group = 'math';
17213 this.addInput('in','color4');
17214 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17215 this.addOutput('out','color4');
17216 this.title = 'sign_color4';
17217 this.desc = "MaterialX:mtlx/math/sign_color4";
17218 this.onNodeCreated = function() {
17219 //console.log('Node created:', this);
17220}
17221 this.onRemoved = function() {
17222 //console.log('Node removed:', this);
17223 }
17224 this.onPropertyChanged = function(name, value, prev_value) {
17225 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17226 }
17227 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17228 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17229 }
17230 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17231 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17232 }
17233 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17234 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17235 }
17236 this.bgcolor = '#111';
17237 this.color = '#222';
17238 this.shape = LiteGraph.ROUND_SHAPE;
17239 this.boxcolor = '#69A';
17240}

◆ mtlx_math_sign_float()

function mtlx_math_sign_float ( )

mtlx_math_sign_float

Library: mtlx. Category: exp. Type: float LiteGraph id: mtlx/math/sign_float

Definition at line 17113 of file mtlx_stdlib.js.

17113 {
17114 this.nodedef_icon = '';
17115 this.nodedef_name = 'ND_sign_float';
17116 this.nodedef_type = 'float';
17117 this.nodedef_node = 'sign';
17118 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17119 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_float_out_genglsl.png';
17120 this.nodedef_group = 'math';
17121 this.addInput('in','float');
17122 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17123 this.addOutput('out','float');
17124 this.title = 'sign_float';
17125 this.desc = "MaterialX:mtlx/math/sign_float";
17126 this.onNodeCreated = function() {
17127 //console.log('Node created:', this);
17128}
17129 this.onRemoved = function() {
17130 //console.log('Node removed:', this);
17131 }
17132 this.onPropertyChanged = function(name, value, prev_value) {
17133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17134 }
17135 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17137 }
17138 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17140 }
17141 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17143 }
17144 this.bgcolor = '#111';
17145 this.color = '#222';
17146 this.shape = LiteGraph.ROUND_SHAPE;
17147 this.boxcolor = '#161';
17148}

◆ mtlx_math_sign_vector2()

function mtlx_math_sign_vector2 ( )

mtlx_math_sign_vector2

Library: mtlx. Category: sign. Type: vector2 LiteGraph id: mtlx/math/sign_vector2

Definition at line 17251 of file mtlx_stdlib.js.

17251 {
17252 this.nodedef_icon = '';
17253 this.nodedef_name = 'ND_sign_vector2';
17254 this.nodedef_type = 'vector2';
17255 this.nodedef_node = 'sign';
17256 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17257 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector2_out_genglsl.png';
17258 this.nodedef_group = 'math';
17259 this.addInput('in','vector2');
17260 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17261 this.addOutput('out','vector2');
17262 this.title = 'sign_vector2';
17263 this.desc = "MaterialX:mtlx/math/sign_vector2";
17264 this.onNodeCreated = function() {
17265 //console.log('Node created:', this);
17266}
17267 this.onRemoved = function() {
17268 //console.log('Node removed:', this);
17269 }
17270 this.onPropertyChanged = function(name, value, prev_value) {
17271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17272 }
17273 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17275 }
17276 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17278 }
17279 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17281 }
17282 this.bgcolor = '#111';
17283 this.color = '#222';
17284 this.shape = LiteGraph.ROUND_SHAPE;
17285 this.boxcolor = '#265';
17286}

◆ mtlx_math_sign_vector3()

function mtlx_math_sign_vector3 ( )

mtlx_math_sign_vector3

Library: mtlx. Category: sign. Type: vector3 LiteGraph id: mtlx/math/sign_vector3

Definition at line 17297 of file mtlx_stdlib.js.

17297 {
17298 this.nodedef_icon = '';
17299 this.nodedef_name = 'ND_sign_vector3';
17300 this.nodedef_type = 'vector3';
17301 this.nodedef_node = 'sign';
17302 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17303 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector3_out_genglsl.png';
17304 this.nodedef_group = 'math';
17305 this.addInput('in','vector3');
17306 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17307 this.addOutput('out','vector3');
17308 this.title = 'sign_vector3';
17309 this.desc = "MaterialX:mtlx/math/sign_vector3";
17310 this.onNodeCreated = function() {
17311 //console.log('Node created:', this);
17312}
17313 this.onRemoved = function() {
17314 //console.log('Node removed:', this);
17315 }
17316 this.onPropertyChanged = function(name, value, prev_value) {
17317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17318 }
17319 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17321 }
17322 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17324 }
17325 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17327 }
17328 this.bgcolor = '#111';
17329 this.color = '#222';
17330 this.shape = LiteGraph.ROUND_SHAPE;
17331 this.boxcolor = '#465';
17332}

◆ mtlx_math_sign_vector4()

function mtlx_math_sign_vector4 ( )

mtlx_math_sign_vector4

Library: mtlx. Category: sign. Type: vector4 LiteGraph id: mtlx/math/sign_vector4

Definition at line 17343 of file mtlx_stdlib.js.

17343 {
17344 this.nodedef_icon = '';
17345 this.nodedef_name = 'ND_sign_vector4';
17346 this.nodedef_type = 'vector4';
17347 this.nodedef_node = 'sign';
17348 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17349 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector4_out_genglsl.png';
17350 this.nodedef_group = 'math';
17351 this.addInput('in','vector4');
17352 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
17353 this.addOutput('out','vector4');
17354 this.title = 'sign_vector4';
17355 this.desc = "MaterialX:mtlx/math/sign_vector4";
17356 this.onNodeCreated = function() {
17357 //console.log('Node created:', this);
17358}
17359 this.onRemoved = function() {
17360 //console.log('Node removed:', this);
17361 }
17362 this.onPropertyChanged = function(name, value, prev_value) {
17363 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
17364 }
17365 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
17366 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
17367 }
17368 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17369 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17370 }
17371 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17372 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17373 }
17374 this.bgcolor = '#111';
17375 this.color = '#222';
17376 this.shape = LiteGraph.ROUND_SHAPE;
17377 this.boxcolor = '#275';
17378}

◆ mtlx_math_sin_float()

function mtlx_math_sin_float ( )

mtlx_math_sin_float

Library: mtlx. Category: safepower. Type: float LiteGraph id: mtlx/math/sin_float

Definition at line 15449 of file mtlx_stdlib.js.

15449 {
15450 this.nodedef_icon = '';
15451 this.nodedef_name = 'ND_sin_float';
15452 this.nodedef_type = 'float';
15453 this.nodedef_node = 'sin';
15454 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15455 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_float_out_genglsl.png';
15456 this.nodedef_group = 'math';
15457 this.addInput('in','float');
15458 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15459 this.addOutput('out','float');
15460 this.title = 'sin_float';
15461 this.desc = "MaterialX:mtlx/math/sin_float";
15462 this.onNodeCreated = function() {
15463 //console.log('Node created:', this);
15464}
15465 this.onRemoved = function() {
15466 //console.log('Node removed:', this);
15467 }
15468 this.onPropertyChanged = function(name, value, prev_value) {
15469 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15470 }
15471 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15472 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15473 }
15474 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15475 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15476 }
15477 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15478 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15479 }
15480 this.bgcolor = '#111';
15481 this.color = '#222';
15482 this.shape = LiteGraph.ROUND_SHAPE;
15483 this.boxcolor = '#161';
15484}

◆ mtlx_math_sin_vector2()

function mtlx_math_sin_vector2 ( )

mtlx_math_sin_vector2

Library: mtlx. Category: atan2. Type: vector2 LiteGraph id: mtlx/math/sin_vector2

Definition at line 15727 of file mtlx_stdlib.js.

15727 {
15728 this.nodedef_icon = '';
15729 this.nodedef_name = 'ND_sin_vector2';
15730 this.nodedef_type = 'vector2';
15731 this.nodedef_node = 'sin';
15732 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15733 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector2_out_genglsl.png';
15734 this.nodedef_group = 'math';
15735 this.addInput('in','vector2');
15736 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15737 this.addOutput('out','vector2');
15738 this.title = 'sin_vector2';
15739 this.desc = "MaterialX:mtlx/math/sin_vector2";
15740 this.onNodeCreated = function() {
15741 //console.log('Node created:', this);
15742}
15743 this.onRemoved = function() {
15744 //console.log('Node removed:', this);
15745 }
15746 this.onPropertyChanged = function(name, value, prev_value) {
15747 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15748 }
15749 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15750 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15751 }
15752 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15753 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15754 }
15755 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15756 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15757 }
15758 this.bgcolor = '#111';
15759 this.color = '#222';
15760 this.shape = LiteGraph.ROUND_SHAPE;
15761 this.boxcolor = '#265';
15762}

◆ mtlx_math_sin_vector3()

function mtlx_math_sin_vector3 ( )

mtlx_math_sin_vector3

Library: mtlx. Category: atan2. Type: vector3 LiteGraph id: mtlx/math/sin_vector3

Definition at line 16005 of file mtlx_stdlib.js.

16005 {
16006 this.nodedef_icon = '';
16007 this.nodedef_name = 'ND_sin_vector3';
16008 this.nodedef_type = 'vector3';
16009 this.nodedef_node = 'sin';
16010 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16011 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector3_out_genglsl.png';
16012 this.nodedef_group = 'math';
16013 this.addInput('in','vector3');
16014 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16015 this.addOutput('out','vector3');
16016 this.title = 'sin_vector3';
16017 this.desc = "MaterialX:mtlx/math/sin_vector3";
16018 this.onNodeCreated = function() {
16019 //console.log('Node created:', this);
16020}
16021 this.onRemoved = function() {
16022 //console.log('Node removed:', this);
16023 }
16024 this.onPropertyChanged = function(name, value, prev_value) {
16025 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16026 }
16027 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16028 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16029 }
16030 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16031 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16032 }
16033 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16034 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16035 }
16036 this.bgcolor = '#111';
16037 this.color = '#222';
16038 this.shape = LiteGraph.ROUND_SHAPE;
16039 this.boxcolor = '#465';
16040}

◆ mtlx_math_sin_vector4()

function mtlx_math_sin_vector4 ( )

mtlx_math_sin_vector4

Library: mtlx. Category: atan2. Type: vector4 LiteGraph id: mtlx/math/sin_vector4

Definition at line 16283 of file mtlx_stdlib.js.

16283 {
16284 this.nodedef_icon = '';
16285 this.nodedef_name = 'ND_sin_vector4';
16286 this.nodedef_type = 'vector4';
16287 this.nodedef_node = 'sin';
16288 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16289 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector4_out_genglsl.png';
16290 this.nodedef_group = 'math';
16291 this.addInput('in','vector4');
16292 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16293 this.addOutput('out','vector4');
16294 this.title = 'sin_vector4';
16295 this.desc = "MaterialX:mtlx/math/sin_vector4";
16296 this.onNodeCreated = function() {
16297 //console.log('Node created:', this);
16298}
16299 this.onRemoved = function() {
16300 //console.log('Node removed:', this);
16301 }
16302 this.onPropertyChanged = function(name, value, prev_value) {
16303 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16304 }
16305 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16306 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16307 }
16308 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16309 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16310 }
16311 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16312 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16313 }
16314 this.bgcolor = '#111';
16315 this.color = '#222';
16316 this.shape = LiteGraph.ROUND_SHAPE;
16317 this.boxcolor = '#275';
16318}

◆ mtlx_math_sqrt_float()

function mtlx_math_sqrt_float ( )

mtlx_math_sqrt_float

Library: mtlx. Category: atan2. Type: float LiteGraph id: mtlx/math/sqrt_float

Definition at line 16561 of file mtlx_stdlib.js.

16561 {
16562 this.nodedef_icon = '';
16563 this.nodedef_name = 'ND_sqrt_float';
16564 this.nodedef_type = 'float';
16565 this.nodedef_node = 'sqrt';
16566 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16567 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_float_out_genglsl.png';
16568 this.nodedef_group = 'math';
16569 this.addInput('in','float');
16570 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16571 this.addOutput('out','float');
16572 this.title = 'sqrt_float';
16573 this.desc = "MaterialX:mtlx/math/sqrt_float";
16574 this.onNodeCreated = function() {
16575 //console.log('Node created:', this);
16576}
16577 this.onRemoved = function() {
16578 //console.log('Node removed:', this);
16579 }
16580 this.onPropertyChanged = function(name, value, prev_value) {
16581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16582 }
16583 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16585 }
16586 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16588 }
16589 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16591 }
16592 this.bgcolor = '#111';
16593 this.color = '#222';
16594 this.shape = LiteGraph.ROUND_SHAPE;
16595 this.boxcolor = '#161';
16596}

◆ mtlx_math_sqrt_vector2()

function mtlx_math_sqrt_vector2 ( )

mtlx_math_sqrt_vector2

Library: mtlx. Category: exp. Type: vector2 LiteGraph id: mtlx/math/sqrt_vector2

Definition at line 16699 of file mtlx_stdlib.js.

16699 {
16700 this.nodedef_icon = '';
16701 this.nodedef_name = 'ND_sqrt_vector2';
16702 this.nodedef_type = 'vector2';
16703 this.nodedef_node = 'sqrt';
16704 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16705 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector2_out_genglsl.png';
16706 this.nodedef_group = 'math';
16707 this.addInput('in','vector2');
16708 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16709 this.addOutput('out','vector2');
16710 this.title = 'sqrt_vector2';
16711 this.desc = "MaterialX:mtlx/math/sqrt_vector2";
16712 this.onNodeCreated = function() {
16713 //console.log('Node created:', this);
16714}
16715 this.onRemoved = function() {
16716 //console.log('Node removed:', this);
16717 }
16718 this.onPropertyChanged = function(name, value, prev_value) {
16719 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16720 }
16721 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16722 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16723 }
16724 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16725 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16726 }
16727 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16728 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16729 }
16730 this.bgcolor = '#111';
16731 this.color = '#222';
16732 this.shape = LiteGraph.ROUND_SHAPE;
16733 this.boxcolor = '#265';
16734}

◆ mtlx_math_sqrt_vector3()

function mtlx_math_sqrt_vector3 ( )

mtlx_math_sqrt_vector3

Library: mtlx. Category: exp. Type: vector3 LiteGraph id: mtlx/math/sqrt_vector3

Definition at line 16837 of file mtlx_stdlib.js.

16837 {
16838 this.nodedef_icon = '';
16839 this.nodedef_name = 'ND_sqrt_vector3';
16840 this.nodedef_type = 'vector3';
16841 this.nodedef_node = 'sqrt';
16842 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16843 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector3_out_genglsl.png';
16844 this.nodedef_group = 'math';
16845 this.addInput('in','vector3');
16846 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16847 this.addOutput('out','vector3');
16848 this.title = 'sqrt_vector3';
16849 this.desc = "MaterialX:mtlx/math/sqrt_vector3";
16850 this.onNodeCreated = function() {
16851 //console.log('Node created:', this);
16852}
16853 this.onRemoved = function() {
16854 //console.log('Node removed:', this);
16855 }
16856 this.onPropertyChanged = function(name, value, prev_value) {
16857 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16858 }
16859 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16860 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16861 }
16862 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16863 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16864 }
16865 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16866 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16867 }
16868 this.bgcolor = '#111';
16869 this.color = '#222';
16870 this.shape = LiteGraph.ROUND_SHAPE;
16871 this.boxcolor = '#465';
16872}

◆ mtlx_math_sqrt_vector4()

function mtlx_math_sqrt_vector4 ( )

mtlx_math_sqrt_vector4

Library: mtlx. Category: exp. Type: vector4 LiteGraph id: mtlx/math/sqrt_vector4

Definition at line 16975 of file mtlx_stdlib.js.

16975 {
16976 this.nodedef_icon = '';
16977 this.nodedef_name = 'ND_sqrt_vector4';
16978 this.nodedef_type = 'vector4';
16979 this.nodedef_node = 'sqrt';
16980 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16981 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector4_out_genglsl.png';
16982 this.nodedef_group = 'math';
16983 this.addInput('in','vector4');
16984 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16985 this.addOutput('out','vector4');
16986 this.title = 'sqrt_vector4';
16987 this.desc = "MaterialX:mtlx/math/sqrt_vector4";
16988 this.onNodeCreated = function() {
16989 //console.log('Node created:', this);
16990}
16991 this.onRemoved = function() {
16992 //console.log('Node removed:', this);
16993 }
16994 this.onPropertyChanged = function(name, value, prev_value) {
16995 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16996 }
16997 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16998 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16999 }
17000 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
17001 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
17002 }
17003 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
17004 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
17005 }
17006 this.bgcolor = '#111';
17007 this.color = '#222';
17008 this.shape = LiteGraph.ROUND_SHAPE;
17009 this.boxcolor = '#275';
17010}

◆ mtlx_math_subtract_color3()

function mtlx_math_subtract_color3 ( )

mtlx_math_subtract_color3

Library: mtlx. Category: subtract. Type: color3 LiteGraph id: mtlx/math/subtract_color3

Definition at line 10175 of file mtlx_stdlib.js.

10175 {
10176 this.nodedef_icon = '';
10177 this.nodedef_name = 'ND_subtract_color3';
10178 this.nodedef_type = 'color3';
10179 this.nodedef_node = 'subtract';
10180 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10181 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color3_out_genglsl.png';
10182 this.nodedef_group = 'math';
10183 this.addInput('in1','color3');
10184 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10185 this.addInput('in2','color3');
10186 this.addProperty('in2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10187 this.addOutput('out','color3');
10188 this.title = 'subtract_color3';
10189 this.desc = "MaterialX:mtlx/math/subtract_color3";
10190 this.onNodeCreated = function() {
10191 //console.log('Node created:', this);
10192}
10193 this.onRemoved = function() {
10194 //console.log('Node removed:', this);
10195 }
10196 this.onPropertyChanged = function(name, value, prev_value) {
10197 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10198 }
10199 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10200 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10201 }
10202 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10203 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10204 }
10205 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10206 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10207 }
10208 this.bgcolor = '#111';
10209 this.color = '#222';
10210 this.shape = LiteGraph.ROUND_SHAPE;
10211 this.boxcolor = '#37A';
10212}

◆ mtlx_math_subtract_color3FA()

function mtlx_math_subtract_color3FA ( )

mtlx_math_subtract_color3FA

Library: mtlx. Category: subtract. Type: color3 LiteGraph id: mtlx/math/subtract_color3FA

Definition at line 10511 of file mtlx_stdlib.js.

10511 {
10512 this.nodedef_icon = '';
10513 this.nodedef_name = 'ND_subtract_color3FA';
10514 this.nodedef_type = 'color3';
10515 this.nodedef_node = 'subtract';
10516 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10517 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color3FA_out_genglsl.png';
10518 this.nodedef_group = 'math';
10519 this.addInput('in1','color3');
10520 this.addProperty('in1', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10521 this.addInput('in2','float');
10522 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10523 this.addOutput('out','color3');
10524 this.title = 'subtract_color3';
10525 this.desc = "MaterialX:mtlx/math/subtract_color3FA";
10526 this.onNodeCreated = function() {
10527 //console.log('Node created:', this);
10528}
10529 this.onRemoved = function() {
10530 //console.log('Node removed:', this);
10531 }
10532 this.onPropertyChanged = function(name, value, prev_value) {
10533 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10534 }
10535 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10536 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10537 }
10538 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10539 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10540 }
10541 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10542 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10543 }
10544 this.bgcolor = '#111';
10545 this.color = '#222';
10546 this.shape = LiteGraph.ROUND_SHAPE;
10547 this.boxcolor = '#37A';
10548}

◆ mtlx_math_subtract_color4()

function mtlx_math_subtract_color4 ( )

mtlx_math_subtract_color4

Library: mtlx. Category: subtract. Type: color4 LiteGraph id: mtlx/math/subtract_color4

Definition at line 10223 of file mtlx_stdlib.js.

10223 {
10224 this.nodedef_icon = '';
10225 this.nodedef_name = 'ND_subtract_color4';
10226 this.nodedef_type = 'color4';
10227 this.nodedef_node = 'subtract';
10228 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10229 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color4_out_genglsl.png';
10230 this.nodedef_group = 'math';
10231 this.addInput('in1','color4');
10232 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10233 this.addInput('in2','color4');
10234 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10235 this.addOutput('out','color4');
10236 this.title = 'subtract_color4';
10237 this.desc = "MaterialX:mtlx/math/subtract_color4";
10238 this.onNodeCreated = function() {
10239 //console.log('Node created:', this);
10240}
10241 this.onRemoved = function() {
10242 //console.log('Node removed:', this);
10243 }
10244 this.onPropertyChanged = function(name, value, prev_value) {
10245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10246 }
10247 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10249 }
10250 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10252 }
10253 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10255 }
10256 this.bgcolor = '#111';
10257 this.color = '#222';
10258 this.shape = LiteGraph.ROUND_SHAPE;
10259 this.boxcolor = '#69A';
10260}

◆ mtlx_math_subtract_color4FA()

function mtlx_math_subtract_color4FA ( )

mtlx_math_subtract_color4FA

Library: mtlx. Category: subtract. Type: color4 LiteGraph id: mtlx/math/subtract_color4FA

Definition at line 10559 of file mtlx_stdlib.js.

10559 {
10560 this.nodedef_icon = '';
10561 this.nodedef_name = 'ND_subtract_color4FA';
10562 this.nodedef_type = 'color4';
10563 this.nodedef_node = 'subtract';
10564 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10565 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color4FA_out_genglsl.png';
10566 this.nodedef_group = 'math';
10567 this.addInput('in1','color4');
10568 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10569 this.addInput('in2','float');
10570 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10571 this.addOutput('out','color4');
10572 this.title = 'subtract_color4';
10573 this.desc = "MaterialX:mtlx/math/subtract_color4FA";
10574 this.onNodeCreated = function() {
10575 //console.log('Node created:', this);
10576}
10577 this.onRemoved = function() {
10578 //console.log('Node removed:', this);
10579 }
10580 this.onPropertyChanged = function(name, value, prev_value) {
10581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10582 }
10583 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10585 }
10586 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10588 }
10589 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10591 }
10592 this.bgcolor = '#111';
10593 this.color = '#222';
10594 this.shape = LiteGraph.ROUND_SHAPE;
10595 this.boxcolor = '#69A';
10596}

◆ mtlx_math_subtract_float()

function mtlx_math_subtract_float ( )

mtlx_math_subtract_float

Library: mtlx. Category: add. Type: float LiteGraph id: mtlx/math/subtract_float

Definition at line 10079 of file mtlx_stdlib.js.

10079 {
10080 this.nodedef_icon = '';
10081 this.nodedef_name = 'ND_subtract_float';
10082 this.nodedef_type = 'float';
10083 this.nodedef_node = 'subtract';
10084 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10085 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_float_out_genglsl.png';
10086 this.nodedef_group = 'math';
10087 this.addInput('in1','float');
10088 this.addProperty('in1', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10089 this.addInput('in2','float');
10090 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10091 this.addOutput('out','float');
10092 this.title = 'subtract_float';
10093 this.desc = "MaterialX:mtlx/math/subtract_float";
10094 this.onNodeCreated = function() {
10095 //console.log('Node created:', this);
10096}
10097 this.onRemoved = function() {
10098 //console.log('Node removed:', this);
10099 }
10100 this.onPropertyChanged = function(name, value, prev_value) {
10101 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10102 }
10103 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10104 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10105 }
10106 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10107 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10108 }
10109 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10110 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10111 }
10112 this.bgcolor = '#111';
10113 this.color = '#222';
10114 this.shape = LiteGraph.ROUND_SHAPE;
10115 this.boxcolor = '#161';
10116}

◆ mtlx_math_subtract_integer()

function mtlx_math_subtract_integer ( )

mtlx_math_subtract_integer

Library: mtlx. Category: subtract. Type: integer LiteGraph id: mtlx/math/subtract_integer

Definition at line 10127 of file mtlx_stdlib.js.

10127 {
10128 this.nodedef_icon = '';
10129 this.nodedef_name = 'ND_subtract_integer';
10130 this.nodedef_type = 'integer';
10131 this.nodedef_node = 'subtract';
10132 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10133 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_integer_out_genglsl.png';
10134 this.nodedef_group = 'math';
10135 this.addInput('in1','integer');
10136 this.addProperty('in1', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10137 this.addInput('in2','integer');
10138 this.addProperty('in2', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10139 this.addOutput('out','integer');
10140 this.title = 'subtract_integer';
10141 this.desc = "MaterialX:mtlx/math/subtract_integer";
10142 this.onNodeCreated = function() {
10143 //console.log('Node created:', this);
10144}
10145 this.onRemoved = function() {
10146 //console.log('Node removed:', this);
10147 }
10148 this.onPropertyChanged = function(name, value, prev_value) {
10149 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10150 }
10151 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10152 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10153 }
10154 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10155 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10156 }
10157 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10158 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10159 }
10160 this.bgcolor = '#111';
10161 this.color = '#222';
10162 this.shape = LiteGraph.ROUND_SHAPE;
10163 this.boxcolor = '#A32';
10164}

◆ mtlx_math_subtract_matrix33()

function mtlx_math_subtract_matrix33 ( )

mtlx_math_subtract_matrix33

Library: mtlx. Category: subtract. Type: matrix33 LiteGraph id: mtlx/math/subtract_matrix33

Definition at line 10415 of file mtlx_stdlib.js.

10415 {
10416 this.nodedef_icon = '';
10417 this.nodedef_name = 'ND_subtract_matrix33';
10418 this.nodedef_type = 'matrix33';
10419 this.nodedef_node = 'subtract';
10420 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10421 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix33_out_genglsl.png';
10422 this.nodedef_group = 'math';
10423 this.addInput('in1','matrix33');
10424 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":"","defaultgeomprop":""});
10425 this.addInput('in2','matrix33');
10426 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":"","defaultgeomprop":""});
10427 this.addOutput('out','matrix33');
10428 this.title = 'subtract_matrix33';
10429 this.desc = "MaterialX:mtlx/math/subtract_matrix33";
10430 this.onNodeCreated = function() {
10431 //console.log('Node created:', this);
10432}
10433 this.onRemoved = function() {
10434 //console.log('Node removed:', this);
10435 }
10436 this.onPropertyChanged = function(name, value, prev_value) {
10437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10438 }
10439 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10441 }
10442 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10444 }
10445 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10447 }
10448 this.bgcolor = '#111';
10449 this.color = '#222';
10450 this.shape = LiteGraph.ROUND_SHAPE;
10451 this.boxcolor = '#333';
10452}

◆ mtlx_math_subtract_matrix33FA()

function mtlx_math_subtract_matrix33FA ( )

mtlx_math_subtract_matrix33FA

Library: mtlx. Category: subtract. Type: matrix33 LiteGraph id: mtlx/math/subtract_matrix33FA

Definition at line 10751 of file mtlx_stdlib.js.

10751 {
10752 this.nodedef_icon = '';
10753 this.nodedef_name = 'ND_subtract_matrix33FA';
10754 this.nodedef_type = 'matrix33';
10755 this.nodedef_node = 'subtract';
10756 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10757 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix33FA_out_genglsl.png';
10758 this.nodedef_group = 'math';
10759 this.addInput('in1','matrix33');
10760 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":"","defaultgeomprop":""});
10761 this.addInput('in2','float');
10762 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10763 this.addOutput('out','matrix33');
10764 this.title = 'subtract_matrix33';
10765 this.desc = "MaterialX:mtlx/math/subtract_matrix33FA";
10766 this.onNodeCreated = function() {
10767 //console.log('Node created:', this);
10768}
10769 this.onRemoved = function() {
10770 //console.log('Node removed:', this);
10771 }
10772 this.onPropertyChanged = function(name, value, prev_value) {
10773 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10774 }
10775 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10776 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10777 }
10778 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10779 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10780 }
10781 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10782 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10783 }
10784 this.bgcolor = '#111';
10785 this.color = '#222';
10786 this.shape = LiteGraph.ROUND_SHAPE;
10787 this.boxcolor = '#333';
10788}

◆ mtlx_math_subtract_matrix44()

function mtlx_math_subtract_matrix44 ( )

mtlx_math_subtract_matrix44

Library: mtlx. Category: subtract. Type: matrix44 LiteGraph id: mtlx/math/subtract_matrix44

Definition at line 10463 of file mtlx_stdlib.js.

10463 {
10464 this.nodedef_icon = '';
10465 this.nodedef_name = 'ND_subtract_matrix44';
10466 this.nodedef_type = 'matrix44';
10467 this.nodedef_node = 'subtract';
10468 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10469 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix44_out_genglsl.png';
10470 this.nodedef_group = 'math';
10471 this.addInput('in1','matrix44');
10472 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":"","defaultgeomprop":""});
10473 this.addInput('in2','matrix44');
10474 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":"","defaultgeomprop":""});
10475 this.addOutput('out','matrix44');
10476 this.title = 'subtract_matrix44';
10477 this.desc = "MaterialX:mtlx/math/subtract_matrix44";
10478 this.onNodeCreated = function() {
10479 //console.log('Node created:', this);
10480}
10481 this.onRemoved = function() {
10482 //console.log('Node removed:', this);
10483 }
10484 this.onPropertyChanged = function(name, value, prev_value) {
10485 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10486 }
10487 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10488 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10489 }
10490 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10491 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10492 }
10493 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10494 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10495 }
10496 this.bgcolor = '#111';
10497 this.color = '#222';
10498 this.shape = LiteGraph.ROUND_SHAPE;
10499 this.boxcolor = '#444';
10500}

◆ mtlx_math_subtract_matrix44FA()

function mtlx_math_subtract_matrix44FA ( )

mtlx_math_subtract_matrix44FA

Library: mtlx. Category: subtract. Type: matrix44 LiteGraph id: mtlx/math/subtract_matrix44FA

Definition at line 10799 of file mtlx_stdlib.js.

10799 {
10800 this.nodedef_icon = '';
10801 this.nodedef_name = 'ND_subtract_matrix44FA';
10802 this.nodedef_type = 'matrix44';
10803 this.nodedef_node = 'subtract';
10804 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10805 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix44FA_out_genglsl.png';
10806 this.nodedef_group = 'math';
10807 this.addInput('in1','matrix44');
10808 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":"","defaultgeomprop":""});
10809 this.addInput('in2','float');
10810 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10811 this.addOutput('out','matrix44');
10812 this.title = 'subtract_matrix44';
10813 this.desc = "MaterialX:mtlx/math/subtract_matrix44FA";
10814 this.onNodeCreated = function() {
10815 //console.log('Node created:', this);
10816}
10817 this.onRemoved = function() {
10818 //console.log('Node removed:', this);
10819 }
10820 this.onPropertyChanged = function(name, value, prev_value) {
10821 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10822 }
10823 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10824 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10825 }
10826 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10827 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10828 }
10829 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10830 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10831 }
10832 this.bgcolor = '#111';
10833 this.color = '#222';
10834 this.shape = LiteGraph.ROUND_SHAPE;
10835 this.boxcolor = '#444';
10836}

◆ mtlx_math_subtract_vector2()

function mtlx_math_subtract_vector2 ( )

mtlx_math_subtract_vector2

Library: mtlx. Category: subtract. Type: vector2 LiteGraph id: mtlx/math/subtract_vector2

Definition at line 10271 of file mtlx_stdlib.js.

10271 {
10272 this.nodedef_icon = '';
10273 this.nodedef_name = 'ND_subtract_vector2';
10274 this.nodedef_type = 'vector2';
10275 this.nodedef_node = 'subtract';
10276 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10277 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector2_out_genglsl.png';
10278 this.nodedef_group = 'math';
10279 this.addInput('in1','vector2');
10280 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10281 this.addInput('in2','vector2');
10282 this.addProperty('in2', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10283 this.addOutput('out','vector2');
10284 this.title = 'subtract_vector2';
10285 this.desc = "MaterialX:mtlx/math/subtract_vector2";
10286 this.onNodeCreated = function() {
10287 //console.log('Node created:', this);
10288}
10289 this.onRemoved = function() {
10290 //console.log('Node removed:', this);
10291 }
10292 this.onPropertyChanged = function(name, value, prev_value) {
10293 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10294 }
10295 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10296 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10297 }
10298 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10299 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10300 }
10301 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10302 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10303 }
10304 this.bgcolor = '#111';
10305 this.color = '#222';
10306 this.shape = LiteGraph.ROUND_SHAPE;
10307 this.boxcolor = '#265';
10308}

◆ mtlx_math_subtract_vector2FA()

function mtlx_math_subtract_vector2FA ( )

mtlx_math_subtract_vector2FA

Library: mtlx. Category: subtract. Type: vector2 LiteGraph id: mtlx/math/subtract_vector2FA

Definition at line 10607 of file mtlx_stdlib.js.

10607 {
10608 this.nodedef_icon = '';
10609 this.nodedef_name = 'ND_subtract_vector2FA';
10610 this.nodedef_type = 'vector2';
10611 this.nodedef_node = 'subtract';
10612 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10613 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector2FA_out_genglsl.png';
10614 this.nodedef_group = 'math';
10615 this.addInput('in1','vector2');
10616 this.addProperty('in1', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10617 this.addInput('in2','float');
10618 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10619 this.addOutput('out','vector2');
10620 this.title = 'subtract_vector2';
10621 this.desc = "MaterialX:mtlx/math/subtract_vector2FA";
10622 this.onNodeCreated = function() {
10623 //console.log('Node created:', this);
10624}
10625 this.onRemoved = function() {
10626 //console.log('Node removed:', this);
10627 }
10628 this.onPropertyChanged = function(name, value, prev_value) {
10629 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10630 }
10631 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10632 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10633 }
10634 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10635 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10636 }
10637 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10638 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10639 }
10640 this.bgcolor = '#111';
10641 this.color = '#222';
10642 this.shape = LiteGraph.ROUND_SHAPE;
10643 this.boxcolor = '#265';
10644}

◆ mtlx_math_subtract_vector3()

function mtlx_math_subtract_vector3 ( )

mtlx_math_subtract_vector3

Library: mtlx. Category: subtract. Type: vector3 LiteGraph id: mtlx/math/subtract_vector3

Definition at line 10319 of file mtlx_stdlib.js.

10319 {
10320 this.nodedef_icon = '';
10321 this.nodedef_name = 'ND_subtract_vector3';
10322 this.nodedef_type = 'vector3';
10323 this.nodedef_node = 'subtract';
10324 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10325 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector3_out_genglsl.png';
10326 this.nodedef_group = 'math';
10327 this.addInput('in1','vector3');
10328 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10329 this.addInput('in2','vector3');
10330 this.addProperty('in2', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10331 this.addOutput('out','vector3');
10332 this.title = 'subtract_vector3';
10333 this.desc = "MaterialX:mtlx/math/subtract_vector3";
10334 this.onNodeCreated = function() {
10335 //console.log('Node created:', this);
10336}
10337 this.onRemoved = function() {
10338 //console.log('Node removed:', this);
10339 }
10340 this.onPropertyChanged = function(name, value, prev_value) {
10341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10342 }
10343 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10345 }
10346 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10348 }
10349 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10351 }
10352 this.bgcolor = '#111';
10353 this.color = '#222';
10354 this.shape = LiteGraph.ROUND_SHAPE;
10355 this.boxcolor = '#465';
10356}

◆ mtlx_math_subtract_vector3FA()

function mtlx_math_subtract_vector3FA ( )

mtlx_math_subtract_vector3FA

Library: mtlx. Category: subtract. Type: vector3 LiteGraph id: mtlx/math/subtract_vector3FA

Definition at line 10655 of file mtlx_stdlib.js.

10655 {
10656 this.nodedef_icon = '';
10657 this.nodedef_name = 'ND_subtract_vector3FA';
10658 this.nodedef_type = 'vector3';
10659 this.nodedef_node = 'subtract';
10660 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10661 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector3FA_out_genglsl.png';
10662 this.nodedef_group = 'math';
10663 this.addInput('in1','vector3');
10664 this.addProperty('in1', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10665 this.addInput('in2','float');
10666 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10667 this.addOutput('out','vector3');
10668 this.title = 'subtract_vector3';
10669 this.desc = "MaterialX:mtlx/math/subtract_vector3FA";
10670 this.onNodeCreated = function() {
10671 //console.log('Node created:', this);
10672}
10673 this.onRemoved = function() {
10674 //console.log('Node removed:', this);
10675 }
10676 this.onPropertyChanged = function(name, value, prev_value) {
10677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10678 }
10679 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10681 }
10682 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10684 }
10685 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10687 }
10688 this.bgcolor = '#111';
10689 this.color = '#222';
10690 this.shape = LiteGraph.ROUND_SHAPE;
10691 this.boxcolor = '#465';
10692}

◆ mtlx_math_subtract_vector4()

function mtlx_math_subtract_vector4 ( )

mtlx_math_subtract_vector4

Library: mtlx. Category: subtract. Type: vector4 LiteGraph id: mtlx/math/subtract_vector4

Definition at line 10367 of file mtlx_stdlib.js.

10367 {
10368 this.nodedef_icon = '';
10369 this.nodedef_name = 'ND_subtract_vector4';
10370 this.nodedef_type = 'vector4';
10371 this.nodedef_node = 'subtract';
10372 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10373 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector4_out_genglsl.png';
10374 this.nodedef_group = 'math';
10375 this.addInput('in1','vector4');
10376 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10377 this.addInput('in2','vector4');
10378 this.addProperty('in2', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10379 this.addOutput('out','vector4');
10380 this.title = 'subtract_vector4';
10381 this.desc = "MaterialX:mtlx/math/subtract_vector4";
10382 this.onNodeCreated = function() {
10383 //console.log('Node created:', this);
10384}
10385 this.onRemoved = function() {
10386 //console.log('Node removed:', this);
10387 }
10388 this.onPropertyChanged = function(name, value, prev_value) {
10389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10390 }
10391 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10393 }
10394 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10396 }
10397 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10399 }
10400 this.bgcolor = '#111';
10401 this.color = '#222';
10402 this.shape = LiteGraph.ROUND_SHAPE;
10403 this.boxcolor = '#275';
10404}

◆ mtlx_math_subtract_vector4FA()

function mtlx_math_subtract_vector4FA ( )

mtlx_math_subtract_vector4FA

Library: mtlx. Category: subtract. Type: vector4 LiteGraph id: mtlx/math/subtract_vector4FA

Definition at line 10703 of file mtlx_stdlib.js.

10703 {
10704 this.nodedef_icon = '';
10705 this.nodedef_name = 'ND_subtract_vector4FA';
10706 this.nodedef_type = 'vector4';
10707 this.nodedef_node = 'subtract';
10708 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10709 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector4FA_out_genglsl.png';
10710 this.nodedef_group = 'math';
10711 this.addInput('in1','vector4');
10712 this.addProperty('in1', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10713 this.addInput('in2','float');
10714 this.addProperty('in2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
10715 this.addOutput('out','vector4');
10716 this.title = 'subtract_vector4';
10717 this.desc = "MaterialX:mtlx/math/subtract_vector4FA";
10718 this.onNodeCreated = function() {
10719 //console.log('Node created:', this);
10720}
10721 this.onRemoved = function() {
10722 //console.log('Node removed:', this);
10723 }
10724 this.onPropertyChanged = function(name, value, prev_value) {
10725 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
10726 }
10727 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
10728 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
10729 }
10730 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
10731 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
10732 }
10733 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
10734 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
10735 }
10736 this.bgcolor = '#111';
10737 this.color = '#222';
10738 this.shape = LiteGraph.ROUND_SHAPE;
10739 this.boxcolor = '#275';
10740}

◆ mtlx_math_tan_float()

function mtlx_math_tan_float ( )

mtlx_math_tan_float

Library: mtlx. Category: cos. Type: float LiteGraph id: mtlx/math/tan_float

Definition at line 15541 of file mtlx_stdlib.js.

15541 {
15542 this.nodedef_icon = '';
15543 this.nodedef_name = 'ND_tan_float';
15544 this.nodedef_type = 'float';
15545 this.nodedef_node = 'tan';
15546 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15547 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_float_out_genglsl.png';
15548 this.nodedef_group = 'math';
15549 this.addInput('in','float');
15550 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15551 this.addOutput('out','float');
15552 this.title = 'tan_float';
15553 this.desc = "MaterialX:mtlx/math/tan_float";
15554 this.onNodeCreated = function() {
15555 //console.log('Node created:', this);
15556}
15557 this.onRemoved = function() {
15558 //console.log('Node removed:', this);
15559 }
15560 this.onPropertyChanged = function(name, value, prev_value) {
15561 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15562 }
15563 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15564 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15565 }
15566 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15567 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15568 }
15569 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15570 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15571 }
15572 this.bgcolor = '#111';
15573 this.color = '#222';
15574 this.shape = LiteGraph.ROUND_SHAPE;
15575 this.boxcolor = '#161';
15576}

◆ mtlx_math_tan_vector2()

function mtlx_math_tan_vector2 ( )

mtlx_math_tan_vector2

Library: mtlx. Category: cos. Type: vector2 LiteGraph id: mtlx/math/tan_vector2

Definition at line 15819 of file mtlx_stdlib.js.

15819 {
15820 this.nodedef_icon = '';
15821 this.nodedef_name = 'ND_tan_vector2';
15822 this.nodedef_type = 'vector2';
15823 this.nodedef_node = 'tan';
15824 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15825 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector2_out_genglsl.png';
15826 this.nodedef_group = 'math';
15827 this.addInput('in','vector2');
15828 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
15829 this.addOutput('out','vector2');
15830 this.title = 'tan_vector2';
15831 this.desc = "MaterialX:mtlx/math/tan_vector2";
15832 this.onNodeCreated = function() {
15833 //console.log('Node created:', this);
15834}
15835 this.onRemoved = function() {
15836 //console.log('Node removed:', this);
15837 }
15838 this.onPropertyChanged = function(name, value, prev_value) {
15839 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
15840 }
15841 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
15842 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
15843 }
15844 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
15845 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
15846 }
15847 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
15848 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
15849 }
15850 this.bgcolor = '#111';
15851 this.color = '#222';
15852 this.shape = LiteGraph.ROUND_SHAPE;
15853 this.boxcolor = '#265';
15854}

◆ mtlx_math_tan_vector3()

function mtlx_math_tan_vector3 ( )

mtlx_math_tan_vector3

Library: mtlx. Category: cos. Type: vector3 LiteGraph id: mtlx/math/tan_vector3

Definition at line 16097 of file mtlx_stdlib.js.

16097 {
16098 this.nodedef_icon = '';
16099 this.nodedef_name = 'ND_tan_vector3';
16100 this.nodedef_type = 'vector3';
16101 this.nodedef_node = 'tan';
16102 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16103 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector3_out_genglsl.png';
16104 this.nodedef_group = 'math';
16105 this.addInput('in','vector3');
16106 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16107 this.addOutput('out','vector3');
16108 this.title = 'tan_vector3';
16109 this.desc = "MaterialX:mtlx/math/tan_vector3";
16110 this.onNodeCreated = function() {
16111 //console.log('Node created:', this);
16112}
16113 this.onRemoved = function() {
16114 //console.log('Node removed:', this);
16115 }
16116 this.onPropertyChanged = function(name, value, prev_value) {
16117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16118 }
16119 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16121 }
16122 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16124 }
16125 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16127 }
16128 this.bgcolor = '#111';
16129 this.color = '#222';
16130 this.shape = LiteGraph.ROUND_SHAPE;
16131 this.boxcolor = '#465';
16132}

◆ mtlx_math_tan_vector4()

function mtlx_math_tan_vector4 ( )

mtlx_math_tan_vector4

Library: mtlx. Category: cos. Type: vector4 LiteGraph id: mtlx/math/tan_vector4

Definition at line 16375 of file mtlx_stdlib.js.

16375 {
16376 this.nodedef_icon = '';
16377 this.nodedef_name = 'ND_tan_vector4';
16378 this.nodedef_type = 'vector4';
16379 this.nodedef_node = 'tan';
16380 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16381 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector4_out_genglsl.png';
16382 this.nodedef_group = 'math';
16383 this.addInput('in','vector4');
16384 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
16385 this.addOutput('out','vector4');
16386 this.title = 'tan_vector4';
16387 this.desc = "MaterialX:mtlx/math/tan_vector4";
16388 this.onNodeCreated = function() {
16389 //console.log('Node created:', this);
16390}
16391 this.onRemoved = function() {
16392 //console.log('Node removed:', this);
16393 }
16394 this.onPropertyChanged = function(name, value, prev_value) {
16395 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
16396 }
16397 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
16398 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
16399 }
16400 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
16401 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
16402 }
16403 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
16404 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
16405 }
16406 this.bgcolor = '#111';
16407 this.color = '#222';
16408 this.shape = LiteGraph.ROUND_SHAPE;
16409 this.boxcolor = '#275';
16410}

◆ mtlx_math_transformmatrix_vector2M3()

function mtlx_math_transformmatrix_vector2M3 ( )

mtlx_math_transformmatrix_vector2M3

Library: mtlx. Category: transformnormal. Type: vector2 LiteGraph id: mtlx/math/transformmatrix_vector2M3

Definition at line 19757 of file mtlx_stdlib.js.

19757 {
19758 this.nodedef_icon = '';
19759 this.nodedef_name = 'ND_transformmatrix_vector2M3';
19760 this.nodedef_type = 'vector2';
19761 this.nodedef_node = 'transformmatrix';
19762 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19763 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector2M3_out_genglsl.png';
19764 this.nodedef_group = 'math';
19765 this.addInput('in','vector2');
19766 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19767 this.addInput('mat','matrix33');
19768 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":"","defaultgeomprop":""});
19769 this.addOutput('out','vector2');
19770 this.title = 'transformmatrix_vector2';
19771 this.desc = "MaterialX:mtlx/math/transformmatrix_vector2M3";
19772 this.onNodeCreated = function() {
19773 //console.log('Node created:', this);
19774}
19775 this.onRemoved = function() {
19776 //console.log('Node removed:', this);
19777 }
19778 this.onPropertyChanged = function(name, value, prev_value) {
19779 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19780 }
19781 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19782 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19783 }
19784 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19785 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19786 }
19787 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19788 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19789 }
19790 this.bgcolor = '#111';
19791 this.color = '#222';
19792 this.shape = LiteGraph.ROUND_SHAPE;
19793 this.boxcolor = '#265';
19794}

◆ mtlx_math_transformmatrix_vector3()

function mtlx_math_transformmatrix_vector3 ( )

mtlx_math_transformmatrix_vector3

Library: mtlx. Category: transformmatrix. Type: vector3 LiteGraph id: mtlx/math/transformmatrix_vector3

Definition at line 19805 of file mtlx_stdlib.js.

19805 {
19806 this.nodedef_icon = '';
19807 this.nodedef_name = 'ND_transformmatrix_vector3';
19808 this.nodedef_type = 'vector3';
19809 this.nodedef_node = 'transformmatrix';
19810 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19811 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector3_out_genglsl.png';
19812 this.nodedef_group = 'math';
19813 this.addInput('in','vector3');
19814 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19815 this.addInput('mat','matrix33');
19816 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":"","defaultgeomprop":""});
19817 this.addOutput('out','vector3');
19818 this.title = 'transformmatrix_vector3';
19819 this.desc = "MaterialX:mtlx/math/transformmatrix_vector3";
19820 this.onNodeCreated = function() {
19821 //console.log('Node created:', this);
19822}
19823 this.onRemoved = function() {
19824 //console.log('Node removed:', this);
19825 }
19826 this.onPropertyChanged = function(name, value, prev_value) {
19827 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19828 }
19829 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19830 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19831 }
19832 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19833 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19834 }
19835 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19836 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19837 }
19838 this.bgcolor = '#111';
19839 this.color = '#222';
19840 this.shape = LiteGraph.ROUND_SHAPE;
19841 this.boxcolor = '#465';
19842}

◆ mtlx_math_transformmatrix_vector3M4()

function mtlx_math_transformmatrix_vector3M4 ( )

mtlx_math_transformmatrix_vector3M4

Library: mtlx. Category: transformmatrix. Type: vector3 LiteGraph id: mtlx/math/transformmatrix_vector3M4

Definition at line 19853 of file mtlx_stdlib.js.

19853 {
19854 this.nodedef_icon = '';
19855 this.nodedef_name = 'ND_transformmatrix_vector3M4';
19856 this.nodedef_type = 'vector3';
19857 this.nodedef_node = 'transformmatrix';
19858 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19859 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector3M4_out_genglsl.png';
19860 this.nodedef_group = 'math';
19861 this.addInput('in','vector3');
19862 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19863 this.addInput('mat','matrix44');
19864 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":"","defaultgeomprop":""});
19865 this.addOutput('out','vector3');
19866 this.title = 'transformmatrix_vector3';
19867 this.desc = "MaterialX:mtlx/math/transformmatrix_vector3M4";
19868 this.onNodeCreated = function() {
19869 //console.log('Node created:', this);
19870}
19871 this.onRemoved = function() {
19872 //console.log('Node removed:', this);
19873 }
19874 this.onPropertyChanged = function(name, value, prev_value) {
19875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19876 }
19877 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19879 }
19880 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19882 }
19883 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19885 }
19886 this.bgcolor = '#111';
19887 this.color = '#222';
19888 this.shape = LiteGraph.ROUND_SHAPE;
19889 this.boxcolor = '#465';
19890}

◆ mtlx_math_transformmatrix_vector4()

function mtlx_math_transformmatrix_vector4 ( )

mtlx_math_transformmatrix_vector4

Library: mtlx. Category: transformmatrix. Type: vector4 LiteGraph id: mtlx/math/transformmatrix_vector4

Definition at line 19901 of file mtlx_stdlib.js.

19901 {
19902 this.nodedef_icon = '';
19903 this.nodedef_name = 'ND_transformmatrix_vector4';
19904 this.nodedef_type = 'vector4';
19905 this.nodedef_node = 'transformmatrix';
19906 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19907 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector4_out_genglsl.png';
19908 this.nodedef_group = 'math';
19909 this.addInput('in','vector4');
19910 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19911 this.addInput('mat','matrix44');
19912 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":"","defaultgeomprop":""});
19913 this.addOutput('out','vector4');
19914 this.title = 'transformmatrix_vector4';
19915 this.desc = "MaterialX:mtlx/math/transformmatrix_vector4";
19916 this.onNodeCreated = function() {
19917 //console.log('Node created:', this);
19918}
19919 this.onRemoved = function() {
19920 //console.log('Node removed:', this);
19921 }
19922 this.onPropertyChanged = function(name, value, prev_value) {
19923 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19924 }
19925 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19926 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19927 }
19928 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19929 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19930 }
19931 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19932 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19933 }
19934 this.bgcolor = '#111';
19935 this.color = '#222';
19936 this.shape = LiteGraph.ROUND_SHAPE;
19937 this.boxcolor = '#275';
19938}

◆ mtlx_math_transformnormal_vector3()

function mtlx_math_transformnormal_vector3 ( )

mtlx_math_transformnormal_vector3

Library: mtlx. Category: transformvector. Type: vector3 LiteGraph id: mtlx/math/transformnormal_vector3

Definition at line 19707 of file mtlx_stdlib.js.

19707 {
19708 this.nodedef_icon = '';
19709 this.nodedef_name = 'ND_transformnormal_vector3';
19710 this.nodedef_type = 'vector3';
19711 this.nodedef_node = 'transformnormal';
19712 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformnormal.html';
19713 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformnormal_vector3_out_genglsl.png';
19714 this.nodedef_group = 'math';
19715 this.addInput('in','vector3');
19716 this.addProperty('in', [0.0, 0.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19717 this.addInput('fromspace','string');
19718 this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19719 this.addInput('tospace','string');
19720 this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19721 this.addOutput('out','vector3');
19722 this.title = 'transformnormal_vector3';
19723 this.desc = "MaterialX:mtlx/math/transformnormal_vector3";
19724 this.onNodeCreated = function() {
19725 //console.log('Node created:', this);
19726}
19727 this.onRemoved = function() {
19728 //console.log('Node removed:', this);
19729 }
19730 this.onPropertyChanged = function(name, value, prev_value) {
19731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19732 }
19733 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19735 }
19736 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19738 }
19739 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19741 }
19742 this.bgcolor = '#111';
19743 this.color = '#222';
19744 this.shape = LiteGraph.ROUND_SHAPE;
19745 this.boxcolor = '#465';
19746}

◆ mtlx_math_transformpoint_vector3()

function mtlx_math_transformpoint_vector3 ( )

mtlx_math_transformpoint_vector3

Library: mtlx. Category: crossproduct. Type: vector3 LiteGraph id: mtlx/math/transformpoint_vector3

Definition at line 19607 of file mtlx_stdlib.js.

19607 {
19608 this.nodedef_icon = '';
19609 this.nodedef_name = 'ND_transformpoint_vector3';
19610 this.nodedef_type = 'vector3';
19611 this.nodedef_node = 'transformpoint';
19612 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformpoint.html';
19613 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformpoint_vector3_out_genglsl.png';
19614 this.nodedef_group = 'math';
19615 this.addInput('in','vector3');
19616 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19617 this.addInput('fromspace','string');
19618 this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19619 this.addInput('tospace','string');
19620 this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19621 this.addOutput('out','vector3');
19622 this.title = 'transformpoint_vector3';
19623 this.desc = "MaterialX:mtlx/math/transformpoint_vector3";
19624 this.onNodeCreated = function() {
19625 //console.log('Node created:', this);
19626}
19627 this.onRemoved = function() {
19628 //console.log('Node removed:', this);
19629 }
19630 this.onPropertyChanged = function(name, value, prev_value) {
19631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19632 }
19633 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19635 }
19636 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19638 }
19639 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19641 }
19642 this.bgcolor = '#111';
19643 this.color = '#222';
19644 this.shape = LiteGraph.ROUND_SHAPE;
19645 this.boxcolor = '#465';
19646}

◆ mtlx_math_transformvector_vector3()

function mtlx_math_transformvector_vector3 ( )

mtlx_math_transformvector_vector3

Library: mtlx. Category: transformpoint. Type: vector3 LiteGraph id: mtlx/math/transformvector_vector3

Definition at line 19657 of file mtlx_stdlib.js.

19657 {
19658 this.nodedef_icon = '';
19659 this.nodedef_name = 'ND_transformvector_vector3';
19660 this.nodedef_type = 'vector3';
19661 this.nodedef_node = 'transformvector';
19662 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformvector.html';
19663 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformvector_vector3_out_genglsl.png';
19664 this.nodedef_group = 'math';
19665 this.addInput('in','vector3');
19666 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19667 this.addInput('fromspace','string');
19668 this.addProperty('fromspace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19669 this.addInput('tospace','string');
19670 this.addProperty('tospace', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
19671 this.addOutput('out','vector3');
19672 this.title = 'transformvector_vector3';
19673 this.desc = "MaterialX:mtlx/math/transformvector_vector3";
19674 this.onNodeCreated = function() {
19675 //console.log('Node created:', this);
19676}
19677 this.onRemoved = function() {
19678 //console.log('Node removed:', this);
19679 }
19680 this.onPropertyChanged = function(name, value, prev_value) {
19681 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
19682 }
19683 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
19684 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
19685 }
19686 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
19687 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
19688 }
19689 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
19690 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
19691 }
19692 this.bgcolor = '#111';
19693 this.color = '#222';
19694 this.shape = LiteGraph.ROUND_SHAPE;
19695 this.boxcolor = '#465';
19696}

◆ mtlx_math_transpose_matrix33()

function mtlx_math_transpose_matrix33 ( )

mtlx_math_transpose_matrix33

Library: mtlx. Category: normalmap. Type: matrix33 LiteGraph id: mtlx/math/transpose_matrix33

Definition at line 20057 of file mtlx_stdlib.js.

20057 {
20058 this.nodedef_icon = '';
20059 this.nodedef_name = 'ND_transpose_matrix33';
20060 this.nodedef_type = 'matrix33';
20061 this.nodedef_node = 'transpose';
20062 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transpose.html';
20063 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transpose_matrix33_out_genglsl.png';
20064 this.nodedef_group = 'math';
20065 this.addInput('in','matrix33');
20066 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":"","defaultgeomprop":""});
20067 this.addOutput('out','matrix33');
20068 this.title = 'transpose_matrix33';
20069 this.desc = "MaterialX:mtlx/math/transpose_matrix33";
20070 this.onNodeCreated = function() {
20071 //console.log('Node created:', this);
20072}
20073 this.onRemoved = function() {
20074 //console.log('Node removed:', this);
20075 }
20076 this.onPropertyChanged = function(name, value, prev_value) {
20077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20078 }
20079 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20081 }
20082 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20084 }
20085 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20087 }
20088 this.bgcolor = '#111';
20089 this.color = '#222';
20090 this.shape = LiteGraph.ROUND_SHAPE;
20091 this.boxcolor = '#333';
20092}

◆ mtlx_math_transpose_matrix44()

function mtlx_math_transpose_matrix44 ( )

mtlx_math_transpose_matrix44

Library: mtlx. Category: transpose. Type: matrix44 LiteGraph id: mtlx/math/transpose_matrix44

Definition at line 20103 of file mtlx_stdlib.js.

20103 {
20104 this.nodedef_icon = '';
20105 this.nodedef_name = 'ND_transpose_matrix44';
20106 this.nodedef_type = 'matrix44';
20107 this.nodedef_node = 'transpose';
20108 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transpose.html';
20109 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transpose_matrix44_out_genglsl.png';
20110 this.nodedef_group = 'math';
20111 this.addInput('in','matrix44');
20112 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":"","defaultgeomprop":""});
20113 this.addOutput('out','matrix44');
20114 this.title = 'transpose_matrix44';
20115 this.desc = "MaterialX:mtlx/math/transpose_matrix44";
20116 this.onNodeCreated = function() {
20117 //console.log('Node created:', this);
20118}
20119 this.onRemoved = function() {
20120 //console.log('Node removed:', this);
20121 }
20122 this.onPropertyChanged = function(name, value, prev_value) {
20123 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20124 }
20125 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20126 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20127 }
20128 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20129 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20130 }
20131 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20132 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20133 }
20134 this.bgcolor = '#111';
20135 this.color = '#222';
20136 this.shape = LiteGraph.ROUND_SHAPE;
20137 this.boxcolor = '#444';
20138}

◆ mtlx_math_trianglewave_float()

function mtlx_math_trianglewave_float ( )

mtlx_math_trianglewave_float

Library: mtlx. Category: place2d. Type: float LiteGraph id: mtlx/math/trianglewave_float

Definition at line 20487 of file mtlx_stdlib.js.

20487 {
20488 this.nodedef_icon = '';
20489 this.nodedef_name = 'ND_trianglewave_float';
20490 this.nodedef_type = 'float';
20491 this.nodedef_node = 'trianglewave';
20492 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/trianglewave.html';
20493 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_trianglewave_float_out_genglsl.png';
20494 this.nodedef_group = 'math';
20495 this.addInput('in','float');
20496 this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
20497 this.addOutput('out','float');
20498 this.title = 'trianglewave_float';
20499 this.desc = "MaterialX:mtlx/math/trianglewave_float";
20500 this.onNodeCreated = function() {
20501 //console.log('Node created:', this);
20502}
20503 this.onRemoved = function() {
20504 //console.log('Node removed:', this);
20505 }
20506 this.onPropertyChanged = function(name, value, prev_value) {
20507 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
20508 }
20509 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
20510 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
20511 }
20512 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
20513 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
20514 }
20515 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
20516 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
20517 }
20518 this.bgcolor = '#111';
20519 this.color = '#222';
20520 this.shape = LiteGraph.ROUND_SHAPE;
20521 this.boxcolor = '#161';
20522}

◆ mtlx_math_UsdTransform2d()

function mtlx_math_UsdTransform2d ( )

mtlx_math_UsdTransform2d

Library: mtlx. Category: UsdPrimvarReader. Type: vector2 LiteGraph id: mtlx/math/UsdTransform2d

Definition at line 38823 of file mtlx_stdlib.js.

38823 {
38824 this.nodedef_icon = './Icons/openusd_logo.webp';
38825 this.nodedef_name = 'ND_UsdTransform2d';
38826 this.nodedef_type = 'vector2';
38827 this.nodedef_node = 'UsdTransform2d';
38828 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdTransform2d.html';
38829 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdTransform2d_out_genglsl.png';
38830 this.nodedef_group = 'math';
38831 this.addInput('in','vector2');
38832 this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38833 this.addInput('rotation','float');
38834 this.addProperty('rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38835 this.addInput('scale','vector2');
38836 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38837 this.addInput('translation','vector2');
38838 this.addProperty('translation', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38839 this.addOutput('out','vector2');
38840 this.title = 'UsdTransform2d_vector2';
38841 this.desc = "MaterialX:mtlx/math/UsdTransform2d";
38842 this.onNodeCreated = function() {
38843 //console.log('Node created:', this);
38844}
38845 this.onRemoved = function() {
38846 //console.log('Node removed:', this);
38847 }
38848 this.onPropertyChanged = function(name, value, prev_value) {
38849 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38850 }
38851 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38852 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38853 }
38854 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38855 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38856 }
38857 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38858 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38859 }
38860 this.bgcolor = '#111';
38861 this.color = '#222';
38862 this.shape = LiteGraph.ROUND_SHAPE;
38863 this.boxcolor = '#265';
38864}

◆ mtlx_npr_facingratio_float()

function mtlx_npr_facingratio_float ( )

mtlx_npr_facingratio_float

Library: mtlx. Category: viewdirection. Type: float LiteGraph id: mtlx/npr/facingratio_float

Definition at line 37445 of file mtlx_stdlib.js.

37445 {
37446 this.nodedef_icon = '';
37447 this.nodedef_name = 'ND_facingratio_float';
37448 this.nodedef_type = 'float';
37449 this.nodedef_node = 'facingratio';
37450 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/facingratio.html';
37451 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_facingratio_float_out_genglsl.png';
37452 this.nodedef_group = 'npr';
37453 this.addInput('viewdirection','vector3');
37454 this.addProperty('viewdirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Vworld"});
37455 this.addInput('normal','vector3');
37456 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
37457 this.addInput('faceforward','boolean');
37458 this.addProperty('faceforward', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37459 this.addInput('invert','boolean');
37460 this.addProperty('invert', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37461 this.addOutput('out','float');
37462 this.title = 'facingratio_float';
37463 this.desc = "MaterialX:mtlx/npr/facingratio_float";
37464 this.onNodeCreated = function() {
37465 //console.log('Node created:', this);
37466}
37467 this.onRemoved = function() {
37468 //console.log('Node removed:', this);
37469 }
37470 this.onPropertyChanged = function(name, value, prev_value) {
37471 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37472 }
37473 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37474 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37475 }
37476 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37477 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37478 }
37479 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37480 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37481 }
37482 this.bgcolor = '#111';
37483 this.color = '#222';
37484 this.shape = LiteGraph.ROUND_SHAPE;
37485 this.boxcolor = '#161';
37486}

◆ mtlx_npr_gooch_shade()

function mtlx_npr_gooch_shade ( )

mtlx_npr_gooch_shade

Library: mtlx. Category: facingratio. Type: color3 LiteGraph id: mtlx/npr/gooch_shade

Definition at line 37497 of file mtlx_stdlib.js.

37497 {
37498 this.nodedef_icon = '';
37499 this.nodedef_name = 'ND_gooch_shade';
37500 this.nodedef_type = 'color3';
37501 this.nodedef_node = 'gooch_shade';
37502 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gooch_shade.html';
37503 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gooch_shade_out_genglsl.png';
37504 this.nodedef_group = 'npr';
37505 this.addInput('warm_color','color3');
37506 this.addProperty('warm_color', [0.8, 0.8, 0.7], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Warm Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37507 this.addInput('cool_color','color3');
37508 this.addProperty('cool_color', [0.3, 0.3, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Cool Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37509 this.addInput('specular_intensity','float');
37510 this.addProperty('specular_intensity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Intensity","uimin":"0","uimax":"1","uifolder":"","defaultgeomprop":""});
37511 this.addInput('shininess','float');
37512 this.addProperty('shininess', 64, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Shininess","uimin":"1","uimax":"256","uifolder":"","defaultgeomprop":""});
37513 this.addInput('light_direction','vector3');
37514 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":"","defaultgeomprop":""});
37515 this.addOutput('out','color3');
37516 this.title = 'gooch_shade_color3';
37517 this.desc = "MaterialX:mtlx/npr/gooch_shade";
37518 this.onNodeCreated = function() {
37519 //console.log('Node created:', this);
37520}
37521 this.onRemoved = function() {
37522 //console.log('Node removed:', this);
37523 }
37524 this.onPropertyChanged = function(name, value, prev_value) {
37525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37526 }
37527 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37529 }
37530 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37532 }
37533 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37535 }
37536 this.bgcolor = '#111';
37537 this.color = '#222';
37538 this.shape = LiteGraph.ROUND_SHAPE;
37539 this.boxcolor = '#37A';
37540}

◆ mtlx_npr_viewdirection_vector3()

function mtlx_npr_viewdirection_vector3 ( )

mtlx_npr_viewdirection_vector3

Library: mtlx. Category: artistic_ior. Type: vector3 LiteGraph id: mtlx/npr/viewdirection_vector3

Definition at line 37399 of file mtlx_stdlib.js.

37399 {
37400 this.nodedef_icon = '';
37401 this.nodedef_name = 'ND_viewdirection_vector3';
37402 this.nodedef_type = 'vector3';
37403 this.nodedef_node = 'viewdirection';
37404 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/viewdirection.html';
37405 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_viewdirection_vector3_out_genglsl.png';
37406 this.nodedef_group = 'npr';
37407 this.addInput('space','string');
37408 this.addProperty('space', 'world', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["model","object","world"]});
37409 this.addOutput('out','vector3');
37410 this.title = 'viewdirection_vector3';
37411 this.desc = "MaterialX:mtlx/npr/viewdirection_vector3";
37412 this.onNodeCreated = function() {
37413 //console.log('Node created:', this);
37414}
37415 this.onRemoved = function() {
37416 //console.log('Node removed:', this);
37417 }
37418 this.onPropertyChanged = function(name, value, prev_value) {
37419 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37420 }
37421 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37422 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37423 }
37424 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37425 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37426 }
37427 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37428 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37429 }
37430 this.bgcolor = '#111';
37431 this.color = '#222';
37432 this.shape = LiteGraph.ROUND_SHAPE;
37433 this.boxcolor = '#465';
37434}

◆ mtlx_organization_dot_boolean()

function mtlx_organization_dot_boolean ( )

mtlx_organization_dot_boolean

Library: mtlx. Category: dot. Type: boolean LiteGraph id: mtlx/organization/dot_boolean

Definition at line 35042 of file mtlx_stdlib.js.

35042 {
35043 this.nodedef_icon = '';
35044 this.nodedef_name = 'ND_dot_boolean';
35045 this.nodedef_type = 'boolean';
35046 this.nodedef_node = 'dot';
35047 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35048 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_boolean_out_genglsl.png';
35049 this.nodedef_group = 'organization';
35050 this.addInput('in','boolean');
35051 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35052 this.addInput('note','string');
35053 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35054 this.addOutput('out','boolean');
35055 this.title = 'dot_boolean';
35056 this.desc = "MaterialX:mtlx/organization/dot_boolean";
35057 this.onNodeCreated = function() {
35058 //console.log('Node created:', this);
35059}
35060 this.onRemoved = function() {
35061 //console.log('Node removed:', this);
35062 }
35063 this.onPropertyChanged = function(name, value, prev_value) {
35064 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35065 }
35066 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35067 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35068 }
35069 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35070 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35071 }
35072 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35073 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35074 }
35075 this.bgcolor = '#111';
35076 this.color = '#222';
35077 this.shape = LiteGraph.ROUND_SHAPE;
35078 this.boxcolor = '#060';
35079}

◆ mtlx_organization_dot_color3()

function mtlx_organization_dot_color3 ( )

mtlx_organization_dot_color3

Library: mtlx. Category: dot. Type: color3 LiteGraph id: mtlx/organization/dot_color3

Definition at line 34802 of file mtlx_stdlib.js.

34802 {
34803 this.nodedef_icon = '';
34804 this.nodedef_name = 'ND_dot_color3';
34805 this.nodedef_type = 'color3';
34806 this.nodedef_node = 'dot';
34807 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34808 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_color3_out_genglsl.png';
34809 this.nodedef_group = 'organization';
34810 this.addInput('in','color3');
34811 this.addProperty('in', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34812 this.addInput('note','string');
34813 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34814 this.addOutput('out','color3');
34815 this.title = 'dot_color3';
34816 this.desc = "MaterialX:mtlx/organization/dot_color3";
34817 this.onNodeCreated = function() {
34818 //console.log('Node created:', this);
34819}
34820 this.onRemoved = function() {
34821 //console.log('Node removed:', this);
34822 }
34823 this.onPropertyChanged = function(name, value, prev_value) {
34824 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34825 }
34826 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34827 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34828 }
34829 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34830 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34831 }
34832 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34833 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34834 }
34835 this.bgcolor = '#111';
34836 this.color = '#222';
34837 this.shape = LiteGraph.ROUND_SHAPE;
34838 this.boxcolor = '#37A';
34839}

◆ mtlx_organization_dot_color4()

function mtlx_organization_dot_color4 ( )

mtlx_organization_dot_color4

Library: mtlx. Category: dot. Type: color4 LiteGraph id: mtlx/organization/dot_color4

Definition at line 34850 of file mtlx_stdlib.js.

34850 {
34851 this.nodedef_icon = '';
34852 this.nodedef_name = 'ND_dot_color4';
34853 this.nodedef_type = 'color4';
34854 this.nodedef_node = 'dot';
34855 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34856 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_color4_out_genglsl.png';
34857 this.nodedef_group = 'organization';
34858 this.addInput('in','color4');
34859 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34860 this.addInput('note','string');
34861 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34862 this.addOutput('out','color4');
34863 this.title = 'dot_color4';
34864 this.desc = "MaterialX:mtlx/organization/dot_color4";
34865 this.onNodeCreated = function() {
34866 //console.log('Node created:', this);
34867}
34868 this.onRemoved = function() {
34869 //console.log('Node removed:', this);
34870 }
34871 this.onPropertyChanged = function(name, value, prev_value) {
34872 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34873 }
34874 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34875 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34876 }
34877 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34878 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34879 }
34880 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34881 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34882 }
34883 this.bgcolor = '#111';
34884 this.color = '#222';
34885 this.shape = LiteGraph.ROUND_SHAPE;
34886 this.boxcolor = '#69A';
34887}

◆ mtlx_organization_dot_displacementshader()

function mtlx_organization_dot_displacementshader ( )

mtlx_organization_dot_displacementshader

Library: mtlx. Category: dot. Type: displacementshader LiteGraph id: mtlx/organization/dot_displacementshader

Definition at line 35377 of file mtlx_stdlib.js.

35377 {
35378 this.nodedef_icon = '';
35379 this.nodedef_name = 'ND_dot_displacementshader';
35380 this.nodedef_type = 'displacementshader';
35381 this.nodedef_node = 'dot';
35382 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35383 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_displacementshader_out_genglsl.png';
35384 this.nodedef_group = 'organization';
35385 this.addInput('in','displacementshader');
35386 this.addProperty('in', '', 'displacementshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35387 this.addInput('note','string');
35388 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35389 this.addOutput('out','displacementshader');
35390 this.title = 'dot_displacementshader';
35391 this.desc = "MaterialX:mtlx/organization/dot_displacementshader";
35392 this.onNodeCreated = function() {
35393 //console.log('Node created:', this);
35394}
35395 this.onRemoved = function() {
35396 //console.log('Node removed:', this);
35397 }
35398 this.onPropertyChanged = function(name, value, prev_value) {
35399 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35400 }
35401 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35402 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35403 }
35404 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35405 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35406 }
35407 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35408 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35409 }
35410 this.bgcolor = '#111';
35411 this.color = '#232';
35412 this.shape = LiteGraph.ROUND_SHAPE;
35413}

◆ mtlx_organization_dot_filename()

function mtlx_organization_dot_filename ( )

mtlx_organization_dot_filename

Library: mtlx. Category: dot. Type: filename LiteGraph id: mtlx/organization/dot_filename

Definition at line 35282 of file mtlx_stdlib.js.

35282 {
35283 this.nodedef_icon = '';
35284 this.nodedef_name = 'ND_dot_filename';
35285 this.nodedef_type = 'filename';
35286 this.nodedef_node = 'dot';
35287 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35288 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_filename_out_genglsl.png';
35289 this.nodedef_group = 'organization';
35290 this.addInput('in','filename');
35291 this.addProperty('in', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35292 this.addInput('note','string');
35293 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35294 this.addOutput('out','filename');
35295 this.title = 'dot_filename';
35296 this.desc = "MaterialX:mtlx/organization/dot_filename";
35297 this.onNodeCreated = function() {
35298 //console.log('Node created:', this);
35299}
35300 this.onRemoved = function() {
35301 //console.log('Node removed:', this);
35302 }
35303 this.onPropertyChanged = function(name, value, prev_value) {
35304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35305 }
35306 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35308 }
35309 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35311 }
35312 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35314 }
35315 this.bgcolor = '#111';
35316 this.color = '#222';
35317 this.shape = LiteGraph.ROUND_SHAPE;
35318 this.boxcolor = '#888';
35319}

◆ mtlx_organization_dot_float()

function mtlx_organization_dot_float ( )

mtlx_organization_dot_float

Library: mtlx. Category: not. Type: float LiteGraph id: mtlx/organization/dot_float

Definition at line 34754 of file mtlx_stdlib.js.

34754 {
34755 this.nodedef_icon = '';
34756 this.nodedef_name = 'ND_dot_float';
34757 this.nodedef_type = 'float';
34758 this.nodedef_node = 'dot';
34759 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34760 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_float_out_genglsl.png';
34761 this.nodedef_group = 'organization';
34762 this.addInput('in','float');
34763 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34764 this.addInput('note','string');
34765 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34766 this.addOutput('out','float');
34767 this.title = 'dot_float';
34768 this.desc = "MaterialX:mtlx/organization/dot_float";
34769 this.onNodeCreated = function() {
34770 //console.log('Node created:', this);
34771}
34772 this.onRemoved = function() {
34773 //console.log('Node removed:', this);
34774 }
34775 this.onPropertyChanged = function(name, value, prev_value) {
34776 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34777 }
34778 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34779 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34780 }
34781 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34782 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34783 }
34784 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34785 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34786 }
34787 this.bgcolor = '#111';
34788 this.color = '#222';
34789 this.shape = LiteGraph.ROUND_SHAPE;
34790 this.boxcolor = '#161';
34791}

◆ mtlx_organization_dot_integer()

function mtlx_organization_dot_integer ( )

mtlx_organization_dot_integer

Library: mtlx. Category: dot. Type: integer LiteGraph id: mtlx/organization/dot_integer

Definition at line 35090 of file mtlx_stdlib.js.

35090 {
35091 this.nodedef_icon = '';
35092 this.nodedef_name = 'ND_dot_integer';
35093 this.nodedef_type = 'integer';
35094 this.nodedef_node = 'dot';
35095 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35096 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_integer_out_genglsl.png';
35097 this.nodedef_group = 'organization';
35098 this.addInput('in','integer');
35099 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35100 this.addInput('note','string');
35101 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35102 this.addOutput('out','integer');
35103 this.title = 'dot_integer';
35104 this.desc = "MaterialX:mtlx/organization/dot_integer";
35105 this.onNodeCreated = function() {
35106 //console.log('Node created:', this);
35107}
35108 this.onRemoved = function() {
35109 //console.log('Node removed:', this);
35110 }
35111 this.onPropertyChanged = function(name, value, prev_value) {
35112 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35113 }
35114 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35115 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35116 }
35117 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35118 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35119 }
35120 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35121 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35122 }
35123 this.bgcolor = '#111';
35124 this.color = '#222';
35125 this.shape = LiteGraph.ROUND_SHAPE;
35126 this.boxcolor = '#A32';
35127}

◆ mtlx_organization_dot_lightshader()

function mtlx_organization_dot_lightshader ( )

mtlx_organization_dot_lightshader

Library: mtlx. Category: dot. Type: lightshader LiteGraph id: mtlx/organization/dot_lightshader

Definition at line 35471 of file mtlx_stdlib.js.

35471 {
35472 this.nodedef_icon = '';
35473 this.nodedef_name = 'ND_dot_lightshader';
35474 this.nodedef_type = 'lightshader';
35475 this.nodedef_node = 'dot';
35476 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35477 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_lightshader_out_genglsl.png';
35478 this.nodedef_group = 'organization';
35479 this.addInput('in','lightshader');
35480 this.addProperty('in', '', 'lightshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35481 this.addInput('note','string');
35482 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35483 this.addOutput('out','lightshader');
35484 this.title = 'dot_lightshader';
35485 this.desc = "MaterialX:mtlx/organization/dot_lightshader";
35486 this.onNodeCreated = function() {
35487 //console.log('Node created:', this);
35488}
35489 this.onRemoved = function() {
35490 //console.log('Node removed:', this);
35491 }
35492 this.onPropertyChanged = function(name, value, prev_value) {
35493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35494 }
35495 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35497 }
35498 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35500 }
35501 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35503 }
35504 this.bgcolor = '#111';
35505 this.color = '#222';
35506 this.shape = LiteGraph.ROUND_SHAPE;
35507}

◆ mtlx_organization_dot_matrix33()

function mtlx_organization_dot_matrix33 ( )

mtlx_organization_dot_matrix33

Library: mtlx. Category: dot. Type: matrix33 LiteGraph id: mtlx/organization/dot_matrix33

Definition at line 35138 of file mtlx_stdlib.js.

35138 {
35139 this.nodedef_icon = '';
35140 this.nodedef_name = 'ND_dot_matrix33';
35141 this.nodedef_type = 'matrix33';
35142 this.nodedef_node = 'dot';
35143 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35144 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_matrix33_out_genglsl.png';
35145 this.nodedef_group = 'organization';
35146 this.addInput('in','matrix33');
35147 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":"","defaultgeomprop":""});
35148 this.addInput('note','string');
35149 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35150 this.addOutput('out','matrix33');
35151 this.title = 'dot_matrix33';
35152 this.desc = "MaterialX:mtlx/organization/dot_matrix33";
35153 this.onNodeCreated = function() {
35154 //console.log('Node created:', this);
35155}
35156 this.onRemoved = function() {
35157 //console.log('Node removed:', this);
35158 }
35159 this.onPropertyChanged = function(name, value, prev_value) {
35160 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35161 }
35162 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35163 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35164 }
35165 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35166 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35167 }
35168 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35169 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35170 }
35171 this.bgcolor = '#111';
35172 this.color = '#222';
35173 this.shape = LiteGraph.ROUND_SHAPE;
35174 this.boxcolor = '#333';
35175}

◆ mtlx_organization_dot_matrix44()

function mtlx_organization_dot_matrix44 ( )

mtlx_organization_dot_matrix44

Library: mtlx. Category: dot. Type: matrix44 LiteGraph id: mtlx/organization/dot_matrix44

Definition at line 35186 of file mtlx_stdlib.js.

35186 {
35187 this.nodedef_icon = '';
35188 this.nodedef_name = 'ND_dot_matrix44';
35189 this.nodedef_type = 'matrix44';
35190 this.nodedef_node = 'dot';
35191 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35192 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_matrix44_out_genglsl.png';
35193 this.nodedef_group = 'organization';
35194 this.addInput('in','matrix44');
35195 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":"","defaultgeomprop":""});
35196 this.addInput('note','string');
35197 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35198 this.addOutput('out','matrix44');
35199 this.title = 'dot_matrix44';
35200 this.desc = "MaterialX:mtlx/organization/dot_matrix44";
35201 this.onNodeCreated = function() {
35202 //console.log('Node created:', this);
35203}
35204 this.onRemoved = function() {
35205 //console.log('Node removed:', this);
35206 }
35207 this.onPropertyChanged = function(name, value, prev_value) {
35208 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35209 }
35210 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35211 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35212 }
35213 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35214 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35215 }
35216 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35217 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35218 }
35219 this.bgcolor = '#111';
35220 this.color = '#222';
35221 this.shape = LiteGraph.ROUND_SHAPE;
35222 this.boxcolor = '#444';
35223}

◆ mtlx_organization_dot_string()

function mtlx_organization_dot_string ( )

mtlx_organization_dot_string

Library: mtlx. Category: dot. Type: string LiteGraph id: mtlx/organization/dot_string

Definition at line 35234 of file mtlx_stdlib.js.

35234 {
35235 this.nodedef_icon = '';
35236 this.nodedef_name = 'ND_dot_string';
35237 this.nodedef_type = 'string';
35238 this.nodedef_node = 'dot';
35239 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35240 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_string_out_genglsl.png';
35241 this.nodedef_group = 'organization';
35242 this.addInput('in','string');
35243 this.addProperty('in', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35244 this.addInput('note','string');
35245 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35246 this.addOutput('out','string');
35247 this.title = 'dot_string';
35248 this.desc = "MaterialX:mtlx/organization/dot_string";
35249 this.onNodeCreated = function() {
35250 //console.log('Node created:', this);
35251}
35252 this.onRemoved = function() {
35253 //console.log('Node removed:', this);
35254 }
35255 this.onPropertyChanged = function(name, value, prev_value) {
35256 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35257 }
35258 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35259 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35260 }
35261 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35262 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35263 }
35264 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35265 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35266 }
35267 this.bgcolor = '#111';
35268 this.color = '#222';
35269 this.shape = LiteGraph.ROUND_SHAPE;
35270 this.boxcolor = '#395';
35271}

◆ mtlx_organization_dot_surfaceshader()

function mtlx_organization_dot_surfaceshader ( )

mtlx_organization_dot_surfaceshader

Library: mtlx. Category: dot. Type: surfaceshader LiteGraph id: mtlx/organization/dot_surfaceshader

Definition at line 35330 of file mtlx_stdlib.js.

35330 {
35331 this.nodedef_icon = '';
35332 this.nodedef_name = 'ND_dot_surfaceshader';
35333 this.nodedef_type = 'surfaceshader';
35334 this.nodedef_node = 'dot';
35335 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35336 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_surfaceshader_out_genglsl.png';
35337 this.nodedef_group = 'organization';
35338 this.addInput('in','surfaceshader');
35339 this.addProperty('in', '', 'surfaceshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35340 this.addInput('note','string');
35341 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35342 this.addOutput('out','surfaceshader');
35343 this.title = 'dot_surfaceshader';
35344 this.desc = "MaterialX:mtlx/organization/dot_surfaceshader";
35345 this.onNodeCreated = function() {
35346 //console.log('Node created:', this);
35347}
35348 this.onRemoved = function() {
35349 //console.log('Node removed:', this);
35350 }
35351 this.onPropertyChanged = function(name, value, prev_value) {
35352 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35353 }
35354 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35355 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35356 }
35357 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35358 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35359 }
35360 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35361 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35362 }
35363 this.bgcolor = '#111';
35364 this.color = '#232';
35365 this.shape = LiteGraph.ROUND_SHAPE;
35366}

◆ mtlx_organization_dot_vector2()

function mtlx_organization_dot_vector2 ( )

mtlx_organization_dot_vector2

Library: mtlx. Category: dot. Type: vector2 LiteGraph id: mtlx/organization/dot_vector2

Definition at line 34898 of file mtlx_stdlib.js.

34898 {
34899 this.nodedef_icon = '';
34900 this.nodedef_name = 'ND_dot_vector2';
34901 this.nodedef_type = 'vector2';
34902 this.nodedef_node = 'dot';
34903 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34904 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector2_out_genglsl.png';
34905 this.nodedef_group = 'organization';
34906 this.addInput('in','vector2');
34907 this.addProperty('in', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34908 this.addInput('note','string');
34909 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34910 this.addOutput('out','vector2');
34911 this.title = 'dot_vector2';
34912 this.desc = "MaterialX:mtlx/organization/dot_vector2";
34913 this.onNodeCreated = function() {
34914 //console.log('Node created:', this);
34915}
34916 this.onRemoved = function() {
34917 //console.log('Node removed:', this);
34918 }
34919 this.onPropertyChanged = function(name, value, prev_value) {
34920 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34921 }
34922 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34923 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34924 }
34925 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34926 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34927 }
34928 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34929 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34930 }
34931 this.bgcolor = '#111';
34932 this.color = '#222';
34933 this.shape = LiteGraph.ROUND_SHAPE;
34934 this.boxcolor = '#265';
34935}

◆ mtlx_organization_dot_vector3()

function mtlx_organization_dot_vector3 ( )

mtlx_organization_dot_vector3

Library: mtlx. Category: dot. Type: vector3 LiteGraph id: mtlx/organization/dot_vector3

Definition at line 34946 of file mtlx_stdlib.js.

34946 {
34947 this.nodedef_icon = '';
34948 this.nodedef_name = 'ND_dot_vector3';
34949 this.nodedef_type = 'vector3';
34950 this.nodedef_node = 'dot';
34951 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34952 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector3_out_genglsl.png';
34953 this.nodedef_group = 'organization';
34954 this.addInput('in','vector3');
34955 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34956 this.addInput('note','string');
34957 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
34958 this.addOutput('out','vector3');
34959 this.title = 'dot_vector3';
34960 this.desc = "MaterialX:mtlx/organization/dot_vector3";
34961 this.onNodeCreated = function() {
34962 //console.log('Node created:', this);
34963}
34964 this.onRemoved = function() {
34965 //console.log('Node removed:', this);
34966 }
34967 this.onPropertyChanged = function(name, value, prev_value) {
34968 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
34969 }
34970 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
34971 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
34972 }
34973 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
34974 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
34975 }
34976 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
34977 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
34978 }
34979 this.bgcolor = '#111';
34980 this.color = '#222';
34981 this.shape = LiteGraph.ROUND_SHAPE;
34982 this.boxcolor = '#465';
34983}

◆ mtlx_organization_dot_vector4()

function mtlx_organization_dot_vector4 ( )

mtlx_organization_dot_vector4

Library: mtlx. Category: dot. Type: vector4 LiteGraph id: mtlx/organization/dot_vector4

Definition at line 34994 of file mtlx_stdlib.js.

34994 {
34995 this.nodedef_icon = '';
34996 this.nodedef_name = 'ND_dot_vector4';
34997 this.nodedef_type = 'vector4';
34998 this.nodedef_node = 'dot';
34999 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35000 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector4_out_genglsl.png';
35001 this.nodedef_group = 'organization';
35002 this.addInput('in','vector4');
35003 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35004 this.addInput('note','string');
35005 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35006 this.addOutput('out','vector4');
35007 this.title = 'dot_vector4';
35008 this.desc = "MaterialX:mtlx/organization/dot_vector4";
35009 this.onNodeCreated = function() {
35010 //console.log('Node created:', this);
35011}
35012 this.onRemoved = function() {
35013 //console.log('Node removed:', this);
35014 }
35015 this.onPropertyChanged = function(name, value, prev_value) {
35016 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35017 }
35018 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35019 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35020 }
35021 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35022 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35023 }
35024 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35025 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35026 }
35027 this.bgcolor = '#111';
35028 this.color = '#222';
35029 this.shape = LiteGraph.ROUND_SHAPE;
35030 this.boxcolor = '#275';
35031}

◆ mtlx_organization_dot_volumeshader()

function mtlx_organization_dot_volumeshader ( )

mtlx_organization_dot_volumeshader

Library: mtlx. Category: dot. Type: volumeshader LiteGraph id: mtlx/organization/dot_volumeshader

Definition at line 35424 of file mtlx_stdlib.js.

35424 {
35425 this.nodedef_icon = '';
35426 this.nodedef_name = 'ND_dot_volumeshader';
35427 this.nodedef_type = 'volumeshader';
35428 this.nodedef_node = 'dot';
35429 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35430 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_volumeshader_out_genglsl.png';
35431 this.nodedef_group = 'organization';
35432 this.addInput('in','volumeshader');
35433 this.addProperty('in', '', 'volumeshader',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35434 this.addInput('note','string');
35435 this.addProperty('note', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35436 this.addOutput('out','volumeshader');
35437 this.title = 'dot_volumeshader';
35438 this.desc = "MaterialX:mtlx/organization/dot_volumeshader";
35439 this.onNodeCreated = function() {
35440 //console.log('Node created:', this);
35441}
35442 this.onRemoved = function() {
35443 //console.log('Node removed:', this);
35444 }
35445 this.onPropertyChanged = function(name, value, prev_value) {
35446 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35447 }
35448 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35449 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35450 }
35451 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35452 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35453 }
35454 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35455 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35456 }
35457 this.bgcolor = '#111';
35458 this.color = '#222';
35459 this.shape = LiteGraph.ROUND_SHAPE;
35460}

◆ mtlx_output_output_boolean()

function mtlx_output_output_boolean ( )

mtlx_output_output_boolean

Library: mtlx. Category: output. Type: boolean LiteGraph id: mtlx/output/output_boolean

Definition at line 1367 of file mtlx_stdlib.js.

1367 {
1368 this.title = 'output_boolean';
1369 this.desc = "MaterialX Node :mtlx/output/output_boolean";
1370 this.nodedef_icon = '';
1371 this.nodedef_name = 'ND_output_NaN';
1372 this.nodedef_node = 'output';
1373 this.nodedef_type = 'boolean';
1374 this.nodedef_group = 'output';
1375 this.addInput('in', 'boolean');
1376 this.addProperty('in', false, 'boolean');
1377 this.addOutput('out', 'boolean');
1378 this.onNodeCreated = function() {
1379 //console.log('Node created:', this);
1380 }
1381 this.onRemoved = function() {
1382 //console.log('Node removed:', this);
1383 }
1384 this.onPropertyChanged = function(name, value, prev_value) {
1385 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1386 }
1387 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1388 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1389 }
1390 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1391 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1392 }
1393 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1394 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1395 }
1396 this.color = '#004C94';
1397 this.bgcolor = '#000';
1398 this.boxcolor = '#060';
1399 this.shape = LiteGraph.ROUND_SHAPE;
1400 this.onExecute = function() {
1401 console.log('Executing node:', this);
1402 }
1403}

◆ mtlx_output_output_BSDF()

function mtlx_output_output_BSDF ( )

mtlx_output_output_BSDF

Library: mtlx. Category: output. Type: BSDF LiteGraph id: mtlx/output/output_BSDF

Definition at line 1455 of file mtlx_stdlib.js.

1455 {
1456 this.title = 'output_BSDF';
1457 this.desc = "MaterialX Node :mtlx/output/output_BSDF";
1458 this.nodedef_icon = '';
1459 this.nodedef_name = 'ND_output_NaN';
1460 this.nodedef_node = 'output';
1461 this.nodedef_type = 'BSDF';
1462 this.nodedef_group = 'output';
1463 this.addInput('in', 'BSDF');
1464 this.addProperty('in', '', 'BSDF');
1465 this.addOutput('out', 'BSDF');
1466 this.onNodeCreated = function() {
1467 //console.log('Node created:', this);
1468 }
1469 this.onRemoved = function() {
1470 //console.log('Node removed:', this);
1471 }
1472 this.onPropertyChanged = function(name, value, prev_value) {
1473 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1474 }
1475 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1476 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1477 }
1478 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1479 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1480 }
1481 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1482 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1483 }
1484 this.color = '#004C94';
1485 this.bgcolor = '#000';
1486 this.shape = LiteGraph.ROUND_SHAPE;
1487 this.onExecute = function() {
1488 console.log('Executing node:', this);
1489 }
1490}

◆ mtlx_output_output_color3()

function mtlx_output_output_color3 ( )

mtlx_output_output_color3

Library: mtlx. Category: output. Type: color3 LiteGraph id: mtlx/output/output_color3

Definition at line 971 of file mtlx_stdlib.js.

971 {
972 this.title = 'output_color3';
973 this.desc = "MaterialX Node :mtlx/output/output_color3";
974 this.nodedef_icon = '';
975 this.nodedef_name = 'ND_output_NaN';
976 this.nodedef_node = 'output';
977 this.nodedef_type = 'color3';
978 this.nodedef_group = 'output';
979 this.addInput('in', 'color3');
980 this.addProperty('in', [0.0, 0.0, 0.0], 'color3');
981 this.addOutput('out', 'color3');
982 this.onNodeCreated = function() {
983 //console.log('Node created:', this);
984 }
985 this.onRemoved = function() {
986 //console.log('Node removed:', this);
987 }
988 this.onPropertyChanged = function(name, value, prev_value) {
989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
990 }
991 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
993 }
994 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
996 }
997 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
999 }
1000 this.color = '#004C94';
1001 this.bgcolor = '#000';
1002 this.boxcolor = '#37A';
1003 this.shape = LiteGraph.ROUND_SHAPE;
1004 this.onExecute = function() {
1005 console.log('Executing node:', this);
1006 }
1007}

◆ mtlx_output_output_color4()

function mtlx_output_output_color4 ( )

mtlx_output_output_color4

Library: mtlx. Category: output. Type: color4 LiteGraph id: mtlx/output/output_color4

Definition at line 1015 of file mtlx_stdlib.js.

1015 {
1016 this.title = 'output_color4';
1017 this.desc = "MaterialX Node :mtlx/output/output_color4";
1018 this.nodedef_icon = '';
1019 this.nodedef_name = 'ND_output_NaN';
1020 this.nodedef_node = 'output';
1021 this.nodedef_type = 'color4';
1022 this.nodedef_group = 'output';
1023 this.addInput('in', 'color4');
1024 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'color4');
1025 this.addOutput('out', 'color4');
1026 this.onNodeCreated = function() {
1027 //console.log('Node created:', this);
1028 }
1029 this.onRemoved = function() {
1030 //console.log('Node removed:', this);
1031 }
1032 this.onPropertyChanged = function(name, value, prev_value) {
1033 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1034 }
1035 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1036 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1037 }
1038 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1039 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1040 }
1041 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1042 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1043 }
1044 this.color = '#004C94';
1045 this.bgcolor = '#000';
1046 this.boxcolor = '#69A';
1047 this.shape = LiteGraph.ROUND_SHAPE;
1048 this.onExecute = function() {
1049 console.log('Executing node:', this);
1050 }
1051}

◆ mtlx_output_output_displacementshader()

function mtlx_output_output_displacementshader ( )

mtlx_output_output_displacementshader

Library: mtlx. Category: output. Type: displacementshader LiteGraph id: mtlx/output/output_displacementshader

Definition at line 1670 of file mtlx_stdlib.js.

1670 {
1671 this.title = 'output_displacementshader';
1672 this.desc = "MaterialX Node :mtlx/output/output_displacementshader";
1673 this.nodedef_icon = '';
1674 this.nodedef_name = 'ND_output_NaN';
1675 this.nodedef_node = 'output';
1676 this.nodedef_type = 'displacementshader';
1677 this.nodedef_group = 'output';
1678 this.addInput('in', 'displacementshader');
1679 this.addProperty('in', '', 'displacementshader');
1680 this.addOutput('out', 'displacementshader');
1681 this.onNodeCreated = function() {
1682 //console.log('Node created:', this);
1683 }
1684 this.onRemoved = function() {
1685 //console.log('Node removed:', this);
1686 }
1687 this.onPropertyChanged = function(name, value, prev_value) {
1688 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1689 }
1690 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1691 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1692 }
1693 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1694 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1695 }
1696 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1697 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1698 }
1699 this.color = '#004C94';
1700 this.bgcolor = '#000';
1701 this.shape = LiteGraph.ROUND_SHAPE;
1702 this.onExecute = function() {
1703 console.log('Executing node:', this);
1704 }
1705}

◆ mtlx_output_output_EDF()

function mtlx_output_output_EDF ( )

mtlx_output_output_EDF

Library: mtlx. Category: output. Type: EDF LiteGraph id: mtlx/output/output_EDF

Definition at line 1498 of file mtlx_stdlib.js.

1498 {
1499 this.title = 'output_EDF';
1500 this.desc = "MaterialX Node :mtlx/output/output_EDF";
1501 this.nodedef_icon = '';
1502 this.nodedef_name = 'ND_output_NaN';
1503 this.nodedef_node = 'output';
1504 this.nodedef_type = 'EDF';
1505 this.nodedef_group = 'output';
1506 this.addInput('in', 'EDF');
1507 this.addProperty('in', '', 'EDF');
1508 this.addOutput('out', 'EDF');
1509 this.onNodeCreated = function() {
1510 //console.log('Node created:', this);
1511 }
1512 this.onRemoved = function() {
1513 //console.log('Node removed:', this);
1514 }
1515 this.onPropertyChanged = function(name, value, prev_value) {
1516 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1517 }
1518 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1519 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1520 }
1521 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1522 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1523 }
1524 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1525 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1526 }
1527 this.color = '#004C94';
1528 this.bgcolor = '#000';
1529 this.shape = LiteGraph.ROUND_SHAPE;
1530 this.onExecute = function() {
1531 console.log('Executing node:', this);
1532 }
1533}

◆ mtlx_output_output_filename()

function mtlx_output_output_filename ( )

mtlx_output_output_filename

Library: mtlx. Category: output. Type: filename LiteGraph id: mtlx/output/output_filename

Definition at line 1411 of file mtlx_stdlib.js.

1411 {
1412 this.title = 'output_filename';
1413 this.desc = "MaterialX Node :mtlx/output/output_filename";
1414 this.nodedef_icon = '';
1415 this.nodedef_name = 'ND_output_NaN';
1416 this.nodedef_node = 'output';
1417 this.nodedef_type = 'filename';
1418 this.nodedef_group = 'output';
1419 this.addInput('in', 'filename');
1420 this.addProperty('in', '', 'filename');
1421 this.addOutput('out', 'filename');
1422 this.onNodeCreated = function() {
1423 //console.log('Node created:', this);
1424 }
1425 this.onRemoved = function() {
1426 //console.log('Node removed:', this);
1427 }
1428 this.onPropertyChanged = function(name, value, prev_value) {
1429 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1430 }
1431 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1432 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1433 }
1434 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1435 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1436 }
1437 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1438 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1439 }
1440 this.color = '#004C94';
1441 this.bgcolor = '#000';
1442 this.boxcolor = '#888';
1443 this.shape = LiteGraph.ROUND_SHAPE;
1444 this.onExecute = function() {
1445 console.log('Executing node:', this);
1446 }
1447}

◆ mtlx_output_output_float()

function mtlx_output_output_float ( )

mtlx_output_output_float

Library: mtlx. Category: output. Type: float LiteGraph id: mtlx/output/output_float

Definition at line 927 of file mtlx_stdlib.js.

927 {
928 this.title = 'output_float';
929 this.desc = "MaterialX Node :mtlx/output/output_float";
930 this.nodedef_icon = '';
931 this.nodedef_name = 'ND_output_NaN';
932 this.nodedef_node = 'output';
933 this.nodedef_type = 'float';
934 this.nodedef_group = 'output';
935 this.addInput('in', 'float');
936 this.addProperty('in', 0, 'float');
937 this.addOutput('out', 'float');
938 this.onNodeCreated = function() {
939 //console.log('Node created:', this);
940 }
941 this.onRemoved = function() {
942 //console.log('Node removed:', this);
943 }
944 this.onPropertyChanged = function(name, value, prev_value) {
945 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
946 }
947 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
948 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
949 }
950 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
951 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
952 }
953 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
954 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
955 }
956 this.color = '#004C94';
957 this.bgcolor = '#000';
958 this.boxcolor = '#161';
959 this.shape = LiteGraph.ROUND_SHAPE;
960 this.onExecute = function() {
961 console.log('Executing node:', this);
962 }
963}

◆ mtlx_output_output_integer()

function mtlx_output_output_integer ( )

mtlx_output_output_integer

Library: mtlx. Category: output. Type: integer LiteGraph id: mtlx/output/output_integer

Definition at line 1279 of file mtlx_stdlib.js.

1279 {
1280 this.title = 'output_integer';
1281 this.desc = "MaterialX Node :mtlx/output/output_integer";
1282 this.nodedef_icon = '';
1283 this.nodedef_name = 'ND_output_NaN';
1284 this.nodedef_node = 'output';
1285 this.nodedef_type = 'integer';
1286 this.nodedef_group = 'output';
1287 this.addInput('in', 'integer');
1288 this.addProperty('in', 0, 'integer');
1289 this.addOutput('out', 'integer');
1290 this.onNodeCreated = function() {
1291 //console.log('Node created:', this);
1292 }
1293 this.onRemoved = function() {
1294 //console.log('Node removed:', this);
1295 }
1296 this.onPropertyChanged = function(name, value, prev_value) {
1297 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1298 }
1299 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1300 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1301 }
1302 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1303 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1304 }
1305 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1306 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1307 }
1308 this.color = '#004C94';
1309 this.bgcolor = '#000';
1310 this.boxcolor = '#A32';
1311 this.shape = LiteGraph.ROUND_SHAPE;
1312 this.onExecute = function() {
1313 console.log('Executing node:', this);
1314 }
1315}

◆ mtlx_output_output_lightshader()

function mtlx_output_output_lightshader ( )

mtlx_output_output_lightshader

Library: mtlx. Category: output. Type: lightshader LiteGraph id: mtlx/output/output_lightshader

Definition at line 1713 of file mtlx_stdlib.js.

1713 {
1714 this.title = 'output_lightshader';
1715 this.desc = "MaterialX Node :mtlx/output/output_lightshader";
1716 this.nodedef_icon = '';
1717 this.nodedef_name = 'ND_output_NaN';
1718 this.nodedef_node = 'output';
1719 this.nodedef_type = 'lightshader';
1720 this.nodedef_group = 'output';
1721 this.addInput('in', 'lightshader');
1722 this.addProperty('in', '', 'lightshader');
1723 this.addOutput('out', 'lightshader');
1724 this.onNodeCreated = function() {
1725 //console.log('Node created:', this);
1726 }
1727 this.onRemoved = function() {
1728 //console.log('Node removed:', this);
1729 }
1730 this.onPropertyChanged = function(name, value, prev_value) {
1731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1732 }
1733 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1735 }
1736 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1738 }
1739 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1741 }
1742 this.color = '#004C94';
1743 this.bgcolor = '#000';
1744 this.shape = LiteGraph.ROUND_SHAPE;
1745 this.onExecute = function() {
1746 console.log('Executing node:', this);
1747 }
1748}

◆ mtlx_output_output_material()

function mtlx_output_output_material ( )

mtlx_output_output_material

Library: mtlx. Category: output. Type: material LiteGraph id: mtlx/output/output_material

Definition at line 1756 of file mtlx_stdlib.js.

1756 {
1757 this.title = 'output_material';
1758 this.desc = "MaterialX Node :mtlx/output/output_material";
1759 this.nodedef_icon = '';
1760 this.nodedef_name = 'ND_output_NaN';
1761 this.nodedef_node = 'output';
1762 this.nodedef_type = 'material';
1763 this.nodedef_group = 'output';
1764 this.addInput('in', 'material');
1765 this.addProperty('in', '', 'material');
1766 this.addOutput('out', 'material');
1767 this.onNodeCreated = function() {
1768 //console.log('Node created:', this);
1769 }
1770 this.onRemoved = function() {
1771 //console.log('Node removed:', this);
1772 }
1773 this.onPropertyChanged = function(name, value, prev_value) {
1774 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1775 }
1776 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1777 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1778 }
1779 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1780 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1781 }
1782 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1783 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1784 }
1785 this.color = '#004C94';
1786 this.bgcolor = '#000';
1787 this.shape = LiteGraph.ROUND_SHAPE;
1788 this.onExecute = function() {
1789 console.log('Executing node:', this);
1790 }
1791}

◆ mtlx_output_output_matrix33()

function mtlx_output_output_matrix33 ( )

mtlx_output_output_matrix33

Library: mtlx. Category: output. Type: matrix33 LiteGraph id: mtlx/output/output_matrix33

Definition at line 1191 of file mtlx_stdlib.js.

1191 {
1192 this.title = 'output_matrix33';
1193 this.desc = "MaterialX Node :mtlx/output/output_matrix33";
1194 this.nodedef_icon = '';
1195 this.nodedef_name = 'ND_output_NaN';
1196 this.nodedef_node = 'output';
1197 this.nodedef_type = 'matrix33';
1198 this.nodedef_group = 'output';
1199 this.addInput('in', 'matrix33');
1200 this.addProperty('in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], 'matrix33');
1201 this.addOutput('out', 'matrix33');
1202 this.onNodeCreated = function() {
1203 //console.log('Node created:', this);
1204 }
1205 this.onRemoved = function() {
1206 //console.log('Node removed:', this);
1207 }
1208 this.onPropertyChanged = function(name, value, prev_value) {
1209 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1210 }
1211 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1212 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1213 }
1214 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1215 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1216 }
1217 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1218 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1219 }
1220 this.color = '#004C94';
1221 this.bgcolor = '#000';
1222 this.boxcolor = '#333';
1223 this.shape = LiteGraph.ROUND_SHAPE;
1224 this.onExecute = function() {
1225 console.log('Executing node:', this);
1226 }
1227}

◆ mtlx_output_output_matrix44()

function mtlx_output_output_matrix44 ( )

mtlx_output_output_matrix44

Library: mtlx. Category: output. Type: matrix44 LiteGraph id: mtlx/output/output_matrix44

Definition at line 1235 of file mtlx_stdlib.js.

1235 {
1236 this.title = 'output_matrix44';
1237 this.desc = "MaterialX Node :mtlx/output/output_matrix44";
1238 this.nodedef_icon = '';
1239 this.nodedef_name = 'ND_output_NaN';
1240 this.nodedef_node = 'output';
1241 this.nodedef_type = 'matrix44';
1242 this.nodedef_group = 'output';
1243 this.addInput('in', 'matrix44');
1244 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');
1245 this.addOutput('out', 'matrix44');
1246 this.onNodeCreated = function() {
1247 //console.log('Node created:', this);
1248 }
1249 this.onRemoved = function() {
1250 //console.log('Node removed:', this);
1251 }
1252 this.onPropertyChanged = function(name, value, prev_value) {
1253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1254 }
1255 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1257 }
1258 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1260 }
1261 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1263 }
1264 this.color = '#004C94';
1265 this.bgcolor = '#000';
1266 this.boxcolor = '#444';
1267 this.shape = LiteGraph.ROUND_SHAPE;
1268 this.onExecute = function() {
1269 console.log('Executing node:', this);
1270 }
1271}

◆ mtlx_output_output_string()

function mtlx_output_output_string ( )

mtlx_output_output_string

Library: mtlx. Category: output. Type: string LiteGraph id: mtlx/output/output_string

Definition at line 1323 of file mtlx_stdlib.js.

1323 {
1324 this.title = 'output_string';
1325 this.desc = "MaterialX Node :mtlx/output/output_string";
1326 this.nodedef_icon = '';
1327 this.nodedef_name = 'ND_output_NaN';
1328 this.nodedef_node = 'output';
1329 this.nodedef_type = 'string';
1330 this.nodedef_group = 'output';
1331 this.addInput('in', 'string');
1332 this.addProperty('in', '', 'string');
1333 this.addOutput('out', 'string');
1334 this.onNodeCreated = function() {
1335 //console.log('Node created:', this);
1336 }
1337 this.onRemoved = function() {
1338 //console.log('Node removed:', this);
1339 }
1340 this.onPropertyChanged = function(name, value, prev_value) {
1341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1342 }
1343 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1345 }
1346 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1348 }
1349 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1351 }
1352 this.color = '#004C94';
1353 this.bgcolor = '#000';
1354 this.boxcolor = '#395';
1355 this.shape = LiteGraph.ROUND_SHAPE;
1356 this.onExecute = function() {
1357 console.log('Executing node:', this);
1358 }
1359}

◆ mtlx_output_output_surfaceshader()

function mtlx_output_output_surfaceshader ( )

mtlx_output_output_surfaceshader

Library: mtlx. Category: output. Type: surfaceshader LiteGraph id: mtlx/output/output_surfaceshader

Definition at line 1584 of file mtlx_stdlib.js.

1584 {
1585 this.title = 'output_surfaceshader';
1586 this.desc = "MaterialX Node :mtlx/output/output_surfaceshader";
1587 this.nodedef_icon = '';
1588 this.nodedef_name = 'ND_output_NaN';
1589 this.nodedef_node = 'output';
1590 this.nodedef_type = 'surfaceshader';
1591 this.nodedef_group = 'output';
1592 this.addInput('in', 'surfaceshader');
1593 this.addProperty('in', '', 'surfaceshader');
1594 this.addOutput('out', 'surfaceshader');
1595 this.onNodeCreated = function() {
1596 //console.log('Node created:', this);
1597 }
1598 this.onRemoved = function() {
1599 //console.log('Node removed:', this);
1600 }
1601 this.onPropertyChanged = function(name, value, prev_value) {
1602 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1603 }
1604 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1605 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1606 }
1607 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1608 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1609 }
1610 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1611 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1612 }
1613 this.color = '#004C94';
1614 this.bgcolor = '#000';
1615 this.shape = LiteGraph.ROUND_SHAPE;
1616 this.onExecute = function() {
1617 console.log('Executing node:', this);
1618 }
1619}

◆ mtlx_output_output_VDF()

function mtlx_output_output_VDF ( )

mtlx_output_output_VDF

Library: mtlx. Category: output. Type: VDF LiteGraph id: mtlx/output/output_VDF

Definition at line 1541 of file mtlx_stdlib.js.

1541 {
1542 this.title = 'output_VDF';
1543 this.desc = "MaterialX Node :mtlx/output/output_VDF";
1544 this.nodedef_icon = '';
1545 this.nodedef_name = 'ND_output_NaN';
1546 this.nodedef_node = 'output';
1547 this.nodedef_type = 'VDF';
1548 this.nodedef_group = 'output';
1549 this.addInput('in', 'VDF');
1550 this.addProperty('in', '', 'VDF');
1551 this.addOutput('out', 'VDF');
1552 this.onNodeCreated = function() {
1553 //console.log('Node created:', this);
1554 }
1555 this.onRemoved = function() {
1556 //console.log('Node removed:', this);
1557 }
1558 this.onPropertyChanged = function(name, value, prev_value) {
1559 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1560 }
1561 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1562 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1563 }
1564 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1565 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1566 }
1567 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1568 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1569 }
1570 this.color = '#004C94';
1571 this.bgcolor = '#000';
1572 this.shape = LiteGraph.ROUND_SHAPE;
1573 this.onExecute = function() {
1574 console.log('Executing node:', this);
1575 }
1576}

◆ mtlx_output_output_vector2()

function mtlx_output_output_vector2 ( )

mtlx_output_output_vector2

Library: mtlx. Category: output. Type: vector2 LiteGraph id: mtlx/output/output_vector2

Definition at line 1059 of file mtlx_stdlib.js.

1059 {
1060 this.title = 'output_vector2';
1061 this.desc = "MaterialX Node :mtlx/output/output_vector2";
1062 this.nodedef_icon = '';
1063 this.nodedef_name = 'ND_output_NaN';
1064 this.nodedef_node = 'output';
1065 this.nodedef_type = 'vector2';
1066 this.nodedef_group = 'output';
1067 this.addInput('in', 'vector2');
1068 this.addProperty('in', [0.0, 0.0], 'vector2');
1069 this.addOutput('out', 'vector2');
1070 this.onNodeCreated = function() {
1071 //console.log('Node created:', this);
1072 }
1073 this.onRemoved = function() {
1074 //console.log('Node removed:', this);
1075 }
1076 this.onPropertyChanged = function(name, value, prev_value) {
1077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1078 }
1079 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1081 }
1082 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1084 }
1085 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1087 }
1088 this.color = '#004C94';
1089 this.bgcolor = '#000';
1090 this.boxcolor = '#265';
1091 this.shape = LiteGraph.ROUND_SHAPE;
1092 this.onExecute = function() {
1093 console.log('Executing node:', this);
1094 }
1095}

◆ mtlx_output_output_vector2array()

function mtlx_output_output_vector2array ( )

mtlx_output_output_vector2array

Library: mtlx. Category: output. Type: vector2array LiteGraph id: mtlx/output/output_vector2array

Definition at line 1799 of file mtlx_stdlib.js.

1799 {
1800 this.title = 'output_vector2array';
1801 this.desc = "MaterialX Node :mtlx/output/output_vector2array";
1802 this.nodedef_icon = '';
1803 this.nodedef_name = 'ND_output_NaN';
1804 this.nodedef_node = 'output';
1805 this.nodedef_type = 'vector2array';
1806 this.nodedef_group = 'output';
1807 this.addInput('in', 'vector2array');
1808 this.addProperty('in', '', 'vector2array');
1809 this.addOutput('out', 'vector2array');
1810 this.onNodeCreated = function() {
1811 //console.log('Node created:', this);
1812 }
1813 this.onRemoved = function() {
1814 //console.log('Node removed:', this);
1815 }
1816 this.onPropertyChanged = function(name, value, prev_value) {
1817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1818 }
1819 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1821 }
1822 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1824 }
1825 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1827 }
1828 this.color = '#004C94';
1829 this.bgcolor = '#000';
1830 this.shape = LiteGraph.ROUND_SHAPE;
1831 this.onExecute = function() {
1832 console.log('Executing node:', this);
1833 }
1834}

◆ mtlx_output_output_vector3()

function mtlx_output_output_vector3 ( )

mtlx_output_output_vector3

Library: mtlx. Category: output. Type: vector3 LiteGraph id: mtlx/output/output_vector3

Definition at line 1103 of file mtlx_stdlib.js.

1103 {
1104 this.title = 'output_vector3';
1105 this.desc = "MaterialX Node :mtlx/output/output_vector3";
1106 this.nodedef_icon = '';
1107 this.nodedef_name = 'ND_output_NaN';
1108 this.nodedef_node = 'output';
1109 this.nodedef_type = 'vector3';
1110 this.nodedef_group = 'output';
1111 this.addInput('in', 'vector3');
1112 this.addProperty('in', [0.0, 0.0, 0.0], 'vector3');
1113 this.addOutput('out', 'vector3');
1114 this.onNodeCreated = function() {
1115 //console.log('Node created:', this);
1116 }
1117 this.onRemoved = function() {
1118 //console.log('Node removed:', this);
1119 }
1120 this.onPropertyChanged = function(name, value, prev_value) {
1121 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1122 }
1123 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1124 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1125 }
1126 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1127 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1128 }
1129 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1130 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1131 }
1132 this.color = '#004C94';
1133 this.bgcolor = '#000';
1134 this.boxcolor = '#465';
1135 this.shape = LiteGraph.ROUND_SHAPE;
1136 this.onExecute = function() {
1137 console.log('Executing node:', this);
1138 }
1139}

◆ mtlx_output_output_vector4()

function mtlx_output_output_vector4 ( )

mtlx_output_output_vector4

Library: mtlx. Category: output. Type: vector4 LiteGraph id: mtlx/output/output_vector4

Definition at line 1147 of file mtlx_stdlib.js.

1147 {
1148 this.title = 'output_vector4';
1149 this.desc = "MaterialX Node :mtlx/output/output_vector4";
1150 this.nodedef_icon = '';
1151 this.nodedef_name = 'ND_output_NaN';
1152 this.nodedef_node = 'output';
1153 this.nodedef_type = 'vector4';
1154 this.nodedef_group = 'output';
1155 this.addInput('in', 'vector4');
1156 this.addProperty('in', [0.0, 0.0, 0.0, 0.0], 'vector4');
1157 this.addOutput('out', 'vector4');
1158 this.onNodeCreated = function() {
1159 //console.log('Node created:', this);
1160 }
1161 this.onRemoved = function() {
1162 //console.log('Node removed:', this);
1163 }
1164 this.onPropertyChanged = function(name, value, prev_value) {
1165 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1166 }
1167 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1168 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1169 }
1170 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1171 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1172 }
1173 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1174 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1175 }
1176 this.color = '#004C94';
1177 this.bgcolor = '#000';
1178 this.boxcolor = '#275';
1179 this.shape = LiteGraph.ROUND_SHAPE;
1180 this.onExecute = function() {
1181 console.log('Executing node:', this);
1182 }
1183}

◆ mtlx_output_output_volumeshader()

function mtlx_output_output_volumeshader ( )

mtlx_output_output_volumeshader

Library: mtlx. Category: output. Type: volumeshader LiteGraph id: mtlx/output/output_volumeshader

Definition at line 1627 of file mtlx_stdlib.js.

1627 {
1628 this.title = 'output_volumeshader';
1629 this.desc = "MaterialX Node :mtlx/output/output_volumeshader";
1630 this.nodedef_icon = '';
1631 this.nodedef_name = 'ND_output_NaN';
1632 this.nodedef_node = 'output';
1633 this.nodedef_type = 'volumeshader';
1634 this.nodedef_group = 'output';
1635 this.addInput('in', 'volumeshader');
1636 this.addProperty('in', '', 'volumeshader');
1637 this.addOutput('out', 'volumeshader');
1638 this.onNodeCreated = function() {
1639 //console.log('Node created:', this);
1640 }
1641 this.onRemoved = function() {
1642 //console.log('Node removed:', this);
1643 }
1644 this.onPropertyChanged = function(name, value, prev_value) {
1645 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1646 }
1647 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1648 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1649 }
1650 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1651 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1652 }
1653 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1654 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1655 }
1656 this.color = '#004C94';
1657 this.bgcolor = '#000';
1658 this.shape = LiteGraph.ROUND_SHAPE;
1659 this.onExecute = function() {
1660 console.log('Executing node:', this);
1661 }
1662}

◆ mtlx_pbr_absorption_vdf()

function mtlx_pbr_absorption_vdf ( )

mtlx_pbr_absorption_vdf

Library: mtlx. Category: generalized_schlick_edf. Type: VDF LiteGraph id: mtlx/pbr/absorption_vdf

Definition at line 36164 of file mtlx_stdlib.js.

36164 {
36165 this.nodedef_icon = '';
36166 this.nodedef_name = 'ND_absorption_vdf';
36167 this.nodedef_type = 'VDF';
36168 this.nodedef_node = 'absorption_vdf';
36169 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absorption_vdf.html';
36170 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absorption_vdf_out_genglsl.png';
36171 this.nodedef_group = 'pbr';
36172 this.addInput('absorption','vector3');
36173 this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36174 this.addOutput('out','VDF');
36175 this.title = 'absorption_vdf_VDF';
36176 this.desc = "MaterialX:mtlx/pbr/absorption_vdf";
36177 this.onNodeCreated = function() {
36178 //console.log('Node created:', this);
36179}
36180 this.onRemoved = function() {
36181 //console.log('Node removed:', this);
36182 }
36183 this.onPropertyChanged = function(name, value, prev_value) {
36184 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36185 }
36186 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36187 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36188 }
36189 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36190 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36191 }
36192 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36193 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36194 }
36195 this.bgcolor = '#111';
36196 this.color = '#222';
36197 this.shape = LiteGraph.ROUND_SHAPE;
36198}

◆ mtlx_pbr_add_bsdf()

function mtlx_pbr_add_bsdf ( )

mtlx_pbr_add_bsdf

Library: mtlx. Category: mix. Type: BSDF LiteGraph id: mtlx/pbr/add_bsdf

Definition at line 36740 of file mtlx_stdlib.js.

36740 {
36741 this.nodedef_icon = '';
36742 this.nodedef_name = 'ND_add_bsdf';
36743 this.nodedef_type = 'BSDF';
36744 this.nodedef_node = 'add';
36745 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36746 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_bsdf_out_genglsl.png';
36747 this.nodedef_group = 'pbr';
36748 this.addInput('in1','BSDF');
36749 this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36750 this.addInput('in2','BSDF');
36751 this.addProperty('in2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36752 this.addOutput('out','BSDF');
36753 this.title = 'add_BSDF';
36754 this.desc = "MaterialX:mtlx/pbr/add_bsdf";
36755 this.onNodeCreated = function() {
36756 //console.log('Node created:', this);
36757}
36758 this.onRemoved = function() {
36759 //console.log('Node removed:', this);
36760 }
36761 this.onPropertyChanged = function(name, value, prev_value) {
36762 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36763 }
36764 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36765 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36766 }
36767 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36768 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36769 }
36770 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36771 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36772 }
36773 this.bgcolor = '#111';
36774 this.color = '#222';
36775 this.shape = LiteGraph.ROUND_SHAPE;
36776}

◆ mtlx_pbr_add_edf()

function mtlx_pbr_add_edf ( )

mtlx_pbr_add_edf

Library: mtlx. Category: add. Type: EDF LiteGraph id: mtlx/pbr/add_edf

Definition at line 36787 of file mtlx_stdlib.js.

36787 {
36788 this.nodedef_icon = '';
36789 this.nodedef_name = 'ND_add_edf';
36790 this.nodedef_type = 'EDF';
36791 this.nodedef_node = 'add';
36792 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36793 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_edf_out_genglsl.png';
36794 this.nodedef_group = 'pbr';
36795 this.addInput('in1','EDF');
36796 this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36797 this.addInput('in2','EDF');
36798 this.addProperty('in2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36799 this.addOutput('out','EDF');
36800 this.title = 'add_EDF';
36801 this.desc = "MaterialX:mtlx/pbr/add_edf";
36802 this.onNodeCreated = function() {
36803 //console.log('Node created:', this);
36804}
36805 this.onRemoved = function() {
36806 //console.log('Node removed:', this);
36807 }
36808 this.onPropertyChanged = function(name, value, prev_value) {
36809 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36810 }
36811 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36812 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36813 }
36814 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36815 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36816 }
36817 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36818 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36819 }
36820 this.bgcolor = '#111';
36821 this.color = '#222';
36822 this.shape = LiteGraph.ROUND_SHAPE;
36823}

◆ mtlx_pbr_add_vdf()

function mtlx_pbr_add_vdf ( )

mtlx_pbr_add_vdf

Library: mtlx. Category: add. Type: VDF LiteGraph id: mtlx/pbr/add_vdf

Definition at line 36834 of file mtlx_stdlib.js.

36834 {
36835 this.nodedef_icon = '';
36836 this.nodedef_name = 'ND_add_vdf';
36837 this.nodedef_type = 'VDF';
36838 this.nodedef_node = 'add';
36839 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36840 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vdf_out_genglsl.png';
36841 this.nodedef_group = 'pbr';
36842 this.addInput('in1','VDF');
36843 this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36844 this.addInput('in2','VDF');
36845 this.addProperty('in2', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36846 this.addOutput('out','VDF');
36847 this.title = 'add_VDF';
36848 this.desc = "MaterialX:mtlx/pbr/add_vdf";
36849 this.onNodeCreated = function() {
36850 //console.log('Node created:', this);
36851}
36852 this.onRemoved = function() {
36853 //console.log('Node removed:', this);
36854 }
36855 this.onPropertyChanged = function(name, value, prev_value) {
36856 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36857 }
36858 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36859 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36860 }
36861 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36862 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36863 }
36864 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36865 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36866 }
36867 this.bgcolor = '#111';
36868 this.color = '#222';
36869 this.shape = LiteGraph.ROUND_SHAPE;
36870}

◆ mtlx_pbr_anisotropic_vdf()

function mtlx_pbr_anisotropic_vdf ( )

mtlx_pbr_anisotropic_vdf

Library: mtlx. Category: absorption_vdf. Type: VDF LiteGraph id: mtlx/pbr/anisotropic_vdf

Definition at line 36209 of file mtlx_stdlib.js.

36209 {
36210 this.nodedef_icon = '';
36211 this.nodedef_name = 'ND_anisotropic_vdf';
36212 this.nodedef_type = 'VDF';
36213 this.nodedef_node = 'anisotropic_vdf';
36214 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/anisotropic_vdf.html';
36215 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_anisotropic_vdf_out_genglsl.png';
36216 this.nodedef_group = 'pbr';
36217 this.addInput('absorption','vector3');
36218 this.addProperty('absorption', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36219 this.addInput('scattering','vector3');
36220 this.addProperty('scattering', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36221 this.addInput('anisotropy','float');
36222 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36223 this.addOutput('out','VDF');
36224 this.title = 'anisotropic_vdf_VDF';
36225 this.desc = "MaterialX:mtlx/pbr/anisotropic_vdf";
36226 this.onNodeCreated = function() {
36227 //console.log('Node created:', this);
36228}
36229 this.onRemoved = function() {
36230 //console.log('Node removed:', this);
36231 }
36232 this.onPropertyChanged = function(name, value, prev_value) {
36233 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36234 }
36235 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36236 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36237 }
36238 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36239 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36240 }
36241 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36242 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36243 }
36244 this.bgcolor = '#111';
36245 this.color = '#222';
36246 this.shape = LiteGraph.ROUND_SHAPE;
36247}

◆ mtlx_pbr_artistic_ior()

function mtlx_pbr_artistic_ior ( )

mtlx_pbr_artistic_ior

Library: mtlx. Category: blackbody. Type: multioutput LiteGraph id: mtlx/pbr/artistic_ior

Definition at line 37351 of file mtlx_stdlib.js.

37351 {
37352 this.nodedef_icon = '';
37353 this.nodedef_name = 'ND_artistic_ior';
37354 this.nodedef_type = 'multioutput';
37355 this.nodedef_node = 'artistic_ior';
37356 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/artistic_ior.html';
37357 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_artistic_ior_ior_genglsl.png';
37358 this.nodedef_group = 'pbr';
37359 this.addInput('reflectivity','color3');
37360 this.addProperty('reflectivity', [0.944, 0.776, 0.373], 'color3',{"colorspace":"lin_rec709","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37361 this.addInput('edge_color','color3');
37362 this.addProperty('edge_color', [0.998, 0.981, 0.751], 'color3',{"colorspace":"lin_rec709","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37363 this.addOutput('ior','color3');
37364 this.addOutput('extinction','color3');
37365 this.title = 'artistic_ior_multioutput';
37366 this.desc = "MaterialX:mtlx/pbr/artistic_ior";
37367 this.onNodeCreated = function() {
37368 //console.log('Node created:', this);
37369}
37370 this.onRemoved = function() {
37371 //console.log('Node removed:', this);
37372 }
37373 this.onPropertyChanged = function(name, value, prev_value) {
37374 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37375 }
37376 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37377 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37378 }
37379 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37380 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37381 }
37382 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37383 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37384 }
37385 this.bgcolor = '#111';
37386 this.color = '#222';
37387 this.shape = LiteGraph.ROUND_SHAPE;
37388}

◆ mtlx_pbr_blackbody()

function mtlx_pbr_blackbody ( )

mtlx_pbr_blackbody

Library: mtlx. Category: glossiness_anisotropy. Type: color3 LiteGraph id: mtlx/pbr/blackbody

Definition at line 37305 of file mtlx_stdlib.js.

37305 {
37306 this.nodedef_icon = '';
37307 this.nodedef_name = 'ND_blackbody';
37308 this.nodedef_type = 'color3';
37309 this.nodedef_node = 'blackbody';
37310 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blackbody.html';
37311 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blackbody_out_genglsl.png';
37312 this.nodedef_group = 'pbr';
37313 this.addInput('temperature','float');
37314 this.addProperty('temperature', 5000.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37315 this.addOutput('out','color3');
37316 this.title = 'blackbody_color3';
37317 this.desc = "MaterialX:mtlx/pbr/blackbody";
37318 this.onNodeCreated = function() {
37319 //console.log('Node created:', this);
37320}
37321 this.onRemoved = function() {
37322 //console.log('Node removed:', this);
37323 }
37324 this.onPropertyChanged = function(name, value, prev_value) {
37325 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37326 }
37327 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37328 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37329 }
37330 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37331 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37332 }
37333 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37334 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37335 }
37336 this.bgcolor = '#111';
37337 this.color = '#222';
37338 this.shape = LiteGraph.ROUND_SHAPE;
37339 this.boxcolor = '#37A';
37340}

◆ mtlx_pbr_burley_diffuse_bsdf()

function mtlx_pbr_burley_diffuse_bsdf ( )

mtlx_pbr_burley_diffuse_bsdf

Library: mtlx. Category: oren_nayar_diffuse_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/burley_diffuse_bsdf

Definition at line 35571 of file mtlx_stdlib.js.

35571 {
35572 this.nodedef_icon = '';
35573 this.nodedef_name = 'ND_burley_diffuse_bsdf';
35574 this.nodedef_type = 'BSDF';
35575 this.nodedef_node = 'burley_diffuse_bsdf';
35576 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burley_diffuse_bsdf.html';
35577 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burley_diffuse_bsdf_out_genglsl.png';
35578 this.nodedef_group = 'pbr';
35579 this.addInput('weight','float');
35580 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35581 this.addInput('color','color3');
35582 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35583 this.addInput('roughness','float');
35584 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35585 this.addInput('normal','vector3');
35586 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35587 this.addOutput('out','BSDF');
35588 this.title = 'burley_diffuse_bsdf_BSDF';
35589 this.desc = "MaterialX:mtlx/pbr/burley_diffuse_bsdf";
35590 this.onNodeCreated = function() {
35591 //console.log('Node created:', this);
35592}
35593 this.onRemoved = function() {
35594 //console.log('Node removed:', this);
35595 }
35596 this.onPropertyChanged = function(name, value, prev_value) {
35597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35598 }
35599 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35601 }
35602 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35604 }
35605 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35607 }
35608 this.bgcolor = '#111';
35609 this.color = '#222';
35610 this.shape = LiteGraph.ROUND_SHAPE;
35611}

◆ mtlx_pbr_conductor_bsdf()

function mtlx_pbr_conductor_bsdf ( )

mtlx_pbr_conductor_bsdf

Library: mtlx. Category: dielectric_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/conductor_bsdf

Definition at line 35734 of file mtlx_stdlib.js.

35734 {
35735 this.nodedef_icon = '';
35736 this.nodedef_name = 'ND_conductor_bsdf';
35737 this.nodedef_type = 'BSDF';
35738 this.nodedef_node = 'conductor_bsdf';
35739 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conductor_bsdf.html';
35740 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_conductor_bsdf_out_genglsl.png';
35741 this.nodedef_group = 'pbr';
35742 this.addInput('weight','float');
35743 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35744 this.addInput('ior','color3');
35745 this.addProperty('ior', [0.183, 0.421, 1.373], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35746 this.addInput('extinction','color3');
35747 this.addProperty('extinction', [3.424, 2.346, 1.770], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35748 this.addInput('roughness','vector2');
35749 this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35750 this.addInput('thinfilm_thickness','float');
35751 this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"nanometer","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35752 this.addInput('thinfilm_ior','float');
35753 this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35754 this.addInput('normal','vector3');
35755 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35756 this.addInput('tangent','vector3');
35757 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
35758 this.addInput('distribution','string');
35759 this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["ggx"]});
35760 this.addOutput('out','BSDF');
35761 this.title = 'conductor_bsdf_BSDF';
35762 this.desc = "MaterialX:mtlx/pbr/conductor_bsdf";
35763 this.onNodeCreated = function() {
35764 //console.log('Node created:', this);
35765}
35766 this.onRemoved = function() {
35767 //console.log('Node removed:', this);
35768 }
35769 this.onPropertyChanged = function(name, value, prev_value) {
35770 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35771 }
35772 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35773 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35774 }
35775 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35776 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35777 }
35778 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35779 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35780 }
35781 this.bgcolor = '#111';
35782 this.color = '#222';
35783 this.shape = LiteGraph.ROUND_SHAPE;
35784}

◆ mtlx_pbr_conical_edf()

function mtlx_pbr_conical_edf ( )

mtlx_pbr_conical_edf

Library: mtlx. Category: uniform_edf. Type: EDF LiteGraph id: mtlx/pbr/conical_edf

Definition at line 36013 of file mtlx_stdlib.js.

36013 {
36014 this.nodedef_icon = '';
36015 this.nodedef_name = 'ND_conical_edf';
36016 this.nodedef_type = 'EDF';
36017 this.nodedef_node = 'conical_edf';
36018 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conical_edf.html';
36019 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_conical_edf_out_genglsl.png';
36020 this.nodedef_group = 'pbr';
36021 this.addInput('color','color3');
36022 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36023 this.addInput('normal','vector3');
36024 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
36025 this.addInput('inner_angle','float');
36026 this.addProperty('inner_angle', 60.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36027 this.addInput('outer_angle','float');
36028 this.addProperty('outer_angle', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36029 this.addOutput('out','EDF');
36030 this.title = 'conical_edf_EDF';
36031 this.desc = "MaterialX:mtlx/pbr/conical_edf";
36032 this.onNodeCreated = function() {
36033 //console.log('Node created:', this);
36034}
36035 this.onRemoved = function() {
36036 //console.log('Node removed:', this);
36037 }
36038 this.onPropertyChanged = function(name, value, prev_value) {
36039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36040 }
36041 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36043 }
36044 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36046 }
36047 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36049 }
36050 this.bgcolor = '#111';
36051 this.color = '#222';
36052 this.shape = LiteGraph.ROUND_SHAPE;
36053}

◆ mtlx_pbr_dielectric_bsdf()

function mtlx_pbr_dielectric_bsdf ( )

mtlx_pbr_dielectric_bsdf

Library: mtlx. Category: translucent_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/dielectric_bsdf

Definition at line 35671 of file mtlx_stdlib.js.

35671 {
35672 this.nodedef_icon = '';
35673 this.nodedef_name = 'ND_dielectric_bsdf';
35674 this.nodedef_type = 'BSDF';
35675 this.nodedef_node = 'dielectric_bsdf';
35676 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dielectric_bsdf.html';
35677 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dielectric_bsdf_out_genglsl.png';
35678 this.nodedef_group = 'pbr';
35679 this.addInput('weight','float');
35680 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35681 this.addInput('tint','color3');
35682 this.addProperty('tint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35683 this.addInput('ior','float');
35684 this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35685 this.addInput('roughness','vector2');
35686 this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35687 this.addInput('thinfilm_thickness','float');
35688 this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"nanometer","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35689 this.addInput('thinfilm_ior','float');
35690 this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35691 this.addInput('normal','vector3');
35692 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35693 this.addInput('tangent','vector3');
35694 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
35695 this.addInput('distribution','string');
35696 this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["ggx"]});
35697 this.addInput('scatter_mode','string');
35698 this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["R","T","RT"]});
35699 this.addOutput('out','BSDF');
35700 this.title = 'dielectric_bsdf_BSDF';
35701 this.desc = "MaterialX:mtlx/pbr/dielectric_bsdf";
35702 this.onNodeCreated = function() {
35703 //console.log('Node created:', this);
35704}
35705 this.onRemoved = function() {
35706 //console.log('Node removed:', this);
35707 }
35708 this.onPropertyChanged = function(name, value, prev_value) {
35709 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35710 }
35711 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35712 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35713 }
35714 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35715 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35716 }
35717 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35718 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35719 }
35720 this.bgcolor = '#111';
35721 this.color = '#222';
35722 this.shape = LiteGraph.ROUND_SHAPE;
35723}

◆ mtlx_pbr_disney_brdf_2012_surface()

function mtlx_pbr_disney_brdf_2012_surface ( )

mtlx_pbr_disney_brdf_2012_surface

Library: mtlx. Category: UsdTransform2d. Type: surfaceshader LiteGraph id: mtlx/pbr/disney_brdf_2012_surface

Definition at line 38875 of file mtlx_stdlib.js.

38875 {
38876 this.nodedef_icon = '';
38877 this.nodedef_name = 'ND_disney_brdf_2012_surface';
38878 this.nodedef_type = 'surfaceshader';
38879 this.nodedef_node = 'disney_brdf_2012';
38880 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disney_brdf_2012.html';
38881 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disney_brdf_2012_surface_out_genglsl.png';
38882 this.nodedef_group = 'pbr';
38883 this.addInput('baseColor','color3');
38884 this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38885 this.addInput('metallic','float');
38886 this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38887 this.addInput('subsurface','float');
38888 this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38889 this.addInput('specular','float');
38890 this.addProperty('specular', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38891 this.addInput('roughness','float');
38892 this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38893 this.addInput('specularTint','float');
38894 this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38895 this.addInput('anisotropic','float');
38896 this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38897 this.addInput('sheen','float');
38898 this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38899 this.addInput('sheenTint','float');
38900 this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38901 this.addInput('clearcoat','float');
38902 this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38903 this.addInput('clearcoatGloss','float');
38904 this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38905 this.addOutput('out','surfaceshader');
38906 this.title = 'disney_brdf_2012_surfaceshader';
38907 this.desc = "MaterialX:mtlx/pbr/disney_brdf_2012_surface";
38908 this.onNodeCreated = function() {
38909 //console.log('Node created:', this);
38910}
38911 this.onRemoved = function() {
38912 //console.log('Node removed:', this);
38913 }
38914 this.onPropertyChanged = function(name, value, prev_value) {
38915 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38916 }
38917 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38918 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38919 }
38920 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38921 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38922 }
38923 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38924 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38925 }
38926 this.bgcolor = '#111';
38927 this.color = '#232';
38928 this.shape = LiteGraph.ROUND_SHAPE;
38929}

◆ mtlx_pbr_disney_bsdf_2015_surface()

function mtlx_pbr_disney_bsdf_2015_surface ( )

mtlx_pbr_disney_bsdf_2015_surface

Library: mtlx. Category: disney_brdf_2012. Type: surfaceshader LiteGraph id: mtlx/pbr/disney_bsdf_2015_surface

Definition at line 38940 of file mtlx_stdlib.js.

38940 {
38941 this.nodedef_icon = '';
38942 this.nodedef_name = 'ND_disney_bsdf_2015_surface';
38943 this.nodedef_type = 'surfaceshader';
38944 this.nodedef_node = 'disney_bsdf_2015';
38945 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disney_bsdf_2015.html';
38946 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disney_bsdf_2015_surface_out_genglsl.png';
38947 this.nodedef_group = 'pbr';
38948 this.addInput('baseColor','color3');
38949 this.addProperty('baseColor', [0.16, 0.16, 0.16], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38950 this.addInput('metallic','float');
38951 this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38952 this.addInput('roughness','float');
38953 this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38954 this.addInput('anisotropic','float');
38955 this.addProperty('anisotropic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38956 this.addInput('specularTint','float');
38957 this.addProperty('specularTint', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38958 this.addInput('sheen','float');
38959 this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38960 this.addInput('sheenTint','float');
38961 this.addProperty('sheenTint', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38962 this.addInput('clearcoat','float');
38963 this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38964 this.addInput('clearcoatGloss','float');
38965 this.addProperty('clearcoatGloss', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38966 this.addInput('specTrans','float');
38967 this.addProperty('specTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38968 this.addInput('ior','float');
38969 this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38970 this.addInput('scatterDistance','vector3');
38971 this.addProperty('scatterDistance', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38972 this.addInput('flatness','float');
38973 this.addProperty('flatness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38974 this.addInput('diffTrans','float');
38975 this.addProperty('diffTrans', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38976 this.addInput('thin','boolean');
38977 this.addProperty('thin', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38978 this.addOutput('out','surfaceshader');
38979 this.title = 'disney_bsdf_2015_surfaceshader';
38980 this.desc = "MaterialX:mtlx/pbr/disney_bsdf_2015_surface";
38981 this.onNodeCreated = function() {
38982 //console.log('Node created:', this);
38983}
38984 this.onRemoved = function() {
38985 //console.log('Node removed:', this);
38986 }
38987 this.onPropertyChanged = function(name, value, prev_value) {
38988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38989 }
38990 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38992 }
38993 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38995 }
38996 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38998 }
38999 this.bgcolor = '#111';
39000 this.color = '#232';
39001 this.shape = LiteGraph.ROUND_SHAPE;
39002}

◆ mtlx_pbr_displacement_float()

function mtlx_pbr_displacement_float ( )

mtlx_pbr_displacement_float

Library: mtlx. Category: light. Type: displacementshader LiteGraph id: mtlx/pbr/displacement_float

Definition at line 36405 of file mtlx_stdlib.js.

36405 {
36406 this.nodedef_icon = '';
36407 this.nodedef_name = 'ND_displacement_float';
36408 this.nodedef_type = 'displacementshader';
36409 this.nodedef_node = 'displacement';
36410 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/displacement.html';
36411 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_displacement_float_out_genglsl.png';
36412 this.nodedef_group = 'pbr';
36413 this.addInput('displacement','float');
36414 this.addProperty('displacement', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36415 this.addInput('scale','float');
36416 this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36417 this.addOutput('out','displacementshader');
36418 this.title = 'displacement_displacementshader';
36419 this.desc = "MaterialX:mtlx/pbr/displacement_float";
36420 this.onNodeCreated = function() {
36421 //console.log('Node created:', this);
36422}
36423 this.onRemoved = function() {
36424 //console.log('Node removed:', this);
36425 }
36426 this.onPropertyChanged = function(name, value, prev_value) {
36427 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36428 }
36429 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36430 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36431 }
36432 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36433 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36434 }
36435 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36436 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36437 }
36438 this.bgcolor = '#111';
36439 this.color = '#232';
36440 this.shape = LiteGraph.ROUND_SHAPE;
36441}

◆ mtlx_pbr_displacement_vector3()

function mtlx_pbr_displacement_vector3 ( )

mtlx_pbr_displacement_vector3

Library: mtlx. Category: displacement. Type: displacementshader LiteGraph id: mtlx/pbr/displacement_vector3

Definition at line 36452 of file mtlx_stdlib.js.

36452 {
36453 this.nodedef_icon = '';
36454 this.nodedef_name = 'ND_displacement_vector3';
36455 this.nodedef_type = 'displacementshader';
36456 this.nodedef_node = 'displacement';
36457 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/displacement.html';
36458 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_displacement_vector3_out_genglsl.png';
36459 this.nodedef_group = 'pbr';
36460 this.addInput('displacement','vector3');
36461 this.addProperty('displacement', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36462 this.addInput('scale','float');
36463 this.addProperty('scale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36464 this.addOutput('out','displacementshader');
36465 this.title = 'displacement_displacementshader';
36466 this.desc = "MaterialX:mtlx/pbr/displacement_vector3";
36467 this.onNodeCreated = function() {
36468 //console.log('Node created:', this);
36469}
36470 this.onRemoved = function() {
36471 //console.log('Node removed:', this);
36472 }
36473 this.onPropertyChanged = function(name, value, prev_value) {
36474 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36475 }
36476 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36477 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36478 }
36479 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36480 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36481 }
36482 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36483 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36484 }
36485 this.bgcolor = '#111';
36486 this.color = '#232';
36487 this.shape = LiteGraph.ROUND_SHAPE;
36488}

◆ mtlx_pbr_generalized_schlick_bsdf()

function mtlx_pbr_generalized_schlick_bsdf ( )

mtlx_pbr_generalized_schlick_bsdf

Library: mtlx. Category: conductor_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/generalized_schlick_bsdf

Definition at line 35795 of file mtlx_stdlib.js.

35795 {
35796 this.nodedef_icon = '';
35797 this.nodedef_name = 'ND_generalized_schlick_bsdf';
35798 this.nodedef_type = 'BSDF';
35799 this.nodedef_node = 'generalized_schlick_bsdf';
35800 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/generalized_schlick_bsdf.html';
35801 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_generalized_schlick_bsdf_out_genglsl.png';
35802 this.nodedef_group = 'pbr';
35803 this.addInput('weight','float');
35804 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35805 this.addInput('color0','color3');
35806 this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35807 this.addInput('color82','color3');
35808 this.addProperty('color82', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35809 this.addInput('color90','color3');
35810 this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35811 this.addInput('exponent','float');
35812 this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35813 this.addInput('roughness','vector2');
35814 this.addProperty('roughness', [0.05, 0.05], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35815 this.addInput('thinfilm_thickness','float');
35816 this.addProperty('thinfilm_thickness', 0, 'float',{"colorspace":"","unit":"nanometer","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35817 this.addInput('thinfilm_ior','float');
35818 this.addProperty('thinfilm_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35819 this.addInput('normal','vector3');
35820 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35821 this.addInput('tangent','vector3');
35822 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Tworld"});
35823 this.addInput('distribution','string');
35824 this.addProperty('distribution', 'ggx', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["ggx"]});
35825 this.addInput('scatter_mode','string');
35826 this.addProperty('scatter_mode', 'R', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["R","T","RT"]});
35827 this.addOutput('out','BSDF');
35828 this.title = 'generalized_schlick_bsdf_BSDF';
35829 this.desc = "MaterialX:mtlx/pbr/generalized_schlick_bsdf";
35830 this.onNodeCreated = function() {
35831 //console.log('Node created:', this);
35832}
35833 this.onRemoved = function() {
35834 //console.log('Node removed:', this);
35835 }
35836 this.onPropertyChanged = function(name, value, prev_value) {
35837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35838 }
35839 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35841 }
35842 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35844 }
35845 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35847 }
35848 this.bgcolor = '#111';
35849 this.color = '#222';
35850 this.shape = LiteGraph.ROUND_SHAPE;
35851}

◆ mtlx_pbr_generalized_schlick_edf()

function mtlx_pbr_generalized_schlick_edf ( )

mtlx_pbr_generalized_schlick_edf

Library: mtlx. Category: measured_edf. Type: EDF LiteGraph id: mtlx/pbr/generalized_schlick_edf

Definition at line 36113 of file mtlx_stdlib.js.

36113 {
36114 this.nodedef_icon = '';
36115 this.nodedef_name = 'ND_generalized_schlick_edf';
36116 this.nodedef_type = 'EDF';
36117 this.nodedef_node = 'generalized_schlick_edf';
36118 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/generalized_schlick_edf.html';
36119 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_generalized_schlick_edf_out_genglsl.png';
36120 this.nodedef_group = 'pbr';
36121 this.addInput('color0','color3');
36122 this.addProperty('color0', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36123 this.addInput('color90','color3');
36124 this.addProperty('color90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36125 this.addInput('exponent','float');
36126 this.addProperty('exponent', 5.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36127 this.addInput('base','EDF');
36128 this.addProperty('base', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36129 this.addOutput('out','EDF');
36130 this.title = 'generalized_schlick_edf_EDF';
36131 this.desc = "MaterialX:mtlx/pbr/generalized_schlick_edf";
36132 this.onNodeCreated = function() {
36133 //console.log('Node created:', this);
36134}
36135 this.onRemoved = function() {
36136 //console.log('Node removed:', this);
36137 }
36138 this.onPropertyChanged = function(name, value, prev_value) {
36139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36140 }
36141 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36143 }
36144 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36146 }
36147 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36149 }
36150 this.bgcolor = '#111';
36151 this.color = '#222';
36152 this.shape = LiteGraph.ROUND_SHAPE;
36153}

◆ mtlx_pbr_glossiness_anisotropy()

function mtlx_pbr_glossiness_anisotropy ( )

mtlx_pbr_glossiness_anisotropy

Library: mtlx. Category: roughness_dual. Type: vector2 LiteGraph id: mtlx/pbr/glossiness_anisotropy

Definition at line 37257 of file mtlx_stdlib.js.

37257 {
37258 this.nodedef_icon = '';
37259 this.nodedef_name = 'ND_glossiness_anisotropy';
37260 this.nodedef_type = 'vector2';
37261 this.nodedef_node = 'glossiness_anisotropy';
37262 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/glossiness_anisotropy.html';
37263 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_glossiness_anisotropy_out_genglsl.png';
37264 this.nodedef_group = 'pbr';
37265 this.addInput('glossiness','float');
37266 this.addProperty('glossiness', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
37267 this.addInput('anisotropy','float');
37268 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
37269 this.addOutput('out','vector2');
37270 this.title = 'glossiness_anisotropy_vector2';
37271 this.desc = "MaterialX:mtlx/pbr/glossiness_anisotropy";
37272 this.onNodeCreated = function() {
37273 //console.log('Node created:', this);
37274}
37275 this.onRemoved = function() {
37276 //console.log('Node removed:', this);
37277 }
37278 this.onPropertyChanged = function(name, value, prev_value) {
37279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37280 }
37281 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37283 }
37284 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37286 }
37287 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37289 }
37290 this.bgcolor = '#111';
37291 this.color = '#222';
37292 this.shape = LiteGraph.ROUND_SHAPE;
37293 this.boxcolor = '#265';
37294}

◆ mtlx_pbr_gltf_pbr_surfaceshader()

function mtlx_pbr_gltf_pbr_surfaceshader ( )

mtlx_pbr_gltf_pbr_surfaceshader

Library: mtlx. Category: open_pbr_anisotropy. Type: surfaceshader LiteGraph id: mtlx/pbr/gltf_pbr_surfaceshader

Definition at line 37724 of file mtlx_stdlib.js.

37724 {
37725 this.nodedef_icon = './Icons/gltf_logo.webp';
37726 this.nodedef_name = 'ND_gltf_pbr_surfaceshader';
37727 this.nodedef_type = 'surfaceshader';
37728 this.nodedef_node = 'gltf_pbr';
37729 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_pbr.html';
37730 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_pbr_surfaceshader_out_genglsl.png';
37731 this.nodedef_group = 'pbr';
37732 this.addInput('base_color','color3');
37733 this.addProperty('base_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Base Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Base","defaultgeomprop":""});
37734 this.addInput('metallic','float');
37735 this.addProperty('metallic', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metallic","uimin":"0","uimax":"1","uifolder":"Base","defaultgeomprop":""});
37736 this.addInput('roughness','float');
37737 this.addProperty('roughness', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0","uimax":"1","uifolder":"Base","defaultgeomprop":""});
37738 this.addInput('normal','vector3');
37739 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Base","defaultgeomprop":"Nworld"});
37740 this.addInput('tangent','vector3');
37741 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Base","defaultgeomprop":"Tworld"});
37742 this.addInput('occlusion','float');
37743 this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Occlusion","uimin":"0","uimax":"1","uifolder":"Base","defaultgeomprop":""});
37744 this.addInput('transmission','float');
37745 this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0","uimax":"1","uifolder":"Base","defaultgeomprop":""});
37746 this.addInput('specular','float');
37747 this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0","uimax":"1","uifolder":"Base","defaultgeomprop":""});
37748 this.addInput('specular_color','color3');
37749 this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Base","defaultgeomprop":""});
37750 this.addInput('ior','float');
37751 this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"1","uimax":"3","uifolder":"Base","defaultgeomprop":""});
37752 this.addInput('alpha','float');
37753 this.addProperty('alpha', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha","uimin":"0","uimax":"1","uifolder":"Alpha","defaultgeomprop":""});
37754 this.addInput('alpha_mode','integer');
37755 this.addProperty('alpha_mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Mode","uimin":null,"uimax":null,"uifolder":"Alpha","defaultgeomprop":"","enum":["OPAQUE"," MASK"," BLEND"],"enumvalues":["0"," 1"," 2"]});
37756 this.addInput('alpha_cutoff','float');
37757 this.addProperty('alpha_cutoff', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Alpha Cutoff","uimin":"0","uimax":"1","uifolder":"Alpha","defaultgeomprop":""});
37758 this.addInput('iridescence','float');
37759 this.addProperty('iridescence', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence","uimin":"0","uimax":"1","uifolder":"Iridescence","defaultgeomprop":""});
37760 this.addInput('iridescence_ior','float');
37761 this.addProperty('iridescence_ior', 1.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Index of Refraction","uimin":"1","uimax":"3","uifolder":"Iridescence","defaultgeomprop":""});
37762 this.addInput('iridescence_thickness','float');
37763 this.addProperty('iridescence_thickness', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Iridescence Thickness","uimin":"100","uimax":"400","uifolder":"Iridescence","defaultgeomprop":""});
37764 this.addInput('sheen_color','color3');
37765 this.addProperty('sheen_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Sheen","defaultgeomprop":""});
37766 this.addInput('sheen_roughness','float');
37767 this.addProperty('sheen_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0","uimax":"1","uifolder":"Sheen","defaultgeomprop":""});
37768 this.addInput('clearcoat','float');
37769 this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat","uimin":"0","uimax":"1","uifolder":"Clearcoat","defaultgeomprop":""});
37770 this.addInput('clearcoat_roughness','float');
37771 this.addProperty('clearcoat_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Roughness","uimin":"0","uimax":"1","uifolder":"Clearcoat","defaultgeomprop":""});
37772 this.addInput('clearcoat_normal','vector3');
37773 this.addProperty('clearcoat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Clearcoat Normal","uimin":null,"uimax":null,"uifolder":"Clearcoat","defaultgeomprop":"Nworld"});
37774 this.addInput('emissive','color3');
37775 this.addProperty('emissive', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Emission","defaultgeomprop":""});
37776 this.addInput('emissive_strength','float');
37777 this.addProperty('emissive_strength', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emissive Strength","uimin":"0","uimax":null,"uifolder":"Emission","defaultgeomprop":""});
37778 this.addInput('thickness','float');
37779 this.addProperty('thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thickness","uimin":"0","uimax":null,"uifolder":"Volume","defaultgeomprop":""});
37780 this.addInput('attenuation_distance','float');
37781 this.addProperty('attenuation_distance', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Distance","uimin":"0","uimax":null,"uifolder":"Volume","defaultgeomprop":""});
37782 this.addInput('attenuation_color','color3');
37783 this.addProperty('attenuation_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Attenuation Color","uimin":"0, 0, 0","uimax":"1, 1, 1","uifolder":"Volume","defaultgeomprop":""});
37784 this.addOutput('out','surfaceshader');
37785 this.title = 'gltf_pbr_surfaceshader';
37786 this.desc = "MaterialX:mtlx/pbr/gltf_pbr_surfaceshader";
37787 this.onNodeCreated = function() {
37788 //console.log('Node created:', this);
37789}
37790 this.onRemoved = function() {
37791 //console.log('Node removed:', this);
37792 }
37793 this.onPropertyChanged = function(name, value, prev_value) {
37794 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37795 }
37796 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37797 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37798 }
37799 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37800 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37801 }
37802 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37803 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37804 }
37805 this.bgcolor = '#111';
37806 this.color = '#232';
37807 this.shape = LiteGraph.ROUND_SHAPE;
37808}

◆ mtlx_pbr_lama_add_bsdf()

function mtlx_pbr_lama_add_bsdf ( )

mtlx_pbr_lama_add_bsdf

Library: mtlx. Category: LamaSheen. Type: BSDF LiteGraph id: mtlx/pbr/lama_add_bsdf

Definition at line 39583 of file mtlx_stdlib.js.

39583 {
39584 this.nodedef_icon = '';
39585 this.nodedef_name = 'ND_lama_add_bsdf';
39586 this.nodedef_type = 'BSDF';
39587 this.nodedef_node = 'LamaAdd';
39588 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39589 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_add_bsdf_out_genglsl.png';
39590 this.nodedef_group = 'pbr';
39591 this.addInput('material1','BSDF');
39592 this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39593 this.addInput('material2','BSDF');
39594 this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39595 this.addInput('weight1','float');
39596 this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39597 this.addInput('weight2','float');
39598 this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39599 this.addOutput('out','BSDF');
39600 this.title = 'LamaAdd_BSDF';
39601 this.desc = "MaterialX:mtlx/pbr/lama_add_bsdf";
39602 this.onNodeCreated = function() {
39603 //console.log('Node created:', this);
39604}
39605 this.onRemoved = function() {
39606 //console.log('Node removed:', this);
39607 }
39608 this.onPropertyChanged = function(name, value, prev_value) {
39609 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39610 }
39611 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39612 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39613 }
39614 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39615 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39616 }
39617 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39618 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39619 }
39620 this.bgcolor = '#111';
39621 this.color = '#222';
39622 this.shape = LiteGraph.ROUND_SHAPE;
39623}

◆ mtlx_pbr_lama_add_edf()

function mtlx_pbr_lama_add_edf ( )

mtlx_pbr_lama_add_edf

Library: mtlx. Category: LamaAdd. Type: EDF LiteGraph id: mtlx/pbr/lama_add_edf

Definition at line 39634 of file mtlx_stdlib.js.

39634 {
39635 this.nodedef_icon = '';
39636 this.nodedef_name = 'ND_lama_add_edf';
39637 this.nodedef_type = 'EDF';
39638 this.nodedef_node = 'LamaAdd';
39639 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39640 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_add_edf_out_genglsl.png';
39641 this.nodedef_group = 'pbr';
39642 this.addInput('material1','EDF');
39643 this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39644 this.addInput('material2','EDF');
39645 this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39646 this.addInput('weight1','float');
39647 this.addProperty('weight1', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 1","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39648 this.addInput('weight2','float');
39649 this.addProperty('weight2', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Weight 2","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39650 this.addOutput('out','EDF');
39651 this.title = 'LamaAdd_EDF';
39652 this.desc = "MaterialX:mtlx/pbr/lama_add_edf";
39653 this.onNodeCreated = function() {
39654 //console.log('Node created:', this);
39655}
39656 this.onRemoved = function() {
39657 //console.log('Node removed:', this);
39658 }
39659 this.onPropertyChanged = function(name, value, prev_value) {
39660 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39661 }
39662 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39663 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39664 }
39665 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39666 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39667 }
39668 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39669 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39670 }
39671 this.bgcolor = '#111';
39672 this.color = '#222';
39673 this.shape = LiteGraph.ROUND_SHAPE;
39674}

◆ mtlx_pbr_lama_conductor()

function mtlx_pbr_lama_conductor ( )

mtlx_pbr_lama_conductor

Library: mtlx. Category: standard_surface. Type: BSDF LiteGraph id: mtlx/pbr/lama_conductor

Definition at line 39267 of file mtlx_stdlib.js.

39267 {
39268 this.nodedef_icon = '';
39269 this.nodedef_name = 'ND_lama_conductor';
39270 this.nodedef_type = 'BSDF';
39271 this.nodedef_node = 'LamaConductor';
39272 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaConductor.html';
39273 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_conductor_out_genglsl.png';
39274 this.nodedef_group = 'pbr';
39275 this.addInput('tint','color3');
39276 this.addProperty('tint', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Tint","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39277 this.addInput('fresnelMode','integer');
39278 this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"","enum":["Scientific","Artistic"],"enumvalues":["0","1"]});
39279 this.addInput('IOR','vector3');
39280 this.addProperty('IOR', [0.180000007153,0.419999986887,1.37000000477], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39281 this.addInput('extinction','vector3');
39282 this.addProperty('extinction', [3.42000007629,2.34999990463,1.76999998093], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Extinction","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39283 this.addInput('reflectivity','color3');
39284 this.addProperty('reflectivity', [0.9450, 0.7772, 0.3737], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39285 this.addInput('edgeColor','color3');
39286 this.addProperty('edgeColor', [0.9979, 0.9813, 0.7523], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Edge Color","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39287 this.addInput('roughness','float');
39288 this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39289 this.addInput('normal','vector3');
39290 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"Nworld"});
39291 this.addInput('anisotropy','float');
39292 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy","defaultgeomprop":""});
39293 this.addInput('anisotropyDirection','vector3');
39294 this.addProperty('anisotropyDirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":"Tworld"});
39295 this.addInput('anisotropyRotation','float');
39296 this.addProperty('anisotropyRotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":""});
39297 this.addOutput('out','BSDF');
39298 this.title = 'LamaConductor_BSDF';
39299 this.desc = "MaterialX:mtlx/pbr/lama_conductor";
39300 this.onNodeCreated = function() {
39301 //console.log('Node created:', this);
39302}
39303 this.onRemoved = function() {
39304 //console.log('Node removed:', this);
39305 }
39306 this.onPropertyChanged = function(name, value, prev_value) {
39307 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39308 }
39309 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39310 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39311 }
39312 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39313 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39314 }
39315 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39316 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39317 }
39318 this.bgcolor = '#111';
39319 this.color = '#222';
39320 this.shape = LiteGraph.ROUND_SHAPE;
39321}

◆ mtlx_pbr_lama_dielectric()

function mtlx_pbr_lama_dielectric ( )

mtlx_pbr_lama_dielectric

Library: mtlx. Category: LamaAdd. Type: BSDF LiteGraph id: mtlx/pbr/lama_dielectric

Definition at line 39685 of file mtlx_stdlib.js.

39685 {
39686 this.nodedef_icon = '';
39687 this.nodedef_name = 'ND_lama_dielectric';
39688 this.nodedef_type = 'BSDF';
39689 this.nodedef_node = 'LamaDielectric';
39690 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDielectric.html';
39691 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_dielectric_out_genglsl.png';
39692 this.nodedef_group = 'pbr';
39693 this.addInput('reflectionTint','color3');
39694 this.addProperty('reflectionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflection Tint","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39695 this.addInput('transmissionTint','color3');
39696 this.addProperty('transmissionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Tint","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39697 this.addInput('fresnelMode','integer');
39698 this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"","enum":["Scientific","Artistic"],"enumvalues":["0","1"]});
39699 this.addInput('IOR','float');
39700 this.addProperty('IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"3.0","uifolder":"Main","defaultgeomprop":""});
39701 this.addInput('reflectivity','float');
39702 this.addProperty('reflectivity', 0.04, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39703 this.addInput('roughness','float');
39704 this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39705 this.addInput('normal','vector3');
39706 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"Nworld"});
39707 this.addInput('anisotropy','float');
39708 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy","defaultgeomprop":""});
39709 this.addInput('direction','vector3');
39710 this.addProperty('direction', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":"Tworld"});
39711 this.addInput('rotation','float');
39712 this.addProperty('rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":""});
39713 this.addInput('absorptionColor','color3');
39714 this.addProperty('absorptionColor', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Color","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39715 this.addInput('absorptionRadius','float');
39716 this.addProperty('absorptionRadius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Radius","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39717 this.addInput('scatterColor','color3');
39718 this.addProperty('scatterColor', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Color","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39719 this.addInput('scatterAnisotropy','float');
39720 this.addProperty('scatterAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Interior","defaultgeomprop":""});
39721 this.addOutput('out','BSDF');
39722 this.title = 'LamaDielectric_BSDF';
39723 this.desc = "MaterialX:mtlx/pbr/lama_dielectric";
39724 this.onNodeCreated = function() {
39725 //console.log('Node created:', this);
39726}
39727 this.onRemoved = function() {
39728 //console.log('Node removed:', this);
39729 }
39730 this.onPropertyChanged = function(name, value, prev_value) {
39731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39732 }
39733 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39735 }
39736 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39738 }
39739 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39741 }
39742 this.bgcolor = '#111';
39743 this.color = '#222';
39744 this.shape = LiteGraph.ROUND_SHAPE;
39745}

◆ mtlx_pbr_lama_diffuse()

function mtlx_pbr_lama_diffuse ( )

mtlx_pbr_lama_diffuse

Library: mtlx. Category: LamaIridescence. Type: BSDF LiteGraph id: mtlx/pbr/lama_diffuse

Definition at line 39387 of file mtlx_stdlib.js.

39387 {
39388 this.nodedef_icon = '';
39389 this.nodedef_name = 'ND_lama_diffuse';
39390 this.nodedef_type = 'BSDF';
39391 this.nodedef_node = 'LamaDiffuse';
39392 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDiffuse.html';
39393 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_diffuse_out_genglsl.png';
39394 this.nodedef_group = 'pbr';
39395 this.addInput('color','color3');
39396 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39397 this.addInput('roughness','float');
39398 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39399 this.addInput('normal','vector3');
39400 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
39401 this.addInput('energyCompensation','float');
39402 this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced","defaultgeomprop":""});
39403 this.addOutput('out','BSDF');
39404 this.title = 'LamaDiffuse_BSDF';
39405 this.desc = "MaterialX:mtlx/pbr/lama_diffuse";
39406 this.onNodeCreated = function() {
39407 //console.log('Node created:', this);
39408}
39409 this.onRemoved = function() {
39410 //console.log('Node removed:', this);
39411 }
39412 this.onPropertyChanged = function(name, value, prev_value) {
39413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39414 }
39415 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39417 }
39418 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39420 }
39421 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39423 }
39424 this.bgcolor = '#111';
39425 this.color = '#222';
39426 this.shape = LiteGraph.ROUND_SHAPE;
39427}

◆ mtlx_pbr_lama_emission()

function mtlx_pbr_lama_emission ( )

mtlx_pbr_lama_emission

Library: mtlx. Category: LamaDiffuse. Type: EDF LiteGraph id: mtlx/pbr/lama_emission

Definition at line 39438 of file mtlx_stdlib.js.

39438 {
39439 this.nodedef_icon = '';
39440 this.nodedef_name = 'ND_lama_emission';
39441 this.nodedef_type = 'EDF';
39442 this.nodedef_node = 'LamaEmission';
39443 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaEmission.html';
39444 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_emission_out_genglsl.png';
39445 this.nodedef_group = 'pbr';
39446 this.addInput('color','color3');
39447 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39448 this.addOutput('out','EDF');
39449 this.title = 'LamaEmission_EDF';
39450 this.desc = "MaterialX:mtlx/pbr/lama_emission";
39451 this.onNodeCreated = function() {
39452 //console.log('Node created:', this);
39453}
39454 this.onRemoved = function() {
39455 //console.log('Node removed:', this);
39456 }
39457 this.onPropertyChanged = function(name, value, prev_value) {
39458 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39459 }
39460 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39461 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39462 }
39463 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39464 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39465 }
39466 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39467 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39468 }
39469 this.bgcolor = '#111';
39470 this.color = '#222';
39471 this.shape = LiteGraph.ROUND_SHAPE;
39472}

◆ mtlx_pbr_lama_generalized_schlick()

function mtlx_pbr_lama_generalized_schlick ( )

mtlx_pbr_lama_generalized_schlick

Library: mtlx. Category: LamaDielectric. Type: BSDF LiteGraph id: mtlx/pbr/lama_generalized_schlick

Definition at line 39756 of file mtlx_stdlib.js.

39756 {
39757 this.nodedef_icon = '';
39758 this.nodedef_name = 'ND_lama_generalized_schlick';
39759 this.nodedef_type = 'BSDF';
39760 this.nodedef_node = 'LamaGeneralizedSchlick';
39761 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaGeneralizedSchlick.html';
39762 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_generalized_schlick_out_genglsl.png';
39763 this.nodedef_group = 'pbr';
39764 this.addInput('reflectionTint','color3');
39765 this.addProperty('reflectionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflection Tint","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39766 this.addInput('transmissionTint','color3');
39767 this.addProperty('transmissionTint', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Tint","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39768 this.addInput('fresnelMode','integer');
39769 this.addProperty('fresnelMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Fresnel Mode","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"","enum":["Scientific","Artistic"],"enumvalues":["0","1"]});
39770 this.addInput('IOR','vector3');
39771 this.addProperty('IOR', [1.5,1.5,1.5], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39772 this.addInput('reflectivity','color3');
39773 this.addProperty('reflectivity', [0.04, 0.04, 0.04], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39774 this.addInput('reflectivity90','color3');
39775 this.addProperty('reflectivity90', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Reflectivity90","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39776 this.addInput('reflectivityProfile','float');
39777 this.addProperty('reflectivityProfile', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"ReflectivityProfile","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39778 this.addInput('roughness','float');
39779 this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39780 this.addInput('normal','vector3');
39781 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"Nworld"});
39782 this.addInput('anisotropy','float');
39783 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy","defaultgeomprop":""});
39784 this.addInput('anisotropyDirection','vector3');
39785 this.addProperty('anisotropyDirection', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Direction","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":"Tworld"});
39786 this.addInput('anisotropyRotation','float');
39787 this.addProperty('anisotropyRotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Rotation","uimin":null,"uimax":null,"uifolder":"Anisotropy","defaultgeomprop":""});
39788 this.addInput('absorptionColor','color3');
39789 this.addProperty('absorptionColor', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Color","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39790 this.addInput('absorptionRadius','float');
39791 this.addProperty('absorptionRadius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Absorption Radius","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39792 this.addInput('scatterColor','color3');
39793 this.addProperty('scatterColor', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Color","uimin":null,"uimax":null,"uifolder":"Interior","defaultgeomprop":""});
39794 this.addInput('scatterAnisotropy','float');
39795 this.addProperty('scatterAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scatter Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Interior","defaultgeomprop":""});
39796 this.addOutput('out','BSDF');
39797 this.title = 'LamaGeneralizedSchlick_BSDF';
39798 this.desc = "MaterialX:mtlx/pbr/lama_generalized_schlick";
39799 this.onNodeCreated = function() {
39800 //console.log('Node created:', this);
39801}
39802 this.onRemoved = function() {
39803 //console.log('Node removed:', this);
39804 }
39805 this.onPropertyChanged = function(name, value, prev_value) {
39806 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39807 }
39808 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39809 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39810 }
39811 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39812 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39813 }
39814 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39815 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39816 }
39817 this.bgcolor = '#111';
39818 this.color = '#222';
39819 this.shape = LiteGraph.ROUND_SHAPE;
39820}

◆ mtlx_pbr_lama_iridescence()

function mtlx_pbr_lama_iridescence ( )

mtlx_pbr_lama_iridescence

Library: mtlx. Category: LamaConductor. Type: BSDF LiteGraph id: mtlx/pbr/lama_iridescence

Definition at line 39332 of file mtlx_stdlib.js.

39332 {
39333 this.nodedef_icon = '';
39334 this.nodedef_name = 'ND_lama_iridescence';
39335 this.nodedef_type = 'BSDF';
39336 this.nodedef_node = 'LamaIridescence';
39337 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaIridescence.html';
39338 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_iridescence_out_genglsl.png';
39339 this.nodedef_group = 'pbr';
39340 this.addInput('roughness','float');
39341 this.addProperty('roughness', 0.01, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39342 this.addInput('anisotropy','float');
39343 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Anisotropy","defaultgeomprop":""});
39344 this.addInput('relativeFilmThickness','float');
39345 this.addProperty('relativeFilmThickness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"relativeFilmThickness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39346 this.addInput('minFilmThickness','float');
39347 this.addProperty('minFilmThickness', 400.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"minFilmThickness","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39348 this.addInput('maxFilmThickness','float');
39349 this.addProperty('maxFilmThickness', 800.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"maxFilmThickness","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39350 this.addInput('filmIOR','float');
39351 this.addProperty('filmIOR', 1.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"filmIOR","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39352 this.addOutput('out','BSDF');
39353 this.title = 'LamaIridescence_BSDF';
39354 this.desc = "MaterialX:mtlx/pbr/lama_iridescence";
39355 this.onNodeCreated = function() {
39356 //console.log('Node created:', this);
39357}
39358 this.onRemoved = function() {
39359 //console.log('Node removed:', this);
39360 }
39361 this.onPropertyChanged = function(name, value, prev_value) {
39362 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39363 }
39364 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39365 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39366 }
39367 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39368 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39369 }
39370 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39371 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39372 }
39373 this.bgcolor = '#111';
39374 this.color = '#222';
39375 this.shape = LiteGraph.ROUND_SHAPE;
39376}

◆ mtlx_pbr_lama_layer_bsdf()

function mtlx_pbr_lama_layer_bsdf ( )

mtlx_pbr_lama_layer_bsdf

Library: mtlx. Category: LamaEmission. Type: BSDF LiteGraph id: mtlx/pbr/lama_layer_bsdf

Definition at line 39483 of file mtlx_stdlib.js.

39483 {
39484 this.nodedef_icon = '';
39485 this.nodedef_name = 'ND_lama_layer_bsdf';
39486 this.nodedef_type = 'BSDF';
39487 this.nodedef_node = 'LamaLayer';
39488 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaLayer.html';
39489 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_layer_bsdf_out_genglsl.png';
39490 this.nodedef_group = 'pbr';
39491 this.addInput('materialTop','BSDF');
39492 this.addProperty('materialTop', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39493 this.addInput('materialBase','BSDF');
39494 this.addProperty('materialBase', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Base","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39495 this.addInput('topMix','float');
39496 this.addProperty('topMix', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Mix","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39497 this.addInput('topThickness','float');
39498 this.addProperty('topThickness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top Thickness","uimin":"0.0","uimax":null,"uifolder":"","defaultgeomprop":""});
39499 this.addOutput('out','BSDF');
39500 this.title = 'LamaLayer_BSDF';
39501 this.desc = "MaterialX:mtlx/pbr/lama_layer_bsdf";
39502 this.onNodeCreated = function() {
39503 //console.log('Node created:', this);
39504}
39505 this.onRemoved = function() {
39506 //console.log('Node removed:', this);
39507 }
39508 this.onPropertyChanged = function(name, value, prev_value) {
39509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39510 }
39511 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39513 }
39514 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39516 }
39517 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39519 }
39520 this.bgcolor = '#111';
39521 this.color = '#222';
39522 this.shape = LiteGraph.ROUND_SHAPE;
39523}

◆ mtlx_pbr_lama_mix_bsdf()

function mtlx_pbr_lama_mix_bsdf ( )

mtlx_pbr_lama_mix_bsdf

Library: mtlx. Category: LamaSurface. Type: BSDF LiteGraph id: mtlx/pbr/lama_mix_bsdf

Definition at line 39880 of file mtlx_stdlib.js.

39880 {
39881 this.nodedef_icon = '';
39882 this.nodedef_name = 'ND_lama_mix_bsdf';
39883 this.nodedef_type = 'BSDF';
39884 this.nodedef_node = 'LamaMix';
39885 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39886 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_mix_bsdf_out_genglsl.png';
39887 this.nodedef_group = 'pbr';
39888 this.addInput('material1','BSDF');
39889 this.addProperty('material1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39890 this.addInput('material2','BSDF');
39891 this.addProperty('material2', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39892 this.addInput('mix','float');
39893 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39894 this.addOutput('out','BSDF');
39895 this.title = 'LamaMix_BSDF';
39896 this.desc = "MaterialX:mtlx/pbr/lama_mix_bsdf";
39897 this.onNodeCreated = function() {
39898 //console.log('Node created:', this);
39899}
39900 this.onRemoved = function() {
39901 //console.log('Node removed:', this);
39902 }
39903 this.onPropertyChanged = function(name, value, prev_value) {
39904 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39905 }
39906 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39907 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39908 }
39909 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39910 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39911 }
39912 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39913 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39914 }
39915 this.bgcolor = '#111';
39916 this.color = '#222';
39917 this.shape = LiteGraph.ROUND_SHAPE;
39918}

◆ mtlx_pbr_lama_mix_edf()

function mtlx_pbr_lama_mix_edf ( )

mtlx_pbr_lama_mix_edf

Library: mtlx. Category: LamaMix. Type: EDF LiteGraph id: mtlx/pbr/lama_mix_edf

Definition at line 39929 of file mtlx_stdlib.js.

39929 {
39930 this.nodedef_icon = '';
39931 this.nodedef_name = 'ND_lama_mix_edf';
39932 this.nodedef_type = 'EDF';
39933 this.nodedef_node = 'LamaMix';
39934 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39935 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_mix_edf_out_genglsl.png';
39936 this.nodedef_group = 'pbr';
39937 this.addInput('material1','EDF');
39938 this.addProperty('material1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39939 this.addInput('material2','EDF');
39940 this.addProperty('material2', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material 2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39941 this.addInput('mix','float');
39942 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
39943 this.addOutput('out','EDF');
39944 this.title = 'LamaMix_EDF';
39945 this.desc = "MaterialX:mtlx/pbr/lama_mix_edf";
39946 this.onNodeCreated = function() {
39947 //console.log('Node created:', this);
39948}
39949 this.onRemoved = function() {
39950 //console.log('Node removed:', this);
39951 }
39952 this.onPropertyChanged = function(name, value, prev_value) {
39953 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39954 }
39955 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39956 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39957 }
39958 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39959 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39960 }
39961 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39962 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39963 }
39964 this.bgcolor = '#111';
39965 this.color = '#222';
39966 this.shape = LiteGraph.ROUND_SHAPE;
39967}

◆ mtlx_pbr_lama_sheen()

function mtlx_pbr_lama_sheen ( )

mtlx_pbr_lama_sheen

Library: mtlx. Category: LamaLayer. Type: BSDF LiteGraph id: mtlx/pbr/lama_sheen

Definition at line 39534 of file mtlx_stdlib.js.

39534 {
39535 this.nodedef_icon = '';
39536 this.nodedef_name = 'ND_lama_sheen';
39537 this.nodedef_type = 'BSDF';
39538 this.nodedef_node = 'LamaSheen';
39539 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSheen.html';
39540 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_sheen_out_genglsl.png';
39541 this.nodedef_group = 'pbr';
39542 this.addInput('color','color3');
39543 this.addProperty('color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39544 this.addInput('roughness','float');
39545 this.addProperty('roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Main","defaultgeomprop":""});
39546 this.addInput('normal','vector3');
39547 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"Nworld"});
39548 this.addOutput('out','BSDF');
39549 this.title = 'LamaSheen_BSDF';
39550 this.desc = "MaterialX:mtlx/pbr/lama_sheen";
39551 this.onNodeCreated = function() {
39552 //console.log('Node created:', this);
39553}
39554 this.onRemoved = function() {
39555 //console.log('Node removed:', this);
39556 }
39557 this.onPropertyChanged = function(name, value, prev_value) {
39558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39559 }
39560 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39562 }
39563 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39565 }
39566 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39568 }
39569 this.bgcolor = '#111';
39570 this.color = '#222';
39571 this.shape = LiteGraph.ROUND_SHAPE;
39572}

◆ mtlx_pbr_lama_sss()

function mtlx_pbr_lama_sss ( )

mtlx_pbr_lama_sss

Library: mtlx. Category: LamaMix. Type: BSDF LiteGraph id: mtlx/pbr/lama_sss

Definition at line 39978 of file mtlx_stdlib.js.

39978 {
39979 this.nodedef_icon = '';
39980 this.nodedef_name = 'ND_lama_sss';
39981 this.nodedef_type = 'BSDF';
39982 this.nodedef_node = 'LamaSSS';
39983 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSSS.html';
39984 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_sss_out_genglsl.png';
39985 this.nodedef_group = 'pbr';
39986 this.addInput('color','color3');
39987 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":""});
39988 this.addInput('normal','vector3');
39989 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"Nworld"});
39990 this.addInput('sssRadius','color3');
39991 this.addProperty('sssRadius', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Radius","uimin":null,"uimax":null,"uifolder":"SSS","defaultgeomprop":""});
39992 this.addInput('sssScale','float');
39993 this.addProperty('sssScale', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Scale","uimin":null,"uimax":null,"uifolder":"SSS","defaultgeomprop":""});
39994 this.addInput('sssMode','integer');
39995 this.addProperty('sssMode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Main","defaultgeomprop":"","enum":["Path-traced Davis","Path-traced exponential","Diffusion Burley","Diffusion Burley (mean free path)"],"enumvalues":["0","1","2","3"]});
39996 this.addInput('sssIOR','float');
39997 this.addProperty('sssIOR', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"IOR","uimin":"1.0","uimax":"2.0","uifolder":"SSS","defaultgeomprop":""});
39998 this.addInput('sssAnisotropy','float');
39999 this.addProperty('sssAnisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"SSS","defaultgeomprop":""});
40000 this.addInput('sssBleed','float');
40001 this.addProperty('sssBleed', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bleed","uimin":"0.0","uimax":"1.0","uifolder":"SSS","defaultgeomprop":""});
40002 this.addInput('sssFollowTopology','float');
40003 this.addProperty('sssFollowTopology', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Follow Topology","uimin":"0.0","uimax":"1.0","uifolder":"SSS","defaultgeomprop":""});
40004 this.addInput('sssSubset','string');
40005 this.addProperty('sssSubset', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Subset","uimin":null,"uimax":null,"uifolder":"SSS","defaultgeomprop":""});
40006 this.addInput('sssContinuationRays','integer');
40007 this.addProperty('sssContinuationRays', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Continuation Rays","uimin":null,"uimax":null,"uifolder":"SSS","defaultgeomprop":""});
40008 this.addInput('sssUnitLength','float');
40009 this.addProperty('sssUnitLength', 0.00328, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Unit Length","uimin":null,"uimax":null,"uifolder":"SSS","defaultgeomprop":""});
40010 this.addInput('mode','integer');
40011 this.addProperty('mode', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Mode","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":"","enum":["Reflection","Transmission","Reflection(with direct illumination)"],"enumvalues":["0","1","2"]});
40012 this.addInput('albedoInversionMethod','integer');
40013 this.addProperty('albedoInversionMethod', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Albedo Inversion Method","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":"","enum":["Pixar","Chiang"],"enumvalues":["0","1"]});
40014 this.addInput('diffuseLobeName','string');
40015 this.addProperty('diffuseLobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40016 this.addInput('sssEntryLobeName','string');
40017 this.addProperty('sssEntryLobeName', 'irradiance', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Entry Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40018 this.addInput('sssExitLobeName','string');
40019 this.addProperty('sssExitLobeName', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Exit Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40020 this.addInput('sssId','integer');
40021 this.addProperty('sssId', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"SSS Id","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":"","enum":["0"," 1"],"enumvalues":["0"," 1"]});
40022 this.addInput('matte','string');
40023 this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40024 this.addOutput('out','BSDF');
40025 this.title = 'LamaSSS_BSDF';
40026 this.desc = "MaterialX:mtlx/pbr/lama_sss";
40027 this.onNodeCreated = function() {
40028 //console.log('Node created:', this);
40029}
40030 this.onRemoved = function() {
40031 //console.log('Node removed:', this);
40032 }
40033 this.onPropertyChanged = function(name, value, prev_value) {
40034 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40035 }
40036 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40037 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40038 }
40039 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40040 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40041 }
40042 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40043 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40044 }
40045 this.bgcolor = '#111';
40046 this.color = '#222';
40047 this.shape = LiteGraph.ROUND_SHAPE;
40048}

◆ mtlx_pbr_lama_surface()

function mtlx_pbr_lama_surface ( )

mtlx_pbr_lama_surface

Library: mtlx. Category: LamaGeneralizedSchlick. Type: material LiteGraph id: mtlx/pbr/lama_surface

Definition at line 39831 of file mtlx_stdlib.js.

39831 {
39832 this.nodedef_icon = '';
39833 this.nodedef_name = 'ND_lama_surface';
39834 this.nodedef_type = 'material';
39835 this.nodedef_node = 'LamaSurface';
39836 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSurface.html';
39837 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_surface_out_genglsl.png';
39838 this.nodedef_group = 'pbr';
39839 this.addInput('materialFront','BSDF');
39840 this.addProperty('materialFront', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Front","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39841 this.addInput('materialBack','BSDF');
39842 this.addProperty('materialBack', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"Material Back","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39843 this.addInput('presence','float');
39844 this.addProperty('presence', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
39845 this.addOutput('out','material');
39846 this.title = 'LamaSurface_material';
39847 this.desc = "MaterialX:mtlx/pbr/lama_surface";
39848 this.onNodeCreated = function() {
39849 //console.log('Node created:', this);
39850}
39851 this.onRemoved = function() {
39852 //console.log('Node removed:', this);
39853 }
39854 this.onPropertyChanged = function(name, value, prev_value) {
39855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39856 }
39857 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39859 }
39860 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39862 }
39863 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39865 }
39866 this.bgcolor = '#111';
39867 this.color = '#222';
39868 this.shape = LiteGraph.ROUND_SHAPE;
39869}

◆ mtlx_pbr_lama_translucent()

function mtlx_pbr_lama_translucent ( )

mtlx_pbr_lama_translucent

Library: mtlx. Category: LamaSSS. Type: BSDF LiteGraph id: mtlx/pbr/lama_translucent

Definition at line 40059 of file mtlx_stdlib.js.

40059 {
40060 this.nodedef_icon = '';
40061 this.nodedef_name = 'ND_lama_translucent';
40062 this.nodedef_type = 'BSDF';
40063 this.nodedef_node = 'LamaTranslucent';
40064 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaTranslucent.html';
40065 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_translucent_out_genglsl.png';
40066 this.nodedef_group = 'pbr';
40067 this.addInput('color','color3');
40068 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40069 this.addInput('roughness','float');
40070 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Roughness","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
40071 this.addInput('normal','vector3');
40072 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
40073 this.addInput('energyCompensation','float');
40074 this.addProperty('energyCompensation', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Energy Compensation","uimin":"0.0","uimax":"1.0","uifolder":"Advanced","defaultgeomprop":""});
40075 this.addInput('lobeName','string');
40076 this.addProperty('lobeName', 'diffuse', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Lobe Name","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40077 this.addInput('matte','string');
40078 this.addProperty('matte', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Matte","uimin":null,"uimax":null,"uifolder":"Advanced","defaultgeomprop":""});
40079 this.addOutput('out','BSDF');
40080 this.title = 'LamaTranslucent_BSDF';
40081 this.desc = "MaterialX:mtlx/pbr/lama_translucent";
40082 this.onNodeCreated = function() {
40083 //console.log('Node created:', this);
40084}
40085 this.onRemoved = function() {
40086 //console.log('Node removed:', this);
40087 }
40088 this.onPropertyChanged = function(name, value, prev_value) {
40089 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40090 }
40091 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40092 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40093 }
40094 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40095 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40096 }
40097 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40098 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40099 }
40100 this.bgcolor = '#111';
40101 this.color = '#222';
40102 this.shape = LiteGraph.ROUND_SHAPE;
40103}

◆ mtlx_pbr_layer_bsdf()

function mtlx_pbr_layer_bsdf ( )

mtlx_pbr_layer_bsdf

Library: mtlx. Category: displacement. Type: BSDF LiteGraph id: mtlx/pbr/layer_bsdf

Definition at line 36499 of file mtlx_stdlib.js.

36499 {
36500 this.nodedef_icon = '';
36501 this.nodedef_name = 'ND_layer_bsdf';
36502 this.nodedef_type = 'BSDF';
36503 this.nodedef_node = 'layer';
36504 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36505 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_layer_bsdf_out_genglsl.png';
36506 this.nodedef_group = 'pbr';
36507 this.addInput('top','BSDF');
36508 this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36509 this.addInput('base','BSDF');
36510 this.addProperty('base', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36511 this.addOutput('out','BSDF');
36512 this.title = 'layer_BSDF';
36513 this.desc = "MaterialX:mtlx/pbr/layer_bsdf";
36514 this.onNodeCreated = function() {
36515 //console.log('Node created:', this);
36516}
36517 this.onRemoved = function() {
36518 //console.log('Node removed:', this);
36519 }
36520 this.onPropertyChanged = function(name, value, prev_value) {
36521 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36522 }
36523 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36524 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36525 }
36526 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36527 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36528 }
36529 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36530 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36531 }
36532 this.bgcolor = '#111';
36533 this.color = '#222';
36534 this.shape = LiteGraph.ROUND_SHAPE;
36535}

◆ mtlx_pbr_layer_vdf()

function mtlx_pbr_layer_vdf ( )

mtlx_pbr_layer_vdf

Library: mtlx. Category: layer. Type: BSDF LiteGraph id: mtlx/pbr/layer_vdf

Definition at line 36546 of file mtlx_stdlib.js.

36546 {
36547 this.nodedef_icon = '';
36548 this.nodedef_name = 'ND_layer_vdf';
36549 this.nodedef_type = 'BSDF';
36550 this.nodedef_node = 'layer';
36551 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36552 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_layer_vdf_out_genglsl.png';
36553 this.nodedef_group = 'pbr';
36554 this.addInput('top','BSDF');
36555 this.addProperty('top', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36556 this.addInput('base','VDF');
36557 this.addProperty('base', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36558 this.addOutput('out','BSDF');
36559 this.title = 'layer_BSDF';
36560 this.desc = "MaterialX:mtlx/pbr/layer_vdf";
36561 this.onNodeCreated = function() {
36562 //console.log('Node created:', this);
36563}
36564 this.onRemoved = function() {
36565 //console.log('Node removed:', this);
36566 }
36567 this.onPropertyChanged = function(name, value, prev_value) {
36568 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36569 }
36570 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36571 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36572 }
36573 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36574 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36575 }
36576 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36577 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36578 }
36579 this.bgcolor = '#111';
36580 this.color = '#222';
36581 this.shape = LiteGraph.ROUND_SHAPE;
36582}

◆ mtlx_pbr_light()

function mtlx_pbr_light ( )

mtlx_pbr_light

Library: mtlx. Category: volume. Type: lightshader LiteGraph id: mtlx/pbr/light

Definition at line 36356 of file mtlx_stdlib.js.

36356 {
36357 this.nodedef_icon = '';
36358 this.nodedef_name = 'ND_light';
36359 this.nodedef_type = 'lightshader';
36360 this.nodedef_node = 'light';
36361 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/light.html';
36362 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_light_out_genglsl.png';
36363 this.nodedef_group = 'pbr';
36364 this.addInput('edf','EDF');
36365 this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36366 this.addInput('intensity','float');
36367 this.addProperty('intensity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36368 this.addInput('exposure','float');
36369 this.addProperty('exposure', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36370 this.addOutput('out','lightshader');
36371 this.title = 'light_lightshader';
36372 this.desc = "MaterialX:mtlx/pbr/light";
36373 this.onNodeCreated = function() {
36374 //console.log('Node created:', this);
36375}
36376 this.onRemoved = function() {
36377 //console.log('Node removed:', this);
36378 }
36379 this.onPropertyChanged = function(name, value, prev_value) {
36380 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36381 }
36382 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36383 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36384 }
36385 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36386 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36387 }
36388 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36389 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36390 }
36391 this.bgcolor = '#111';
36392 this.color = '#222';
36393 this.shape = LiteGraph.ROUND_SHAPE;
36394}

◆ mtlx_pbr_measured_edf()

function mtlx_pbr_measured_edf ( )

mtlx_pbr_measured_edf

Library: mtlx. Category: conical_edf. Type: EDF LiteGraph id: mtlx/pbr/measured_edf

Definition at line 36064 of file mtlx_stdlib.js.

36064 {
36065 this.nodedef_icon = '';
36066 this.nodedef_name = 'ND_measured_edf';
36067 this.nodedef_type = 'EDF';
36068 this.nodedef_node = 'measured_edf';
36069 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/measured_edf.html';
36070 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_measured_edf_out_genglsl.png';
36071 this.nodedef_group = 'pbr';
36072 this.addInput('color','color3');
36073 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36074 this.addInput('normal','vector3');
36075 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
36076 this.addInput('file','filename');
36077 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36078 this.addOutput('out','EDF');
36079 this.title = 'measured_edf_EDF';
36080 this.desc = "MaterialX:mtlx/pbr/measured_edf";
36081 this.onNodeCreated = function() {
36082 //console.log('Node created:', this);
36083}
36084 this.onRemoved = function() {
36085 //console.log('Node removed:', this);
36086 }
36087 this.onPropertyChanged = function(name, value, prev_value) {
36088 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36089 }
36090 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36091 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36092 }
36093 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36094 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36095 }
36096 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36097 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36098 }
36099 this.bgcolor = '#111';
36100 this.color = '#222';
36101 this.shape = LiteGraph.ROUND_SHAPE;
36102}

◆ mtlx_pbr_mix_bsdf()

function mtlx_pbr_mix_bsdf ( )

mtlx_pbr_mix_bsdf

Library: mtlx. Category: layer. Type: BSDF LiteGraph id: mtlx/pbr/mix_bsdf

Definition at line 36593 of file mtlx_stdlib.js.

36593 {
36594 this.nodedef_icon = '';
36595 this.nodedef_name = 'ND_mix_bsdf';
36596 this.nodedef_type = 'BSDF';
36597 this.nodedef_node = 'mix';
36598 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36599 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_bsdf_out_genglsl.png';
36600 this.nodedef_group = 'pbr';
36601 this.addInput('fg','BSDF');
36602 this.addProperty('fg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36603 this.addInput('bg','BSDF');
36604 this.addProperty('bg', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36605 this.addInput('mix','float');
36606 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
36607 this.addOutput('out','BSDF');
36608 this.title = 'mix_BSDF';
36609 this.desc = "MaterialX:mtlx/pbr/mix_bsdf";
36610 this.onNodeCreated = function() {
36611 //console.log('Node created:', this);
36612}
36613 this.onRemoved = function() {
36614 //console.log('Node removed:', this);
36615 }
36616 this.onPropertyChanged = function(name, value, prev_value) {
36617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36618 }
36619 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36621 }
36622 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36624 }
36625 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36627 }
36628 this.bgcolor = '#111';
36629 this.color = '#222';
36630 this.shape = LiteGraph.ROUND_SHAPE;
36631}

◆ mtlx_pbr_mix_edf()

function mtlx_pbr_mix_edf ( )

mtlx_pbr_mix_edf

Library: mtlx. Category: mix. Type: EDF LiteGraph id: mtlx/pbr/mix_edf

Definition at line 36642 of file mtlx_stdlib.js.

36642 {
36643 this.nodedef_icon = '';
36644 this.nodedef_name = 'ND_mix_edf';
36645 this.nodedef_type = 'EDF';
36646 this.nodedef_node = 'mix';
36647 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36648 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_edf_out_genglsl.png';
36649 this.nodedef_group = 'pbr';
36650 this.addInput('fg','EDF');
36651 this.addProperty('fg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36652 this.addInput('bg','EDF');
36653 this.addProperty('bg', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36654 this.addInput('mix','float');
36655 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
36656 this.addOutput('out','EDF');
36657 this.title = 'mix_EDF';
36658 this.desc = "MaterialX:mtlx/pbr/mix_edf";
36659 this.onNodeCreated = function() {
36660 //console.log('Node created:', this);
36661}
36662 this.onRemoved = function() {
36663 //console.log('Node removed:', this);
36664 }
36665 this.onPropertyChanged = function(name, value, prev_value) {
36666 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36667 }
36668 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36669 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36670 }
36671 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36672 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36673 }
36674 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36675 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36676 }
36677 this.bgcolor = '#111';
36678 this.color = '#222';
36679 this.shape = LiteGraph.ROUND_SHAPE;
36680}

◆ mtlx_pbr_mix_vdf()

function mtlx_pbr_mix_vdf ( )

mtlx_pbr_mix_vdf

Library: mtlx. Category: mix. Type: VDF LiteGraph id: mtlx/pbr/mix_vdf

Definition at line 36691 of file mtlx_stdlib.js.

36691 {
36692 this.nodedef_icon = '';
36693 this.nodedef_name = 'ND_mix_vdf';
36694 this.nodedef_type = 'VDF';
36695 this.nodedef_node = 'mix';
36696 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36697 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vdf_out_genglsl.png';
36698 this.nodedef_group = 'pbr';
36699 this.addInput('fg','VDF');
36700 this.addProperty('fg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36701 this.addInput('bg','VDF');
36702 this.addProperty('bg', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36703 this.addInput('mix','float');
36704 this.addProperty('mix', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
36705 this.addOutput('out','VDF');
36706 this.title = 'mix_VDF';
36707 this.desc = "MaterialX:mtlx/pbr/mix_vdf";
36708 this.onNodeCreated = function() {
36709 //console.log('Node created:', this);
36710}
36711 this.onRemoved = function() {
36712 //console.log('Node removed:', this);
36713 }
36714 this.onPropertyChanged = function(name, value, prev_value) {
36715 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36716 }
36717 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36718 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36719 }
36720 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36721 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36722 }
36723 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36724 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36725 }
36726 this.bgcolor = '#111';
36727 this.color = '#222';
36728 this.shape = LiteGraph.ROUND_SHAPE;
36729}

◆ mtlx_pbr_multiply_bsdfC()

function mtlx_pbr_multiply_bsdfC ( )

mtlx_pbr_multiply_bsdfC

Library: mtlx. Category: add. Type: BSDF LiteGraph id: mtlx/pbr/multiply_bsdfC

Definition at line 36881 of file mtlx_stdlib.js.

36881 {
36882 this.nodedef_icon = '';
36883 this.nodedef_name = 'ND_multiply_bsdfC';
36884 this.nodedef_type = 'BSDF';
36885 this.nodedef_node = 'multiply';
36886 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36887 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_bsdfC_out_genglsl.png';
36888 this.nodedef_group = 'pbr';
36889 this.addInput('in1','BSDF');
36890 this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36891 this.addInput('in2','color3');
36892 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36893 this.addOutput('out','BSDF');
36894 this.title = 'multiply_BSDF';
36895 this.desc = "MaterialX:mtlx/pbr/multiply_bsdfC";
36896 this.onNodeCreated = function() {
36897 //console.log('Node created:', this);
36898}
36899 this.onRemoved = function() {
36900 //console.log('Node removed:', this);
36901 }
36902 this.onPropertyChanged = function(name, value, prev_value) {
36903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36904 }
36905 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36907 }
36908 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36910 }
36911 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36913 }
36914 this.bgcolor = '#111';
36915 this.color = '#222';
36916 this.shape = LiteGraph.ROUND_SHAPE;
36917}

◆ mtlx_pbr_multiply_bsdfF()

function mtlx_pbr_multiply_bsdfF ( )

mtlx_pbr_multiply_bsdfF

Library: mtlx. Category: multiply. Type: BSDF LiteGraph id: mtlx/pbr/multiply_bsdfF

Definition at line 36928 of file mtlx_stdlib.js.

36928 {
36929 this.nodedef_icon = '';
36930 this.nodedef_name = 'ND_multiply_bsdfF';
36931 this.nodedef_type = 'BSDF';
36932 this.nodedef_node = 'multiply';
36933 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36934 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_bsdfF_out_genglsl.png';
36935 this.nodedef_group = 'pbr';
36936 this.addInput('in1','BSDF');
36937 this.addProperty('in1', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36938 this.addInput('in2','float');
36939 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36940 this.addOutput('out','BSDF');
36941 this.title = 'multiply_BSDF';
36942 this.desc = "MaterialX:mtlx/pbr/multiply_bsdfF";
36943 this.onNodeCreated = function() {
36944 //console.log('Node created:', this);
36945}
36946 this.onRemoved = function() {
36947 //console.log('Node removed:', this);
36948 }
36949 this.onPropertyChanged = function(name, value, prev_value) {
36950 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36951 }
36952 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36953 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36954 }
36955 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36956 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36957 }
36958 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36959 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36960 }
36961 this.bgcolor = '#111';
36962 this.color = '#222';
36963 this.shape = LiteGraph.ROUND_SHAPE;
36964}

◆ mtlx_pbr_multiply_edfC()

function mtlx_pbr_multiply_edfC ( )

mtlx_pbr_multiply_edfC

Library: mtlx. Category: multiply. Type: EDF LiteGraph id: mtlx/pbr/multiply_edfC

Definition at line 36975 of file mtlx_stdlib.js.

36975 {
36976 this.nodedef_icon = '';
36977 this.nodedef_name = 'ND_multiply_edfC';
36978 this.nodedef_type = 'EDF';
36979 this.nodedef_node = 'multiply';
36980 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36981 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_edfC_out_genglsl.png';
36982 this.nodedef_group = 'pbr';
36983 this.addInput('in1','EDF');
36984 this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36985 this.addInput('in2','color3');
36986 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36987 this.addOutput('out','EDF');
36988 this.title = 'multiply_EDF';
36989 this.desc = "MaterialX:mtlx/pbr/multiply_edfC";
36990 this.onNodeCreated = function() {
36991 //console.log('Node created:', this);
36992}
36993 this.onRemoved = function() {
36994 //console.log('Node removed:', this);
36995 }
36996 this.onPropertyChanged = function(name, value, prev_value) {
36997 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36998 }
36999 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37000 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37001 }
37002 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37003 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37004 }
37005 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37006 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37007 }
37008 this.bgcolor = '#111';
37009 this.color = '#222';
37010 this.shape = LiteGraph.ROUND_SHAPE;
37011}

◆ mtlx_pbr_multiply_edfF()

function mtlx_pbr_multiply_edfF ( )

mtlx_pbr_multiply_edfF

Library: mtlx. Category: multiply. Type: EDF LiteGraph id: mtlx/pbr/multiply_edfF

Definition at line 37022 of file mtlx_stdlib.js.

37022 {
37023 this.nodedef_icon = '';
37024 this.nodedef_name = 'ND_multiply_edfF';
37025 this.nodedef_type = 'EDF';
37026 this.nodedef_node = 'multiply';
37027 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37028 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_edfF_out_genglsl.png';
37029 this.nodedef_group = 'pbr';
37030 this.addInput('in1','EDF');
37031 this.addProperty('in1', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37032 this.addInput('in2','float');
37033 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37034 this.addOutput('out','EDF');
37035 this.title = 'multiply_EDF';
37036 this.desc = "MaterialX:mtlx/pbr/multiply_edfF";
37037 this.onNodeCreated = function() {
37038 //console.log('Node created:', this);
37039}
37040 this.onRemoved = function() {
37041 //console.log('Node removed:', this);
37042 }
37043 this.onPropertyChanged = function(name, value, prev_value) {
37044 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37045 }
37046 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37047 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37048 }
37049 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37050 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37051 }
37052 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37053 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37054 }
37055 this.bgcolor = '#111';
37056 this.color = '#222';
37057 this.shape = LiteGraph.ROUND_SHAPE;
37058}

◆ mtlx_pbr_multiply_vdfC()

function mtlx_pbr_multiply_vdfC ( )

mtlx_pbr_multiply_vdfC

Library: mtlx. Category: multiply. Type: VDF LiteGraph id: mtlx/pbr/multiply_vdfC

Definition at line 37069 of file mtlx_stdlib.js.

37069 {
37070 this.nodedef_icon = '';
37071 this.nodedef_name = 'ND_multiply_vdfC';
37072 this.nodedef_type = 'VDF';
37073 this.nodedef_node = 'multiply';
37074 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37075 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vdfC_out_genglsl.png';
37076 this.nodedef_group = 'pbr';
37077 this.addInput('in1','VDF');
37078 this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37079 this.addInput('in2','color3');
37080 this.addProperty('in2', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37081 this.addOutput('out','VDF');
37082 this.title = 'multiply_VDF';
37083 this.desc = "MaterialX:mtlx/pbr/multiply_vdfC";
37084 this.onNodeCreated = function() {
37085 //console.log('Node created:', this);
37086}
37087 this.onRemoved = function() {
37088 //console.log('Node removed:', this);
37089 }
37090 this.onPropertyChanged = function(name, value, prev_value) {
37091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37092 }
37093 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37095 }
37096 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37098 }
37099 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37101 }
37102 this.bgcolor = '#111';
37103 this.color = '#222';
37104 this.shape = LiteGraph.ROUND_SHAPE;
37105}

◆ mtlx_pbr_multiply_vdfF()

function mtlx_pbr_multiply_vdfF ( )

mtlx_pbr_multiply_vdfF

Library: mtlx. Category: multiply. Type: VDF LiteGraph id: mtlx/pbr/multiply_vdfF

Definition at line 37116 of file mtlx_stdlib.js.

37116 {
37117 this.nodedef_icon = '';
37118 this.nodedef_name = 'ND_multiply_vdfF';
37119 this.nodedef_type = 'VDF';
37120 this.nodedef_node = 'multiply';
37121 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37122 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vdfF_out_genglsl.png';
37123 this.nodedef_group = 'pbr';
37124 this.addInput('in1','VDF');
37125 this.addProperty('in1', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37126 this.addInput('in2','float');
37127 this.addProperty('in2', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37128 this.addOutput('out','VDF');
37129 this.title = 'multiply_VDF';
37130 this.desc = "MaterialX:mtlx/pbr/multiply_vdfF";
37131 this.onNodeCreated = function() {
37132 //console.log('Node created:', this);
37133}
37134 this.onRemoved = function() {
37135 //console.log('Node removed:', this);
37136 }
37137 this.onPropertyChanged = function(name, value, prev_value) {
37138 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37139 }
37140 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37141 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37142 }
37143 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37144 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37145 }
37146 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37147 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37148 }
37149 this.bgcolor = '#111';
37150 this.color = '#222';
37151 this.shape = LiteGraph.ROUND_SHAPE;
37152}

◆ mtlx_pbr_open_pbr_anisotropy()

function mtlx_pbr_open_pbr_anisotropy ( )

mtlx_pbr_open_pbr_anisotropy

Library: mtlx. Category: open_pbr_surface. Type: vector2 LiteGraph id: mtlx/pbr/open_pbr_anisotropy

Definition at line 37676 of file mtlx_stdlib.js.

37676 {
37677 this.nodedef_icon = './Icons/openpbr_logo.svg';
37678 this.nodedef_name = 'ND_open_pbr_anisotropy';
37679 this.nodedef_type = 'vector2';
37680 this.nodedef_node = 'open_pbr_anisotropy';
37681 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/open_pbr_anisotropy.html';
37682 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_open_pbr_anisotropy_out_genglsl.png';
37683 this.nodedef_group = 'pbr';
37684 this.addInput('roughness','float');
37685 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37686 this.addInput('anisotropy','float');
37687 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37688 this.addOutput('out','vector2');
37689 this.title = 'open_pbr_anisotropy_vector2';
37690 this.desc = "MaterialX:mtlx/pbr/open_pbr_anisotropy";
37691 this.onNodeCreated = function() {
37692 //console.log('Node created:', this);
37693}
37694 this.onRemoved = function() {
37695 //console.log('Node removed:', this);
37696 }
37697 this.onPropertyChanged = function(name, value, prev_value) {
37698 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37699 }
37700 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37701 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37702 }
37703 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37704 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37705 }
37706 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37707 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37708 }
37709 this.bgcolor = '#111';
37710 this.color = '#222';
37711 this.shape = LiteGraph.ROUND_SHAPE;
37712 this.boxcolor = '#265';
37713}

◆ mtlx_pbr_open_pbr_surface_surfaceshader()

function mtlx_pbr_open_pbr_surface_surfaceshader ( )

mtlx_pbr_open_pbr_surface_surfaceshader

Library: mtlx. Category: gooch_shade. Type: surfaceshader LiteGraph id: mtlx/pbr/open_pbr_surface_surfaceshader

Definition at line 37551 of file mtlx_stdlib.js.

37551 {
37552 this.nodedef_icon = './Icons/openpbr_logo.svg';
37553 this.nodedef_name = 'ND_open_pbr_surface_surfaceshader';
37554 this.nodedef_type = 'surfaceshader';
37555 this.nodedef_node = 'open_pbr_surface';
37556 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/open_pbr_surface.html';
37557 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_open_pbr_surface_surfaceshader_out_genglsl.png';
37558 this.nodedef_group = 'pbr';
37559 this.addInput('base_weight','float');
37560 this.addProperty('base_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Weight","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
37561 this.addInput('base_color','color3');
37562 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","defaultgeomprop":""});
37563 this.addInput('base_diffuse_roughness','float');
37564 this.addProperty('base_diffuse_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
37565 this.addInput('base_metalness','float');
37566 this.addProperty('base_metalness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
37567 this.addInput('specular_weight','float');
37568 this.addProperty('specular_weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Weight","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
37569 this.addInput('specular_color','color3');
37570 this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular","defaultgeomprop":""});
37571 this.addInput('specular_roughness','float');
37572 this.addProperty('specular_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
37573 this.addInput('specular_ior','float');
37574 this.addProperty('specular_ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Specular","defaultgeomprop":""});
37575 this.addInput('specular_roughness_anisotropy','float');
37576 this.addProperty('specular_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
37577 this.addInput('transmission_weight','float');
37578 this.addProperty('transmission_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Weight","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
37579 this.addInput('transmission_color','color3');
37580 this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
37581 this.addInput('transmission_depth','float');
37582 this.addProperty('transmission_depth', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
37583 this.addInput('transmission_scatter','color3');
37584 this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
37585 this.addInput('transmission_scatter_anisotropy','float');
37586 this.addProperty('transmission_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
37587 this.addInput('transmission_dispersion_scale','float');
37588 this.addProperty('transmission_dispersion_scale', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Scale","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
37589 this.addInput('transmission_dispersion_abbe_number','float');
37590 this.addProperty('transmission_dispersion_abbe_number', 20.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion Abbe Number","uimin":"9.0","uimax":"91.0","uifolder":"Transmission","defaultgeomprop":""});
37591 this.addInput('subsurface_weight','float');
37592 this.addProperty('subsurface_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Weight","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
37593 this.addInput('subsurface_color','color3');
37594 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","defaultgeomprop":""});
37595 this.addInput('subsurface_radius','float');
37596 this.addProperty('subsurface_radius', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
37597 this.addInput('subsurface_radius_scale','color3');
37598 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","defaultgeomprop":""});
37599 this.addInput('subsurface_scatter_anisotropy','float');
37600 this.addProperty('subsurface_scatter_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
37601 this.addInput('fuzz_weight','float');
37602 this.addProperty('fuzz_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Weight","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz","defaultgeomprop":""});
37603 this.addInput('fuzz_color','color3');
37604 this.addProperty('fuzz_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Fuzz","defaultgeomprop":""});
37605 this.addInput('fuzz_roughness','float');
37606 this.addProperty('fuzz_roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Fuzz Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Fuzz","defaultgeomprop":""});
37607 this.addInput('coat_weight','float');
37608 this.addProperty('coat_weight', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Weight","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
37609 this.addInput('coat_color','color3');
37610 this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat","defaultgeomprop":""});
37611 this.addInput('coat_roughness','float');
37612 this.addProperty('coat_roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
37613 this.addInput('coat_roughness_anisotropy','float');
37614 this.addProperty('coat_roughness_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
37615 this.addInput('coat_ior','float');
37616 this.addProperty('coat_ior', 1.6, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Coat","defaultgeomprop":""});
37617 this.addInput('coat_darkening','float');
37618 this.addProperty('coat_darkening', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Darkening","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
37619 this.addInput('thin_film_weight','float');
37620 this.addProperty('thin_film_weight', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Weight","uimin":"0.0","uimax":"1.0","uifolder":"Thin Film","defaultgeomprop":""});
37621 this.addInput('thin_film_thickness','float');
37622 this.addProperty('thin_film_thickness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":"1.0","uifolder":"Thin Film","defaultgeomprop":""});
37623 this.addInput('thin_film_ior','float');
37624 this.addProperty('thin_film_ior', 1.4, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Thin Film","defaultgeomprop":""});
37625 this.addInput('emission_luminance','float');
37626 this.addProperty('emission_luminance', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Luminance","uimin":"0.0","uimax":"1000.0","uifolder":"Emission","defaultgeomprop":""});
37627 this.addInput('emission_color','color3');
37628 this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission","defaultgeomprop":""});
37629 this.addInput('geometry_opacity','float');
37630 this.addProperty('geometry_opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0","uimax":"1","uifolder":"Geometry","defaultgeomprop":""});
37631 this.addInput('geometry_thin_walled','boolean');
37632 this.addProperty('geometry_thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":""});
37633 this.addInput('geometry_normal','vector3');
37634 this.addProperty('geometry_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Nworld"});
37635 this.addInput('geometry_coat_normal','vector3');
37636 this.addProperty('geometry_coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Normal","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Nworld"});
37637 this.addInput('geometry_tangent','vector3');
37638 this.addProperty('geometry_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Tworld"});
37639 this.addInput('geometry_coat_tangent','vector3');
37640 this.addProperty('geometry_coat_tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Tangent","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Tworld"});
37641 this.addOutput('out','surfaceshader');
37642 this.title = 'open_pbr_surface_surfaceshader';
37643 this.desc = "MaterialX:mtlx/pbr/open_pbr_surface_surfaceshader";
37644 this.onNodeCreated = function() {
37645 //console.log('Node created:', this);
37646}
37647 this.onRemoved = function() {
37648 //console.log('Node removed:', this);
37649 }
37650 this.onPropertyChanged = function(name, value, prev_value) {
37651 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37652 }
37653 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37654 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37655 }
37656 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37657 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37658 }
37659 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37660 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37661 }
37662 this.bgcolor = '#111';
37663 this.color = '#232';
37664 this.shape = LiteGraph.ROUND_SHAPE;
37665}

◆ mtlx_pbr_oren_nayar_diffuse_bsdf()

function mtlx_pbr_oren_nayar_diffuse_bsdf ( )

mtlx_pbr_oren_nayar_diffuse_bsdf

Library: mtlx. Category: dot. Type: BSDF LiteGraph id: mtlx/pbr/oren_nayar_diffuse_bsdf

Definition at line 35518 of file mtlx_stdlib.js.

35518 {
35519 this.nodedef_icon = '';
35520 this.nodedef_name = 'ND_oren_nayar_diffuse_bsdf';
35521 this.nodedef_type = 'BSDF';
35522 this.nodedef_node = 'oren_nayar_diffuse_bsdf';
35523 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/oren_nayar_diffuse_bsdf.html';
35524 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_oren_nayar_diffuse_bsdf_out_genglsl.png';
35525 this.nodedef_group = 'pbr';
35526 this.addInput('weight','float');
35527 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35528 this.addInput('color','color3');
35529 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35530 this.addInput('roughness','float');
35531 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35532 this.addInput('normal','vector3');
35533 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35534 this.addInput('energy_compensation','boolean');
35535 this.addProperty('energy_compensation', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35536 this.addOutput('out','BSDF');
35537 this.title = 'oren_nayar_diffuse_bsdf_BSDF';
35538 this.desc = "MaterialX:mtlx/pbr/oren_nayar_diffuse_bsdf";
35539 this.onNodeCreated = function() {
35540 //console.log('Node created:', this);
35541}
35542 this.onRemoved = function() {
35543 //console.log('Node removed:', this);
35544 }
35545 this.onPropertyChanged = function(name, value, prev_value) {
35546 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35547 }
35548 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35549 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35550 }
35551 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35552 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35553 }
35554 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35555 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35556 }
35557 this.bgcolor = '#111';
35558 this.color = '#222';
35559 this.shape = LiteGraph.ROUND_SHAPE;
35560}

◆ mtlx_pbr_roughness_anisotropy()

function mtlx_pbr_roughness_anisotropy ( )

mtlx_pbr_roughness_anisotropy

Library: mtlx. Category: multiply. Type: vector2 LiteGraph id: mtlx/pbr/roughness_anisotropy

Definition at line 37163 of file mtlx_stdlib.js.

37163 {
37164 this.nodedef_icon = '';
37165 this.nodedef_name = 'ND_roughness_anisotropy';
37166 this.nodedef_type = 'vector2';
37167 this.nodedef_node = 'roughness_anisotropy';
37168 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/roughness_anisotropy.html';
37169 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_roughness_anisotropy_out_genglsl.png';
37170 this.nodedef_group = 'pbr';
37171 this.addInput('roughness','float');
37172 this.addProperty('roughness', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37173 this.addInput('anisotropy','float');
37174 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37175 this.addOutput('out','vector2');
37176 this.title = 'roughness_anisotropy_vector2';
37177 this.desc = "MaterialX:mtlx/pbr/roughness_anisotropy";
37178 this.onNodeCreated = function() {
37179 //console.log('Node created:', this);
37180}
37181 this.onRemoved = function() {
37182 //console.log('Node removed:', this);
37183 }
37184 this.onPropertyChanged = function(name, value, prev_value) {
37185 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37186 }
37187 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37188 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37189 }
37190 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37191 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37192 }
37193 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37194 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37195 }
37196 this.bgcolor = '#111';
37197 this.color = '#222';
37198 this.shape = LiteGraph.ROUND_SHAPE;
37199 this.boxcolor = '#265';
37200}

◆ mtlx_pbr_roughness_dual()

function mtlx_pbr_roughness_dual ( )

mtlx_pbr_roughness_dual

Library: mtlx. Category: roughness_anisotropy. Type: vector2 LiteGraph id: mtlx/pbr/roughness_dual

Definition at line 37211 of file mtlx_stdlib.js.

37211 {
37212 this.nodedef_icon = '';
37213 this.nodedef_name = 'ND_roughness_dual';
37214 this.nodedef_type = 'vector2';
37215 this.nodedef_node = 'roughness_dual';
37216 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/roughness_dual.html';
37217 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_roughness_dual_out_genglsl.png';
37218 this.nodedef_group = 'pbr';
37219 this.addInput('roughness','vector2');
37220 this.addProperty('roughness', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37221 this.addOutput('out','vector2');
37222 this.title = 'roughness_dual_vector2';
37223 this.desc = "MaterialX:mtlx/pbr/roughness_dual";
37224 this.onNodeCreated = function() {
37225 //console.log('Node created:', this);
37226}
37227 this.onRemoved = function() {
37228 //console.log('Node removed:', this);
37229 }
37230 this.onPropertyChanged = function(name, value, prev_value) {
37231 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37232 }
37233 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37234 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37235 }
37236 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37237 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37238 }
37239 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37240 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37241 }
37242 this.bgcolor = '#111';
37243 this.color = '#222';
37244 this.shape = LiteGraph.ROUND_SHAPE;
37245 this.boxcolor = '#265';
37246}

◆ mtlx_pbr_sheen_bsdf()

function mtlx_pbr_sheen_bsdf ( )

mtlx_pbr_sheen_bsdf

Library: mtlx. Category: subsurface_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/sheen_bsdf

Definition at line 35915 of file mtlx_stdlib.js.

35915 {
35916 this.nodedef_icon = '';
35917 this.nodedef_name = 'ND_sheen_bsdf';
35918 this.nodedef_type = 'BSDF';
35919 this.nodedef_node = 'sheen_bsdf';
35920 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sheen_bsdf.html';
35921 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sheen_bsdf_out_genglsl.png';
35922 this.nodedef_group = 'pbr';
35923 this.addInput('weight','float');
35924 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35925 this.addInput('color','color3');
35926 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35927 this.addInput('roughness','float');
35928 this.addProperty('roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35929 this.addInput('normal','vector3');
35930 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35931 this.addInput('mode','string');
35932 this.addProperty('mode', 'conty_kulla', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["conty_kulla"," zeltner"]});
35933 this.addOutput('out','BSDF');
35934 this.title = 'sheen_bsdf_BSDF';
35935 this.desc = "MaterialX:mtlx/pbr/sheen_bsdf";
35936 this.onNodeCreated = function() {
35937 //console.log('Node created:', this);
35938}
35939 this.onRemoved = function() {
35940 //console.log('Node removed:', this);
35941 }
35942 this.onPropertyChanged = function(name, value, prev_value) {
35943 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35944 }
35945 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35946 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35947 }
35948 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35949 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35950 }
35951 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35952 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35953 }
35954 this.bgcolor = '#111';
35955 this.color = '#222';
35956 this.shape = LiteGraph.ROUND_SHAPE;
35957}

◆ mtlx_pbr_standard_surface_surfaceshader()

function mtlx_pbr_standard_surface_surfaceshader ( )

mtlx_pbr_standard_surface_surfaceshader

Library: mtlx. Category: disney_bsdf_2015. Type: surfaceshader LiteGraph id: mtlx/pbr/standard_surface_surfaceshader

Definition at line 39013 of file mtlx_stdlib.js.

39013 {
39014 this.nodedef_icon = '';
39015 this.nodedef_name = 'ND_standard_surface_surfaceshader';
39016 this.nodedef_type = 'surfaceshader';
39017 this.nodedef_node = 'standard_surface';
39018 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface.html';
39019 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_out_genglsl.png';
39020 this.nodedef_group = 'pbr';
39021 this.addInput('base','float');
39022 this.addProperty('base', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39023 this.addInput('base_color','color3');
39024 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","defaultgeomprop":""});
39025 this.addInput('diffuse_roughness','float');
39026 this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39027 this.addInput('metalness','float');
39028 this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39029 this.addInput('specular','float');
39030 this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39031 this.addInput('specular_color','color3');
39032 this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular","defaultgeomprop":""});
39033 this.addInput('specular_roughness','float');
39034 this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39035 this.addInput('specular_IOR','float');
39036 this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Specular","defaultgeomprop":""});
39037 this.addInput('specular_anisotropy','float');
39038 this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39039 this.addInput('specular_rotation','float');
39040 this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39041 this.addInput('transmission','float');
39042 this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39043 this.addInput('transmission_color','color3');
39044 this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
39045 this.addInput('transmission_depth','float');
39046 this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":"100.0","uifolder":"Transmission","defaultgeomprop":""});
39047 this.addInput('transmission_scatter','color3');
39048 this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
39049 this.addInput('transmission_scatter_anisotropy','float');
39050 this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39051 this.addInput('transmission_dispersion','float');
39052 this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":"100.0","uifolder":"Transmission","defaultgeomprop":""});
39053 this.addInput('transmission_extra_roughness','float');
39054 this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39055 this.addInput('subsurface','float');
39056 this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
39057 this.addInput('subsurface_color','color3');
39058 this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface","defaultgeomprop":""});
39059 this.addInput('subsurface_radius','color3');
39060 this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface","defaultgeomprop":""});
39061 this.addInput('subsurface_scale','float');
39062 this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":"10.0","uifolder":"Subsurface","defaultgeomprop":""});
39063 this.addInput('subsurface_anisotropy','float');
39064 this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
39065 this.addInput('sheen','float');
39066 this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen","defaultgeomprop":""});
39067 this.addInput('sheen_color','color3');
39068 this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen","defaultgeomprop":""});
39069 this.addInput('sheen_roughness','float');
39070 this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen","defaultgeomprop":""});
39071 this.addInput('coat','float');
39072 this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39073 this.addInput('coat_color','color3');
39074 this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat","defaultgeomprop":""});
39075 this.addInput('coat_roughness','float');
39076 this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39077 this.addInput('coat_anisotropy','float');
39078 this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39079 this.addInput('coat_rotation','float');
39080 this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39081 this.addInput('coat_IOR','float');
39082 this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Coat","defaultgeomprop":""});
39083 this.addInput('coat_normal','vector3');
39084 this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat","defaultgeomprop":"Nworld"});
39085 this.addInput('coat_affect_color','float');
39086 this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat","defaultgeomprop":""});
39087 this.addInput('coat_affect_roughness','float');
39088 this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat","defaultgeomprop":""});
39089 this.addInput('thin_film_thickness','float');
39090 this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":"2000.0","uifolder":"Thin Film","defaultgeomprop":""});
39091 this.addInput('thin_film_IOR','float');
39092 this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Thin Film","defaultgeomprop":""});
39093 this.addInput('emission','float');
39094 this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":"1.0","uifolder":"Emission","defaultgeomprop":""});
39095 this.addInput('emission_color','color3');
39096 this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission","defaultgeomprop":""});
39097 this.addInput('opacity','color3');
39098 this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry","defaultgeomprop":""});
39099 this.addInput('thin_walled','boolean');
39100 this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":""});
39101 this.addInput('normal','vector3');
39102 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Nworld"});
39103 this.addInput('tangent','vector3');
39104 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Tworld"});
39105 this.addOutput('out','surfaceshader');
39106 this.title = 'standard_surface_surfaceshader';
39107 this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader";
39108 this.onNodeCreated = function() {
39109 //console.log('Node created:', this);
39110}
39111 this.onRemoved = function() {
39112 //console.log('Node removed:', this);
39113 }
39114 this.onPropertyChanged = function(name, value, prev_value) {
39115 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39116 }
39117 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39118 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39119 }
39120 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39121 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39122 }
39123 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39124 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39125 }
39126 this.bgcolor = '#111';
39127 this.color = '#232';
39128 this.shape = LiteGraph.ROUND_SHAPE;
39129}

◆ mtlx_pbr_standard_surface_surfaceshader_100()

function mtlx_pbr_standard_surface_surfaceshader_100 ( )

mtlx_pbr_standard_surface_surfaceshader_100

Library: mtlx. Category: standard_surface. Type: surfaceshader LiteGraph id: mtlx/pbr/standard_surface_surfaceshader_100

Definition at line 39140 of file mtlx_stdlib.js.

39140 {
39141 this.nodedef_icon = '';
39142 this.nodedef_name = 'ND_standard_surface_surfaceshader_100';
39143 this.nodedef_type = 'surfaceshader';
39144 this.nodedef_node = 'standard_surface';
39145 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface.html';
39146 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_100_out_genglsl.png';
39147 this.nodedef_group = 'pbr';
39148 this.addInput('base','float');
39149 this.addProperty('base', 0.8, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Base","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39150 this.addInput('base_color','color3');
39151 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","defaultgeomprop":""});
39152 this.addInput('diffuse_roughness','float');
39153 this.addProperty('diffuse_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diffuse Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39154 this.addInput('metalness','float');
39155 this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Metalness","uimin":"0.0","uimax":"1.0","uifolder":"Base","defaultgeomprop":""});
39156 this.addInput('specular','float');
39157 this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39158 this.addInput('specular_color','color3');
39159 this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Specular","defaultgeomprop":""});
39160 this.addInput('specular_roughness','float');
39161 this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39162 this.addInput('specular_IOR','float');
39163 this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Specular","defaultgeomprop":""});
39164 this.addInput('specular_anisotropy','float');
39165 this.addProperty('specular_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39166 this.addInput('specular_rotation','float');
39167 this.addProperty('specular_rotation', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Specular Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Specular","defaultgeomprop":""});
39168 this.addInput('transmission','float');
39169 this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39170 this.addInput('transmission_color','color3');
39171 this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
39172 this.addInput('transmission_depth','float');
39173 this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Depth","uimin":"0.0","uimax":"100.0","uifolder":"Transmission","defaultgeomprop":""});
39174 this.addInput('transmission_scatter','color3');
39175 this.addProperty('transmission_scatter', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Scatter","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Transmission","defaultgeomprop":""});
39176 this.addInput('transmission_scatter_anisotropy','float');
39177 this.addProperty('transmission_scatter_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39178 this.addInput('transmission_dispersion','float');
39179 this.addProperty('transmission_dispersion', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Dispersion","uimin":"0.0","uimax":"100.0","uifolder":"Transmission","defaultgeomprop":""});
39180 this.addInput('transmission_extra_roughness','float');
39181 this.addProperty('transmission_extra_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Transmission Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Transmission","defaultgeomprop":""});
39182 this.addInput('subsurface','float');
39183 this.addProperty('subsurface', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface","uimin":"0.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
39184 this.addInput('subsurface_color','color3');
39185 this.addProperty('subsurface_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface","defaultgeomprop":""});
39186 this.addInput('subsurface_radius','color3');
39187 this.addProperty('subsurface_radius', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Radius","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Subsurface","defaultgeomprop":""});
39188 this.addInput('subsurface_scale','float');
39189 this.addProperty('subsurface_scale', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Scale","uimin":"0.0","uimax":"10.0","uifolder":"Subsurface","defaultgeomprop":""});
39190 this.addInput('subsurface_anisotropy','float');
39191 this.addProperty('subsurface_anisotropy', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Subsurface Anisotropy","uimin":"-1.0","uimax":"1.0","uifolder":"Subsurface","defaultgeomprop":""});
39192 this.addInput('sheen','float');
39193 this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen","uimin":"0.0","uimax":"1.0","uifolder":"Sheen","defaultgeomprop":""});
39194 this.addInput('sheen_color','color3');
39195 this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Sheen","defaultgeomprop":""});
39196 this.addInput('sheen_roughness','float');
39197 this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Sheen Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Sheen","defaultgeomprop":""});
39198 this.addInput('coat','float');
39199 this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39200 this.addInput('coat_color','color3');
39201 this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Coat","defaultgeomprop":""});
39202 this.addInput('coat_roughness','float');
39203 this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Roughness","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39204 this.addInput('coat_anisotropy','float');
39205 this.addProperty('coat_anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Anisotropy","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39206 this.addInput('coat_rotation','float');
39207 this.addProperty('coat_rotation', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Rotation","uimin":"0.0","uimax":"1.0","uifolder":"Coat","defaultgeomprop":""});
39208 this.addInput('coat_IOR','float');
39209 this.addProperty('coat_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Coat","defaultgeomprop":""});
39210 this.addInput('coat_normal','vector3');
39211 this.addProperty('coat_normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Coat normal","uimin":null,"uimax":null,"uifolder":"Coat","defaultgeomprop":"Nworld"});
39212 this.addInput('coat_affect_color','float');
39213 this.addProperty('coat_affect_color', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Color","uimin":"0","uimax":"1","uifolder":"Coat","defaultgeomprop":""});
39214 this.addInput('coat_affect_roughness','float');
39215 this.addProperty('coat_affect_roughness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Coat Affect Roughness","uimin":"0","uimax":"1","uifolder":"Coat","defaultgeomprop":""});
39216 this.addInput('thin_film_thickness','float');
39217 this.addProperty('thin_film_thickness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Thickness","uimin":"0.0","uimax":"2000.0","uifolder":"Thin Film","defaultgeomprop":""});
39218 this.addInput('thin_film_IOR','float');
39219 this.addProperty('thin_film_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Film Index of Refraction","uimin":"1.0","uimax":"3.0","uifolder":"Thin Film","defaultgeomprop":""});
39220 this.addInput('emission','float');
39221 this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Emission","uimin":"0.0","uimax":"1.0","uifolder":"Emission","defaultgeomprop":""});
39222 this.addInput('emission_color','color3');
39223 this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Emission Color","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Emission","defaultgeomprop":""});
39224 this.addInput('opacity','color3');
39225 this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Opacity","uimin":"0,0,0","uimax":"1,1,1","uifolder":"Geometry","defaultgeomprop":""});
39226 this.addInput('thin_walled','boolean');
39227 this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Thin Walled","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":""});
39228 this.addInput('normal','vector3');
39229 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Normal","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Nworld"});
39230 this.addInput('tangent','vector3');
39231 this.addProperty('tangent', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Tangent Input","uimin":null,"uimax":null,"uifolder":"Geometry","defaultgeomprop":"Tworld"});
39232 this.addOutput('out','surfaceshader');
39233 this.title = 'standard_surface_surfaceshader';
39234 this.desc = "MaterialX:mtlx/pbr/standard_surface_surfaceshader_100";
39235 this.onNodeCreated = function() {
39236 //console.log('Node created:', this);
39237}
39238 this.onRemoved = function() {
39239 //console.log('Node removed:', this);
39240 }
39241 this.onPropertyChanged = function(name, value, prev_value) {
39242 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
39243 }
39244 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
39245 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
39246 }
39247 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
39248 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
39249 }
39250 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
39251 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
39252 }
39253 this.bgcolor = '#111';
39254 this.color = '#232';
39255 this.shape = LiteGraph.ROUND_SHAPE;
39256}

◆ mtlx_pbr_subsurface_bsdf()

function mtlx_pbr_subsurface_bsdf ( )

mtlx_pbr_subsurface_bsdf

Library: mtlx. Category: generalized_schlick_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/subsurface_bsdf

Definition at line 35862 of file mtlx_stdlib.js.

35862 {
35863 this.nodedef_icon = '';
35864 this.nodedef_name = 'ND_subsurface_bsdf';
35865 this.nodedef_type = 'BSDF';
35866 this.nodedef_node = 'subsurface_bsdf';
35867 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subsurface_bsdf.html';
35868 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subsurface_bsdf_out_genglsl.png';
35869 this.nodedef_group = 'pbr';
35870 this.addInput('weight','float');
35871 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35872 this.addInput('color','color3');
35873 this.addProperty('color', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35874 this.addInput('radius','color3');
35875 this.addProperty('radius', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35876 this.addInput('anisotropy','float');
35877 this.addProperty('anisotropy', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35878 this.addInput('normal','vector3');
35879 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35880 this.addOutput('out','BSDF');
35881 this.title = 'subsurface_bsdf_BSDF';
35882 this.desc = "MaterialX:mtlx/pbr/subsurface_bsdf";
35883 this.onNodeCreated = function() {
35884 //console.log('Node created:', this);
35885}
35886 this.onRemoved = function() {
35887 //console.log('Node removed:', this);
35888 }
35889 this.onPropertyChanged = function(name, value, prev_value) {
35890 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35891 }
35892 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35893 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35894 }
35895 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35896 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35897 }
35898 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35899 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35900 }
35901 this.bgcolor = '#111';
35902 this.color = '#222';
35903 this.shape = LiteGraph.ROUND_SHAPE;
35904}

◆ mtlx_pbr_surface()

function mtlx_pbr_surface ( )

mtlx_pbr_surface

Library: mtlx. Category: anisotropic_vdf. Type: surfaceshader LiteGraph id: mtlx/pbr/surface

Definition at line 36258 of file mtlx_stdlib.js.

36258 {
36259 this.nodedef_icon = '';
36260 this.nodedef_name = 'ND_surface';
36261 this.nodedef_type = 'surfaceshader';
36262 this.nodedef_node = 'surface';
36263 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface.html';
36264 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surface_out_genglsl.png';
36265 this.nodedef_group = 'pbr';
36266 this.addInput('bsdf','BSDF');
36267 this.addProperty('bsdf', '', 'BSDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36268 this.addInput('edf','EDF');
36269 this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36270 this.addInput('opacity','float');
36271 this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36272 this.addInput('thin_walled','boolean');
36273 this.addProperty('thin_walled', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36274 this.addOutput('out','surfaceshader');
36275 this.title = 'surface_surfaceshader';
36276 this.desc = "MaterialX:mtlx/pbr/surface";
36277 this.onNodeCreated = function() {
36278 //console.log('Node created:', this);
36279}
36280 this.onRemoved = function() {
36281 //console.log('Node removed:', this);
36282 }
36283 this.onPropertyChanged = function(name, value, prev_value) {
36284 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36285 }
36286 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36287 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36288 }
36289 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36290 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36291 }
36292 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36293 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36294 }
36295 this.bgcolor = '#111';
36296 this.color = '#232';
36297 this.shape = LiteGraph.ROUND_SHAPE;
36298}

◆ mtlx_pbr_translucent_bsdf()

function mtlx_pbr_translucent_bsdf ( )

mtlx_pbr_translucent_bsdf

Library: mtlx. Category: burley_diffuse_bsdf. Type: BSDF LiteGraph id: mtlx/pbr/translucent_bsdf

Definition at line 35622 of file mtlx_stdlib.js.

35622 {
35623 this.nodedef_icon = '';
35624 this.nodedef_name = 'ND_translucent_bsdf';
35625 this.nodedef_type = 'BSDF';
35626 this.nodedef_node = 'translucent_bsdf';
35627 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/translucent_bsdf.html';
35628 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_translucent_bsdf_out_genglsl.png';
35629 this.nodedef_group = 'pbr';
35630 this.addInput('weight','float');
35631 this.addProperty('weight', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
35632 this.addInput('color','color3');
35633 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35634 this.addInput('normal','vector3');
35635 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nworld"});
35636 this.addOutput('out','BSDF');
35637 this.title = 'translucent_bsdf_BSDF';
35638 this.desc = "MaterialX:mtlx/pbr/translucent_bsdf";
35639 this.onNodeCreated = function() {
35640 //console.log('Node created:', this);
35641}
35642 this.onRemoved = function() {
35643 //console.log('Node removed:', this);
35644 }
35645 this.onPropertyChanged = function(name, value, prev_value) {
35646 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35647 }
35648 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35649 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35650 }
35651 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35652 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35653 }
35654 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35655 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35656 }
35657 this.bgcolor = '#111';
35658 this.color = '#222';
35659 this.shape = LiteGraph.ROUND_SHAPE;
35660}

◆ mtlx_pbr_uniform_edf()

function mtlx_pbr_uniform_edf ( )

mtlx_pbr_uniform_edf

Library: mtlx. Category: sheen_bsdf. Type: EDF LiteGraph id: mtlx/pbr/uniform_edf

Definition at line 35968 of file mtlx_stdlib.js.

35968 {
35969 this.nodedef_icon = '';
35970 this.nodedef_name = 'ND_uniform_edf';
35971 this.nodedef_type = 'EDF';
35972 this.nodedef_node = 'uniform_edf';
35973 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/uniform_edf.html';
35974 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_uniform_edf_out_genglsl.png';
35975 this.nodedef_group = 'pbr';
35976 this.addInput('color','color3');
35977 this.addProperty('color', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
35978 this.addOutput('out','EDF');
35979 this.title = 'uniform_edf_EDF';
35980 this.desc = "MaterialX:mtlx/pbr/uniform_edf";
35981 this.onNodeCreated = function() {
35982 //console.log('Node created:', this);
35983}
35984 this.onRemoved = function() {
35985 //console.log('Node removed:', this);
35986 }
35987 this.onPropertyChanged = function(name, value, prev_value) {
35988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
35989 }
35990 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
35991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
35992 }
35993 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
35994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
35995 }
35996 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
35997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
35998 }
35999 this.bgcolor = '#111';
36000 this.color = '#222';
36001 this.shape = LiteGraph.ROUND_SHAPE;
36002}

◆ mtlx_pbr_UsdPreviewSurface_surfaceshader()

function mtlx_pbr_UsdPreviewSurface_surfaceshader ( )

mtlx_pbr_UsdPreviewSurface_surfaceshader

Library: mtlx. Category: gltf_iridescence_thickness. Type: surfaceshader LiteGraph id: mtlx/pbr/UsdPreviewSurface_surfaceshader

Definition at line 38293 of file mtlx_stdlib.js.

38293 {
38294 this.nodedef_icon = './Icons/openusd_logo.webp';
38295 this.nodedef_name = 'ND_UsdPreviewSurface_surfaceshader';
38296 this.nodedef_type = 'surfaceshader';
38297 this.nodedef_node = 'UsdPreviewSurface';
38298 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPreviewSurface.html';
38299 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPreviewSurface_surfaceshader_out_genglsl.png';
38300 this.nodedef_group = 'pbr';
38301 this.addInput('diffuseColor','color3');
38302 this.addProperty('diffuseColor', [0.18, 0.18, 0.18], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":"","defaultgeomprop":""});
38303 this.addInput('emissiveColor','color3');
38304 this.addProperty('emissiveColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":"","defaultgeomprop":""});
38305 this.addInput('useSpecularWorkflow','integer');
38306 this.addProperty('useSpecularWorkflow', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0","uimax":"1","uifolder":"","defaultgeomprop":""});
38307 this.addInput('specularColor','color3');
38308 this.addProperty('specularColor', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0,0,0","uimax":"1,1,1","uifolder":"","defaultgeomprop":""});
38309 this.addInput('metallic','float');
38310 this.addProperty('metallic', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38311 this.addInput('roughness','float');
38312 this.addProperty('roughness', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38313 this.addInput('clearcoat','float');
38314 this.addProperty('clearcoat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38315 this.addInput('clearcoatRoughness','float');
38316 this.addProperty('clearcoatRoughness', 0.01, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38317 this.addInput('opacity','float');
38318 this.addProperty('opacity', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38319 this.addInput('opacityThreshold','float');
38320 this.addProperty('opacityThreshold', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38321 this.addInput('ior','float');
38322 this.addProperty('ior', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"1.0","uimax":"3.0","uifolder":"","defaultgeomprop":""});
38323 this.addInput('normal','vector3');
38324 this.addProperty('normal', [0, 0, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":[-1,-1,-1],"uimax":[1,1,1],"uifolder":"","defaultgeomprop":""});
38325 this.addInput('displacement','float');
38326 this.addProperty('displacement', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38327 this.addInput('occlusion','float');
38328 this.addProperty('occlusion', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
38329 this.addOutput('out','surfaceshader');
38330 this.title = 'UsdPreviewSurface_surfaceshader';
38331 this.desc = "MaterialX:mtlx/pbr/UsdPreviewSurface_surfaceshader";
38332 this.onNodeCreated = function() {
38333 //console.log('Node created:', this);
38334}
38335 this.onRemoved = function() {
38336 //console.log('Node removed:', this);
38337 }
38338 this.onPropertyChanged = function(name, value, prev_value) {
38339 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38340 }
38341 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38342 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38343 }
38344 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38345 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38346 }
38347 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38348 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38349 }
38350 this.bgcolor = '#111';
38351 this.color = '#232';
38352 this.shape = LiteGraph.ROUND_SHAPE;
38353}

◆ mtlx_pbr_volume()

function mtlx_pbr_volume ( )

mtlx_pbr_volume

Library: mtlx. Category: surface. Type: volumeshader LiteGraph id: mtlx/pbr/volume

Definition at line 36309 of file mtlx_stdlib.js.

36309 {
36310 this.nodedef_icon = '';
36311 this.nodedef_name = 'ND_volume';
36312 this.nodedef_type = 'volumeshader';
36313 this.nodedef_node = 'volume';
36314 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/volume.html';
36315 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_volume_out_genglsl.png';
36316 this.nodedef_group = 'pbr';
36317 this.addInput('vdf','VDF');
36318 this.addProperty('vdf', '', 'VDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36319 this.addInput('edf','EDF');
36320 this.addProperty('edf', '', 'EDF',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
36321 this.addOutput('out','volumeshader');
36322 this.title = 'volume_volumeshader';
36323 this.desc = "MaterialX:mtlx/pbr/volume";
36324 this.onNodeCreated = function() {
36325 //console.log('Node created:', this);
36326}
36327 this.onRemoved = function() {
36328 //console.log('Node removed:', this);
36329 }
36330 this.onPropertyChanged = function(name, value, prev_value) {
36331 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
36332 }
36333 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
36334 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
36335 }
36336 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
36337 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
36338 }
36339 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
36340 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
36341 }
36342 this.bgcolor = '#111';
36343 this.color = '#222';
36344 this.shape = LiteGraph.ROUND_SHAPE;
36345}

◆ mtlx_procedural2d_cellnoise2d_float()

function mtlx_procedural2d_cellnoise2d_float ( )

mtlx_procedural2d_cellnoise2d_float

Library: mtlx. Category: fractal3d. Type: float LiteGraph id: mtlx/procedural2d/cellnoise2d_float

Definition at line 7007 of file mtlx_stdlib.js.

7007 {
7008 this.nodedef_icon = '';
7009 this.nodedef_name = 'ND_cellnoise2d_float';
7010 this.nodedef_type = 'float';
7011 this.nodedef_node = 'cellnoise2d';
7012 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cellnoise2d.html';
7013 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cellnoise2d_float_out_genglsl.png';
7014 this.nodedef_group = 'procedural2d';
7015 this.addInput('texcoord','vector2');
7016 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7017 this.addOutput('out','float');
7018 this.title = 'cellnoise2d_float';
7019 this.desc = "MaterialX:mtlx/procedural2d/cellnoise2d_float";
7020 this.onNodeCreated = function() {
7021 //console.log('Node created:', this);
7022}
7023 this.onRemoved = function() {
7024 //console.log('Node removed:', this);
7025 }
7026 this.onPropertyChanged = function(name, value, prev_value) {
7027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7028 }
7029 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7031 }
7032 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7034 }
7035 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7037 }
7038 this.bgcolor = '#111';
7039 this.color = '#222';
7040 this.shape = LiteGraph.ROUND_SHAPE;
7041 this.boxcolor = '#161';
7042}

◆ mtlx_procedural2d_checkerboard_color3()

function mtlx_procedural2d_checkerboard_color3 ( )

mtlx_procedural2d_checkerboard_color3

Library: mtlx. Category: randomcolor. Type: color3 LiteGraph id: mtlx/procedural2d/checkerboard_color3

Definition at line 7743 of file mtlx_stdlib.js.

7743 {
7744 this.nodedef_icon = '';
7745 this.nodedef_name = 'ND_checkerboard_color3';
7746 this.nodedef_type = 'color3';
7747 this.nodedef_node = 'checkerboard';
7748 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/checkerboard.html';
7749 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_checkerboard_color3_out_genglsl.png';
7750 this.nodedef_group = 'procedural2d';
7751 this.addInput('color1','color3');
7752 this.addProperty('color1', [1.0, 1.0, 1.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 1","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7753 this.addInput('color2','color3');
7754 this.addProperty('color2', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Color 2","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7755 this.addInput('uvtiling','vector2');
7756 this.addProperty('uvtiling', [8, 8], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Tiling","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7757 this.addInput('uvoffset','vector2');
7758 this.addProperty('uvoffset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"UV Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7759 this.addInput('texcoord','vector2');
7760 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7761 this.addOutput('out','color3');
7762 this.title = 'checkerboard_color3';
7763 this.desc = "MaterialX:mtlx/procedural2d/checkerboard_color3";
7764 this.onNodeCreated = function() {
7765 //console.log('Node created:', this);
7766}
7767 this.onRemoved = function() {
7768 //console.log('Node removed:', this);
7769 }
7770 this.onPropertyChanged = function(name, value, prev_value) {
7771 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7772 }
7773 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7774 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7775 }
7776 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7777 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7778 }
7779 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7780 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7781 }
7782 this.bgcolor = '#111';
7783 this.color = '#222';
7784 this.shape = LiteGraph.ROUND_SHAPE;
7785 this.boxcolor = '#37A';
7786}

◆ mtlx_procedural2d_circle_float()

function mtlx_procedural2d_circle_float ( )

mtlx_procedural2d_circle_float

Library: mtlx. Category: line. Type: float LiteGraph id: mtlx/procedural2d/circle_float

Definition at line 7851 of file mtlx_stdlib.js.

7851 {
7852 this.nodedef_icon = '';
7853 this.nodedef_name = 'ND_circle_float';
7854 this.nodedef_type = 'float';
7855 this.nodedef_node = 'circle';
7856 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/circle.html';
7857 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_circle_float_out_genglsl.png';
7858 this.nodedef_group = 'procedural2d';
7859 this.addInput('texcoord','vector2');
7860 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7861 this.addInput('center','vector2');
7862 this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7863 this.addInput('radius','float');
7864 this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7865 this.addOutput('out','float');
7866 this.title = 'circle_float';
7867 this.desc = "MaterialX:mtlx/procedural2d/circle_float";
7868 this.onNodeCreated = function() {
7869 //console.log('Node created:', this);
7870}
7871 this.onRemoved = function() {
7872 //console.log('Node removed:', this);
7873 }
7874 this.onPropertyChanged = function(name, value, prev_value) {
7875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7876 }
7877 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7879 }
7880 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7882 }
7883 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7885 }
7886 this.bgcolor = '#111';
7887 this.color = '#222';
7888 this.shape = LiteGraph.ROUND_SHAPE;
7889 this.boxcolor = '#161';
7890}

◆ mtlx_procedural2d_cloverleaf_float()

function mtlx_procedural2d_cloverleaf_float ( )

mtlx_procedural2d_cloverleaf_float

Library: mtlx. Category: circle. Type: float LiteGraph id: mtlx/procedural2d/cloverleaf_float

Definition at line 7901 of file mtlx_stdlib.js.

7901 {
7902 this.nodedef_icon = '';
7903 this.nodedef_name = 'ND_cloverleaf_float';
7904 this.nodedef_type = 'float';
7905 this.nodedef_node = 'cloverleaf';
7906 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cloverleaf.html';
7907 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cloverleaf_float_out_genglsl.png';
7908 this.nodedef_group = 'procedural2d';
7909 this.addInput('texcoord','vector2');
7910 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7911 this.addInput('center','vector2');
7912 this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7913 this.addInput('radius','float');
7914 this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7915 this.addOutput('out','float');
7916 this.title = 'cloverleaf_float';
7917 this.desc = "MaterialX:mtlx/procedural2d/cloverleaf_float";
7918 this.onNodeCreated = function() {
7919 //console.log('Node created:', this);
7920}
7921 this.onRemoved = function() {
7922 //console.log('Node removed:', this);
7923 }
7924 this.onPropertyChanged = function(name, value, prev_value) {
7925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7926 }
7927 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7929 }
7930 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7932 }
7933 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7935 }
7936 this.bgcolor = '#111';
7937 this.color = '#222';
7938 this.shape = LiteGraph.ROUND_SHAPE;
7939 this.boxcolor = '#161';
7940}

◆ mtlx_procedural2d_crosshatch_color3()

function mtlx_procedural2d_crosshatch_color3 ( )

mtlx_procedural2d_crosshatch_color3

Library: mtlx. Category: grid. Type: color3 LiteGraph id: mtlx/procedural2d/crosshatch_color3

Definition at line 8055 of file mtlx_stdlib.js.

8055 {
8056 this.nodedef_icon = '';
8057 this.nodedef_name = 'ND_crosshatch_color3';
8058 this.nodedef_type = 'color3';
8059 this.nodedef_node = 'crosshatch';
8060 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/crosshatch.html';
8061 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_crosshatch_color3_out_genglsl.png';
8062 this.nodedef_group = 'procedural2d';
8063 this.addInput('texcoord','vector2');
8064 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
8065 this.addInput('uvtiling','vector2');
8066 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8067 this.addInput('uvoffset','vector2');
8068 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8069 this.addInput('thickness','float');
8070 this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8071 this.addInput('staggered','boolean');
8072 this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8073 this.addOutput('out','color3');
8074 this.title = 'crosshatch_color3';
8075 this.desc = "MaterialX:mtlx/procedural2d/crosshatch_color3";
8076 this.onNodeCreated = function() {
8077 //console.log('Node created:', this);
8078}
8079 this.onRemoved = function() {
8080 //console.log('Node removed:', this);
8081 }
8082 this.onPropertyChanged = function(name, value, prev_value) {
8083 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8084 }
8085 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8086 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8087 }
8088 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8089 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8090 }
8091 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8092 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8093 }
8094 this.bgcolor = '#111';
8095 this.color = '#222';
8096 this.shape = LiteGraph.ROUND_SHAPE;
8097 this.boxcolor = '#37A';
8098}

◆ mtlx_procedural2d_grid_color3()

function mtlx_procedural2d_grid_color3 ( )

mtlx_procedural2d_grid_color3

Library: mtlx. Category: hexagon. Type: color3 LiteGraph id: mtlx/procedural2d/grid_color3

Definition at line 8001 of file mtlx_stdlib.js.

8001 {
8002 this.nodedef_icon = '';
8003 this.nodedef_name = 'ND_grid_color3';
8004 this.nodedef_type = 'color3';
8005 this.nodedef_node = 'grid';
8006 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/grid.html';
8007 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_grid_color3_out_genglsl.png';
8008 this.nodedef_group = 'procedural2d';
8009 this.addInput('texcoord','vector2');
8010 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
8011 this.addInput('uvtiling','vector2');
8012 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8013 this.addInput('uvoffset','vector2');
8014 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8015 this.addInput('thickness','float');
8016 this.addProperty('thickness', 0.05, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8017 this.addInput('staggered','boolean');
8018 this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8019 this.addOutput('out','color3');
8020 this.title = 'grid_color3';
8021 this.desc = "MaterialX:mtlx/procedural2d/grid_color3";
8022 this.onNodeCreated = function() {
8023 //console.log('Node created:', this);
8024}
8025 this.onRemoved = function() {
8026 //console.log('Node removed:', this);
8027 }
8028 this.onPropertyChanged = function(name, value, prev_value) {
8029 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8030 }
8031 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8032 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8033 }
8034 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8035 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8036 }
8037 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8038 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8039 }
8040 this.bgcolor = '#111';
8041 this.color = '#222';
8042 this.shape = LiteGraph.ROUND_SHAPE;
8043 this.boxcolor = '#37A';
8044}

◆ mtlx_procedural2d_hexagon_float()

function mtlx_procedural2d_hexagon_float ( )

mtlx_procedural2d_hexagon_float

Library: mtlx. Category: cloverleaf. Type: float LiteGraph id: mtlx/procedural2d/hexagon_float

Definition at line 7951 of file mtlx_stdlib.js.

7951 {
7952 this.nodedef_icon = '';
7953 this.nodedef_name = 'ND_hexagon_float';
7954 this.nodedef_type = 'float';
7955 this.nodedef_node = 'hexagon';
7956 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hexagon.html';
7957 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hexagon_float_out_genglsl.png';
7958 this.nodedef_group = 'procedural2d';
7959 this.addInput('texcoord','vector2');
7960 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7961 this.addInput('center','vector2');
7962 this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7963 this.addInput('radius','float');
7964 this.addProperty('radius', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7965 this.addOutput('out','float');
7966 this.title = 'hexagon_float';
7967 this.desc = "MaterialX:mtlx/procedural2d/hexagon_float";
7968 this.onNodeCreated = function() {
7969 //console.log('Node created:', this);
7970}
7971 this.onRemoved = function() {
7972 //console.log('Node removed:', this);
7973 }
7974 this.onPropertyChanged = function(name, value, prev_value) {
7975 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7976 }
7977 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7978 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7979 }
7980 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7981 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7982 }
7983 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7984 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7985 }
7986 this.bgcolor = '#111';
7987 this.color = '#222';
7988 this.shape = LiteGraph.ROUND_SHAPE;
7989 this.boxcolor = '#161';
7990}

◆ mtlx_procedural2d_line_float()

function mtlx_procedural2d_line_float ( )

mtlx_procedural2d_line_float

Library: mtlx. Category: checkerboard. Type: float LiteGraph id: mtlx/procedural2d/line_float

Definition at line 7797 of file mtlx_stdlib.js.

7797 {
7798 this.nodedef_icon = '';
7799 this.nodedef_name = 'ND_line_float';
7800 this.nodedef_type = 'float';
7801 this.nodedef_node = 'line';
7802 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/line.html';
7803 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_line_float_out_genglsl.png';
7804 this.nodedef_group = 'procedural2d';
7805 this.addInput('texcoord','vector2');
7806 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7807 this.addInput('center','vector2');
7808 this.addProperty('center', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7809 this.addInput('radius','float');
7810 this.addProperty('radius', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7811 this.addInput('point1','vector2');
7812 this.addProperty('point1', [0.25, 0.25], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7813 this.addInput('point2','vector2');
7814 this.addProperty('point2', [0.75, 0.75], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7815 this.addOutput('out','float');
7816 this.title = 'line_float';
7817 this.desc = "MaterialX:mtlx/procedural2d/line_float";
7818 this.onNodeCreated = function() {
7819 //console.log('Node created:', this);
7820}
7821 this.onRemoved = function() {
7822 //console.log('Node removed:', this);
7823 }
7824 this.onPropertyChanged = function(name, value, prev_value) {
7825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7826 }
7827 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7829 }
7830 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7832 }
7833 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7835 }
7836 this.bgcolor = '#111';
7837 this.color = '#222';
7838 this.shape = LiteGraph.ROUND_SHAPE;
7839 this.boxcolor = '#161';
7840}

◆ mtlx_procedural2d_noise2d_color3()

function mtlx_procedural2d_noise2d_color3 ( )

mtlx_procedural2d_noise2d_color3

Library: mtlx. Category: noise2d. Type: color3 LiteGraph id: mtlx/procedural2d/noise2d_color3

Definition at line 5363 of file mtlx_stdlib.js.

5363 {
5364 this.nodedef_icon = '';
5365 this.nodedef_name = 'ND_noise2d_color3';
5366 this.nodedef_type = 'color3';
5367 this.nodedef_node = 'noise2d';
5368 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5369 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color3_out_genglsl.png';
5370 this.nodedef_group = 'procedural2d';
5371 this.addInput('amplitude','vector3');
5372 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5373 this.addInput('pivot','float');
5374 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5375 this.addInput('texcoord','vector2');
5376 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5377 this.addOutput('out','color3');
5378 this.title = 'noise2d_color3';
5379 this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3";
5380 this.onNodeCreated = function() {
5381 //console.log('Node created:', this);
5382}
5383 this.onRemoved = function() {
5384 //console.log('Node removed:', this);
5385 }
5386 this.onPropertyChanged = function(name, value, prev_value) {
5387 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5388 }
5389 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5390 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5391 }
5392 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5393 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5394 }
5395 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5396 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5397 }
5398 this.bgcolor = '#111';
5399 this.color = '#222';
5400 this.shape = LiteGraph.ROUND_SHAPE;
5401 this.boxcolor = '#37A';
5402}

◆ mtlx_procedural2d_noise2d_color3FA()

function mtlx_procedural2d_noise2d_color3FA ( )

mtlx_procedural2d_noise2d_color3FA

Library: mtlx. Category: noise2d. Type: color3 LiteGraph id: mtlx/procedural2d/noise2d_color3FA

Definition at line 5613 of file mtlx_stdlib.js.

5613 {
5614 this.nodedef_icon = '';
5615 this.nodedef_name = 'ND_noise2d_color3FA';
5616 this.nodedef_type = 'color3';
5617 this.nodedef_node = 'noise2d';
5618 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5619 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color3FA_out_genglsl.png';
5620 this.nodedef_group = 'procedural2d';
5621 this.addInput('amplitude','float');
5622 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5623 this.addInput('pivot','float');
5624 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5625 this.addInput('texcoord','vector2');
5626 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5627 this.addOutput('out','color3');
5628 this.title = 'noise2d_color3';
5629 this.desc = "MaterialX:mtlx/procedural2d/noise2d_color3FA";
5630 this.onNodeCreated = function() {
5631 //console.log('Node created:', this);
5632}
5633 this.onRemoved = function() {
5634 //console.log('Node removed:', this);
5635 }
5636 this.onPropertyChanged = function(name, value, prev_value) {
5637 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5638 }
5639 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5640 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5641 }
5642 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5643 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5644 }
5645 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5646 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5647 }
5648 this.bgcolor = '#111';
5649 this.color = '#222';
5650 this.shape = LiteGraph.ROUND_SHAPE;
5651 this.boxcolor = '#37A';
5652}

◆ mtlx_procedural2d_noise2d_color4()

function mtlx_procedural2d_noise2d_color4 ( )

mtlx_procedural2d_noise2d_color4

Library: mtlx. Category: noise2d. Type: color4 LiteGraph id: mtlx/procedural2d/noise2d_color4

Definition at line 5413 of file mtlx_stdlib.js.

5413 {
5414 this.nodedef_icon = '';
5415 this.nodedef_name = 'ND_noise2d_color4';
5416 this.nodedef_type = 'color4';
5417 this.nodedef_node = 'noise2d';
5418 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5419 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color4_out_genglsl.png';
5420 this.nodedef_group = 'procedural2d';
5421 this.addInput('amplitude','vector4');
5422 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5423 this.addInput('pivot','float');
5424 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5425 this.addInput('texcoord','vector2');
5426 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5427 this.addOutput('out','color4');
5428 this.title = 'noise2d_color4';
5429 this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4";
5430 this.onNodeCreated = function() {
5431 //console.log('Node created:', this);
5432}
5433 this.onRemoved = function() {
5434 //console.log('Node removed:', this);
5435 }
5436 this.onPropertyChanged = function(name, value, prev_value) {
5437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5438 }
5439 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5441 }
5442 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5444 }
5445 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5447 }
5448 this.bgcolor = '#111';
5449 this.color = '#222';
5450 this.shape = LiteGraph.ROUND_SHAPE;
5451 this.boxcolor = '#69A';
5452}

◆ mtlx_procedural2d_noise2d_color4FA()

function mtlx_procedural2d_noise2d_color4FA ( )

mtlx_procedural2d_noise2d_color4FA

Library: mtlx. Category: noise2d. Type: color4 LiteGraph id: mtlx/procedural2d/noise2d_color4FA

Definition at line 5663 of file mtlx_stdlib.js.

5663 {
5664 this.nodedef_icon = '';
5665 this.nodedef_name = 'ND_noise2d_color4FA';
5666 this.nodedef_type = 'color4';
5667 this.nodedef_node = 'noise2d';
5668 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5669 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color4FA_out_genglsl.png';
5670 this.nodedef_group = 'procedural2d';
5671 this.addInput('amplitude','float');
5672 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5673 this.addInput('pivot','float');
5674 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5675 this.addInput('texcoord','vector2');
5676 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5677 this.addOutput('out','color4');
5678 this.title = 'noise2d_color4';
5679 this.desc = "MaterialX:mtlx/procedural2d/noise2d_color4FA";
5680 this.onNodeCreated = function() {
5681 //console.log('Node created:', this);
5682}
5683 this.onRemoved = function() {
5684 //console.log('Node removed:', this);
5685 }
5686 this.onPropertyChanged = function(name, value, prev_value) {
5687 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5688 }
5689 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5690 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5691 }
5692 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5693 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5694 }
5695 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5696 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5697 }
5698 this.bgcolor = '#111';
5699 this.color = '#222';
5700 this.shape = LiteGraph.ROUND_SHAPE;
5701 this.boxcolor = '#69A';
5702}

◆ mtlx_procedural2d_noise2d_float()

function mtlx_procedural2d_noise2d_float ( )

mtlx_procedural2d_noise2d_float

Library: mtlx. Category: splittb. Type: float LiteGraph id: mtlx/procedural2d/noise2d_float

Definition at line 5313 of file mtlx_stdlib.js.

5313 {
5314 this.nodedef_icon = '';
5315 this.nodedef_name = 'ND_noise2d_float';
5316 this.nodedef_type = 'float';
5317 this.nodedef_node = 'noise2d';
5318 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5319 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_float_out_genglsl.png';
5320 this.nodedef_group = 'procedural2d';
5321 this.addInput('amplitude','float');
5322 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5323 this.addInput('pivot','float');
5324 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5325 this.addInput('texcoord','vector2');
5326 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5327 this.addOutput('out','float');
5328 this.title = 'noise2d_float';
5329 this.desc = "MaterialX:mtlx/procedural2d/noise2d_float";
5330 this.onNodeCreated = function() {
5331 //console.log('Node created:', this);
5332}
5333 this.onRemoved = function() {
5334 //console.log('Node removed:', this);
5335 }
5336 this.onPropertyChanged = function(name, value, prev_value) {
5337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5338 }
5339 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5341 }
5342 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5344 }
5345 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5347 }
5348 this.bgcolor = '#111';
5349 this.color = '#222';
5350 this.shape = LiteGraph.ROUND_SHAPE;
5351 this.boxcolor = '#161';
5352}

◆ mtlx_procedural2d_noise2d_vector2()

function mtlx_procedural2d_noise2d_vector2 ( )

mtlx_procedural2d_noise2d_vector2

Library: mtlx. Category: noise2d. Type: vector2 LiteGraph id: mtlx/procedural2d/noise2d_vector2

Definition at line 5463 of file mtlx_stdlib.js.

5463 {
5464 this.nodedef_icon = '';
5465 this.nodedef_name = 'ND_noise2d_vector2';
5466 this.nodedef_type = 'vector2';
5467 this.nodedef_node = 'noise2d';
5468 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5469 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector2_out_genglsl.png';
5470 this.nodedef_group = 'procedural2d';
5471 this.addInput('amplitude','vector2');
5472 this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5473 this.addInput('pivot','float');
5474 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5475 this.addInput('texcoord','vector2');
5476 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5477 this.addOutput('out','vector2');
5478 this.title = 'noise2d_vector2';
5479 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2";
5480 this.onNodeCreated = function() {
5481 //console.log('Node created:', this);
5482}
5483 this.onRemoved = function() {
5484 //console.log('Node removed:', this);
5485 }
5486 this.onPropertyChanged = function(name, value, prev_value) {
5487 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5488 }
5489 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5490 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5491 }
5492 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5493 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5494 }
5495 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5496 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5497 }
5498 this.bgcolor = '#111';
5499 this.color = '#222';
5500 this.shape = LiteGraph.ROUND_SHAPE;
5501 this.boxcolor = '#265';
5502}

◆ mtlx_procedural2d_noise2d_vector2FA()

function mtlx_procedural2d_noise2d_vector2FA ( )

mtlx_procedural2d_noise2d_vector2FA

Library: mtlx. Category: noise2d. Type: vector2 LiteGraph id: mtlx/procedural2d/noise2d_vector2FA

Definition at line 5713 of file mtlx_stdlib.js.

5713 {
5714 this.nodedef_icon = '';
5715 this.nodedef_name = 'ND_noise2d_vector2FA';
5716 this.nodedef_type = 'vector2';
5717 this.nodedef_node = 'noise2d';
5718 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5719 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector2FA_out_genglsl.png';
5720 this.nodedef_group = 'procedural2d';
5721 this.addInput('amplitude','float');
5722 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5723 this.addInput('pivot','float');
5724 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5725 this.addInput('texcoord','vector2');
5726 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5727 this.addOutput('out','vector2');
5728 this.title = 'noise2d_vector2';
5729 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector2FA";
5730 this.onNodeCreated = function() {
5731 //console.log('Node created:', this);
5732}
5733 this.onRemoved = function() {
5734 //console.log('Node removed:', this);
5735 }
5736 this.onPropertyChanged = function(name, value, prev_value) {
5737 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5738 }
5739 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5740 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5741 }
5742 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5743 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5744 }
5745 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5746 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5747 }
5748 this.bgcolor = '#111';
5749 this.color = '#222';
5750 this.shape = LiteGraph.ROUND_SHAPE;
5751 this.boxcolor = '#265';
5752}

◆ mtlx_procedural2d_noise2d_vector3()

function mtlx_procedural2d_noise2d_vector3 ( )

mtlx_procedural2d_noise2d_vector3

Library: mtlx. Category: noise2d. Type: vector3 LiteGraph id: mtlx/procedural2d/noise2d_vector3

Definition at line 5513 of file mtlx_stdlib.js.

5513 {
5514 this.nodedef_icon = '';
5515 this.nodedef_name = 'ND_noise2d_vector3';
5516 this.nodedef_type = 'vector3';
5517 this.nodedef_node = 'noise2d';
5518 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5519 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector3_out_genglsl.png';
5520 this.nodedef_group = 'procedural2d';
5521 this.addInput('amplitude','vector3');
5522 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5523 this.addInput('pivot','float');
5524 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5525 this.addInput('texcoord','vector2');
5526 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5527 this.addOutput('out','vector3');
5528 this.title = 'noise2d_vector3';
5529 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3";
5530 this.onNodeCreated = function() {
5531 //console.log('Node created:', this);
5532}
5533 this.onRemoved = function() {
5534 //console.log('Node removed:', this);
5535 }
5536 this.onPropertyChanged = function(name, value, prev_value) {
5537 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5538 }
5539 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5540 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5541 }
5542 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5543 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5544 }
5545 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5546 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5547 }
5548 this.bgcolor = '#111';
5549 this.color = '#222';
5550 this.shape = LiteGraph.ROUND_SHAPE;
5551 this.boxcolor = '#465';
5552}

◆ mtlx_procedural2d_noise2d_vector3FA()

function mtlx_procedural2d_noise2d_vector3FA ( )

mtlx_procedural2d_noise2d_vector3FA

Library: mtlx. Category: noise2d. Type: vector3 LiteGraph id: mtlx/procedural2d/noise2d_vector3FA

Definition at line 5763 of file mtlx_stdlib.js.

5763 {
5764 this.nodedef_icon = '';
5765 this.nodedef_name = 'ND_noise2d_vector3FA';
5766 this.nodedef_type = 'vector3';
5767 this.nodedef_node = 'noise2d';
5768 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5769 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector3FA_out_genglsl.png';
5770 this.nodedef_group = 'procedural2d';
5771 this.addInput('amplitude','float');
5772 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5773 this.addInput('pivot','float');
5774 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5775 this.addInput('texcoord','vector2');
5776 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5777 this.addOutput('out','vector3');
5778 this.title = 'noise2d_vector3';
5779 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector3FA";
5780 this.onNodeCreated = function() {
5781 //console.log('Node created:', this);
5782}
5783 this.onRemoved = function() {
5784 //console.log('Node removed:', this);
5785 }
5786 this.onPropertyChanged = function(name, value, prev_value) {
5787 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5788 }
5789 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5790 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5791 }
5792 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5793 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5794 }
5795 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5796 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5797 }
5798 this.bgcolor = '#111';
5799 this.color = '#222';
5800 this.shape = LiteGraph.ROUND_SHAPE;
5801 this.boxcolor = '#465';
5802}

◆ mtlx_procedural2d_noise2d_vector4()

function mtlx_procedural2d_noise2d_vector4 ( )

mtlx_procedural2d_noise2d_vector4

Library: mtlx. Category: noise2d. Type: vector4 LiteGraph id: mtlx/procedural2d/noise2d_vector4

Definition at line 5563 of file mtlx_stdlib.js.

5563 {
5564 this.nodedef_icon = '';
5565 this.nodedef_name = 'ND_noise2d_vector4';
5566 this.nodedef_type = 'vector4';
5567 this.nodedef_node = 'noise2d';
5568 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5569 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector4_out_genglsl.png';
5570 this.nodedef_group = 'procedural2d';
5571 this.addInput('amplitude','vector4');
5572 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5573 this.addInput('pivot','float');
5574 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5575 this.addInput('texcoord','vector2');
5576 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5577 this.addOutput('out','vector4');
5578 this.title = 'noise2d_vector4';
5579 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4";
5580 this.onNodeCreated = function() {
5581 //console.log('Node created:', this);
5582}
5583 this.onRemoved = function() {
5584 //console.log('Node removed:', this);
5585 }
5586 this.onPropertyChanged = function(name, value, prev_value) {
5587 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5588 }
5589 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5590 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5591 }
5592 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5593 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5594 }
5595 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5596 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5597 }
5598 this.bgcolor = '#111';
5599 this.color = '#222';
5600 this.shape = LiteGraph.ROUND_SHAPE;
5601 this.boxcolor = '#275';
5602}

◆ mtlx_procedural2d_noise2d_vector4FA()

function mtlx_procedural2d_noise2d_vector4FA ( )

mtlx_procedural2d_noise2d_vector4FA

Library: mtlx. Category: noise2d. Type: vector4 LiteGraph id: mtlx/procedural2d/noise2d_vector4FA

Definition at line 5813 of file mtlx_stdlib.js.

5813 {
5814 this.nodedef_icon = '';
5815 this.nodedef_name = 'ND_noise2d_vector4FA';
5816 this.nodedef_type = 'vector4';
5817 this.nodedef_node = 'noise2d';
5818 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5819 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector4FA_out_genglsl.png';
5820 this.nodedef_group = 'procedural2d';
5821 this.addInput('amplitude','float');
5822 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5823 this.addInput('pivot','float');
5824 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5825 this.addInput('texcoord','vector2');
5826 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5827 this.addOutput('out','vector4');
5828 this.title = 'noise2d_vector4';
5829 this.desc = "MaterialX:mtlx/procedural2d/noise2d_vector4FA";
5830 this.onNodeCreated = function() {
5831 //console.log('Node created:', this);
5832}
5833 this.onRemoved = function() {
5834 //console.log('Node removed:', this);
5835 }
5836 this.onPropertyChanged = function(name, value, prev_value) {
5837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5838 }
5839 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5841 }
5842 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5844 }
5845 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5847 }
5848 this.bgcolor = '#111';
5849 this.color = '#222';
5850 this.shape = LiteGraph.ROUND_SHAPE;
5851 this.boxcolor = '#275';
5852}

◆ mtlx_procedural2d_ramp4_color3()

function mtlx_procedural2d_ramp4_color3 ( )

mtlx_procedural2d_ramp4_color3

Library: mtlx. Category: ramp4. Type: color3 LiteGraph id: mtlx/procedural2d/ramp4_color3

Definition at line 4419 of file mtlx_stdlib.js.

4419 {
4420 this.nodedef_icon = '';
4421 this.nodedef_name = 'ND_ramp4_color3';
4422 this.nodedef_type = 'color3';
4423 this.nodedef_node = 'ramp4';
4424 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4425 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_color3_out_genglsl.png';
4426 this.nodedef_group = 'procedural2d';
4427 this.addInput('valuetl','color3');
4428 this.addProperty('valuetl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4429 this.addInput('valuetr','color3');
4430 this.addProperty('valuetr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4431 this.addInput('valuebl','color3');
4432 this.addProperty('valuebl', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4433 this.addInput('valuebr','color3');
4434 this.addProperty('valuebr', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4435 this.addInput('texcoord','vector2');
4436 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4437 this.addOutput('out','color3');
4438 this.title = 'ramp4_color3';
4439 this.desc = "MaterialX:mtlx/procedural2d/ramp4_color3";
4440 this.onNodeCreated = function() {
4441 //console.log('Node created:', this);
4442}
4443 this.onRemoved = function() {
4444 //console.log('Node removed:', this);
4445 }
4446 this.onPropertyChanged = function(name, value, prev_value) {
4447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4448 }
4449 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4451 }
4452 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4454 }
4455 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4457 }
4458 this.bgcolor = '#111';
4459 this.color = '#222';
4460 this.shape = LiteGraph.ROUND_SHAPE;
4461 this.boxcolor = '#37A';
4462}

◆ mtlx_procedural2d_ramp4_color4()

function mtlx_procedural2d_ramp4_color4 ( )

mtlx_procedural2d_ramp4_color4

Library: mtlx. Category: ramp4. Type: color4 LiteGraph id: mtlx/procedural2d/ramp4_color4

Definition at line 4473 of file mtlx_stdlib.js.

4473 {
4474 this.nodedef_icon = '';
4475 this.nodedef_name = 'ND_ramp4_color4';
4476 this.nodedef_type = 'color4';
4477 this.nodedef_node = 'ramp4';
4478 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4479 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_color4_out_genglsl.png';
4480 this.nodedef_group = 'procedural2d';
4481 this.addInput('valuetl','color4');
4482 this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4483 this.addInput('valuetr','color4');
4484 this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4485 this.addInput('valuebl','color4');
4486 this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4487 this.addInput('valuebr','color4');
4488 this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4489 this.addInput('texcoord','vector2');
4490 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4491 this.addOutput('out','color4');
4492 this.title = 'ramp4_color4';
4493 this.desc = "MaterialX:mtlx/procedural2d/ramp4_color4";
4494 this.onNodeCreated = function() {
4495 //console.log('Node created:', this);
4496}
4497 this.onRemoved = function() {
4498 //console.log('Node removed:', this);
4499 }
4500 this.onPropertyChanged = function(name, value, prev_value) {
4501 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4502 }
4503 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4504 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4505 }
4506 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4507 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4508 }
4509 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4510 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4511 }
4512 this.bgcolor = '#111';
4513 this.color = '#222';
4514 this.shape = LiteGraph.ROUND_SHAPE;
4515 this.boxcolor = '#69A';
4516}

◆ mtlx_procedural2d_ramp4_float()

function mtlx_procedural2d_ramp4_float ( )

mtlx_procedural2d_ramp4_float

Library: mtlx. Category: ramptb. Type: float LiteGraph id: mtlx/procedural2d/ramp4_float

Definition at line 4365 of file mtlx_stdlib.js.

4365 {
4366 this.nodedef_icon = '';
4367 this.nodedef_name = 'ND_ramp4_float';
4368 this.nodedef_type = 'float';
4369 this.nodedef_node = 'ramp4';
4370 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4371 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_float_out_genglsl.png';
4372 this.nodedef_group = 'procedural2d';
4373 this.addInput('valuetl','float');
4374 this.addProperty('valuetl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4375 this.addInput('valuetr','float');
4376 this.addProperty('valuetr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4377 this.addInput('valuebl','float');
4378 this.addProperty('valuebl', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4379 this.addInput('valuebr','float');
4380 this.addProperty('valuebr', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4381 this.addInput('texcoord','vector2');
4382 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4383 this.addOutput('out','float');
4384 this.title = 'ramp4_float';
4385 this.desc = "MaterialX:mtlx/procedural2d/ramp4_float";
4386 this.onNodeCreated = function() {
4387 //console.log('Node created:', this);
4388}
4389 this.onRemoved = function() {
4390 //console.log('Node removed:', this);
4391 }
4392 this.onPropertyChanged = function(name, value, prev_value) {
4393 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4394 }
4395 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4396 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4397 }
4398 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4399 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4400 }
4401 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4402 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4403 }
4404 this.bgcolor = '#111';
4405 this.color = '#222';
4406 this.shape = LiteGraph.ROUND_SHAPE;
4407 this.boxcolor = '#161';
4408}

◆ mtlx_procedural2d_ramp4_vector2()

function mtlx_procedural2d_ramp4_vector2 ( )

mtlx_procedural2d_ramp4_vector2

Library: mtlx. Category: ramp4. Type: vector2 LiteGraph id: mtlx/procedural2d/ramp4_vector2

Definition at line 4527 of file mtlx_stdlib.js.

4527 {
4528 this.nodedef_icon = '';
4529 this.nodedef_name = 'ND_ramp4_vector2';
4530 this.nodedef_type = 'vector2';
4531 this.nodedef_node = 'ramp4';
4532 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4533 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector2_out_genglsl.png';
4534 this.nodedef_group = 'procedural2d';
4535 this.addInput('valuetl','vector2');
4536 this.addProperty('valuetl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4537 this.addInput('valuetr','vector2');
4538 this.addProperty('valuetr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4539 this.addInput('valuebl','vector2');
4540 this.addProperty('valuebl', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4541 this.addInput('valuebr','vector2');
4542 this.addProperty('valuebr', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4543 this.addInput('texcoord','vector2');
4544 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4545 this.addOutput('out','vector2');
4546 this.title = 'ramp4_vector2';
4547 this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector2";
4548 this.onNodeCreated = function() {
4549 //console.log('Node created:', this);
4550}
4551 this.onRemoved = function() {
4552 //console.log('Node removed:', this);
4553 }
4554 this.onPropertyChanged = function(name, value, prev_value) {
4555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4556 }
4557 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4559 }
4560 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4562 }
4563 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4565 }
4566 this.bgcolor = '#111';
4567 this.color = '#222';
4568 this.shape = LiteGraph.ROUND_SHAPE;
4569 this.boxcolor = '#265';
4570}

◆ mtlx_procedural2d_ramp4_vector3()

function mtlx_procedural2d_ramp4_vector3 ( )

mtlx_procedural2d_ramp4_vector3

Library: mtlx. Category: ramp4. Type: vector3 LiteGraph id: mtlx/procedural2d/ramp4_vector3

Definition at line 4581 of file mtlx_stdlib.js.

4581 {
4582 this.nodedef_icon = '';
4583 this.nodedef_name = 'ND_ramp4_vector3';
4584 this.nodedef_type = 'vector3';
4585 this.nodedef_node = 'ramp4';
4586 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4587 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector3_out_genglsl.png';
4588 this.nodedef_group = 'procedural2d';
4589 this.addInput('valuetl','vector3');
4590 this.addProperty('valuetl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4591 this.addInput('valuetr','vector3');
4592 this.addProperty('valuetr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4593 this.addInput('valuebl','vector3');
4594 this.addProperty('valuebl', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4595 this.addInput('valuebr','vector3');
4596 this.addProperty('valuebr', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4597 this.addInput('texcoord','vector2');
4598 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4599 this.addOutput('out','vector3');
4600 this.title = 'ramp4_vector3';
4601 this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector3";
4602 this.onNodeCreated = function() {
4603 //console.log('Node created:', this);
4604}
4605 this.onRemoved = function() {
4606 //console.log('Node removed:', this);
4607 }
4608 this.onPropertyChanged = function(name, value, prev_value) {
4609 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4610 }
4611 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4612 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4613 }
4614 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4615 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4616 }
4617 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4618 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4619 }
4620 this.bgcolor = '#111';
4621 this.color = '#222';
4622 this.shape = LiteGraph.ROUND_SHAPE;
4623 this.boxcolor = '#465';
4624}

◆ mtlx_procedural2d_ramp4_vector4()

function mtlx_procedural2d_ramp4_vector4 ( )

mtlx_procedural2d_ramp4_vector4

Library: mtlx. Category: ramp4. Type: vector4 LiteGraph id: mtlx/procedural2d/ramp4_vector4

Definition at line 4635 of file mtlx_stdlib.js.

4635 {
4636 this.nodedef_icon = '';
4637 this.nodedef_name = 'ND_ramp4_vector4';
4638 this.nodedef_type = 'vector4';
4639 this.nodedef_node = 'ramp4';
4640 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4641 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector4_out_genglsl.png';
4642 this.nodedef_group = 'procedural2d';
4643 this.addInput('valuetl','vector4');
4644 this.addProperty('valuetl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4645 this.addInput('valuetr','vector4');
4646 this.addProperty('valuetr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4647 this.addInput('valuebl','vector4');
4648 this.addProperty('valuebl', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4649 this.addInput('valuebr','vector4');
4650 this.addProperty('valuebr', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4651 this.addInput('texcoord','vector2');
4652 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4653 this.addOutput('out','vector4');
4654 this.title = 'ramp4_vector4';
4655 this.desc = "MaterialX:mtlx/procedural2d/ramp4_vector4";
4656 this.onNodeCreated = function() {
4657 //console.log('Node created:', this);
4658}
4659 this.onRemoved = function() {
4660 //console.log('Node removed:', this);
4661 }
4662 this.onPropertyChanged = function(name, value, prev_value) {
4663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4664 }
4665 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4667 }
4668 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4670 }
4671 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4673 }
4674 this.bgcolor = '#111';
4675 this.color = '#222';
4676 this.shape = LiteGraph.ROUND_SHAPE;
4677 this.boxcolor = '#275';
4678}

◆ mtlx_procedural2d_ramplr_color3()

function mtlx_procedural2d_ramplr_color3 ( )

mtlx_procedural2d_ramplr_color3

Library: mtlx. Category: ramplr. Type: color3 LiteGraph id: mtlx/procedural2d/ramplr_color3

Definition at line 3815 of file mtlx_stdlib.js.

3815 {
3816 this.nodedef_icon = '';
3817 this.nodedef_name = 'ND_ramplr_color3';
3818 this.nodedef_type = 'color3';
3819 this.nodedef_node = 'ramplr';
3820 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3821 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_color3_out_genglsl.png';
3822 this.nodedef_group = 'procedural2d';
3823 this.addInput('valuel','color3');
3824 this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3825 this.addInput('valuer','color3');
3826 this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3827 this.addInput('texcoord','vector2');
3828 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
3829 this.addOutput('out','color3');
3830 this.title = 'ramplr_color3';
3831 this.desc = "MaterialX:mtlx/procedural2d/ramplr_color3";
3832 this.onNodeCreated = function() {
3833 //console.log('Node created:', this);
3834}
3835 this.onRemoved = function() {
3836 //console.log('Node removed:', this);
3837 }
3838 this.onPropertyChanged = function(name, value, prev_value) {
3839 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3840 }
3841 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3842 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3843 }
3844 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3845 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3846 }
3847 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3848 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3849 }
3850 this.bgcolor = '#111';
3851 this.color = '#222';
3852 this.shape = LiteGraph.ROUND_SHAPE;
3853 this.boxcolor = '#37A';
3854}

◆ mtlx_procedural2d_ramplr_color4()

function mtlx_procedural2d_ramplr_color4 ( )

mtlx_procedural2d_ramplr_color4

Library: mtlx. Category: ramplr. Type: color4 LiteGraph id: mtlx/procedural2d/ramplr_color4

Definition at line 3865 of file mtlx_stdlib.js.

3865 {
3866 this.nodedef_icon = '';
3867 this.nodedef_name = 'ND_ramplr_color4';
3868 this.nodedef_type = 'color4';
3869 this.nodedef_node = 'ramplr';
3870 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3871 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_color4_out_genglsl.png';
3872 this.nodedef_group = 'procedural2d';
3873 this.addInput('valuel','color4');
3874 this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3875 this.addInput('valuer','color4');
3876 this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3877 this.addInput('texcoord','vector2');
3878 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
3879 this.addOutput('out','color4');
3880 this.title = 'ramplr_color4';
3881 this.desc = "MaterialX:mtlx/procedural2d/ramplr_color4";
3882 this.onNodeCreated = function() {
3883 //console.log('Node created:', this);
3884}
3885 this.onRemoved = function() {
3886 //console.log('Node removed:', this);
3887 }
3888 this.onPropertyChanged = function(name, value, prev_value) {
3889 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3890 }
3891 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3892 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3893 }
3894 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3895 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3896 }
3897 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3898 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3899 }
3900 this.bgcolor = '#111';
3901 this.color = '#222';
3902 this.shape = LiteGraph.ROUND_SHAPE;
3903 this.boxcolor = '#69A';
3904}

◆ mtlx_procedural2d_ramplr_float()

function mtlx_procedural2d_ramplr_float ( )

mtlx_procedural2d_ramplr_float

Library: mtlx. Category: constant. Type: float LiteGraph id: mtlx/procedural2d/ramplr_float

Definition at line 3765 of file mtlx_stdlib.js.

3765 {
3766 this.nodedef_icon = '';
3767 this.nodedef_name = 'ND_ramplr_float';
3768 this.nodedef_type = 'float';
3769 this.nodedef_node = 'ramplr';
3770 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3771 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_float_out_genglsl.png';
3772 this.nodedef_group = 'procedural2d';
3773 this.addInput('valuel','float');
3774 this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3775 this.addInput('valuer','float');
3776 this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3777 this.addInput('texcoord','vector2');
3778 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
3779 this.addOutput('out','float');
3780 this.title = 'ramplr_float';
3781 this.desc = "MaterialX:mtlx/procedural2d/ramplr_float";
3782 this.onNodeCreated = function() {
3783 //console.log('Node created:', this);
3784}
3785 this.onRemoved = function() {
3786 //console.log('Node removed:', this);
3787 }
3788 this.onPropertyChanged = function(name, value, prev_value) {
3789 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3790 }
3791 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3792 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3793 }
3794 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3795 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3796 }
3797 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3798 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3799 }
3800 this.bgcolor = '#111';
3801 this.color = '#222';
3802 this.shape = LiteGraph.ROUND_SHAPE;
3803 this.boxcolor = '#161';
3804}

◆ mtlx_procedural2d_ramplr_vector2()

function mtlx_procedural2d_ramplr_vector2 ( )

mtlx_procedural2d_ramplr_vector2

Library: mtlx. Category: ramplr. Type: vector2 LiteGraph id: mtlx/procedural2d/ramplr_vector2

Definition at line 3915 of file mtlx_stdlib.js.

3915 {
3916 this.nodedef_icon = '';
3917 this.nodedef_name = 'ND_ramplr_vector2';
3918 this.nodedef_type = 'vector2';
3919 this.nodedef_node = 'ramplr';
3920 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3921 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector2_out_genglsl.png';
3922 this.nodedef_group = 'procedural2d';
3923 this.addInput('valuel','vector2');
3924 this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3925 this.addInput('valuer','vector2');
3926 this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3927 this.addInput('texcoord','vector2');
3928 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
3929 this.addOutput('out','vector2');
3930 this.title = 'ramplr_vector2';
3931 this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector2";
3932 this.onNodeCreated = function() {
3933 //console.log('Node created:', this);
3934}
3935 this.onRemoved = function() {
3936 //console.log('Node removed:', this);
3937 }
3938 this.onPropertyChanged = function(name, value, prev_value) {
3939 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3940 }
3941 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3942 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3943 }
3944 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3945 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3946 }
3947 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3948 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3949 }
3950 this.bgcolor = '#111';
3951 this.color = '#222';
3952 this.shape = LiteGraph.ROUND_SHAPE;
3953 this.boxcolor = '#265';
3954}

◆ mtlx_procedural2d_ramplr_vector3()

function mtlx_procedural2d_ramplr_vector3 ( )

mtlx_procedural2d_ramplr_vector3

Library: mtlx. Category: ramplr. Type: vector3 LiteGraph id: mtlx/procedural2d/ramplr_vector3

Definition at line 3965 of file mtlx_stdlib.js.

3965 {
3966 this.nodedef_icon = '';
3967 this.nodedef_name = 'ND_ramplr_vector3';
3968 this.nodedef_type = 'vector3';
3969 this.nodedef_node = 'ramplr';
3970 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3971 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector3_out_genglsl.png';
3972 this.nodedef_group = 'procedural2d';
3973 this.addInput('valuel','vector3');
3974 this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3975 this.addInput('valuer','vector3');
3976 this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3977 this.addInput('texcoord','vector2');
3978 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
3979 this.addOutput('out','vector3');
3980 this.title = 'ramplr_vector3';
3981 this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector3";
3982 this.onNodeCreated = function() {
3983 //console.log('Node created:', this);
3984}
3985 this.onRemoved = function() {
3986 //console.log('Node removed:', this);
3987 }
3988 this.onPropertyChanged = function(name, value, prev_value) {
3989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3990 }
3991 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3993 }
3994 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3996 }
3997 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3999 }
4000 this.bgcolor = '#111';
4001 this.color = '#222';
4002 this.shape = LiteGraph.ROUND_SHAPE;
4003 this.boxcolor = '#465';
4004}

◆ mtlx_procedural2d_ramplr_vector4()

function mtlx_procedural2d_ramplr_vector4 ( )

mtlx_procedural2d_ramplr_vector4

Library: mtlx. Category: ramplr. Type: vector4 LiteGraph id: mtlx/procedural2d/ramplr_vector4

Definition at line 4015 of file mtlx_stdlib.js.

4015 {
4016 this.nodedef_icon = '';
4017 this.nodedef_name = 'ND_ramplr_vector4';
4018 this.nodedef_type = 'vector4';
4019 this.nodedef_node = 'ramplr';
4020 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
4021 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector4_out_genglsl.png';
4022 this.nodedef_group = 'procedural2d';
4023 this.addInput('valuel','vector4');
4024 this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4025 this.addInput('valuer','vector4');
4026 this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4027 this.addInput('texcoord','vector2');
4028 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4029 this.addOutput('out','vector4');
4030 this.title = 'ramplr_vector4';
4031 this.desc = "MaterialX:mtlx/procedural2d/ramplr_vector4";
4032 this.onNodeCreated = function() {
4033 //console.log('Node created:', this);
4034}
4035 this.onRemoved = function() {
4036 //console.log('Node removed:', this);
4037 }
4038 this.onPropertyChanged = function(name, value, prev_value) {
4039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4040 }
4041 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4043 }
4044 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4046 }
4047 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4049 }
4050 this.bgcolor = '#111';
4051 this.color = '#222';
4052 this.shape = LiteGraph.ROUND_SHAPE;
4053 this.boxcolor = '#275';
4054}

◆ mtlx_procedural2d_ramptb_color3()

function mtlx_procedural2d_ramptb_color3 ( )

mtlx_procedural2d_ramptb_color3

Library: mtlx. Category: ramptb. Type: color3 LiteGraph id: mtlx/procedural2d/ramptb_color3

Definition at line 4115 of file mtlx_stdlib.js.

4115 {
4116 this.nodedef_icon = '';
4117 this.nodedef_name = 'ND_ramptb_color3';
4118 this.nodedef_type = 'color3';
4119 this.nodedef_node = 'ramptb';
4120 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4121 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_color3_out_genglsl.png';
4122 this.nodedef_group = 'procedural2d';
4123 this.addInput('valuet','color3');
4124 this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4125 this.addInput('valueb','color3');
4126 this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4127 this.addInput('texcoord','vector2');
4128 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4129 this.addOutput('out','color3');
4130 this.title = 'ramptb_color3';
4131 this.desc = "MaterialX:mtlx/procedural2d/ramptb_color3";
4132 this.onNodeCreated = function() {
4133 //console.log('Node created:', this);
4134}
4135 this.onRemoved = function() {
4136 //console.log('Node removed:', this);
4137 }
4138 this.onPropertyChanged = function(name, value, prev_value) {
4139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4140 }
4141 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4143 }
4144 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4146 }
4147 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4149 }
4150 this.bgcolor = '#111';
4151 this.color = '#222';
4152 this.shape = LiteGraph.ROUND_SHAPE;
4153 this.boxcolor = '#37A';
4154}

◆ mtlx_procedural2d_ramptb_color4()

function mtlx_procedural2d_ramptb_color4 ( )

mtlx_procedural2d_ramptb_color4

Library: mtlx. Category: ramptb. Type: color4 LiteGraph id: mtlx/procedural2d/ramptb_color4

Definition at line 4165 of file mtlx_stdlib.js.

4165 {
4166 this.nodedef_icon = '';
4167 this.nodedef_name = 'ND_ramptb_color4';
4168 this.nodedef_type = 'color4';
4169 this.nodedef_node = 'ramptb';
4170 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4171 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_color4_out_genglsl.png';
4172 this.nodedef_group = 'procedural2d';
4173 this.addInput('valuet','color4');
4174 this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4175 this.addInput('valueb','color4');
4176 this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4177 this.addInput('texcoord','vector2');
4178 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4179 this.addOutput('out','color4');
4180 this.title = 'ramptb_color4';
4181 this.desc = "MaterialX:mtlx/procedural2d/ramptb_color4";
4182 this.onNodeCreated = function() {
4183 //console.log('Node created:', this);
4184}
4185 this.onRemoved = function() {
4186 //console.log('Node removed:', this);
4187 }
4188 this.onPropertyChanged = function(name, value, prev_value) {
4189 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4190 }
4191 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4192 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4193 }
4194 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4195 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4196 }
4197 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4198 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4199 }
4200 this.bgcolor = '#111';
4201 this.color = '#222';
4202 this.shape = LiteGraph.ROUND_SHAPE;
4203 this.boxcolor = '#69A';
4204}

◆ mtlx_procedural2d_ramptb_float()

function mtlx_procedural2d_ramptb_float ( )

mtlx_procedural2d_ramptb_float

Library: mtlx. Category: ramplr. Type: float LiteGraph id: mtlx/procedural2d/ramptb_float

Definition at line 4065 of file mtlx_stdlib.js.

4065 {
4066 this.nodedef_icon = '';
4067 this.nodedef_name = 'ND_ramptb_float';
4068 this.nodedef_type = 'float';
4069 this.nodedef_node = 'ramptb';
4070 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4071 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_float_out_genglsl.png';
4072 this.nodedef_group = 'procedural2d';
4073 this.addInput('valuet','float');
4074 this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4075 this.addInput('valueb','float');
4076 this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4077 this.addInput('texcoord','vector2');
4078 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4079 this.addOutput('out','float');
4080 this.title = 'ramptb_float';
4081 this.desc = "MaterialX:mtlx/procedural2d/ramptb_float";
4082 this.onNodeCreated = function() {
4083 //console.log('Node created:', this);
4084}
4085 this.onRemoved = function() {
4086 //console.log('Node removed:', this);
4087 }
4088 this.onPropertyChanged = function(name, value, prev_value) {
4089 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4090 }
4091 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4092 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4093 }
4094 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4095 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4096 }
4097 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4098 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4099 }
4100 this.bgcolor = '#111';
4101 this.color = '#222';
4102 this.shape = LiteGraph.ROUND_SHAPE;
4103 this.boxcolor = '#161';
4104}

◆ mtlx_procedural2d_ramptb_vector2()

function mtlx_procedural2d_ramptb_vector2 ( )

mtlx_procedural2d_ramptb_vector2

Library: mtlx. Category: ramptb. Type: vector2 LiteGraph id: mtlx/procedural2d/ramptb_vector2

Definition at line 4215 of file mtlx_stdlib.js.

4215 {
4216 this.nodedef_icon = '';
4217 this.nodedef_name = 'ND_ramptb_vector2';
4218 this.nodedef_type = 'vector2';
4219 this.nodedef_node = 'ramptb';
4220 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4221 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector2_out_genglsl.png';
4222 this.nodedef_group = 'procedural2d';
4223 this.addInput('valuet','vector2');
4224 this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4225 this.addInput('valueb','vector2');
4226 this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4227 this.addInput('texcoord','vector2');
4228 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4229 this.addOutput('out','vector2');
4230 this.title = 'ramptb_vector2';
4231 this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector2";
4232 this.onNodeCreated = function() {
4233 //console.log('Node created:', this);
4234}
4235 this.onRemoved = function() {
4236 //console.log('Node removed:', this);
4237 }
4238 this.onPropertyChanged = function(name, value, prev_value) {
4239 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4240 }
4241 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4242 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4243 }
4244 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4245 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4246 }
4247 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4248 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4249 }
4250 this.bgcolor = '#111';
4251 this.color = '#222';
4252 this.shape = LiteGraph.ROUND_SHAPE;
4253 this.boxcolor = '#265';
4254}

◆ mtlx_procedural2d_ramptb_vector3()

function mtlx_procedural2d_ramptb_vector3 ( )

mtlx_procedural2d_ramptb_vector3

Library: mtlx. Category: ramptb. Type: vector3 LiteGraph id: mtlx/procedural2d/ramptb_vector3

Definition at line 4265 of file mtlx_stdlib.js.

4265 {
4266 this.nodedef_icon = '';
4267 this.nodedef_name = 'ND_ramptb_vector3';
4268 this.nodedef_type = 'vector3';
4269 this.nodedef_node = 'ramptb';
4270 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4271 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector3_out_genglsl.png';
4272 this.nodedef_group = 'procedural2d';
4273 this.addInput('valuet','vector3');
4274 this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4275 this.addInput('valueb','vector3');
4276 this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4277 this.addInput('texcoord','vector2');
4278 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4279 this.addOutput('out','vector3');
4280 this.title = 'ramptb_vector3';
4281 this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector3";
4282 this.onNodeCreated = function() {
4283 //console.log('Node created:', this);
4284}
4285 this.onRemoved = function() {
4286 //console.log('Node removed:', this);
4287 }
4288 this.onPropertyChanged = function(name, value, prev_value) {
4289 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4290 }
4291 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4292 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4293 }
4294 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4295 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4296 }
4297 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4298 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4299 }
4300 this.bgcolor = '#111';
4301 this.color = '#222';
4302 this.shape = LiteGraph.ROUND_SHAPE;
4303 this.boxcolor = '#465';
4304}

◆ mtlx_procedural2d_ramptb_vector4()

function mtlx_procedural2d_ramptb_vector4 ( )

mtlx_procedural2d_ramptb_vector4

Library: mtlx. Category: ramptb. Type: vector4 LiteGraph id: mtlx/procedural2d/ramptb_vector4

Definition at line 4315 of file mtlx_stdlib.js.

4315 {
4316 this.nodedef_icon = '';
4317 this.nodedef_name = 'ND_ramptb_vector4';
4318 this.nodedef_type = 'vector4';
4319 this.nodedef_node = 'ramptb';
4320 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4321 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector4_out_genglsl.png';
4322 this.nodedef_group = 'procedural2d';
4323 this.addInput('valuet','vector4');
4324 this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4325 this.addInput('valueb','vector4');
4326 this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4327 this.addInput('texcoord','vector2');
4328 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4329 this.addOutput('out','vector4');
4330 this.title = 'ramptb_vector4';
4331 this.desc = "MaterialX:mtlx/procedural2d/ramptb_vector4";
4332 this.onNodeCreated = function() {
4333 //console.log('Node created:', this);
4334}
4335 this.onRemoved = function() {
4336 //console.log('Node removed:', this);
4337 }
4338 this.onPropertyChanged = function(name, value, prev_value) {
4339 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4340 }
4341 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4342 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4343 }
4344 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4345 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4346 }
4347 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4348 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4349 }
4350 this.bgcolor = '#111';
4351 this.color = '#222';
4352 this.shape = LiteGraph.ROUND_SHAPE;
4353 this.boxcolor = '#275';
4354}

◆ mtlx_procedural2d_splitlr_color3()

function mtlx_procedural2d_splitlr_color3 ( )

mtlx_procedural2d_splitlr_color3

Library: mtlx. Category: splitlr. Type: color3 LiteGraph id: mtlx/procedural2d/splitlr_color3

Definition at line 4741 of file mtlx_stdlib.js.

4741 {
4742 this.nodedef_icon = '';
4743 this.nodedef_name = 'ND_splitlr_color3';
4744 this.nodedef_type = 'color3';
4745 this.nodedef_node = 'splitlr';
4746 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4747 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_color3_out_genglsl.png';
4748 this.nodedef_group = 'procedural2d';
4749 this.addInput('valuel','color3');
4750 this.addProperty('valuel', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4751 this.addInput('valuer','color3');
4752 this.addProperty('valuer', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4753 this.addInput('center','float');
4754 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4755 this.addInput('texcoord','vector2');
4756 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4757 this.addOutput('out','color3');
4758 this.title = 'splitlr_color3';
4759 this.desc = "MaterialX:mtlx/procedural2d/splitlr_color3";
4760 this.onNodeCreated = function() {
4761 //console.log('Node created:', this);
4762}
4763 this.onRemoved = function() {
4764 //console.log('Node removed:', this);
4765 }
4766 this.onPropertyChanged = function(name, value, prev_value) {
4767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4768 }
4769 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4771 }
4772 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4774 }
4775 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4777 }
4778 this.bgcolor = '#111';
4779 this.color = '#222';
4780 this.shape = LiteGraph.ROUND_SHAPE;
4781 this.boxcolor = '#37A';
4782}

◆ mtlx_procedural2d_splitlr_color4()

function mtlx_procedural2d_splitlr_color4 ( )

mtlx_procedural2d_splitlr_color4

Library: mtlx. Category: splitlr. Type: color4 LiteGraph id: mtlx/procedural2d/splitlr_color4

Definition at line 4793 of file mtlx_stdlib.js.

4793 {
4794 this.nodedef_icon = '';
4795 this.nodedef_name = 'ND_splitlr_color4';
4796 this.nodedef_type = 'color4';
4797 this.nodedef_node = 'splitlr';
4798 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4799 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_color4_out_genglsl.png';
4800 this.nodedef_group = 'procedural2d';
4801 this.addInput('valuel','color4');
4802 this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4803 this.addInput('valuer','color4');
4804 this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4805 this.addInput('center','float');
4806 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4807 this.addInput('texcoord','vector2');
4808 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4809 this.addOutput('out','color4');
4810 this.title = 'splitlr_color4';
4811 this.desc = "MaterialX:mtlx/procedural2d/splitlr_color4";
4812 this.onNodeCreated = function() {
4813 //console.log('Node created:', this);
4814}
4815 this.onRemoved = function() {
4816 //console.log('Node removed:', this);
4817 }
4818 this.onPropertyChanged = function(name, value, prev_value) {
4819 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4820 }
4821 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4822 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4823 }
4824 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4825 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4826 }
4827 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4828 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4829 }
4830 this.bgcolor = '#111';
4831 this.color = '#222';
4832 this.shape = LiteGraph.ROUND_SHAPE;
4833 this.boxcolor = '#69A';
4834}

◆ mtlx_procedural2d_splitlr_float()

function mtlx_procedural2d_splitlr_float ( )

mtlx_procedural2d_splitlr_float

Library: mtlx. Category: ramp4. Type: float LiteGraph id: mtlx/procedural2d/splitlr_float

Definition at line 4689 of file mtlx_stdlib.js.

4689 {
4690 this.nodedef_icon = '';
4691 this.nodedef_name = 'ND_splitlr_float';
4692 this.nodedef_type = 'float';
4693 this.nodedef_node = 'splitlr';
4694 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4695 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_float_out_genglsl.png';
4696 this.nodedef_group = 'procedural2d';
4697 this.addInput('valuel','float');
4698 this.addProperty('valuel', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4699 this.addInput('valuer','float');
4700 this.addProperty('valuer', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4701 this.addInput('center','float');
4702 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4703 this.addInput('texcoord','vector2');
4704 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4705 this.addOutput('out','float');
4706 this.title = 'splitlr_float';
4707 this.desc = "MaterialX:mtlx/procedural2d/splitlr_float";
4708 this.onNodeCreated = function() {
4709 //console.log('Node created:', this);
4710}
4711 this.onRemoved = function() {
4712 //console.log('Node removed:', this);
4713 }
4714 this.onPropertyChanged = function(name, value, prev_value) {
4715 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4716 }
4717 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4718 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4719 }
4720 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4721 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4722 }
4723 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4724 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4725 }
4726 this.bgcolor = '#111';
4727 this.color = '#222';
4728 this.shape = LiteGraph.ROUND_SHAPE;
4729 this.boxcolor = '#161';
4730}

◆ mtlx_procedural2d_splitlr_vector2()

function mtlx_procedural2d_splitlr_vector2 ( )

mtlx_procedural2d_splitlr_vector2

Library: mtlx. Category: splitlr. Type: vector2 LiteGraph id: mtlx/procedural2d/splitlr_vector2

Definition at line 4845 of file mtlx_stdlib.js.

4845 {
4846 this.nodedef_icon = '';
4847 this.nodedef_name = 'ND_splitlr_vector2';
4848 this.nodedef_type = 'vector2';
4849 this.nodedef_node = 'splitlr';
4850 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4851 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector2_out_genglsl.png';
4852 this.nodedef_group = 'procedural2d';
4853 this.addInput('valuel','vector2');
4854 this.addProperty('valuel', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4855 this.addInput('valuer','vector2');
4856 this.addProperty('valuer', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4857 this.addInput('center','float');
4858 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4859 this.addInput('texcoord','vector2');
4860 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4861 this.addOutput('out','vector2');
4862 this.title = 'splitlr_vector2';
4863 this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector2";
4864 this.onNodeCreated = function() {
4865 //console.log('Node created:', this);
4866}
4867 this.onRemoved = function() {
4868 //console.log('Node removed:', this);
4869 }
4870 this.onPropertyChanged = function(name, value, prev_value) {
4871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4872 }
4873 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4875 }
4876 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4878 }
4879 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4881 }
4882 this.bgcolor = '#111';
4883 this.color = '#222';
4884 this.shape = LiteGraph.ROUND_SHAPE;
4885 this.boxcolor = '#265';
4886}

◆ mtlx_procedural2d_splitlr_vector3()

function mtlx_procedural2d_splitlr_vector3 ( )

mtlx_procedural2d_splitlr_vector3

Library: mtlx. Category: splitlr. Type: vector3 LiteGraph id: mtlx/procedural2d/splitlr_vector3

Definition at line 4897 of file mtlx_stdlib.js.

4897 {
4898 this.nodedef_icon = '';
4899 this.nodedef_name = 'ND_splitlr_vector3';
4900 this.nodedef_type = 'vector3';
4901 this.nodedef_node = 'splitlr';
4902 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4903 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector3_out_genglsl.png';
4904 this.nodedef_group = 'procedural2d';
4905 this.addInput('valuel','vector3');
4906 this.addProperty('valuel', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4907 this.addInput('valuer','vector3');
4908 this.addProperty('valuer', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4909 this.addInput('center','float');
4910 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4911 this.addInput('texcoord','vector2');
4912 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4913 this.addOutput('out','vector3');
4914 this.title = 'splitlr_vector3';
4915 this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector3";
4916 this.onNodeCreated = function() {
4917 //console.log('Node created:', this);
4918}
4919 this.onRemoved = function() {
4920 //console.log('Node removed:', this);
4921 }
4922 this.onPropertyChanged = function(name, value, prev_value) {
4923 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4924 }
4925 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4926 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4927 }
4928 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4929 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4930 }
4931 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4932 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4933 }
4934 this.bgcolor = '#111';
4935 this.color = '#222';
4936 this.shape = LiteGraph.ROUND_SHAPE;
4937 this.boxcolor = '#465';
4938}

◆ mtlx_procedural2d_splitlr_vector4()

function mtlx_procedural2d_splitlr_vector4 ( )

mtlx_procedural2d_splitlr_vector4

Library: mtlx. Category: splitlr. Type: vector4 LiteGraph id: mtlx/procedural2d/splitlr_vector4

Definition at line 4949 of file mtlx_stdlib.js.

4949 {
4950 this.nodedef_icon = '';
4951 this.nodedef_name = 'ND_splitlr_vector4';
4952 this.nodedef_type = 'vector4';
4953 this.nodedef_node = 'splitlr';
4954 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4955 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector4_out_genglsl.png';
4956 this.nodedef_group = 'procedural2d';
4957 this.addInput('valuel','vector4');
4958 this.addProperty('valuel', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Left","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4959 this.addInput('valuer','vector4');
4960 this.addProperty('valuer', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Right","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
4961 this.addInput('center','float');
4962 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
4963 this.addInput('texcoord','vector2');
4964 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
4965 this.addOutput('out','vector4');
4966 this.title = 'splitlr_vector4';
4967 this.desc = "MaterialX:mtlx/procedural2d/splitlr_vector4";
4968 this.onNodeCreated = function() {
4969 //console.log('Node created:', this);
4970}
4971 this.onRemoved = function() {
4972 //console.log('Node removed:', this);
4973 }
4974 this.onPropertyChanged = function(name, value, prev_value) {
4975 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
4976 }
4977 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
4978 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
4979 }
4980 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
4981 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
4982 }
4983 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
4984 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
4985 }
4986 this.bgcolor = '#111';
4987 this.color = '#222';
4988 this.shape = LiteGraph.ROUND_SHAPE;
4989 this.boxcolor = '#275';
4990}

◆ mtlx_procedural2d_splittb_color3()

function mtlx_procedural2d_splittb_color3 ( )

mtlx_procedural2d_splittb_color3

Library: mtlx. Category: splittb. Type: color3 LiteGraph id: mtlx/procedural2d/splittb_color3

Definition at line 5053 of file mtlx_stdlib.js.

5053 {
5054 this.nodedef_icon = '';
5055 this.nodedef_name = 'ND_splittb_color3';
5056 this.nodedef_type = 'color3';
5057 this.nodedef_node = 'splittb';
5058 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5059 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_color3_out_genglsl.png';
5060 this.nodedef_group = 'procedural2d';
5061 this.addInput('valuet','color3');
5062 this.addProperty('valuet', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5063 this.addInput('valueb','color3');
5064 this.addProperty('valueb', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5065 this.addInput('center','float');
5066 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5067 this.addInput('texcoord','vector2');
5068 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5069 this.addOutput('out','color3');
5070 this.title = 'splittb_color3';
5071 this.desc = "MaterialX:mtlx/procedural2d/splittb_color3";
5072 this.onNodeCreated = function() {
5073 //console.log('Node created:', this);
5074}
5075 this.onRemoved = function() {
5076 //console.log('Node removed:', this);
5077 }
5078 this.onPropertyChanged = function(name, value, prev_value) {
5079 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5080 }
5081 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5082 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5083 }
5084 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5085 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5086 }
5087 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5088 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5089 }
5090 this.bgcolor = '#111';
5091 this.color = '#222';
5092 this.shape = LiteGraph.ROUND_SHAPE;
5093 this.boxcolor = '#37A';
5094}

◆ mtlx_procedural2d_splittb_color4()

function mtlx_procedural2d_splittb_color4 ( )

mtlx_procedural2d_splittb_color4

Library: mtlx. Category: splittb. Type: color4 LiteGraph id: mtlx/procedural2d/splittb_color4

Definition at line 5105 of file mtlx_stdlib.js.

5105 {
5106 this.nodedef_icon = '';
5107 this.nodedef_name = 'ND_splittb_color4';
5108 this.nodedef_type = 'color4';
5109 this.nodedef_node = 'splittb';
5110 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5111 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_color4_out_genglsl.png';
5112 this.nodedef_group = 'procedural2d';
5113 this.addInput('valuet','color4');
5114 this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5115 this.addInput('valueb','color4');
5116 this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5117 this.addInput('center','float');
5118 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5119 this.addInput('texcoord','vector2');
5120 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5121 this.addOutput('out','color4');
5122 this.title = 'splittb_color4';
5123 this.desc = "MaterialX:mtlx/procedural2d/splittb_color4";
5124 this.onNodeCreated = function() {
5125 //console.log('Node created:', this);
5126}
5127 this.onRemoved = function() {
5128 //console.log('Node removed:', this);
5129 }
5130 this.onPropertyChanged = function(name, value, prev_value) {
5131 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5132 }
5133 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5134 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5135 }
5136 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5137 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5138 }
5139 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5140 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5141 }
5142 this.bgcolor = '#111';
5143 this.color = '#222';
5144 this.shape = LiteGraph.ROUND_SHAPE;
5145 this.boxcolor = '#69A';
5146}

◆ mtlx_procedural2d_splittb_float()

function mtlx_procedural2d_splittb_float ( )

mtlx_procedural2d_splittb_float

Library: mtlx. Category: splitlr. Type: float LiteGraph id: mtlx/procedural2d/splittb_float

Definition at line 5001 of file mtlx_stdlib.js.

5001 {
5002 this.nodedef_icon = '';
5003 this.nodedef_name = 'ND_splittb_float';
5004 this.nodedef_type = 'float';
5005 this.nodedef_node = 'splittb';
5006 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5007 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_float_out_genglsl.png';
5008 this.nodedef_group = 'procedural2d';
5009 this.addInput('valuet','float');
5010 this.addProperty('valuet', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5011 this.addInput('valueb','float');
5012 this.addProperty('valueb', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5013 this.addInput('center','float');
5014 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5015 this.addInput('texcoord','vector2');
5016 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5017 this.addOutput('out','float');
5018 this.title = 'splittb_float';
5019 this.desc = "MaterialX:mtlx/procedural2d/splittb_float";
5020 this.onNodeCreated = function() {
5021 //console.log('Node created:', this);
5022}
5023 this.onRemoved = function() {
5024 //console.log('Node removed:', this);
5025 }
5026 this.onPropertyChanged = function(name, value, prev_value) {
5027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5028 }
5029 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5031 }
5032 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5034 }
5035 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5037 }
5038 this.bgcolor = '#111';
5039 this.color = '#222';
5040 this.shape = LiteGraph.ROUND_SHAPE;
5041 this.boxcolor = '#161';
5042}

◆ mtlx_procedural2d_splittb_vector2()

function mtlx_procedural2d_splittb_vector2 ( )

mtlx_procedural2d_splittb_vector2

Library: mtlx. Category: splittb. Type: vector2 LiteGraph id: mtlx/procedural2d/splittb_vector2

Definition at line 5157 of file mtlx_stdlib.js.

5157 {
5158 this.nodedef_icon = '';
5159 this.nodedef_name = 'ND_splittb_vector2';
5160 this.nodedef_type = 'vector2';
5161 this.nodedef_node = 'splittb';
5162 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5163 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector2_out_genglsl.png';
5164 this.nodedef_group = 'procedural2d';
5165 this.addInput('valuet','vector2');
5166 this.addProperty('valuet', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5167 this.addInput('valueb','vector2');
5168 this.addProperty('valueb', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5169 this.addInput('center','float');
5170 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5171 this.addInput('texcoord','vector2');
5172 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5173 this.addOutput('out','vector2');
5174 this.title = 'splittb_vector2';
5175 this.desc = "MaterialX:mtlx/procedural2d/splittb_vector2";
5176 this.onNodeCreated = function() {
5177 //console.log('Node created:', this);
5178}
5179 this.onRemoved = function() {
5180 //console.log('Node removed:', this);
5181 }
5182 this.onPropertyChanged = function(name, value, prev_value) {
5183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5184 }
5185 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5187 }
5188 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5190 }
5191 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5193 }
5194 this.bgcolor = '#111';
5195 this.color = '#222';
5196 this.shape = LiteGraph.ROUND_SHAPE;
5197 this.boxcolor = '#265';
5198}

◆ mtlx_procedural2d_splittb_vector3()

function mtlx_procedural2d_splittb_vector3 ( )

mtlx_procedural2d_splittb_vector3

Library: mtlx. Category: splittb. Type: vector3 LiteGraph id: mtlx/procedural2d/splittb_vector3

Definition at line 5209 of file mtlx_stdlib.js.

5209 {
5210 this.nodedef_icon = '';
5211 this.nodedef_name = 'ND_splittb_vector3';
5212 this.nodedef_type = 'vector3';
5213 this.nodedef_node = 'splittb';
5214 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5215 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector3_out_genglsl.png';
5216 this.nodedef_group = 'procedural2d';
5217 this.addInput('valuet','vector3');
5218 this.addProperty('valuet', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5219 this.addInput('valueb','vector3');
5220 this.addProperty('valueb', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5221 this.addInput('center','float');
5222 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5223 this.addInput('texcoord','vector2');
5224 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5225 this.addOutput('out','vector3');
5226 this.title = 'splittb_vector3';
5227 this.desc = "MaterialX:mtlx/procedural2d/splittb_vector3";
5228 this.onNodeCreated = function() {
5229 //console.log('Node created:', this);
5230}
5231 this.onRemoved = function() {
5232 //console.log('Node removed:', this);
5233 }
5234 this.onPropertyChanged = function(name, value, prev_value) {
5235 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5236 }
5237 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5238 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5239 }
5240 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5241 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5242 }
5243 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5244 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5245 }
5246 this.bgcolor = '#111';
5247 this.color = '#222';
5248 this.shape = LiteGraph.ROUND_SHAPE;
5249 this.boxcolor = '#465';
5250}

◆ mtlx_procedural2d_splittb_vector4()

function mtlx_procedural2d_splittb_vector4 ( )

mtlx_procedural2d_splittb_vector4

Library: mtlx. Category: splittb. Type: vector4 LiteGraph id: mtlx/procedural2d/splittb_vector4

Definition at line 5261 of file mtlx_stdlib.js.

5261 {
5262 this.nodedef_icon = '';
5263 this.nodedef_name = 'ND_splittb_vector4';
5264 this.nodedef_type = 'vector4';
5265 this.nodedef_node = 'splittb';
5266 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5267 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector4_out_genglsl.png';
5268 this.nodedef_group = 'procedural2d';
5269 this.addInput('valuet','vector4');
5270 this.addProperty('valuet', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Top","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5271 this.addInput('valueb','vector4');
5272 this.addProperty('valueb', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Bottom","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5273 this.addInput('center','float');
5274 this.addProperty('center', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Center","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
5275 this.addInput('texcoord','vector2');
5276 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
5277 this.addOutput('out','vector4');
5278 this.title = 'splittb_vector4';
5279 this.desc = "MaterialX:mtlx/procedural2d/splittb_vector4";
5280 this.onNodeCreated = function() {
5281 //console.log('Node created:', this);
5282}
5283 this.onRemoved = function() {
5284 //console.log('Node removed:', this);
5285 }
5286 this.onPropertyChanged = function(name, value, prev_value) {
5287 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5288 }
5289 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5290 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5291 }
5292 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5293 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5294 }
5295 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5296 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5297 }
5298 this.bgcolor = '#111';
5299 this.color = '#222';
5300 this.shape = LiteGraph.ROUND_SHAPE;
5301 this.boxcolor = '#275';
5302}

◆ mtlx_procedural2d_tiledcircles_color3()

function mtlx_procedural2d_tiledcircles_color3 ( )

mtlx_procedural2d_tiledcircles_color3

Library: mtlx. Category: crosshatch. Type: color3 LiteGraph id: mtlx/procedural2d/tiledcircles_color3

Definition at line 8109 of file mtlx_stdlib.js.

8109 {
8110 this.nodedef_icon = '';
8111 this.nodedef_name = 'ND_tiledcircles_color3';
8112 this.nodedef_type = 'color3';
8113 this.nodedef_node = 'tiledcircles';
8114 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledcircles.html';
8115 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledcircles_color3_out_genglsl.png';
8116 this.nodedef_group = 'procedural2d';
8117 this.addInput('texcoord','vector2');
8118 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
8119 this.addInput('uvtiling','vector2');
8120 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8121 this.addInput('uvoffset','vector2');
8122 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8123 this.addInput('size','float');
8124 this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8125 this.addInput('staggered','boolean');
8126 this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8127 this.addOutput('out','color3');
8128 this.title = 'tiledcircles_color3';
8129 this.desc = "MaterialX:mtlx/procedural2d/tiledcircles_color3";
8130 this.onNodeCreated = function() {
8131 //console.log('Node created:', this);
8132}
8133 this.onRemoved = function() {
8134 //console.log('Node removed:', this);
8135 }
8136 this.onPropertyChanged = function(name, value, prev_value) {
8137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8138 }
8139 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8141 }
8142 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8144 }
8145 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8147 }
8148 this.bgcolor = '#111';
8149 this.color = '#222';
8150 this.shape = LiteGraph.ROUND_SHAPE;
8151 this.boxcolor = '#37A';
8152}

◆ mtlx_procedural2d_tiledcloverleafs_color3()

function mtlx_procedural2d_tiledcloverleafs_color3 ( )

mtlx_procedural2d_tiledcloverleafs_color3

Library: mtlx. Category: tiledcircles. Type: color3 LiteGraph id: mtlx/procedural2d/tiledcloverleafs_color3

Definition at line 8163 of file mtlx_stdlib.js.

8163 {
8164 this.nodedef_icon = '';
8165 this.nodedef_name = 'ND_tiledcloverleafs_color3';
8166 this.nodedef_type = 'color3';
8167 this.nodedef_node = 'tiledcloverleafs';
8168 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledcloverleafs.html';
8169 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledcloverleafs_color3_out_genglsl.png';
8170 this.nodedef_group = 'procedural2d';
8171 this.addInput('texcoord','vector2');
8172 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
8173 this.addInput('uvtiling','vector2');
8174 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8175 this.addInput('uvoffset','vector2');
8176 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8177 this.addInput('size','float');
8178 this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8179 this.addInput('staggered','boolean');
8180 this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8181 this.addOutput('out','color3');
8182 this.title = 'tiledcloverleafs_color3';
8183 this.desc = "MaterialX:mtlx/procedural2d/tiledcloverleafs_color3";
8184 this.onNodeCreated = function() {
8185 //console.log('Node created:', this);
8186}
8187 this.onRemoved = function() {
8188 //console.log('Node removed:', this);
8189 }
8190 this.onPropertyChanged = function(name, value, prev_value) {
8191 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8192 }
8193 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8194 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8195 }
8196 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8197 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8198 }
8199 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8200 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8201 }
8202 this.bgcolor = '#111';
8203 this.color = '#222';
8204 this.shape = LiteGraph.ROUND_SHAPE;
8205 this.boxcolor = '#37A';
8206}

◆ mtlx_procedural2d_tiledhexagons_color3()

function mtlx_procedural2d_tiledhexagons_color3 ( )

mtlx_procedural2d_tiledhexagons_color3

Library: mtlx. Category: tiledcloverleafs. Type: color3 LiteGraph id: mtlx/procedural2d/tiledhexagons_color3

Definition at line 8217 of file mtlx_stdlib.js.

8217 {
8218 this.nodedef_icon = '';
8219 this.nodedef_name = 'ND_tiledhexagons_color3';
8220 this.nodedef_type = 'color3';
8221 this.nodedef_node = 'tiledhexagons';
8222 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledhexagons.html';
8223 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledhexagons_color3_out_genglsl.png';
8224 this.nodedef_group = 'procedural2d';
8225 this.addInput('texcoord','vector2');
8226 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
8227 this.addInput('uvtiling','vector2');
8228 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8229 this.addInput('uvoffset','vector2');
8230 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8231 this.addInput('size','float');
8232 this.addProperty('size', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8233 this.addInput('staggered','boolean');
8234 this.addProperty('staggered', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
8235 this.addOutput('out','color3');
8236 this.title = 'tiledhexagons_color3';
8237 this.desc = "MaterialX:mtlx/procedural2d/tiledhexagons_color3";
8238 this.onNodeCreated = function() {
8239 //console.log('Node created:', this);
8240}
8241 this.onRemoved = function() {
8242 //console.log('Node removed:', this);
8243 }
8244 this.onPropertyChanged = function(name, value, prev_value) {
8245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
8246 }
8247 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
8248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
8249 }
8250 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
8251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
8252 }
8253 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
8254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
8255 }
8256 this.bgcolor = '#111';
8257 this.color = '#222';
8258 this.shape = LiteGraph.ROUND_SHAPE;
8259 this.boxcolor = '#37A';
8260}

◆ mtlx_procedural2d_unifiednoise2d_float()

function mtlx_procedural2d_unifiednoise2d_float ( )

mtlx_procedural2d_unifiednoise2d_float

Library: mtlx. Category: worleynoise3d. Type: float LiteGraph id: mtlx/procedural2d/unifiednoise2d_float

Definition at line 7387 of file mtlx_stdlib.js.

7387 {
7388 this.nodedef_icon = '';
7389 this.nodedef_name = 'ND_unifiednoise2d_float';
7390 this.nodedef_type = 'float';
7391 this.nodedef_node = 'unifiednoise2d';
7392 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unifiednoise2d.html';
7393 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unifiednoise2d_float_out_genglsl.png';
7394 this.nodedef_group = 'procedural2d';
7395 this.addInput('texcoord','vector2');
7396 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":"UV0"});
7397 this.addInput('freq','vector2');
7398 this.addProperty('freq', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":""});
7399 this.addInput('offset','vector2');
7400 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":""});
7401 this.addInput('jitter','float');
7402 this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":"0.0","uimax":"1.0","uifolder":"Common","defaultgeomprop":""});
7403 this.addInput('outmin','float');
7404 this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7405 this.addInput('outmax','float');
7406 this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7407 this.addInput('clampoutput','boolean');
7408 this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7409 this.addInput('octaves','integer');
7410 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal","defaultgeomprop":""});
7411 this.addInput('lacunarity','float');
7412 this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal","defaultgeomprop":""});
7413 this.addInput('diminish','float');
7414 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":"0.0","uimax":"1.0","uifolder":"Fractal","defaultgeomprop":""});
7415 this.addInput('type','integer');
7416 this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":"0","uimax":"3","uifolder":"Common","defaultgeomprop":"","enum":["Perlin","Cell","Worley","Fractal"],"enumvalues":["0","1","2","3"]});
7417 this.addOutput('out','float');
7418 this.title = 'unifiednoise2d_float';
7419 this.desc = "MaterialX:mtlx/procedural2d/unifiednoise2d_float";
7420 this.onNodeCreated = function() {
7421 //console.log('Node created:', this);
7422}
7423 this.onRemoved = function() {
7424 //console.log('Node removed:', this);
7425 }
7426 this.onPropertyChanged = function(name, value, prev_value) {
7427 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7428 }
7429 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7430 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7431 }
7432 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7433 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7434 }
7435 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7436 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7437 }
7438 this.bgcolor = '#111';
7439 this.color = '#222';
7440 this.shape = LiteGraph.ROUND_SHAPE;
7441 this.boxcolor = '#161';
7442}

◆ mtlx_procedural2d_worleynoise2d_float()

function mtlx_procedural2d_worleynoise2d_float ( )

mtlx_procedural2d_worleynoise2d_float

Library: mtlx. Category: cellnoise3d. Type: float LiteGraph id: mtlx/procedural2d/worleynoise2d_float

Definition at line 7099 of file mtlx_stdlib.js.

7099 {
7100 this.nodedef_icon = '';
7101 this.nodedef_name = 'ND_worleynoise2d_float';
7102 this.nodedef_type = 'float';
7103 this.nodedef_node = 'worleynoise2d';
7104 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7105 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_float_out_genglsl.png';
7106 this.nodedef_group = 'procedural2d';
7107 this.addInput('texcoord','vector2');
7108 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7109 this.addInput('jitter','float');
7110 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7111 this.addOutput('out','float');
7112 this.title = 'worleynoise2d_float';
7113 this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_float";
7114 this.onNodeCreated = function() {
7115 //console.log('Node created:', this);
7116}
7117 this.onRemoved = function() {
7118 //console.log('Node removed:', this);
7119 }
7120 this.onPropertyChanged = function(name, value, prev_value) {
7121 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7122 }
7123 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7124 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7125 }
7126 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7127 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7128 }
7129 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7130 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7131 }
7132 this.bgcolor = '#111';
7133 this.color = '#222';
7134 this.shape = LiteGraph.ROUND_SHAPE;
7135 this.boxcolor = '#161';
7136}

◆ mtlx_procedural2d_worleynoise2d_vector2()

function mtlx_procedural2d_worleynoise2d_vector2 ( )

mtlx_procedural2d_worleynoise2d_vector2

Library: mtlx. Category: worleynoise2d. Type: vector2 LiteGraph id: mtlx/procedural2d/worleynoise2d_vector2

Definition at line 7147 of file mtlx_stdlib.js.

7147 {
7148 this.nodedef_icon = '';
7149 this.nodedef_name = 'ND_worleynoise2d_vector2';
7150 this.nodedef_type = 'vector2';
7151 this.nodedef_node = 'worleynoise2d';
7152 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7153 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_vector2_out_genglsl.png';
7154 this.nodedef_group = 'procedural2d';
7155 this.addInput('texcoord','vector2');
7156 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7157 this.addInput('jitter','float');
7158 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7159 this.addOutput('out','vector2');
7160 this.title = 'worleynoise2d_vector2';
7161 this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector2";
7162 this.onNodeCreated = function() {
7163 //console.log('Node created:', this);
7164}
7165 this.onRemoved = function() {
7166 //console.log('Node removed:', this);
7167 }
7168 this.onPropertyChanged = function(name, value, prev_value) {
7169 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7170 }
7171 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7172 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7173 }
7174 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7175 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7176 }
7177 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7178 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7179 }
7180 this.bgcolor = '#111';
7181 this.color = '#222';
7182 this.shape = LiteGraph.ROUND_SHAPE;
7183 this.boxcolor = '#265';
7184}

◆ mtlx_procedural2d_worleynoise2d_vector3()

function mtlx_procedural2d_worleynoise2d_vector3 ( )

mtlx_procedural2d_worleynoise2d_vector3

Library: mtlx. Category: worleynoise2d. Type: vector3 LiteGraph id: mtlx/procedural2d/worleynoise2d_vector3

Definition at line 7195 of file mtlx_stdlib.js.

7195 {
7196 this.nodedef_icon = '';
7197 this.nodedef_name = 'ND_worleynoise2d_vector3';
7198 this.nodedef_type = 'vector3';
7199 this.nodedef_node = 'worleynoise2d';
7200 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7201 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_vector3_out_genglsl.png';
7202 this.nodedef_group = 'procedural2d';
7203 this.addInput('texcoord','vector2');
7204 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
7205 this.addInput('jitter','float');
7206 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7207 this.addOutput('out','vector3');
7208 this.title = 'worleynoise2d_vector3';
7209 this.desc = "MaterialX:mtlx/procedural2d/worleynoise2d_vector3";
7210 this.onNodeCreated = function() {
7211 //console.log('Node created:', this);
7212}
7213 this.onRemoved = function() {
7214 //console.log('Node removed:', this);
7215 }
7216 this.onPropertyChanged = function(name, value, prev_value) {
7217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7218 }
7219 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7221 }
7222 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7224 }
7225 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7227 }
7228 this.bgcolor = '#111';
7229 this.color = '#222';
7230 this.shape = LiteGraph.ROUND_SHAPE;
7231 this.boxcolor = '#465';
7232}

◆ mtlx_procedural3d_cellnoise3d_float()

function mtlx_procedural3d_cellnoise3d_float ( )

mtlx_procedural3d_cellnoise3d_float

Library: mtlx. Category: cellnoise2d. Type: float LiteGraph id: mtlx/procedural3d/cellnoise3d_float

Definition at line 7053 of file mtlx_stdlib.js.

7053 {
7054 this.nodedef_icon = '';
7055 this.nodedef_name = 'ND_cellnoise3d_float';
7056 this.nodedef_type = 'float';
7057 this.nodedef_node = 'cellnoise3d';
7058 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cellnoise3d.html';
7059 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cellnoise3d_float_out_genglsl.png';
7060 this.nodedef_group = 'procedural3d';
7061 this.addInput('position','vector3');
7062 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
7063 this.addOutput('out','float');
7064 this.title = 'cellnoise3d_float';
7065 this.desc = "MaterialX:mtlx/procedural3d/cellnoise3d_float";
7066 this.onNodeCreated = function() {
7067 //console.log('Node created:', this);
7068}
7069 this.onRemoved = function() {
7070 //console.log('Node removed:', this);
7071 }
7072 this.onPropertyChanged = function(name, value, prev_value) {
7073 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7074 }
7075 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7076 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7077 }
7078 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7079 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7080 }
7081 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7082 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7083 }
7084 this.bgcolor = '#111';
7085 this.color = '#222';
7086 this.shape = LiteGraph.ROUND_SHAPE;
7087 this.boxcolor = '#161';
7088}

◆ mtlx_procedural3d_fractal3d_color3()

function mtlx_procedural3d_fractal3d_color3 ( )

mtlx_procedural3d_fractal3d_color3

Library: mtlx. Category: fractal3d. Type: color3 LiteGraph id: mtlx/procedural3d/fractal3d_color3

Definition at line 6467 of file mtlx_stdlib.js.

6467 {
6468 this.nodedef_icon = '';
6469 this.nodedef_name = 'ND_fractal3d_color3';
6470 this.nodedef_type = 'color3';
6471 this.nodedef_node = 'fractal3d';
6472 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6473 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color3_out_genglsl.png';
6474 this.nodedef_group = 'procedural3d';
6475 this.addInput('amplitude','vector3');
6476 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6477 this.addInput('octaves','integer');
6478 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6479 this.addInput('lacunarity','float');
6480 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6481 this.addInput('diminish','float');
6482 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6483 this.addInput('position','vector3');
6484 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6485 this.addOutput('out','color3');
6486 this.title = 'fractal3d_color3';
6487 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3";
6488 this.onNodeCreated = function() {
6489 //console.log('Node created:', this);
6490}
6491 this.onRemoved = function() {
6492 //console.log('Node removed:', this);
6493 }
6494 this.onPropertyChanged = function(name, value, prev_value) {
6495 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6496 }
6497 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6498 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6499 }
6500 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6501 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6502 }
6503 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6504 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6505 }
6506 this.bgcolor = '#111';
6507 this.color = '#222';
6508 this.shape = LiteGraph.ROUND_SHAPE;
6509 this.boxcolor = '#37A';
6510}

◆ mtlx_procedural3d_fractal3d_color3FA()

function mtlx_procedural3d_fractal3d_color3FA ( )

mtlx_procedural3d_fractal3d_color3FA

Library: mtlx. Category: fractal3d. Type: color3 LiteGraph id: mtlx/procedural3d/fractal3d_color3FA

Definition at line 6737 of file mtlx_stdlib.js.

6737 {
6738 this.nodedef_icon = '';
6739 this.nodedef_name = 'ND_fractal3d_color3FA';
6740 this.nodedef_type = 'color3';
6741 this.nodedef_node = 'fractal3d';
6742 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6743 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color3FA_out_genglsl.png';
6744 this.nodedef_group = 'procedural3d';
6745 this.addInput('amplitude','float');
6746 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6747 this.addInput('octaves','integer');
6748 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6749 this.addInput('lacunarity','float');
6750 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6751 this.addInput('diminish','float');
6752 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6753 this.addInput('position','vector3');
6754 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6755 this.addOutput('out','color3');
6756 this.title = 'fractal3d_color3';
6757 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color3FA";
6758 this.onNodeCreated = function() {
6759 //console.log('Node created:', this);
6760}
6761 this.onRemoved = function() {
6762 //console.log('Node removed:', this);
6763 }
6764 this.onPropertyChanged = function(name, value, prev_value) {
6765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6766 }
6767 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6769 }
6770 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6772 }
6773 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6775 }
6776 this.bgcolor = '#111';
6777 this.color = '#222';
6778 this.shape = LiteGraph.ROUND_SHAPE;
6779 this.boxcolor = '#37A';
6780}

◆ mtlx_procedural3d_fractal3d_color4()

function mtlx_procedural3d_fractal3d_color4 ( )

mtlx_procedural3d_fractal3d_color4

Library: mtlx. Category: fractal3d. Type: color4 LiteGraph id: mtlx/procedural3d/fractal3d_color4

Definition at line 6521 of file mtlx_stdlib.js.

6521 {
6522 this.nodedef_icon = '';
6523 this.nodedef_name = 'ND_fractal3d_color4';
6524 this.nodedef_type = 'color4';
6525 this.nodedef_node = 'fractal3d';
6526 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6527 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color4_out_genglsl.png';
6528 this.nodedef_group = 'procedural3d';
6529 this.addInput('amplitude','vector4');
6530 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6531 this.addInput('octaves','integer');
6532 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6533 this.addInput('lacunarity','float');
6534 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6535 this.addInput('diminish','float');
6536 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6537 this.addInput('position','vector3');
6538 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6539 this.addOutput('out','color4');
6540 this.title = 'fractal3d_color4';
6541 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4";
6542 this.onNodeCreated = function() {
6543 //console.log('Node created:', this);
6544}
6545 this.onRemoved = function() {
6546 //console.log('Node removed:', this);
6547 }
6548 this.onPropertyChanged = function(name, value, prev_value) {
6549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6550 }
6551 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6553 }
6554 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6556 }
6557 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6559 }
6560 this.bgcolor = '#111';
6561 this.color = '#222';
6562 this.shape = LiteGraph.ROUND_SHAPE;
6563 this.boxcolor = '#69A';
6564}

◆ mtlx_procedural3d_fractal3d_color4FA()

function mtlx_procedural3d_fractal3d_color4FA ( )

mtlx_procedural3d_fractal3d_color4FA

Library: mtlx. Category: fractal3d. Type: color4 LiteGraph id: mtlx/procedural3d/fractal3d_color4FA

Definition at line 6791 of file mtlx_stdlib.js.

6791 {
6792 this.nodedef_icon = '';
6793 this.nodedef_name = 'ND_fractal3d_color4FA';
6794 this.nodedef_type = 'color4';
6795 this.nodedef_node = 'fractal3d';
6796 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6797 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color4FA_out_genglsl.png';
6798 this.nodedef_group = 'procedural3d';
6799 this.addInput('amplitude','float');
6800 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6801 this.addInput('octaves','integer');
6802 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6803 this.addInput('lacunarity','float');
6804 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6805 this.addInput('diminish','float');
6806 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6807 this.addInput('position','vector3');
6808 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6809 this.addOutput('out','color4');
6810 this.title = 'fractal3d_color4';
6811 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_color4FA";
6812 this.onNodeCreated = function() {
6813 //console.log('Node created:', this);
6814}
6815 this.onRemoved = function() {
6816 //console.log('Node removed:', this);
6817 }
6818 this.onPropertyChanged = function(name, value, prev_value) {
6819 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6820 }
6821 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6822 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6823 }
6824 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6825 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6826 }
6827 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6828 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6829 }
6830 this.bgcolor = '#111';
6831 this.color = '#222';
6832 this.shape = LiteGraph.ROUND_SHAPE;
6833 this.boxcolor = '#69A';
6834}

◆ mtlx_procedural3d_fractal3d_float()

function mtlx_procedural3d_fractal3d_float ( )

mtlx_procedural3d_fractal3d_float

Library: mtlx. Category: noise3d. Type: float LiteGraph id: mtlx/procedural3d/fractal3d_float

Definition at line 6413 of file mtlx_stdlib.js.

6413 {
6414 this.nodedef_icon = '';
6415 this.nodedef_name = 'ND_fractal3d_float';
6416 this.nodedef_type = 'float';
6417 this.nodedef_node = 'fractal3d';
6418 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6419 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_float_out_genglsl.png';
6420 this.nodedef_group = 'procedural3d';
6421 this.addInput('amplitude','float');
6422 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6423 this.addInput('octaves','integer');
6424 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6425 this.addInput('lacunarity','float');
6426 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6427 this.addInput('diminish','float');
6428 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6429 this.addInput('position','vector3');
6430 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6431 this.addOutput('out','float');
6432 this.title = 'fractal3d_float';
6433 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_float";
6434 this.onNodeCreated = function() {
6435 //console.log('Node created:', this);
6436}
6437 this.onRemoved = function() {
6438 //console.log('Node removed:', this);
6439 }
6440 this.onPropertyChanged = function(name, value, prev_value) {
6441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6442 }
6443 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6445 }
6446 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6448 }
6449 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6451 }
6452 this.bgcolor = '#111';
6453 this.color = '#222';
6454 this.shape = LiteGraph.ROUND_SHAPE;
6455 this.boxcolor = '#161';
6456}

◆ mtlx_procedural3d_fractal3d_vector2()

function mtlx_procedural3d_fractal3d_vector2 ( )

mtlx_procedural3d_fractal3d_vector2

Library: mtlx. Category: fractal3d. Type: vector2 LiteGraph id: mtlx/procedural3d/fractal3d_vector2

Definition at line 6575 of file mtlx_stdlib.js.

6575 {
6576 this.nodedef_icon = '';
6577 this.nodedef_name = 'ND_fractal3d_vector2';
6578 this.nodedef_type = 'vector2';
6579 this.nodedef_node = 'fractal3d';
6580 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6581 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector2_out_genglsl.png';
6582 this.nodedef_group = 'procedural3d';
6583 this.addInput('amplitude','vector2');
6584 this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6585 this.addInput('octaves','integer');
6586 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6587 this.addInput('lacunarity','float');
6588 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6589 this.addInput('diminish','float');
6590 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6591 this.addInput('position','vector3');
6592 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6593 this.addOutput('out','vector2');
6594 this.title = 'fractal3d_vector2';
6595 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2";
6596 this.onNodeCreated = function() {
6597 //console.log('Node created:', this);
6598}
6599 this.onRemoved = function() {
6600 //console.log('Node removed:', this);
6601 }
6602 this.onPropertyChanged = function(name, value, prev_value) {
6603 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6604 }
6605 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6606 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6607 }
6608 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6609 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6610 }
6611 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6612 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6613 }
6614 this.bgcolor = '#111';
6615 this.color = '#222';
6616 this.shape = LiteGraph.ROUND_SHAPE;
6617 this.boxcolor = '#265';
6618}

◆ mtlx_procedural3d_fractal3d_vector2FA()

function mtlx_procedural3d_fractal3d_vector2FA ( )

mtlx_procedural3d_fractal3d_vector2FA

Library: mtlx. Category: fractal3d. Type: vector2 LiteGraph id: mtlx/procedural3d/fractal3d_vector2FA

Definition at line 6845 of file mtlx_stdlib.js.

6845 {
6846 this.nodedef_icon = '';
6847 this.nodedef_name = 'ND_fractal3d_vector2FA';
6848 this.nodedef_type = 'vector2';
6849 this.nodedef_node = 'fractal3d';
6850 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6851 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector2FA_out_genglsl.png';
6852 this.nodedef_group = 'procedural3d';
6853 this.addInput('amplitude','float');
6854 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6855 this.addInput('octaves','integer');
6856 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6857 this.addInput('lacunarity','float');
6858 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6859 this.addInput('diminish','float');
6860 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6861 this.addInput('position','vector3');
6862 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6863 this.addOutput('out','vector2');
6864 this.title = 'fractal3d_vector2';
6865 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector2FA";
6866 this.onNodeCreated = function() {
6867 //console.log('Node created:', this);
6868}
6869 this.onRemoved = function() {
6870 //console.log('Node removed:', this);
6871 }
6872 this.onPropertyChanged = function(name, value, prev_value) {
6873 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6874 }
6875 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6876 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6877 }
6878 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6879 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6880 }
6881 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6882 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6883 }
6884 this.bgcolor = '#111';
6885 this.color = '#222';
6886 this.shape = LiteGraph.ROUND_SHAPE;
6887 this.boxcolor = '#265';
6888}

◆ mtlx_procedural3d_fractal3d_vector3()

function mtlx_procedural3d_fractal3d_vector3 ( )

mtlx_procedural3d_fractal3d_vector3

Library: mtlx. Category: fractal3d. Type: vector3 LiteGraph id: mtlx/procedural3d/fractal3d_vector3

Definition at line 6629 of file mtlx_stdlib.js.

6629 {
6630 this.nodedef_icon = '';
6631 this.nodedef_name = 'ND_fractal3d_vector3';
6632 this.nodedef_type = 'vector3';
6633 this.nodedef_node = 'fractal3d';
6634 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6635 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector3_out_genglsl.png';
6636 this.nodedef_group = 'procedural3d';
6637 this.addInput('amplitude','vector3');
6638 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6639 this.addInput('octaves','integer');
6640 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6641 this.addInput('lacunarity','float');
6642 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6643 this.addInput('diminish','float');
6644 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6645 this.addInput('position','vector3');
6646 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6647 this.addOutput('out','vector3');
6648 this.title = 'fractal3d_vector3';
6649 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3";
6650 this.onNodeCreated = function() {
6651 //console.log('Node created:', this);
6652}
6653 this.onRemoved = function() {
6654 //console.log('Node removed:', this);
6655 }
6656 this.onPropertyChanged = function(name, value, prev_value) {
6657 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6658 }
6659 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6660 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6661 }
6662 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6663 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6664 }
6665 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6666 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6667 }
6668 this.bgcolor = '#111';
6669 this.color = '#222';
6670 this.shape = LiteGraph.ROUND_SHAPE;
6671 this.boxcolor = '#465';
6672}

◆ mtlx_procedural3d_fractal3d_vector3FA()

function mtlx_procedural3d_fractal3d_vector3FA ( )

mtlx_procedural3d_fractal3d_vector3FA

Library: mtlx. Category: fractal3d. Type: vector3 LiteGraph id: mtlx/procedural3d/fractal3d_vector3FA

Definition at line 6899 of file mtlx_stdlib.js.

6899 {
6900 this.nodedef_icon = '';
6901 this.nodedef_name = 'ND_fractal3d_vector3FA';
6902 this.nodedef_type = 'vector3';
6903 this.nodedef_node = 'fractal3d';
6904 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6905 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector3FA_out_genglsl.png';
6906 this.nodedef_group = 'procedural3d';
6907 this.addInput('amplitude','float');
6908 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6909 this.addInput('octaves','integer');
6910 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6911 this.addInput('lacunarity','float');
6912 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6913 this.addInput('diminish','float');
6914 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6915 this.addInput('position','vector3');
6916 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6917 this.addOutput('out','vector3');
6918 this.title = 'fractal3d_vector3';
6919 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector3FA";
6920 this.onNodeCreated = function() {
6921 //console.log('Node created:', this);
6922}
6923 this.onRemoved = function() {
6924 //console.log('Node removed:', this);
6925 }
6926 this.onPropertyChanged = function(name, value, prev_value) {
6927 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6928 }
6929 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6930 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6931 }
6932 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6933 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6934 }
6935 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6936 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6937 }
6938 this.bgcolor = '#111';
6939 this.color = '#222';
6940 this.shape = LiteGraph.ROUND_SHAPE;
6941 this.boxcolor = '#465';
6942}

◆ mtlx_procedural3d_fractal3d_vector4()

function mtlx_procedural3d_fractal3d_vector4 ( )

mtlx_procedural3d_fractal3d_vector4

Library: mtlx. Category: fractal3d. Type: vector4 LiteGraph id: mtlx/procedural3d/fractal3d_vector4

Definition at line 6683 of file mtlx_stdlib.js.

6683 {
6684 this.nodedef_icon = '';
6685 this.nodedef_name = 'ND_fractal3d_vector4';
6686 this.nodedef_type = 'vector4';
6687 this.nodedef_node = 'fractal3d';
6688 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6689 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector4_out_genglsl.png';
6690 this.nodedef_group = 'procedural3d';
6691 this.addInput('amplitude','vector4');
6692 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6693 this.addInput('octaves','integer');
6694 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6695 this.addInput('lacunarity','float');
6696 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6697 this.addInput('diminish','float');
6698 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6699 this.addInput('position','vector3');
6700 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6701 this.addOutput('out','vector4');
6702 this.title = 'fractal3d_vector4';
6703 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4";
6704 this.onNodeCreated = function() {
6705 //console.log('Node created:', this);
6706}
6707 this.onRemoved = function() {
6708 //console.log('Node removed:', this);
6709 }
6710 this.onPropertyChanged = function(name, value, prev_value) {
6711 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6712 }
6713 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6714 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6715 }
6716 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6717 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6718 }
6719 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6720 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6721 }
6722 this.bgcolor = '#111';
6723 this.color = '#222';
6724 this.shape = LiteGraph.ROUND_SHAPE;
6725 this.boxcolor = '#275';
6726}

◆ mtlx_procedural3d_fractal3d_vector4FA()

function mtlx_procedural3d_fractal3d_vector4FA ( )

mtlx_procedural3d_fractal3d_vector4FA

Library: mtlx. Category: fractal3d. Type: vector4 LiteGraph id: mtlx/procedural3d/fractal3d_vector4FA

Definition at line 6953 of file mtlx_stdlib.js.

6953 {
6954 this.nodedef_icon = '';
6955 this.nodedef_name = 'ND_fractal3d_vector4FA';
6956 this.nodedef_type = 'vector4';
6957 this.nodedef_node = 'fractal3d';
6958 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6959 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector4FA_out_genglsl.png';
6960 this.nodedef_group = 'procedural3d';
6961 this.addInput('amplitude','float');
6962 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6963 this.addInput('octaves','integer');
6964 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6965 this.addInput('lacunarity','float');
6966 this.addProperty('lacunarity', 2.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6967 this.addInput('diminish','float');
6968 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6969 this.addInput('position','vector3');
6970 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6971 this.addOutput('out','vector4');
6972 this.title = 'fractal3d_vector4';
6973 this.desc = "MaterialX:mtlx/procedural3d/fractal3d_vector4FA";
6974 this.onNodeCreated = function() {
6975 //console.log('Node created:', this);
6976}
6977 this.onRemoved = function() {
6978 //console.log('Node removed:', this);
6979 }
6980 this.onPropertyChanged = function(name, value, prev_value) {
6981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6982 }
6983 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6985 }
6986 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6988 }
6989 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6991 }
6992 this.bgcolor = '#111';
6993 this.color = '#222';
6994 this.shape = LiteGraph.ROUND_SHAPE;
6995 this.boxcolor = '#275';
6996}

◆ mtlx_procedural3d_noise3d_color3()

function mtlx_procedural3d_noise3d_color3 ( )

mtlx_procedural3d_noise3d_color3

Library: mtlx. Category: noise3d. Type: color3 LiteGraph id: mtlx/procedural3d/noise3d_color3

Definition at line 5913 of file mtlx_stdlib.js.

5913 {
5914 this.nodedef_icon = '';
5915 this.nodedef_name = 'ND_noise3d_color3';
5916 this.nodedef_type = 'color3';
5917 this.nodedef_node = 'noise3d';
5918 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5919 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color3_out_genglsl.png';
5920 this.nodedef_group = 'procedural3d';
5921 this.addInput('amplitude','vector3');
5922 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5923 this.addInput('pivot','float');
5924 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5925 this.addInput('position','vector3');
5926 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
5927 this.addOutput('out','color3');
5928 this.title = 'noise3d_color3';
5929 this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3";
5930 this.onNodeCreated = function() {
5931 //console.log('Node created:', this);
5932}
5933 this.onRemoved = function() {
5934 //console.log('Node removed:', this);
5935 }
5936 this.onPropertyChanged = function(name, value, prev_value) {
5937 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5938 }
5939 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5940 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5941 }
5942 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5943 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5944 }
5945 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5946 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5947 }
5948 this.bgcolor = '#111';
5949 this.color = '#222';
5950 this.shape = LiteGraph.ROUND_SHAPE;
5951 this.boxcolor = '#37A';
5952}

◆ mtlx_procedural3d_noise3d_color3FA()

function mtlx_procedural3d_noise3d_color3FA ( )

mtlx_procedural3d_noise3d_color3FA

Library: mtlx. Category: noise3d. Type: color3 LiteGraph id: mtlx/procedural3d/noise3d_color3FA

Definition at line 6163 of file mtlx_stdlib.js.

6163 {
6164 this.nodedef_icon = '';
6165 this.nodedef_name = 'ND_noise3d_color3FA';
6166 this.nodedef_type = 'color3';
6167 this.nodedef_node = 'noise3d';
6168 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6169 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color3FA_out_genglsl.png';
6170 this.nodedef_group = 'procedural3d';
6171 this.addInput('amplitude','float');
6172 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6173 this.addInput('pivot','float');
6174 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6175 this.addInput('position','vector3');
6176 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6177 this.addOutput('out','color3');
6178 this.title = 'noise3d_color3';
6179 this.desc = "MaterialX:mtlx/procedural3d/noise3d_color3FA";
6180 this.onNodeCreated = function() {
6181 //console.log('Node created:', this);
6182}
6183 this.onRemoved = function() {
6184 //console.log('Node removed:', this);
6185 }
6186 this.onPropertyChanged = function(name, value, prev_value) {
6187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6188 }
6189 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6191 }
6192 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6194 }
6195 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6197 }
6198 this.bgcolor = '#111';
6199 this.color = '#222';
6200 this.shape = LiteGraph.ROUND_SHAPE;
6201 this.boxcolor = '#37A';
6202}

◆ mtlx_procedural3d_noise3d_color4()

function mtlx_procedural3d_noise3d_color4 ( )

mtlx_procedural3d_noise3d_color4

Library: mtlx. Category: noise3d. Type: color4 LiteGraph id: mtlx/procedural3d/noise3d_color4

Definition at line 5963 of file mtlx_stdlib.js.

5963 {
5964 this.nodedef_icon = '';
5965 this.nodedef_name = 'ND_noise3d_color4';
5966 this.nodedef_type = 'color4';
5967 this.nodedef_node = 'noise3d';
5968 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5969 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color4_out_genglsl.png';
5970 this.nodedef_group = 'procedural3d';
5971 this.addInput('amplitude','vector4');
5972 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5973 this.addInput('pivot','float');
5974 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5975 this.addInput('position','vector3');
5976 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
5977 this.addOutput('out','color4');
5978 this.title = 'noise3d_color4';
5979 this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4";
5980 this.onNodeCreated = function() {
5981 //console.log('Node created:', this);
5982}
5983 this.onRemoved = function() {
5984 //console.log('Node removed:', this);
5985 }
5986 this.onPropertyChanged = function(name, value, prev_value) {
5987 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5988 }
5989 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5990 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5991 }
5992 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5993 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5994 }
5995 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5996 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5997 }
5998 this.bgcolor = '#111';
5999 this.color = '#222';
6000 this.shape = LiteGraph.ROUND_SHAPE;
6001 this.boxcolor = '#69A';
6002}

◆ mtlx_procedural3d_noise3d_color4FA()

function mtlx_procedural3d_noise3d_color4FA ( )

mtlx_procedural3d_noise3d_color4FA

Library: mtlx. Category: noise3d. Type: color4 LiteGraph id: mtlx/procedural3d/noise3d_color4FA

Definition at line 6213 of file mtlx_stdlib.js.

6213 {
6214 this.nodedef_icon = '';
6215 this.nodedef_name = 'ND_noise3d_color4FA';
6216 this.nodedef_type = 'color4';
6217 this.nodedef_node = 'noise3d';
6218 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6219 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color4FA_out_genglsl.png';
6220 this.nodedef_group = 'procedural3d';
6221 this.addInput('amplitude','float');
6222 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6223 this.addInput('pivot','float');
6224 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6225 this.addInput('position','vector3');
6226 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6227 this.addOutput('out','color4');
6228 this.title = 'noise3d_color4';
6229 this.desc = "MaterialX:mtlx/procedural3d/noise3d_color4FA";
6230 this.onNodeCreated = function() {
6231 //console.log('Node created:', this);
6232}
6233 this.onRemoved = function() {
6234 //console.log('Node removed:', this);
6235 }
6236 this.onPropertyChanged = function(name, value, prev_value) {
6237 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6238 }
6239 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6240 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6241 }
6242 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6243 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6244 }
6245 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6246 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6247 }
6248 this.bgcolor = '#111';
6249 this.color = '#222';
6250 this.shape = LiteGraph.ROUND_SHAPE;
6251 this.boxcolor = '#69A';
6252}

◆ mtlx_procedural3d_noise3d_float()

function mtlx_procedural3d_noise3d_float ( )

mtlx_procedural3d_noise3d_float

Library: mtlx. Category: noise2d. Type: float LiteGraph id: mtlx/procedural3d/noise3d_float

Definition at line 5863 of file mtlx_stdlib.js.

5863 {
5864 this.nodedef_icon = '';
5865 this.nodedef_name = 'ND_noise3d_float';
5866 this.nodedef_type = 'float';
5867 this.nodedef_node = 'noise3d';
5868 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5869 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_float_out_genglsl.png';
5870 this.nodedef_group = 'procedural3d';
5871 this.addInput('amplitude','float');
5872 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5873 this.addInput('pivot','float');
5874 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
5875 this.addInput('position','vector3');
5876 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
5877 this.addOutput('out','float');
5878 this.title = 'noise3d_float';
5879 this.desc = "MaterialX:mtlx/procedural3d/noise3d_float";
5880 this.onNodeCreated = function() {
5881 //console.log('Node created:', this);
5882}
5883 this.onRemoved = function() {
5884 //console.log('Node removed:', this);
5885 }
5886 this.onPropertyChanged = function(name, value, prev_value) {
5887 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
5888 }
5889 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
5890 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
5891 }
5892 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
5893 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
5894 }
5895 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
5896 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
5897 }
5898 this.bgcolor = '#111';
5899 this.color = '#222';
5900 this.shape = LiteGraph.ROUND_SHAPE;
5901 this.boxcolor = '#161';
5902}

◆ mtlx_procedural3d_noise3d_vector2()

function mtlx_procedural3d_noise3d_vector2 ( )

mtlx_procedural3d_noise3d_vector2

Library: mtlx. Category: noise3d. Type: vector2 LiteGraph id: mtlx/procedural3d/noise3d_vector2

Definition at line 6013 of file mtlx_stdlib.js.

6013 {
6014 this.nodedef_icon = '';
6015 this.nodedef_name = 'ND_noise3d_vector2';
6016 this.nodedef_type = 'vector2';
6017 this.nodedef_node = 'noise3d';
6018 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6019 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector2_out_genglsl.png';
6020 this.nodedef_group = 'procedural3d';
6021 this.addInput('amplitude','vector2');
6022 this.addProperty('amplitude', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6023 this.addInput('pivot','float');
6024 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6025 this.addInput('position','vector3');
6026 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6027 this.addOutput('out','vector2');
6028 this.title = 'noise3d_vector2';
6029 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2";
6030 this.onNodeCreated = function() {
6031 //console.log('Node created:', this);
6032}
6033 this.onRemoved = function() {
6034 //console.log('Node removed:', this);
6035 }
6036 this.onPropertyChanged = function(name, value, prev_value) {
6037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6038 }
6039 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6041 }
6042 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6044 }
6045 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6047 }
6048 this.bgcolor = '#111';
6049 this.color = '#222';
6050 this.shape = LiteGraph.ROUND_SHAPE;
6051 this.boxcolor = '#265';
6052}

◆ mtlx_procedural3d_noise3d_vector2FA()

function mtlx_procedural3d_noise3d_vector2FA ( )

mtlx_procedural3d_noise3d_vector2FA

Library: mtlx. Category: noise3d. Type: vector2 LiteGraph id: mtlx/procedural3d/noise3d_vector2FA

Definition at line 6263 of file mtlx_stdlib.js.

6263 {
6264 this.nodedef_icon = '';
6265 this.nodedef_name = 'ND_noise3d_vector2FA';
6266 this.nodedef_type = 'vector2';
6267 this.nodedef_node = 'noise3d';
6268 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6269 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector2FA_out_genglsl.png';
6270 this.nodedef_group = 'procedural3d';
6271 this.addInput('amplitude','float');
6272 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6273 this.addInput('pivot','float');
6274 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6275 this.addInput('position','vector3');
6276 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6277 this.addOutput('out','vector2');
6278 this.title = 'noise3d_vector2';
6279 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector2FA";
6280 this.onNodeCreated = function() {
6281 //console.log('Node created:', this);
6282}
6283 this.onRemoved = function() {
6284 //console.log('Node removed:', this);
6285 }
6286 this.onPropertyChanged = function(name, value, prev_value) {
6287 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6288 }
6289 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6290 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6291 }
6292 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6293 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6294 }
6295 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6296 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6297 }
6298 this.bgcolor = '#111';
6299 this.color = '#222';
6300 this.shape = LiteGraph.ROUND_SHAPE;
6301 this.boxcolor = '#265';
6302}

◆ mtlx_procedural3d_noise3d_vector3()

function mtlx_procedural3d_noise3d_vector3 ( )

mtlx_procedural3d_noise3d_vector3

Library: mtlx. Category: noise3d. Type: vector3 LiteGraph id: mtlx/procedural3d/noise3d_vector3

Definition at line 6063 of file mtlx_stdlib.js.

6063 {
6064 this.nodedef_icon = '';
6065 this.nodedef_name = 'ND_noise3d_vector3';
6066 this.nodedef_type = 'vector3';
6067 this.nodedef_node = 'noise3d';
6068 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6069 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector3_out_genglsl.png';
6070 this.nodedef_group = 'procedural3d';
6071 this.addInput('amplitude','vector3');
6072 this.addProperty('amplitude', [1.0, 1.0, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6073 this.addInput('pivot','float');
6074 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6075 this.addInput('position','vector3');
6076 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6077 this.addOutput('out','vector3');
6078 this.title = 'noise3d_vector3';
6079 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3";
6080 this.onNodeCreated = function() {
6081 //console.log('Node created:', this);
6082}
6083 this.onRemoved = function() {
6084 //console.log('Node removed:', this);
6085 }
6086 this.onPropertyChanged = function(name, value, prev_value) {
6087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6088 }
6089 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6091 }
6092 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6094 }
6095 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6097 }
6098 this.bgcolor = '#111';
6099 this.color = '#222';
6100 this.shape = LiteGraph.ROUND_SHAPE;
6101 this.boxcolor = '#465';
6102}

◆ mtlx_procedural3d_noise3d_vector3FA()

function mtlx_procedural3d_noise3d_vector3FA ( )

mtlx_procedural3d_noise3d_vector3FA

Library: mtlx. Category: noise3d. Type: vector3 LiteGraph id: mtlx/procedural3d/noise3d_vector3FA

Definition at line 6313 of file mtlx_stdlib.js.

6313 {
6314 this.nodedef_icon = '';
6315 this.nodedef_name = 'ND_noise3d_vector3FA';
6316 this.nodedef_type = 'vector3';
6317 this.nodedef_node = 'noise3d';
6318 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6319 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector3FA_out_genglsl.png';
6320 this.nodedef_group = 'procedural3d';
6321 this.addInput('amplitude','float');
6322 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6323 this.addInput('pivot','float');
6324 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6325 this.addInput('position','vector3');
6326 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6327 this.addOutput('out','vector3');
6328 this.title = 'noise3d_vector3';
6329 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector3FA";
6330 this.onNodeCreated = function() {
6331 //console.log('Node created:', this);
6332}
6333 this.onRemoved = function() {
6334 //console.log('Node removed:', this);
6335 }
6336 this.onPropertyChanged = function(name, value, prev_value) {
6337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6338 }
6339 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6341 }
6342 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6344 }
6345 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6347 }
6348 this.bgcolor = '#111';
6349 this.color = '#222';
6350 this.shape = LiteGraph.ROUND_SHAPE;
6351 this.boxcolor = '#465';
6352}

◆ mtlx_procedural3d_noise3d_vector4()

function mtlx_procedural3d_noise3d_vector4 ( )

mtlx_procedural3d_noise3d_vector4

Library: mtlx. Category: noise3d. Type: vector4 LiteGraph id: mtlx/procedural3d/noise3d_vector4

Definition at line 6113 of file mtlx_stdlib.js.

6113 {
6114 this.nodedef_icon = '';
6115 this.nodedef_name = 'ND_noise3d_vector4';
6116 this.nodedef_type = 'vector4';
6117 this.nodedef_node = 'noise3d';
6118 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6119 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector4_out_genglsl.png';
6120 this.nodedef_group = 'procedural3d';
6121 this.addInput('amplitude','vector4');
6122 this.addProperty('amplitude', [1.0, 1.0, 1.0, 1.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6123 this.addInput('pivot','float');
6124 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6125 this.addInput('position','vector3');
6126 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6127 this.addOutput('out','vector4');
6128 this.title = 'noise3d_vector4';
6129 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4";
6130 this.onNodeCreated = function() {
6131 //console.log('Node created:', this);
6132}
6133 this.onRemoved = function() {
6134 //console.log('Node removed:', this);
6135 }
6136 this.onPropertyChanged = function(name, value, prev_value) {
6137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6138 }
6139 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6141 }
6142 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6144 }
6145 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6147 }
6148 this.bgcolor = '#111';
6149 this.color = '#222';
6150 this.shape = LiteGraph.ROUND_SHAPE;
6151 this.boxcolor = '#275';
6152}

◆ mtlx_procedural3d_noise3d_vector4FA()

function mtlx_procedural3d_noise3d_vector4FA ( )

mtlx_procedural3d_noise3d_vector4FA

Library: mtlx. Category: noise3d. Type: vector4 LiteGraph id: mtlx/procedural3d/noise3d_vector4FA

Definition at line 6363 of file mtlx_stdlib.js.

6363 {
6364 this.nodedef_icon = '';
6365 this.nodedef_name = 'ND_noise3d_vector4FA';
6366 this.nodedef_type = 'vector4';
6367 this.nodedef_node = 'noise3d';
6368 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6369 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector4FA_out_genglsl.png';
6370 this.nodedef_group = 'procedural3d';
6371 this.addInput('amplitude','float');
6372 this.addProperty('amplitude', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6373 this.addInput('pivot','float');
6374 this.addProperty('pivot', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
6375 this.addInput('position','vector3');
6376 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
6377 this.addOutput('out','vector4');
6378 this.title = 'noise3d_vector4';
6379 this.desc = "MaterialX:mtlx/procedural3d/noise3d_vector4FA";
6380 this.onNodeCreated = function() {
6381 //console.log('Node created:', this);
6382}
6383 this.onRemoved = function() {
6384 //console.log('Node removed:', this);
6385 }
6386 this.onPropertyChanged = function(name, value, prev_value) {
6387 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
6388 }
6389 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
6390 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
6391 }
6392 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
6393 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
6394 }
6395 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
6396 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
6397 }
6398 this.bgcolor = '#111';
6399 this.color = '#222';
6400 this.shape = LiteGraph.ROUND_SHAPE;
6401 this.boxcolor = '#275';
6402}

◆ mtlx_procedural3d_randomcolor_float()

function mtlx_procedural3d_randomcolor_float ( )

mtlx_procedural3d_randomcolor_float

Library: mtlx. Category: randomfloat. Type: color3 LiteGraph id: mtlx/procedural3d/randomcolor_float

Definition at line 7623 of file mtlx_stdlib.js.

7623 {
7624 this.nodedef_icon = '';
7625 this.nodedef_name = 'ND_randomcolor_float';
7626 this.nodedef_type = 'color3';
7627 this.nodedef_node = 'randomcolor';
7628 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomcolor.html';
7629 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomcolor_float_out_genglsl.png';
7630 this.nodedef_group = 'procedural3d';
7631 this.addInput('in','float');
7632 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":"0.0","uimax":"10.0","uifolder":"","defaultgeomprop":""});
7633 this.addInput('huelow','float');
7634 this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7635 this.addInput('huehigh','float');
7636 this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7637 this.addInput('saturationlow','float');
7638 this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7639 this.addInput('saturationhigh','float');
7640 this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7641 this.addInput('brightnesslow','float');
7642 this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7643 this.addInput('brightnesshigh','float');
7644 this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7645 this.addInput('seed','integer');
7646 this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7647 this.addOutput('out','color3');
7648 this.title = 'randomcolor_color3';
7649 this.desc = "MaterialX:mtlx/procedural3d/randomcolor_float";
7650 this.onNodeCreated = function() {
7651 //console.log('Node created:', this);
7652}
7653 this.onRemoved = function() {
7654 //console.log('Node removed:', this);
7655 }
7656 this.onPropertyChanged = function(name, value, prev_value) {
7657 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7658 }
7659 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7660 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7661 }
7662 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7663 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7664 }
7665 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7666 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7667 }
7668 this.bgcolor = '#111';
7669 this.color = '#222';
7670 this.shape = LiteGraph.ROUND_SHAPE;
7671 this.boxcolor = '#37A';
7672}

◆ mtlx_procedural3d_randomcolor_integer()

function mtlx_procedural3d_randomcolor_integer ( )

mtlx_procedural3d_randomcolor_integer

Library: mtlx. Category: randomcolor. Type: color3 LiteGraph id: mtlx/procedural3d/randomcolor_integer

Definition at line 7683 of file mtlx_stdlib.js.

7683 {
7684 this.nodedef_icon = '';
7685 this.nodedef_name = 'ND_randomcolor_integer';
7686 this.nodedef_type = 'color3';
7687 this.nodedef_node = 'randomcolor';
7688 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomcolor.html';
7689 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomcolor_integer_out_genglsl.png';
7690 this.nodedef_group = 'procedural3d';
7691 this.addInput('in','integer');
7692 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":"0","uimax":"10","uifolder":"","defaultgeomprop":""});
7693 this.addInput('huelow','float');
7694 this.addProperty('huelow', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7695 this.addInput('huehigh','float');
7696 this.addProperty('huehigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Hue High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7697 this.addInput('saturationlow','float');
7698 this.addProperty('saturationlow', 0.825, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7699 this.addInput('saturationhigh','float');
7700 this.addProperty('saturationhigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Saturation High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7701 this.addInput('brightnesslow','float');
7702 this.addProperty('brightnesslow', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness Low","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7703 this.addInput('brightnesshigh','float');
7704 this.addProperty('brightnesshigh', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Brightness High","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
7705 this.addInput('seed','integer');
7706 this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7707 this.addOutput('out','color3');
7708 this.title = 'randomcolor_color3';
7709 this.desc = "MaterialX:mtlx/procedural3d/randomcolor_integer";
7710 this.onNodeCreated = function() {
7711 //console.log('Node created:', this);
7712}
7713 this.onRemoved = function() {
7714 //console.log('Node removed:', this);
7715 }
7716 this.onPropertyChanged = function(name, value, prev_value) {
7717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7718 }
7719 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7721 }
7722 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7724 }
7725 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7727 }
7728 this.bgcolor = '#111';
7729 this.color = '#222';
7730 this.shape = LiteGraph.ROUND_SHAPE;
7731 this.boxcolor = '#37A';
7732}

◆ mtlx_procedural3d_unifiednoise3d_float()

function mtlx_procedural3d_unifiednoise3d_float ( )

mtlx_procedural3d_unifiednoise3d_float

Library: mtlx. Category: unifiednoise2d. Type: float LiteGraph id: mtlx/procedural3d/unifiednoise3d_float

Definition at line 7453 of file mtlx_stdlib.js.

7453 {
7454 this.nodedef_icon = '';
7455 this.nodedef_name = 'ND_unifiednoise3d_float';
7456 this.nodedef_type = 'float';
7457 this.nodedef_node = 'unifiednoise3d';
7458 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unifiednoise3d.html';
7459 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unifiednoise3d_float_out_genglsl.png';
7460 this.nodedef_group = 'procedural3d';
7461 this.addInput('position','vector3');
7462 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":"Pobject"});
7463 this.addInput('freq','vector3');
7464 this.addProperty('freq', [1, 1, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Frequency","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":""});
7465 this.addInput('offset','vector3');
7466 this.addProperty('offset', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Offset","uimin":null,"uimax":null,"uifolder":"Common","defaultgeomprop":""});
7467 this.addInput('jitter','float');
7468 this.addProperty('jitter', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Jitter","uimin":"0.0","uimax":"1.0","uifolder":"Common","defaultgeomprop":""});
7469 this.addInput('outmin','float');
7470 this.addProperty('outmin', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Min","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7471 this.addInput('outmax','float');
7472 this.addProperty('outmax', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Output Max","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7473 this.addInput('clampoutput','boolean');
7474 this.addProperty('clampoutput', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"Clamp Output","uimin":null,"uimax":null,"uifolder":"Post Process","defaultgeomprop":""});
7475 this.addInput('octaves','integer');
7476 this.addProperty('octaves', 3, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Octaves","uimin":null,"uimax":null,"uifolder":"Fractal","defaultgeomprop":""});
7477 this.addInput('lacunarity','float');
7478 this.addProperty('lacunarity', 2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Lacunarity","uimin":null,"uimax":null,"uifolder":"Fractal","defaultgeomprop":""});
7479 this.addInput('diminish','float');
7480 this.addProperty('diminish', 0.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Diminish","uimin":"0.0","uimax":"1.0","uifolder":"Fractal","defaultgeomprop":""});
7481 this.addInput('type','integer');
7482 this.addProperty('type', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Noise Type","uimin":"0","uimax":"3","uifolder":"Common","defaultgeomprop":"","enum":["Perlin","Cell","Worley","Fractal"],"enumvalues":["0","1","2","3"]});
7483 this.addOutput('out','float');
7484 this.title = 'unifiednoise3d_float';
7485 this.desc = "MaterialX:mtlx/procedural3d/unifiednoise3d_float";
7486 this.onNodeCreated = function() {
7487 //console.log('Node created:', this);
7488}
7489 this.onRemoved = function() {
7490 //console.log('Node removed:', this);
7491 }
7492 this.onPropertyChanged = function(name, value, prev_value) {
7493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7494 }
7495 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7497 }
7498 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7500 }
7501 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7503 }
7504 this.bgcolor = '#111';
7505 this.color = '#222';
7506 this.shape = LiteGraph.ROUND_SHAPE;
7507 this.boxcolor = '#161';
7508}

◆ mtlx_procedural3d_worleynoise3d_float()

function mtlx_procedural3d_worleynoise3d_float ( )

mtlx_procedural3d_worleynoise3d_float

Library: mtlx. Category: worleynoise2d. Type: float LiteGraph id: mtlx/procedural3d/worleynoise3d_float

Definition at line 7243 of file mtlx_stdlib.js.

7243 {
7244 this.nodedef_icon = '';
7245 this.nodedef_name = 'ND_worleynoise3d_float';
7246 this.nodedef_type = 'float';
7247 this.nodedef_node = 'worleynoise3d';
7248 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7249 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_float_out_genglsl.png';
7250 this.nodedef_group = 'procedural3d';
7251 this.addInput('position','vector3');
7252 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
7253 this.addInput('jitter','float');
7254 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7255 this.addOutput('out','float');
7256 this.title = 'worleynoise3d_float';
7257 this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_float";
7258 this.onNodeCreated = function() {
7259 //console.log('Node created:', this);
7260}
7261 this.onRemoved = function() {
7262 //console.log('Node removed:', this);
7263 }
7264 this.onPropertyChanged = function(name, value, prev_value) {
7265 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7266 }
7267 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7268 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7269 }
7270 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7271 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7272 }
7273 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7274 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7275 }
7276 this.bgcolor = '#111';
7277 this.color = '#222';
7278 this.shape = LiteGraph.ROUND_SHAPE;
7279 this.boxcolor = '#161';
7280}

◆ mtlx_procedural3d_worleynoise3d_vector2()

function mtlx_procedural3d_worleynoise3d_vector2 ( )

mtlx_procedural3d_worleynoise3d_vector2

Library: mtlx. Category: worleynoise3d. Type: vector2 LiteGraph id: mtlx/procedural3d/worleynoise3d_vector2

Definition at line 7291 of file mtlx_stdlib.js.

7291 {
7292 this.nodedef_icon = '';
7293 this.nodedef_name = 'ND_worleynoise3d_vector2';
7294 this.nodedef_type = 'vector2';
7295 this.nodedef_node = 'worleynoise3d';
7296 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7297 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_vector2_out_genglsl.png';
7298 this.nodedef_group = 'procedural3d';
7299 this.addInput('position','vector3');
7300 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
7301 this.addInput('jitter','float');
7302 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7303 this.addOutput('out','vector2');
7304 this.title = 'worleynoise3d_vector2';
7305 this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector2";
7306 this.onNodeCreated = function() {
7307 //console.log('Node created:', this);
7308}
7309 this.onRemoved = function() {
7310 //console.log('Node removed:', this);
7311 }
7312 this.onPropertyChanged = function(name, value, prev_value) {
7313 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7314 }
7315 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7316 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7317 }
7318 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7319 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7320 }
7321 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7322 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7323 }
7324 this.bgcolor = '#111';
7325 this.color = '#222';
7326 this.shape = LiteGraph.ROUND_SHAPE;
7327 this.boxcolor = '#265';
7328}

◆ mtlx_procedural3d_worleynoise3d_vector3()

function mtlx_procedural3d_worleynoise3d_vector3 ( )

mtlx_procedural3d_worleynoise3d_vector3

Library: mtlx. Category: worleynoise3d. Type: vector3 LiteGraph id: mtlx/procedural3d/worleynoise3d_vector3

Definition at line 7339 of file mtlx_stdlib.js.

7339 {
7340 this.nodedef_icon = '';
7341 this.nodedef_name = 'ND_worleynoise3d_vector3';
7342 this.nodedef_type = 'vector3';
7343 this.nodedef_node = 'worleynoise3d';
7344 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7345 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_vector3_out_genglsl.png';
7346 this.nodedef_group = 'procedural3d';
7347 this.addInput('position','vector3');
7348 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
7349 this.addInput('jitter','float');
7350 this.addProperty('jitter', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7351 this.addOutput('out','vector3');
7352 this.title = 'worleynoise3d_vector3';
7353 this.desc = "MaterialX:mtlx/procedural3d/worleynoise3d_vector3";
7354 this.onNodeCreated = function() {
7355 //console.log('Node created:', this);
7356}
7357 this.onRemoved = function() {
7358 //console.log('Node removed:', this);
7359 }
7360 this.onPropertyChanged = function(name, value, prev_value) {
7361 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7362 }
7363 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7364 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7365 }
7366 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7367 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7368 }
7369 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7370 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7371 }
7372 this.bgcolor = '#111';
7373 this.color = '#222';
7374 this.shape = LiteGraph.ROUND_SHAPE;
7375 this.boxcolor = '#465';
7376}

◆ mtlx_procedural_constant_boolean()

function mtlx_procedural_constant_boolean ( )

mtlx_procedural_constant_boolean

Library: mtlx. Category: constant. Type: boolean LiteGraph id: mtlx/procedural/constant_boolean

Definition at line 3489 of file mtlx_stdlib.js.

3489 {
3490 this.nodedef_icon = '';
3491 this.nodedef_name = 'ND_constant_boolean';
3492 this.nodedef_type = 'boolean';
3493 this.nodedef_node = 'constant';
3494 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3495 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_boolean_out_genglsl.png';
3496 this.nodedef_group = 'procedural';
3497 this.addInput('value','boolean');
3498 this.addProperty('value', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3499 this.addOutput('out','boolean');
3500 this.title = 'constant_boolean';
3501 this.desc = "MaterialX:mtlx/procedural/constant_boolean";
3502 this.onNodeCreated = function() {
3503 //console.log('Node created:', this);
3504}
3505 this.onRemoved = function() {
3506 //console.log('Node removed:', this);
3507 }
3508 this.onPropertyChanged = function(name, value, prev_value) {
3509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3510 }
3511 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3513 }
3514 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3516 }
3517 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3519 }
3520 this.bgcolor = '#111';
3521 this.color = '#222';
3522 this.shape = LiteGraph.ROUND_SHAPE;
3523 this.boxcolor = '#060';
3524}

◆ mtlx_procedural_constant_color3()

function mtlx_procedural_constant_color3 ( )

mtlx_procedural_constant_color3

Library: mtlx. Category: constant. Type: color3 LiteGraph id: mtlx/procedural/constant_color3

Definition at line 3259 of file mtlx_stdlib.js.

3259 {
3260 this.nodedef_icon = '';
3261 this.nodedef_name = 'ND_constant_color3';
3262 this.nodedef_type = 'color3';
3263 this.nodedef_node = 'constant';
3264 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3265 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_color3_out_genglsl.png';
3266 this.nodedef_group = 'procedural';
3267 this.addInput('value','color3');
3268 this.addProperty('value', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3269 this.addOutput('out','color3');
3270 this.title = 'constant_color3';
3271 this.desc = "MaterialX:mtlx/procedural/constant_color3";
3272 this.onNodeCreated = function() {
3273 //console.log('Node created:', this);
3274}
3275 this.onRemoved = function() {
3276 //console.log('Node removed:', this);
3277 }
3278 this.onPropertyChanged = function(name, value, prev_value) {
3279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3280 }
3281 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3283 }
3284 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3286 }
3287 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3289 }
3290 this.bgcolor = '#111';
3291 this.color = '#222';
3292 this.shape = LiteGraph.ROUND_SHAPE;
3293 this.boxcolor = '#37A';
3294}

◆ mtlx_procedural_constant_color4()

function mtlx_procedural_constant_color4 ( )

mtlx_procedural_constant_color4

Library: mtlx. Category: constant. Type: color4 LiteGraph id: mtlx/procedural/constant_color4

Definition at line 3305 of file mtlx_stdlib.js.

3305 {
3306 this.nodedef_icon = '';
3307 this.nodedef_name = 'ND_constant_color4';
3308 this.nodedef_type = 'color4';
3309 this.nodedef_node = 'constant';
3310 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3311 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_color4_out_genglsl.png';
3312 this.nodedef_group = 'procedural';
3313 this.addInput('value','color4');
3314 this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3315 this.addOutput('out','color4');
3316 this.title = 'constant_color4';
3317 this.desc = "MaterialX:mtlx/procedural/constant_color4";
3318 this.onNodeCreated = function() {
3319 //console.log('Node created:', this);
3320}
3321 this.onRemoved = function() {
3322 //console.log('Node removed:', this);
3323 }
3324 this.onPropertyChanged = function(name, value, prev_value) {
3325 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3326 }
3327 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3328 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3329 }
3330 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3331 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3332 }
3333 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3334 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3335 }
3336 this.bgcolor = '#111';
3337 this.color = '#222';
3338 this.shape = LiteGraph.ROUND_SHAPE;
3339 this.boxcolor = '#69A';
3340}

◆ mtlx_procedural_constant_filename()

function mtlx_procedural_constant_filename ( )

mtlx_procedural_constant_filename

Library: mtlx. Category: constant. Type: filename LiteGraph id: mtlx/procedural/constant_filename

Definition at line 3719 of file mtlx_stdlib.js.

3719 {
3720 this.nodedef_icon = '';
3721 this.nodedef_name = 'ND_constant_filename';
3722 this.nodedef_type = 'filename';
3723 this.nodedef_node = 'constant';
3724 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3725 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_filename_out_genglsl.png';
3726 this.nodedef_group = 'procedural';
3727 this.addInput('value','filename');
3728 this.addProperty('value', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3729 this.addOutput('out','filename');
3730 this.title = 'constant_filename';
3731 this.desc = "MaterialX:mtlx/procedural/constant_filename";
3732 this.onNodeCreated = function() {
3733 //console.log('Node created:', this);
3734}
3735 this.onRemoved = function() {
3736 //console.log('Node removed:', this);
3737 }
3738 this.onPropertyChanged = function(name, value, prev_value) {
3739 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3740 }
3741 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3742 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3743 }
3744 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3745 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3746 }
3747 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3748 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3749 }
3750 this.bgcolor = '#111';
3751 this.color = '#222';
3752 this.shape = LiteGraph.ROUND_SHAPE;
3753 this.boxcolor = '#888';
3754}

◆ mtlx_procedural_constant_float()

function mtlx_procedural_constant_float ( )

mtlx_procedural_constant_float

Library: mtlx. Category: triplanarprojection. Type: float LiteGraph id: mtlx/procedural/constant_float

Definition at line 3213 of file mtlx_stdlib.js.

3213 {
3214 this.nodedef_icon = '';
3215 this.nodedef_name = 'ND_constant_float';
3216 this.nodedef_type = 'float';
3217 this.nodedef_node = 'constant';
3218 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3219 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_float_out_genglsl.png';
3220 this.nodedef_group = 'procedural';
3221 this.addInput('value','float');
3222 this.addProperty('value', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3223 this.addOutput('out','float');
3224 this.title = 'constant_float';
3225 this.desc = "MaterialX:mtlx/procedural/constant_float";
3226 this.onNodeCreated = function() {
3227 //console.log('Node created:', this);
3228}
3229 this.onRemoved = function() {
3230 //console.log('Node removed:', this);
3231 }
3232 this.onPropertyChanged = function(name, value, prev_value) {
3233 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3234 }
3235 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3236 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3237 }
3238 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3239 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3240 }
3241 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3242 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3243 }
3244 this.bgcolor = '#111';
3245 this.color = '#222';
3246 this.shape = LiteGraph.ROUND_SHAPE;
3247 this.boxcolor = '#161';
3248}

◆ mtlx_procedural_constant_integer()

function mtlx_procedural_constant_integer ( )

mtlx_procedural_constant_integer

Library: mtlx. Category: constant. Type: integer LiteGraph id: mtlx/procedural/constant_integer

Definition at line 3535 of file mtlx_stdlib.js.

3535 {
3536 this.nodedef_icon = '';
3537 this.nodedef_name = 'ND_constant_integer';
3538 this.nodedef_type = 'integer';
3539 this.nodedef_node = 'constant';
3540 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3541 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_integer_out_genglsl.png';
3542 this.nodedef_group = 'procedural';
3543 this.addInput('value','integer');
3544 this.addProperty('value', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3545 this.addOutput('out','integer');
3546 this.title = 'constant_integer';
3547 this.desc = "MaterialX:mtlx/procedural/constant_integer";
3548 this.onNodeCreated = function() {
3549 //console.log('Node created:', this);
3550}
3551 this.onRemoved = function() {
3552 //console.log('Node removed:', this);
3553 }
3554 this.onPropertyChanged = function(name, value, prev_value) {
3555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3556 }
3557 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3559 }
3560 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3562 }
3563 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3565 }
3566 this.bgcolor = '#111';
3567 this.color = '#222';
3568 this.shape = LiteGraph.ROUND_SHAPE;
3569 this.boxcolor = '#A32';
3570}

◆ mtlx_procedural_constant_matrix33()

function mtlx_procedural_constant_matrix33 ( )

mtlx_procedural_constant_matrix33

Library: mtlx. Category: constant. Type: matrix33 LiteGraph id: mtlx/procedural/constant_matrix33

Definition at line 3581 of file mtlx_stdlib.js.

3581 {
3582 this.nodedef_icon = '';
3583 this.nodedef_name = 'ND_constant_matrix33';
3584 this.nodedef_type = 'matrix33';
3585 this.nodedef_node = 'constant';
3586 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3587 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_matrix33_out_genglsl.png';
3588 this.nodedef_group = 'procedural';
3589 this.addInput('value','matrix33');
3590 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":"","defaultgeomprop":""});
3591 this.addOutput('out','matrix33');
3592 this.title = 'constant_matrix33';
3593 this.desc = "MaterialX:mtlx/procedural/constant_matrix33";
3594 this.onNodeCreated = function() {
3595 //console.log('Node created:', this);
3596}
3597 this.onRemoved = function() {
3598 //console.log('Node removed:', this);
3599 }
3600 this.onPropertyChanged = function(name, value, prev_value) {
3601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3602 }
3603 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3605 }
3606 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3608 }
3609 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3611 }
3612 this.bgcolor = '#111';
3613 this.color = '#222';
3614 this.shape = LiteGraph.ROUND_SHAPE;
3615 this.boxcolor = '#333';
3616}

◆ mtlx_procedural_constant_matrix44()

function mtlx_procedural_constant_matrix44 ( )

mtlx_procedural_constant_matrix44

Library: mtlx. Category: constant. Type: matrix44 LiteGraph id: mtlx/procedural/constant_matrix44

Definition at line 3627 of file mtlx_stdlib.js.

3627 {
3628 this.nodedef_icon = '';
3629 this.nodedef_name = 'ND_constant_matrix44';
3630 this.nodedef_type = 'matrix44';
3631 this.nodedef_node = 'constant';
3632 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3633 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_matrix44_out_genglsl.png';
3634 this.nodedef_group = 'procedural';
3635 this.addInput('value','matrix44');
3636 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":"","defaultgeomprop":""});
3637 this.addOutput('out','matrix44');
3638 this.title = 'constant_matrix44';
3639 this.desc = "MaterialX:mtlx/procedural/constant_matrix44";
3640 this.onNodeCreated = function() {
3641 //console.log('Node created:', this);
3642}
3643 this.onRemoved = function() {
3644 //console.log('Node removed:', this);
3645 }
3646 this.onPropertyChanged = function(name, value, prev_value) {
3647 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3648 }
3649 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3650 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3651 }
3652 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3653 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3654 }
3655 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3656 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3657 }
3658 this.bgcolor = '#111';
3659 this.color = '#222';
3660 this.shape = LiteGraph.ROUND_SHAPE;
3661 this.boxcolor = '#444';
3662}

◆ mtlx_procedural_constant_string()

function mtlx_procedural_constant_string ( )

mtlx_procedural_constant_string

Library: mtlx. Category: constant. Type: string LiteGraph id: mtlx/procedural/constant_string

Definition at line 3673 of file mtlx_stdlib.js.

3673 {
3674 this.nodedef_icon = '';
3675 this.nodedef_name = 'ND_constant_string';
3676 this.nodedef_type = 'string';
3677 this.nodedef_node = 'constant';
3678 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3679 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_string_out_genglsl.png';
3680 this.nodedef_group = 'procedural';
3681 this.addInput('value','string');
3682 this.addProperty('value', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3683 this.addOutput('out','string');
3684 this.title = 'constant_string';
3685 this.desc = "MaterialX:mtlx/procedural/constant_string";
3686 this.onNodeCreated = function() {
3687 //console.log('Node created:', this);
3688}
3689 this.onRemoved = function() {
3690 //console.log('Node removed:', this);
3691 }
3692 this.onPropertyChanged = function(name, value, prev_value) {
3693 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3694 }
3695 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3696 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3697 }
3698 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3699 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3700 }
3701 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3702 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3703 }
3704 this.bgcolor = '#111';
3705 this.color = '#222';
3706 this.shape = LiteGraph.ROUND_SHAPE;
3707 this.boxcolor = '#395';
3708}

◆ mtlx_procedural_constant_vector2()

function mtlx_procedural_constant_vector2 ( )

mtlx_procedural_constant_vector2

Library: mtlx. Category: constant. Type: vector2 LiteGraph id: mtlx/procedural/constant_vector2

Definition at line 3351 of file mtlx_stdlib.js.

3351 {
3352 this.nodedef_icon = '';
3353 this.nodedef_name = 'ND_constant_vector2';
3354 this.nodedef_type = 'vector2';
3355 this.nodedef_node = 'constant';
3356 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3357 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector2_out_genglsl.png';
3358 this.nodedef_group = 'procedural';
3359 this.addInput('value','vector2');
3360 this.addProperty('value', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3361 this.addOutput('out','vector2');
3362 this.title = 'constant_vector2';
3363 this.desc = "MaterialX:mtlx/procedural/constant_vector2";
3364 this.onNodeCreated = function() {
3365 //console.log('Node created:', this);
3366}
3367 this.onRemoved = function() {
3368 //console.log('Node removed:', this);
3369 }
3370 this.onPropertyChanged = function(name, value, prev_value) {
3371 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3372 }
3373 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3374 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3375 }
3376 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3377 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3378 }
3379 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3380 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3381 }
3382 this.bgcolor = '#111';
3383 this.color = '#222';
3384 this.shape = LiteGraph.ROUND_SHAPE;
3385 this.boxcolor = '#265';
3386}

◆ mtlx_procedural_constant_vector3()

function mtlx_procedural_constant_vector3 ( )

mtlx_procedural_constant_vector3

Library: mtlx. Category: constant. Type: vector3 LiteGraph id: mtlx/procedural/constant_vector3

Definition at line 3397 of file mtlx_stdlib.js.

3397 {
3398 this.nodedef_icon = '';
3399 this.nodedef_name = 'ND_constant_vector3';
3400 this.nodedef_type = 'vector3';
3401 this.nodedef_node = 'constant';
3402 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3403 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector3_out_genglsl.png';
3404 this.nodedef_group = 'procedural';
3405 this.addInput('value','vector3');
3406 this.addProperty('value', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3407 this.addOutput('out','vector3');
3408 this.title = 'constant_vector3';
3409 this.desc = "MaterialX:mtlx/procedural/constant_vector3";
3410 this.onNodeCreated = function() {
3411 //console.log('Node created:', this);
3412}
3413 this.onRemoved = function() {
3414 //console.log('Node removed:', this);
3415 }
3416 this.onPropertyChanged = function(name, value, prev_value) {
3417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3418 }
3419 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3421 }
3422 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3424 }
3425 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3427 }
3428 this.bgcolor = '#111';
3429 this.color = '#222';
3430 this.shape = LiteGraph.ROUND_SHAPE;
3431 this.boxcolor = '#465';
3432}

◆ mtlx_procedural_constant_vector4()

function mtlx_procedural_constant_vector4 ( )

mtlx_procedural_constant_vector4

Library: mtlx. Category: constant. Type: vector4 LiteGraph id: mtlx/procedural/constant_vector4

Definition at line 3443 of file mtlx_stdlib.js.

3443 {
3444 this.nodedef_icon = '';
3445 this.nodedef_name = 'ND_constant_vector4';
3446 this.nodedef_type = 'vector4';
3447 this.nodedef_node = 'constant';
3448 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3449 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector4_out_genglsl.png';
3450 this.nodedef_group = 'procedural';
3451 this.addInput('value','vector4');
3452 this.addProperty('value', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3453 this.addOutput('out','vector4');
3454 this.title = 'constant_vector4';
3455 this.desc = "MaterialX:mtlx/procedural/constant_vector4";
3456 this.onNodeCreated = function() {
3457 //console.log('Node created:', this);
3458}
3459 this.onRemoved = function() {
3460 //console.log('Node removed:', this);
3461 }
3462 this.onPropertyChanged = function(name, value, prev_value) {
3463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3464 }
3465 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3467 }
3468 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3470 }
3471 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3473 }
3474 this.bgcolor = '#111';
3475 this.color = '#222';
3476 this.shape = LiteGraph.ROUND_SHAPE;
3477 this.boxcolor = '#275';
3478}

◆ mtlx_procedural_randomfloat_float()

function mtlx_procedural_randomfloat_float ( )

mtlx_procedural_randomfloat_float

Library: mtlx. Category: unifiednoise3d. Type: float LiteGraph id: mtlx/procedural/randomfloat_float

Definition at line 7519 of file mtlx_stdlib.js.

7519 {
7520 this.nodedef_icon = '';
7521 this.nodedef_name = 'ND_randomfloat_float';
7522 this.nodedef_type = 'float';
7523 this.nodedef_node = 'randomfloat';
7524 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomfloat.html';
7525 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomfloat_float_out_genglsl.png';
7526 this.nodedef_group = 'procedural';
7527 this.addInput('in','float');
7528 this.addProperty('in', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7529 this.addInput('min','float');
7530 this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7531 this.addInput('max','float');
7532 this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7533 this.addInput('seed','integer');
7534 this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7535 this.addOutput('out','float');
7536 this.title = 'randomfloat_float';
7537 this.desc = "MaterialX:mtlx/procedural/randomfloat_float";
7538 this.onNodeCreated = function() {
7539 //console.log('Node created:', this);
7540}
7541 this.onRemoved = function() {
7542 //console.log('Node removed:', this);
7543 }
7544 this.onPropertyChanged = function(name, value, prev_value) {
7545 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7546 }
7547 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7548 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7549 }
7550 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7551 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7552 }
7553 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7554 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7555 }
7556 this.bgcolor = '#111';
7557 this.color = '#222';
7558 this.shape = LiteGraph.ROUND_SHAPE;
7559 this.boxcolor = '#161';
7560}

◆ mtlx_procedural_randomfloat_integer()

function mtlx_procedural_randomfloat_integer ( )

mtlx_procedural_randomfloat_integer

Library: mtlx. Category: randomfloat. Type: float LiteGraph id: mtlx/procedural/randomfloat_integer

Definition at line 7571 of file mtlx_stdlib.js.

7571 {
7572 this.nodedef_icon = '';
7573 this.nodedef_name = 'ND_randomfloat_integer';
7574 this.nodedef_type = 'float';
7575 this.nodedef_node = 'randomfloat';
7576 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomfloat.html';
7577 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomfloat_integer_out_genglsl.png';
7578 this.nodedef_group = 'procedural';
7579 this.addInput('in','integer');
7580 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Input","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7581 this.addInput('min','float');
7582 this.addProperty('min', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Minimum","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7583 this.addInput('max','float');
7584 this.addProperty('max', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Maximum","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7585 this.addInput('seed','integer');
7586 this.addProperty('seed', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Seed","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
7587 this.addOutput('out','float');
7588 this.title = 'randomfloat_float';
7589 this.desc = "MaterialX:mtlx/procedural/randomfloat_integer";
7590 this.onNodeCreated = function() {
7591 //console.log('Node created:', this);
7592}
7593 this.onRemoved = function() {
7594 //console.log('Node removed:', this);
7595 }
7596 this.onPropertyChanged = function(name, value, prev_value) {
7597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
7598 }
7599 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
7600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
7601 }
7602 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
7603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
7604 }
7605 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
7606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
7607 }
7608 this.bgcolor = '#111';
7609 this.color = '#222';
7610 this.shape = LiteGraph.ROUND_SHAPE;
7611 this.boxcolor = '#161';
7612}

◆ mtlx_shader_convert_boolean_surfaceshader()

function mtlx_shader_convert_boolean_surfaceshader ( )

mtlx_shader_convert_boolean_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_boolean_surfaceshader

Definition at line 33141 of file mtlx_stdlib.js.

33141 {
33142 this.nodedef_icon = '';
33143 this.nodedef_name = 'ND_convert_boolean_surfaceshader';
33144 this.nodedef_type = 'surfaceshader';
33145 this.nodedef_node = 'convert';
33146 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33147 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_surfaceshader_out_genglsl.png';
33148 this.nodedef_group = 'shader';
33149 this.addInput('in','boolean');
33150 this.addProperty('in', true, 'boolean',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33151 this.addOutput('out','surfaceshader');
33152 this.title = 'convert_surfaceshader';
33153 this.desc = "MaterialX:mtlx/shader/convert_boolean_surfaceshader";
33154 this.onNodeCreated = function() {
33155 //console.log('Node created:', this);
33156}
33157 this.onRemoved = function() {
33158 //console.log('Node removed:', this);
33159 }
33160 this.onPropertyChanged = function(name, value, prev_value) {
33161 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33162 }
33163 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33164 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33165 }
33166 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33167 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33168 }
33169 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33170 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33171 }
33172 this.bgcolor = '#111';
33173 this.color = '#222';
33174 this.shape = LiteGraph.ROUND_SHAPE;
33175}

◆ mtlx_shader_convert_color3_surfaceshader()

function mtlx_shader_convert_color3_surfaceshader ( )

mtlx_shader_convert_color3_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_color3_surfaceshader

Definition at line 32826 of file mtlx_stdlib.js.

32826 {
32827 this.nodedef_icon = '';
32828 this.nodedef_name = 'ND_convert_color3_surfaceshader';
32829 this.nodedef_type = 'surfaceshader';
32830 this.nodedef_node = 'convert';
32831 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32832 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_surfaceshader_out_genglsl.png';
32833 this.nodedef_group = 'shader';
32834 this.addInput('in','color3');
32835 this.addProperty('in', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32836 this.addOutput('out','surfaceshader');
32837 this.title = 'convert_surfaceshader';
32838 this.desc = "MaterialX:mtlx/shader/convert_color3_surfaceshader";
32839 this.onNodeCreated = function() {
32840 //console.log('Node created:', this);
32841}
32842 this.onRemoved = function() {
32843 //console.log('Node removed:', this);
32844 }
32845 this.onPropertyChanged = function(name, value, prev_value) {
32846 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32847 }
32848 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32849 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32850 }
32851 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32852 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32853 }
32854 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32855 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32856 }
32857 this.bgcolor = '#111';
32858 this.color = '#222';
32859 this.shape = LiteGraph.ROUND_SHAPE;
32860}

◆ mtlx_shader_convert_color4_surfaceshader()

function mtlx_shader_convert_color4_surfaceshader ( )

mtlx_shader_convert_color4_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_color4_surfaceshader

Definition at line 32871 of file mtlx_stdlib.js.

32871 {
32872 this.nodedef_icon = '';
32873 this.nodedef_name = 'ND_convert_color4_surfaceshader';
32874 this.nodedef_type = 'surfaceshader';
32875 this.nodedef_node = 'convert';
32876 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32877 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_surfaceshader_out_genglsl.png';
32878 this.nodedef_group = 'shader';
32879 this.addInput('in','color4');
32880 this.addProperty('in', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32881 this.addOutput('out','surfaceshader');
32882 this.title = 'convert_surfaceshader';
32883 this.desc = "MaterialX:mtlx/shader/convert_color4_surfaceshader";
32884 this.onNodeCreated = function() {
32885 //console.log('Node created:', this);
32886}
32887 this.onRemoved = function() {
32888 //console.log('Node removed:', this);
32889 }
32890 this.onPropertyChanged = function(name, value, prev_value) {
32891 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32892 }
32893 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32894 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32895 }
32896 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32897 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32898 }
32899 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32900 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32901 }
32902 this.bgcolor = '#111';
32903 this.color = '#222';
32904 this.shape = LiteGraph.ROUND_SHAPE;
32905}

◆ mtlx_shader_convert_float_surfaceshader()

function mtlx_shader_convert_float_surfaceshader ( )

mtlx_shader_convert_float_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_float_surfaceshader

Definition at line 32916 of file mtlx_stdlib.js.

32916 {
32917 this.nodedef_icon = '';
32918 this.nodedef_name = 'ND_convert_float_surfaceshader';
32919 this.nodedef_type = 'surfaceshader';
32920 this.nodedef_node = 'convert';
32921 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32922 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_surfaceshader_out_genglsl.png';
32923 this.nodedef_group = 'shader';
32924 this.addInput('in','float');
32925 this.addProperty('in', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32926 this.addOutput('out','surfaceshader');
32927 this.title = 'convert_surfaceshader';
32928 this.desc = "MaterialX:mtlx/shader/convert_float_surfaceshader";
32929 this.onNodeCreated = function() {
32930 //console.log('Node created:', this);
32931}
32932 this.onRemoved = function() {
32933 //console.log('Node removed:', this);
32934 }
32935 this.onPropertyChanged = function(name, value, prev_value) {
32936 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32937 }
32938 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32939 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32940 }
32941 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32942 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32943 }
32944 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32945 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32946 }
32947 this.bgcolor = '#111';
32948 this.color = '#222';
32949 this.shape = LiteGraph.ROUND_SHAPE;
32950}

◆ mtlx_shader_convert_integer_surfaceshader()

function mtlx_shader_convert_integer_surfaceshader ( )

mtlx_shader_convert_integer_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_integer_surfaceshader

Definition at line 33096 of file mtlx_stdlib.js.

33096 {
33097 this.nodedef_icon = '';
33098 this.nodedef_name = 'ND_convert_integer_surfaceshader';
33099 this.nodedef_type = 'surfaceshader';
33100 this.nodedef_node = 'convert';
33101 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33102 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_surfaceshader_out_genglsl.png';
33103 this.nodedef_group = 'shader';
33104 this.addInput('in','integer');
33105 this.addProperty('in', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33106 this.addOutput('out','surfaceshader');
33107 this.title = 'convert_surfaceshader';
33108 this.desc = "MaterialX:mtlx/shader/convert_integer_surfaceshader";
33109 this.onNodeCreated = function() {
33110 //console.log('Node created:', this);
33111}
33112 this.onRemoved = function() {
33113 //console.log('Node removed:', this);
33114 }
33115 this.onPropertyChanged = function(name, value, prev_value) {
33116 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33117 }
33118 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33119 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33120 }
33121 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33122 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33123 }
33124 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33125 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33126 }
33127 this.bgcolor = '#111';
33128 this.color = '#222';
33129 this.shape = LiteGraph.ROUND_SHAPE;
33130}

◆ mtlx_shader_convert_vector2_surfaceshader()

function mtlx_shader_convert_vector2_surfaceshader ( )

mtlx_shader_convert_vector2_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_vector2_surfaceshader

Definition at line 32961 of file mtlx_stdlib.js.

32961 {
32962 this.nodedef_icon = '';
32963 this.nodedef_name = 'ND_convert_vector2_surfaceshader';
32964 this.nodedef_type = 'surfaceshader';
32965 this.nodedef_node = 'convert';
32966 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32967 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_surfaceshader_out_genglsl.png';
32968 this.nodedef_group = 'shader';
32969 this.addInput('in','vector2');
32970 this.addProperty('in', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
32971 this.addOutput('out','surfaceshader');
32972 this.title = 'convert_surfaceshader';
32973 this.desc = "MaterialX:mtlx/shader/convert_vector2_surfaceshader";
32974 this.onNodeCreated = function() {
32975 //console.log('Node created:', this);
32976}
32977 this.onRemoved = function() {
32978 //console.log('Node removed:', this);
32979 }
32980 this.onPropertyChanged = function(name, value, prev_value) {
32981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
32982 }
32983 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
32984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
32985 }
32986 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
32987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
32988 }
32989 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
32990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
32991 }
32992 this.bgcolor = '#111';
32993 this.color = '#222';
32994 this.shape = LiteGraph.ROUND_SHAPE;
32995}

◆ mtlx_shader_convert_vector3_surfaceshader()

function mtlx_shader_convert_vector3_surfaceshader ( )

mtlx_shader_convert_vector3_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_vector3_surfaceshader

Definition at line 33006 of file mtlx_stdlib.js.

33006 {
33007 this.nodedef_icon = '';
33008 this.nodedef_name = 'ND_convert_vector3_surfaceshader';
33009 this.nodedef_type = 'surfaceshader';
33010 this.nodedef_node = 'convert';
33011 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33012 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_surfaceshader_out_genglsl.png';
33013 this.nodedef_group = 'shader';
33014 this.addInput('in','vector3');
33015 this.addProperty('in', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33016 this.addOutput('out','surfaceshader');
33017 this.title = 'convert_surfaceshader';
33018 this.desc = "MaterialX:mtlx/shader/convert_vector3_surfaceshader";
33019 this.onNodeCreated = function() {
33020 //console.log('Node created:', this);
33021}
33022 this.onRemoved = function() {
33023 //console.log('Node removed:', this);
33024 }
33025 this.onPropertyChanged = function(name, value, prev_value) {
33026 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33027 }
33028 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33029 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33030 }
33031 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33032 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33033 }
33034 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33035 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33036 }
33037 this.bgcolor = '#111';
33038 this.color = '#222';
33039 this.shape = LiteGraph.ROUND_SHAPE;
33040}

◆ mtlx_shader_convert_vector4_surfaceshader()

function mtlx_shader_convert_vector4_surfaceshader ( )

mtlx_shader_convert_vector4_surfaceshader

Library: mtlx. Category: convert. Type: surfaceshader LiteGraph id: mtlx/shader/convert_vector4_surfaceshader

Definition at line 33051 of file mtlx_stdlib.js.

33051 {
33052 this.nodedef_icon = '';
33053 this.nodedef_name = 'ND_convert_vector4_surfaceshader';
33054 this.nodedef_type = 'surfaceshader';
33055 this.nodedef_node = 'convert';
33056 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33057 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_surfaceshader_out_genglsl.png';
33058 this.nodedef_group = 'shader';
33059 this.addInput('in','vector4');
33060 this.addProperty('in', [0, 0, 0, 0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
33061 this.addOutput('out','surfaceshader');
33062 this.title = 'convert_surfaceshader';
33063 this.desc = "MaterialX:mtlx/shader/convert_vector4_surfaceshader";
33064 this.onNodeCreated = function() {
33065 //console.log('Node created:', this);
33066}
33067 this.onRemoved = function() {
33068 //console.log('Node removed:', this);
33069 }
33070 this.onPropertyChanged = function(name, value, prev_value) {
33071 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
33072 }
33073 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
33074 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
33075 }
33076 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
33077 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
33078 }
33079 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
33080 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
33081 }
33082 this.bgcolor = '#111';
33083 this.color = '#222';
33084 this.shape = LiteGraph.ROUND_SHAPE;
33085}

◆ mtlx_shader_surface_unlit()

function mtlx_shader_surface_unlit ( )

mtlx_shader_surface_unlit

Library: mtlx. Category: volumematerial. Type: surfaceshader LiteGraph id: mtlx/shader/surface_unlit

Definition at line 1936 of file mtlx_stdlib.js.

1936 {
1937 this.nodedef_icon = '';
1938 this.nodedef_name = 'ND_surface_unlit';
1939 this.nodedef_type = 'surfaceshader';
1940 this.nodedef_node = 'surface_unlit';
1941 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface_unlit.html';
1942 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surface_unlit_out_genglsl.png';
1943 this.nodedef_group = 'shader';
1944 this.addInput('emission','float');
1945 this.addProperty('emission', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1946 this.addInput('emission_color','color3');
1947 this.addProperty('emission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1948 this.addInput('transmission','float');
1949 this.addProperty('transmission', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1950 this.addInput('transmission_color','color3');
1951 this.addProperty('transmission_color', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1952 this.addInput('opacity','float');
1953 this.addProperty('opacity', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1954 this.addOutput('out','surfaceshader');
1955 this.title = 'surface_unlit_surfaceshader';
1956 this.desc = "MaterialX:mtlx/shader/surface_unlit";
1957 this.onNodeCreated = function() {
1958 //console.log('Node created:', this);
1959}
1960 this.onRemoved = function() {
1961 //console.log('Node removed:', this);
1962 }
1963 this.onPropertyChanged = function(name, value, prev_value) {
1964 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
1965 }
1966 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
1967 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
1968 }
1969 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
1970 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
1971 }
1972 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
1973 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
1974 }
1975 this.bgcolor = '#111';
1976 this.color = '#232';
1977 this.shape = LiteGraph.ROUND_SHAPE;
1978}

◆ mtlx_texture2d_gltf_colorimage()

function mtlx_texture2d_gltf_colorimage ( )

mtlx_texture2d_gltf_colorimage

Library: mtlx. Category: gltf_pbr. Type: multioutput LiteGraph id: mtlx/texture2d/gltf_colorimage

Definition at line 37819 of file mtlx_stdlib.js.

37819 {
37820 this.nodedef_icon = './Icons/gltf_logo.webp';
37821 this.nodedef_name = 'ND_gltf_colorimage';
37822 this.nodedef_type = 'multioutput';
37823 this.nodedef_node = 'gltf_colorimage';
37824 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_colorimage.html';
37825 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_colorimage_outcolor_genglsl.png';
37826 this.nodedef_group = 'texture2d';
37827 this.addInput('file','filename');
37828 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37829 this.addInput('default','color4');
37830 this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37831 this.addInput('texcoord','vector2');
37832 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"UV0"});
37833 this.addInput('pivot','vector2');
37834 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37835 this.addInput('scale','vector2');
37836 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37837 this.addInput('rotate','float');
37838 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"Image","defaultgeomprop":""});
37839 this.addInput('offset','vector2');
37840 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37841 this.addInput('operationorder','integer');
37842 this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
37843 this.addInput('uaddressmode','string');
37844 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37845 this.addInput('vaddressmode','string');
37846 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37847 this.addInput('filtertype','string');
37848 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["closest","linear","cubic"]});
37849 this.addInput('color','color4');
37850 this.addProperty('color', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Color","defaultgeomprop":""});
37851 this.addInput('geomcolor','color4');
37852 this.addProperty('geomcolor', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Geometry Color","uimin":null,"uimax":null,"uifolder":"Color","defaultgeomprop":""});
37853 this.addOutput('outcolor','color3');
37854 this.addOutput('outa','float');
37855 this.title = 'gltf_colorimage_multioutput';
37856 this.desc = "MaterialX:mtlx/texture2d/gltf_colorimage";
37857 this.onNodeCreated = function() {
37858 //console.log('Node created:', this);
37859}
37860 this.onRemoved = function() {
37861 //console.log('Node removed:', this);
37862 }
37863 this.onPropertyChanged = function(name, value, prev_value) {
37864 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37865 }
37866 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37867 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37868 }
37869 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37870 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37871 }
37872 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37873 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37874 }
37875 this.bgcolor = '#111';
37876 this.color = '#222';
37877 this.shape = LiteGraph.ROUND_SHAPE;
37878}

◆ mtlx_texture2d_gltf_image_color3_color3_1_0()

function mtlx_texture2d_gltf_image_color3_color3_1_0 ( )

mtlx_texture2d_gltf_image_color3_color3_1_0

Library: mtlx. Category: gltf_colorimage. Type: color3 LiteGraph id: mtlx/texture2d/gltf_image_color3_color3_1_0

Definition at line 37889 of file mtlx_stdlib.js.

37889 {
37890 this.nodedef_icon = './Icons/gltf_logo.webp';
37891 this.nodedef_name = 'ND_gltf_image_color3_color3_1_0';
37892 this.nodedef_type = 'color3';
37893 this.nodedef_node = 'gltf_image';
37894 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
37895 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_color3_color3_1_0_out_genglsl.png';
37896 this.nodedef_group = 'texture2d';
37897 this.addInput('file','filename');
37898 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37899 this.addInput('factor','color3');
37900 this.addProperty('factor', [1,1,1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37901 this.addInput('default','color3');
37902 this.addProperty('default', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37903 this.addInput('texcoord','vector2');
37904 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
37905 this.addInput('pivot','vector2');
37906 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37907 this.addInput('scale','vector2');
37908 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37909 this.addInput('rotate','float');
37910 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"","defaultgeomprop":""});
37911 this.addInput('offset','vector2');
37912 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37913 this.addInput('operationorder','integer');
37914 this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37915 this.addInput('uaddressmode','string');
37916 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37917 this.addInput('vaddressmode','string');
37918 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37919 this.addInput('filtertype','string');
37920 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
37921 this.addOutput('out','color3');
37922 this.title = 'gltf_image_color3';
37923 this.desc = "MaterialX:mtlx/texture2d/gltf_image_color3_color3_1_0";
37924 this.onNodeCreated = function() {
37925 //console.log('Node created:', this);
37926}
37927 this.onRemoved = function() {
37928 //console.log('Node removed:', this);
37929 }
37930 this.onPropertyChanged = function(name, value, prev_value) {
37931 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
37932 }
37933 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
37934 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
37935 }
37936 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
37937 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
37938 }
37939 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
37940 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
37941 }
37942 this.bgcolor = '#111';
37943 this.color = '#222';
37944 this.shape = LiteGraph.ROUND_SHAPE;
37945 this.boxcolor = '#37A';
37946}

◆ mtlx_texture2d_gltf_image_color4_color4_1_0()

function mtlx_texture2d_gltf_image_color4_color4_1_0 ( )

mtlx_texture2d_gltf_image_color4_color4_1_0

Library: mtlx. Category: gltf_image. Type: color4 LiteGraph id: mtlx/texture2d/gltf_image_color4_color4_1_0

Definition at line 37957 of file mtlx_stdlib.js.

37957 {
37958 this.nodedef_icon = './Icons/gltf_logo.webp';
37959 this.nodedef_name = 'ND_gltf_image_color4_color4_1_0';
37960 this.nodedef_type = 'color4';
37961 this.nodedef_node = 'gltf_image';
37962 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
37963 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_color4_color4_1_0_out_genglsl.png';
37964 this.nodedef_group = 'texture2d';
37965 this.addInput('file','filename');
37966 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37967 this.addInput('factor','color4');
37968 this.addProperty('factor', [1,1,1,1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37969 this.addInput('default','color4');
37970 this.addProperty('default', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37971 this.addInput('texcoord','vector2');
37972 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
37973 this.addInput('pivot','vector2');
37974 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37975 this.addInput('scale','vector2');
37976 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37977 this.addInput('rotate','float');
37978 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"","defaultgeomprop":""});
37979 this.addInput('offset','vector2');
37980 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37981 this.addInput('operationorder','integer');
37982 this.addProperty('operationorder', 1, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
37983 this.addInput('uaddressmode','string');
37984 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37985 this.addInput('vaddressmode','string');
37986 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
37987 this.addInput('filtertype','string');
37988 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
37989 this.addOutput('out','color4');
37990 this.title = 'gltf_image_color4';
37991 this.desc = "MaterialX:mtlx/texture2d/gltf_image_color4_color4_1_0";
37992 this.onNodeCreated = function() {
37993 //console.log('Node created:', this);
37994}
37995 this.onRemoved = function() {
37996 //console.log('Node removed:', this);
37997 }
37998 this.onPropertyChanged = function(name, value, prev_value) {
37999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38000 }
38001 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38003 }
38004 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38006 }
38007 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38009 }
38010 this.bgcolor = '#111';
38011 this.color = '#222';
38012 this.shape = LiteGraph.ROUND_SHAPE;
38013 this.boxcolor = '#69A';
38014}

◆ mtlx_texture2d_gltf_image_float_float_1_0()

function mtlx_texture2d_gltf_image_float_float_1_0 ( )

mtlx_texture2d_gltf_image_float_float_1_0

Library: mtlx. Category: gltf_image. Type: float LiteGraph id: mtlx/texture2d/gltf_image_float_float_1_0

Definition at line 38025 of file mtlx_stdlib.js.

38025 {
38026 this.nodedef_icon = './Icons/gltf_logo.webp';
38027 this.nodedef_name = 'ND_gltf_image_float_float_1_0';
38028 this.nodedef_type = 'float';
38029 this.nodedef_node = 'gltf_image';
38030 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
38031 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_float_float_1_0_out_genglsl.png';
38032 this.nodedef_group = 'texture2d';
38033 this.addInput('file','filename');
38034 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38035 this.addInput('factor','float');
38036 this.addProperty('factor', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38037 this.addInput('default','float');
38038 this.addProperty('default', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38039 this.addInput('texcoord','vector2');
38040 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
38041 this.addInput('pivot','vector2');
38042 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38043 this.addInput('scale','vector2');
38044 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38045 this.addInput('rotate','float');
38046 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"","defaultgeomprop":""});
38047 this.addInput('offset','vector2');
38048 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38049 this.addInput('operationorder','integer');
38050 this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38051 this.addInput('uaddressmode','string');
38052 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38053 this.addInput('vaddressmode','string');
38054 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38055 this.addInput('filtertype','string');
38056 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
38057 this.addOutput('out','float');
38058 this.title = 'gltf_image_float';
38059 this.desc = "MaterialX:mtlx/texture2d/gltf_image_float_float_1_0";
38060 this.onNodeCreated = function() {
38061 //console.log('Node created:', this);
38062}
38063 this.onRemoved = function() {
38064 //console.log('Node removed:', this);
38065 }
38066 this.onPropertyChanged = function(name, value, prev_value) {
38067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38068 }
38069 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38071 }
38072 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38074 }
38075 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38077 }
38078 this.bgcolor = '#111';
38079 this.color = '#222';
38080 this.shape = LiteGraph.ROUND_SHAPE;
38081 this.boxcolor = '#161';
38082}

◆ mtlx_texture2d_gltf_image_vector3_vector3_1_0()

function mtlx_texture2d_gltf_image_vector3_vector3_1_0 ( )

mtlx_texture2d_gltf_image_vector3_vector3_1_0

Library: mtlx. Category: gltf_image. Type: vector3 LiteGraph id: mtlx/texture2d/gltf_image_vector3_vector3_1_0

Definition at line 38093 of file mtlx_stdlib.js.

38093 {
38094 this.nodedef_icon = './Icons/gltf_logo.webp';
38095 this.nodedef_name = 'ND_gltf_image_vector3_vector3_1_0';
38096 this.nodedef_type = 'vector3';
38097 this.nodedef_node = 'gltf_image';
38098 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
38099 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_vector3_vector3_1_0_out_genglsl.png';
38100 this.nodedef_group = 'texture2d';
38101 this.addInput('file','filename');
38102 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38103 this.addInput('default','vector3');
38104 this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38105 this.addInput('texcoord','vector2');
38106 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
38107 this.addInput('pivot','vector2');
38108 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38109 this.addInput('scale','vector2');
38110 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38111 this.addInput('rotate','float');
38112 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"","defaultgeomprop":""});
38113 this.addInput('offset','vector2');
38114 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38115 this.addInput('operationorder','integer');
38116 this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38117 this.addInput('uaddressmode','string');
38118 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38119 this.addInput('vaddressmode','string');
38120 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38121 this.addInput('filtertype','string');
38122 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
38123 this.addOutput('out','vector3');
38124 this.title = 'gltf_image_vector3';
38125 this.desc = "MaterialX:mtlx/texture2d/gltf_image_vector3_vector3_1_0";
38126 this.onNodeCreated = function() {
38127 //console.log('Node created:', this);
38128}
38129 this.onRemoved = function() {
38130 //console.log('Node removed:', this);
38131 }
38132 this.onPropertyChanged = function(name, value, prev_value) {
38133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38134 }
38135 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38137 }
38138 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38140 }
38141 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38143 }
38144 this.bgcolor = '#111';
38145 this.color = '#222';
38146 this.shape = LiteGraph.ROUND_SHAPE;
38147 this.boxcolor = '#465';
38148}

◆ mtlx_texture2d_gltf_iridescence_thickness_float_1_0()

function mtlx_texture2d_gltf_iridescence_thickness_float_1_0 ( )

mtlx_texture2d_gltf_iridescence_thickness_float_1_0

Library: mtlx. Category: gltf_normalmap. Type: float LiteGraph id: mtlx/texture2d/gltf_iridescence_thickness_float_1_0

Definition at line 38225 of file mtlx_stdlib.js.

38225 {
38226 this.nodedef_icon = './Icons/gltf_logo.webp';
38227 this.nodedef_name = 'ND_gltf_iridescence_thickness_float_1_0';
38228 this.nodedef_type = 'float';
38229 this.nodedef_node = 'gltf_iridescence_thickness';
38230 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_iridescence_thickness.html';
38231 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_iridescence_thickness_float_1_0_out_genglsl.png';
38232 this.nodedef_group = 'texture2d';
38233 this.addInput('file','filename');
38234 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38235 this.addInput('default','vector3');
38236 this.addProperty('default', [0, 0, 0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38237 this.addInput('texcoord','vector2');
38238 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"UV0"});
38239 this.addInput('pivot','vector2');
38240 this.addProperty('pivot', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38241 this.addInput('scale','vector2');
38242 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38243 this.addInput('rotate','float');
38244 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38245 this.addInput('offset','vector2');
38246 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":""});
38247 this.addInput('uaddressmode','string');
38248 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38249 this.addInput('vaddressmode','string');
38250 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38251 this.addInput('filtertype','string');
38252 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Image","defaultgeomprop":"","enum":["closest","linear","cubic"]});
38253 this.addInput('thicknessMin','float');
38254 this.addProperty('thicknessMin', 100, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness","defaultgeomprop":""});
38255 this.addInput('thicknessMax','float');
38256 this.addProperty('thicknessMax', 400, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"Thickness","defaultgeomprop":""});
38257 this.addOutput('out','float');
38258 this.title = 'gltf_iridescence_thickness_float';
38259 this.desc = "MaterialX:mtlx/texture2d/gltf_iridescence_thickness_float_1_0";
38260 this.onNodeCreated = function() {
38261 //console.log('Node created:', this);
38262}
38263 this.onRemoved = function() {
38264 //console.log('Node removed:', this);
38265 }
38266 this.onPropertyChanged = function(name, value, prev_value) {
38267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38268 }
38269 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38271 }
38272 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38274 }
38275 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38277 }
38278 this.bgcolor = '#111';
38279 this.color = '#222';
38280 this.shape = LiteGraph.ROUND_SHAPE;
38281 this.boxcolor = '#161';
38282}

◆ mtlx_texture2d_gltf_normalmap_vector3_1_0()

function mtlx_texture2d_gltf_normalmap_vector3_1_0 ( )

mtlx_texture2d_gltf_normalmap_vector3_1_0

Library: mtlx. Category: gltf_image. Type: vector3 LiteGraph id: mtlx/texture2d/gltf_normalmap_vector3_1_0

Definition at line 38159 of file mtlx_stdlib.js.

38159 {
38160 this.nodedef_icon = './Icons/gltf_logo.webp';
38161 this.nodedef_name = 'ND_gltf_normalmap_vector3_1_0';
38162 this.nodedef_type = 'vector3';
38163 this.nodedef_node = 'gltf_normalmap';
38164 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_normalmap.html';
38165 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_normalmap_vector3_1_0_out_genglsl.png';
38166 this.nodedef_group = 'texture2d';
38167 this.addInput('file','filename');
38168 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38169 this.addInput('default','vector3');
38170 this.addProperty('default', [0.5, 0.5, 1], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38171 this.addInput('texcoord','vector2');
38172 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
38173 this.addInput('pivot','vector2');
38174 this.addProperty('pivot', [0, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38175 this.addInput('scale','vector2');
38176 this.addProperty('scale', [1, 1], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38177 this.addInput('rotate','float');
38178 this.addProperty('rotate', 0, 'float',{"colorspace":"","unit":"degree","unittype":"angle","uiname":"","uimin":"0","uimax":"360","uifolder":"","defaultgeomprop":""});
38179 this.addInput('offset','vector2');
38180 this.addProperty('offset', [0, 0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38181 this.addInput('operationorder','integer');
38182 this.addProperty('operationorder', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38183 this.addInput('uaddressmode','string');
38184 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38185 this.addInput('vaddressmode','string');
38186 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
38187 this.addInput('filtertype','string');
38188 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
38189 this.addOutput('out','vector3');
38190 this.title = 'gltf_normalmap_vector3';
38191 this.desc = "MaterialX:mtlx/texture2d/gltf_normalmap_vector3_1_0";
38192 this.onNodeCreated = function() {
38193 //console.log('Node created:', this);
38194}
38195 this.onRemoved = function() {
38196 //console.log('Node removed:', this);
38197 }
38198 this.onPropertyChanged = function(name, value, prev_value) {
38199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38200 }
38201 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38203 }
38204 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38206 }
38207 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38209 }
38210 this.bgcolor = '#111';
38211 this.color = '#222';
38212 this.shape = LiteGraph.ROUND_SHAPE;
38213 this.boxcolor = '#465';
38214}

◆ mtlx_texture2d_image_color3()

function mtlx_texture2d_image_color3 ( )

mtlx_texture2d_image_color3

Library: mtlx. Category: image. Type: color3 LiteGraph id: mtlx/texture2d/image_color3

Definition at line 2053 of file mtlx_stdlib.js.

2053 {
2054 this.nodedef_icon = '';
2055 this.nodedef_name = 'ND_image_color3';
2056 this.nodedef_type = 'color3';
2057 this.nodedef_node = 'image';
2058 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2059 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_color3_out_genglsl.png';
2060 this.nodedef_group = 'texture2d';
2061 this.addInput('file','filename');
2062 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2063 this.addInput('layer','string');
2064 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2065 this.addInput('default','color3');
2066 this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2067 this.addInput('texcoord','vector2');
2068 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2069 this.addInput('uaddressmode','string');
2070 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2071 this.addInput('vaddressmode','string');
2072 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2073 this.addInput('filtertype','string');
2074 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2075 this.addInput('framerange','string');
2076 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2077 this.addInput('frameoffset','integer');
2078 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2079 this.addInput('frameendaction','string');
2080 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2081 this.addOutput('out','color3');
2082 this.title = 'image_color3';
2083 this.desc = "MaterialX:mtlx/texture2d/image_color3";
2084 this.onNodeCreated = function() {
2085 //console.log('Node created:', this);
2086}
2087 this.onRemoved = function() {
2088 //console.log('Node removed:', this);
2089 }
2090 this.onPropertyChanged = function(name, value, prev_value) {
2091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2092 }
2093 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2095 }
2096 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2098 }
2099 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2101 }
2102 this.bgcolor = '#111';
2103 this.color = '#222';
2104 this.shape = LiteGraph.ROUND_SHAPE;
2105 this.boxcolor = '#37A';
2106}

◆ mtlx_texture2d_image_color4()

function mtlx_texture2d_image_color4 ( )

mtlx_texture2d_image_color4

Library: mtlx. Category: image. Type: color4 LiteGraph id: mtlx/texture2d/image_color4

Definition at line 2117 of file mtlx_stdlib.js.

2117 {
2118 this.nodedef_icon = '';
2119 this.nodedef_name = 'ND_image_color4';
2120 this.nodedef_type = 'color4';
2121 this.nodedef_node = 'image';
2122 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2123 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_color4_out_genglsl.png';
2124 this.nodedef_group = 'texture2d';
2125 this.addInput('file','filename');
2126 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2127 this.addInput('layer','string');
2128 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2129 this.addInput('default','color4');
2130 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2131 this.addInput('texcoord','vector2');
2132 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2133 this.addInput('uaddressmode','string');
2134 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2135 this.addInput('vaddressmode','string');
2136 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2137 this.addInput('filtertype','string');
2138 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2139 this.addInput('framerange','string');
2140 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2141 this.addInput('frameoffset','integer');
2142 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2143 this.addInput('frameendaction','string');
2144 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2145 this.addOutput('out','color4');
2146 this.title = 'image_color4';
2147 this.desc = "MaterialX:mtlx/texture2d/image_color4";
2148 this.onNodeCreated = function() {
2149 //console.log('Node created:', this);
2150}
2151 this.onRemoved = function() {
2152 //console.log('Node removed:', this);
2153 }
2154 this.onPropertyChanged = function(name, value, prev_value) {
2155 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2156 }
2157 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2158 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2159 }
2160 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2161 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2162 }
2163 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2164 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2165 }
2166 this.bgcolor = '#111';
2167 this.color = '#222';
2168 this.shape = LiteGraph.ROUND_SHAPE;
2169 this.boxcolor = '#69A';
2170}

◆ mtlx_texture2d_image_float()

function mtlx_texture2d_image_float ( )

mtlx_texture2d_image_float

Library: mtlx. Category: surface_unlit. Type: float LiteGraph id: mtlx/texture2d/image_float

Definition at line 1989 of file mtlx_stdlib.js.

1989 {
1990 this.nodedef_icon = '';
1991 this.nodedef_name = 'ND_image_float';
1992 this.nodedef_type = 'float';
1993 this.nodedef_node = 'image';
1994 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
1995 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_float_out_genglsl.png';
1996 this.nodedef_group = 'texture2d';
1997 this.addInput('file','filename');
1998 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
1999 this.addInput('layer','string');
2000 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2001 this.addInput('default','float');
2002 this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2003 this.addInput('texcoord','vector2');
2004 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2005 this.addInput('uaddressmode','string');
2006 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2007 this.addInput('vaddressmode','string');
2008 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2009 this.addInput('filtertype','string');
2010 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2011 this.addInput('framerange','string');
2012 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2013 this.addInput('frameoffset','integer');
2014 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2015 this.addInput('frameendaction','string');
2016 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2017 this.addOutput('out','float');
2018 this.title = 'image_float';
2019 this.desc = "MaterialX:mtlx/texture2d/image_float";
2020 this.onNodeCreated = function() {
2021 //console.log('Node created:', this);
2022}
2023 this.onRemoved = function() {
2024 //console.log('Node removed:', this);
2025 }
2026 this.onPropertyChanged = function(name, value, prev_value) {
2027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2028 }
2029 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2031 }
2032 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2034 }
2035 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2037 }
2038 this.bgcolor = '#111';
2039 this.color = '#222';
2040 this.shape = LiteGraph.ROUND_SHAPE;
2041 this.boxcolor = '#161';
2042}

◆ mtlx_texture2d_image_vector2()

function mtlx_texture2d_image_vector2 ( )

mtlx_texture2d_image_vector2

Library: mtlx. Category: image. Type: vector2 LiteGraph id: mtlx/texture2d/image_vector2

Definition at line 2181 of file mtlx_stdlib.js.

2181 {
2182 this.nodedef_icon = '';
2183 this.nodedef_name = 'ND_image_vector2';
2184 this.nodedef_type = 'vector2';
2185 this.nodedef_node = 'image';
2186 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2187 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector2_out_genglsl.png';
2188 this.nodedef_group = 'texture2d';
2189 this.addInput('file','filename');
2190 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2191 this.addInput('layer','string');
2192 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2193 this.addInput('default','vector2');
2194 this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2195 this.addInput('texcoord','vector2');
2196 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2197 this.addInput('uaddressmode','string');
2198 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2199 this.addInput('vaddressmode','string');
2200 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2201 this.addInput('filtertype','string');
2202 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2203 this.addInput('framerange','string');
2204 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2205 this.addInput('frameoffset','integer');
2206 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2207 this.addInput('frameendaction','string');
2208 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2209 this.addOutput('out','vector2');
2210 this.title = 'image_vector2';
2211 this.desc = "MaterialX:mtlx/texture2d/image_vector2";
2212 this.onNodeCreated = function() {
2213 //console.log('Node created:', this);
2214}
2215 this.onRemoved = function() {
2216 //console.log('Node removed:', this);
2217 }
2218 this.onPropertyChanged = function(name, value, prev_value) {
2219 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2220 }
2221 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2222 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2223 }
2224 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2225 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2226 }
2227 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2228 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2229 }
2230 this.bgcolor = '#111';
2231 this.color = '#222';
2232 this.shape = LiteGraph.ROUND_SHAPE;
2233 this.boxcolor = '#265';
2234}

◆ mtlx_texture2d_image_vector3()

function mtlx_texture2d_image_vector3 ( )

mtlx_texture2d_image_vector3

Library: mtlx. Category: image. Type: vector3 LiteGraph id: mtlx/texture2d/image_vector3

Definition at line 2245 of file mtlx_stdlib.js.

2245 {
2246 this.nodedef_icon = '';
2247 this.nodedef_name = 'ND_image_vector3';
2248 this.nodedef_type = 'vector3';
2249 this.nodedef_node = 'image';
2250 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2251 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector3_out_genglsl.png';
2252 this.nodedef_group = 'texture2d';
2253 this.addInput('file','filename');
2254 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2255 this.addInput('layer','string');
2256 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2257 this.addInput('default','vector3');
2258 this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2259 this.addInput('texcoord','vector2');
2260 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2261 this.addInput('uaddressmode','string');
2262 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2263 this.addInput('vaddressmode','string');
2264 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2265 this.addInput('filtertype','string');
2266 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2267 this.addInput('framerange','string');
2268 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2269 this.addInput('frameoffset','integer');
2270 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2271 this.addInput('frameendaction','string');
2272 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2273 this.addOutput('out','vector3');
2274 this.title = 'image_vector3';
2275 this.desc = "MaterialX:mtlx/texture2d/image_vector3";
2276 this.onNodeCreated = function() {
2277 //console.log('Node created:', this);
2278}
2279 this.onRemoved = function() {
2280 //console.log('Node removed:', this);
2281 }
2282 this.onPropertyChanged = function(name, value, prev_value) {
2283 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2284 }
2285 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2286 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2287 }
2288 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2289 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2290 }
2291 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2292 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2293 }
2294 this.bgcolor = '#111';
2295 this.color = '#222';
2296 this.shape = LiteGraph.ROUND_SHAPE;
2297 this.boxcolor = '#465';
2298}

◆ mtlx_texture2d_image_vector4()

function mtlx_texture2d_image_vector4 ( )

mtlx_texture2d_image_vector4

Library: mtlx. Category: image. Type: vector4 LiteGraph id: mtlx/texture2d/image_vector4

Definition at line 2309 of file mtlx_stdlib.js.

2309 {
2310 this.nodedef_icon = '';
2311 this.nodedef_name = 'ND_image_vector4';
2312 this.nodedef_type = 'vector4';
2313 this.nodedef_node = 'image';
2314 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2315 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector4_out_genglsl.png';
2316 this.nodedef_group = 'texture2d';
2317 this.addInput('file','filename');
2318 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"Filename","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2319 this.addInput('layer','string');
2320 this.addProperty('layer', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Layer","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2321 this.addInput('default','vector4');
2322 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"Default Color","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2323 this.addInput('texcoord','vector2');
2324 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"Texture Coordinates","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2325 this.addInput('uaddressmode','string');
2326 this.addProperty('uaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode U","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2327 this.addInput('vaddressmode','string');
2328 this.addProperty('vaddressmode', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Address Mode V","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2329 this.addInput('filtertype','string');
2330 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Filter Type","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2331 this.addInput('framerange','string');
2332 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Range","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2333 this.addInput('frameoffset','integer');
2334 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"Frame Offset","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2335 this.addInput('frameendaction','string');
2336 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"Frame End Action","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2337 this.addOutput('out','vector4');
2338 this.title = 'image_vector4';
2339 this.desc = "MaterialX:mtlx/texture2d/image_vector4";
2340 this.onNodeCreated = function() {
2341 //console.log('Node created:', this);
2342}
2343 this.onRemoved = function() {
2344 //console.log('Node removed:', this);
2345 }
2346 this.onPropertyChanged = function(name, value, prev_value) {
2347 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2348 }
2349 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2350 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2351 }
2352 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2353 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2354 }
2355 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2356 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2357 }
2358 this.bgcolor = '#111';
2359 this.color = '#222';
2360 this.shape = LiteGraph.ROUND_SHAPE;
2361 this.boxcolor = '#275';
2362}

◆ mtlx_texture2d_tiledimage_color3()

function mtlx_texture2d_tiledimage_color3 ( )

mtlx_texture2d_tiledimage_color3

Library: mtlx. Category: tiledimage. Type: color3 LiteGraph id: mtlx/texture2d/tiledimage_color3

Definition at line 2439 of file mtlx_stdlib.js.

2439 {
2440 this.nodedef_icon = '';
2441 this.nodedef_name = 'ND_tiledimage_color3';
2442 this.nodedef_type = 'color3';
2443 this.nodedef_node = 'tiledimage';
2444 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2445 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_color3_out_genglsl.png';
2446 this.nodedef_group = 'texture2d';
2447 this.addInput('file','filename');
2448 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2449 this.addInput('default','color3');
2450 this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2451 this.addInput('texcoord','vector2');
2452 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2453 this.addInput('uvtiling','vector2');
2454 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2455 this.addInput('uvoffset','vector2');
2456 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2457 this.addInput('realworldimagesize','vector2');
2458 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2459 this.addInput('realworldtilesize','vector2');
2460 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2461 this.addInput('filtertype','string');
2462 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2463 this.addInput('framerange','string');
2464 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2465 this.addInput('frameoffset','integer');
2466 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2467 this.addInput('frameendaction','string');
2468 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2469 this.addOutput('out','color3');
2470 this.title = 'tiledimage_color3';
2471 this.desc = "MaterialX:mtlx/texture2d/tiledimage_color3";
2472 this.onNodeCreated = function() {
2473 //console.log('Node created:', this);
2474}
2475 this.onRemoved = function() {
2476 //console.log('Node removed:', this);
2477 }
2478 this.onPropertyChanged = function(name, value, prev_value) {
2479 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2480 }
2481 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2482 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2483 }
2484 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2485 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2486 }
2487 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2488 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2489 }
2490 this.bgcolor = '#111';
2491 this.color = '#222';
2492 this.shape = LiteGraph.ROUND_SHAPE;
2493 this.boxcolor = '#37A';
2494}

◆ mtlx_texture2d_tiledimage_color4()

function mtlx_texture2d_tiledimage_color4 ( )

mtlx_texture2d_tiledimage_color4

Library: mtlx. Category: tiledimage. Type: color4 LiteGraph id: mtlx/texture2d/tiledimage_color4

Definition at line 2505 of file mtlx_stdlib.js.

2505 {
2506 this.nodedef_icon = '';
2507 this.nodedef_name = 'ND_tiledimage_color4';
2508 this.nodedef_type = 'color4';
2509 this.nodedef_node = 'tiledimage';
2510 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2511 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_color4_out_genglsl.png';
2512 this.nodedef_group = 'texture2d';
2513 this.addInput('file','filename');
2514 this.addProperty('file', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2515 this.addInput('default','color4');
2516 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2517 this.addInput('texcoord','vector2');
2518 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2519 this.addInput('uvtiling','vector2');
2520 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2521 this.addInput('uvoffset','vector2');
2522 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2523 this.addInput('realworldimagesize','vector2');
2524 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2525 this.addInput('realworldtilesize','vector2');
2526 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2527 this.addInput('filtertype','string');
2528 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2529 this.addInput('framerange','string');
2530 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2531 this.addInput('frameoffset','integer');
2532 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2533 this.addInput('frameendaction','string');
2534 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2535 this.addOutput('out','color4');
2536 this.title = 'tiledimage_color4';
2537 this.desc = "MaterialX:mtlx/texture2d/tiledimage_color4";
2538 this.onNodeCreated = function() {
2539 //console.log('Node created:', this);
2540}
2541 this.onRemoved = function() {
2542 //console.log('Node removed:', this);
2543 }
2544 this.onPropertyChanged = function(name, value, prev_value) {
2545 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2546 }
2547 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2548 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2549 }
2550 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2551 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2552 }
2553 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2554 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2555 }
2556 this.bgcolor = '#111';
2557 this.color = '#222';
2558 this.shape = LiteGraph.ROUND_SHAPE;
2559 this.boxcolor = '#69A';
2560}

◆ mtlx_texture2d_tiledimage_float()

function mtlx_texture2d_tiledimage_float ( )

mtlx_texture2d_tiledimage_float

Library: mtlx. Category: image. Type: float LiteGraph id: mtlx/texture2d/tiledimage_float

Definition at line 2373 of file mtlx_stdlib.js.

2373 {
2374 this.nodedef_icon = '';
2375 this.nodedef_name = 'ND_tiledimage_float';
2376 this.nodedef_type = 'float';
2377 this.nodedef_node = 'tiledimage';
2378 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2379 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png';
2380 this.nodedef_group = 'texture2d';
2381 this.addInput('file','filename');
2382 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2383 this.addInput('default','float');
2384 this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2385 this.addInput('texcoord','vector2');
2386 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2387 this.addInput('uvtiling','vector2');
2388 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2389 this.addInput('uvoffset','vector2');
2390 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2391 this.addInput('realworldimagesize','vector2');
2392 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2393 this.addInput('realworldtilesize','vector2');
2394 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2395 this.addInput('filtertype','string');
2396 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2397 this.addInput('framerange','string');
2398 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2399 this.addInput('frameoffset','integer');
2400 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2401 this.addInput('frameendaction','string');
2402 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2403 this.addOutput('out','float');
2404 this.title = 'tiledimage_float';
2405 this.desc = "MaterialX:mtlx/texture2d/tiledimage_float";
2406 this.onNodeCreated = function() {
2407 //console.log('Node created:', this);
2408}
2409 this.onRemoved = function() {
2410 //console.log('Node removed:', this);
2411 }
2412 this.onPropertyChanged = function(name, value, prev_value) {
2413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2414 }
2415 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2417 }
2418 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2420 }
2421 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2423 }
2424 this.bgcolor = '#111';
2425 this.color = '#222';
2426 this.shape = LiteGraph.ROUND_SHAPE;
2427 this.boxcolor = '#161';
2428}

◆ mtlx_texture2d_tiledimage_vector2()

function mtlx_texture2d_tiledimage_vector2 ( )

mtlx_texture2d_tiledimage_vector2

Library: mtlx. Category: tiledimage. Type: vector2 LiteGraph id: mtlx/texture2d/tiledimage_vector2

Definition at line 2571 of file mtlx_stdlib.js.

2571 {
2572 this.nodedef_icon = '';
2573 this.nodedef_name = 'ND_tiledimage_vector2';
2574 this.nodedef_type = 'vector2';
2575 this.nodedef_node = 'tiledimage';
2576 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2577 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector2_out_genglsl.png';
2578 this.nodedef_group = 'texture2d';
2579 this.addInput('file','filename');
2580 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2581 this.addInput('default','vector2');
2582 this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2583 this.addInput('texcoord','vector2');
2584 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2585 this.addInput('uvtiling','vector2');
2586 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2587 this.addInput('uvoffset','vector2');
2588 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2589 this.addInput('realworldimagesize','vector2');
2590 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2591 this.addInput('realworldtilesize','vector2');
2592 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2593 this.addInput('filtertype','string');
2594 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2595 this.addInput('framerange','string');
2596 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2597 this.addInput('frameoffset','integer');
2598 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2599 this.addInput('frameendaction','string');
2600 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2601 this.addOutput('out','vector2');
2602 this.title = 'tiledimage_vector2';
2603 this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector2";
2604 this.onNodeCreated = function() {
2605 //console.log('Node created:', this);
2606}
2607 this.onRemoved = function() {
2608 //console.log('Node removed:', this);
2609 }
2610 this.onPropertyChanged = function(name, value, prev_value) {
2611 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2612 }
2613 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2614 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2615 }
2616 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2617 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2618 }
2619 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2620 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2621 }
2622 this.bgcolor = '#111';
2623 this.color = '#222';
2624 this.shape = LiteGraph.ROUND_SHAPE;
2625 this.boxcolor = '#265';
2626}

◆ mtlx_texture2d_tiledimage_vector3()

function mtlx_texture2d_tiledimage_vector3 ( )

mtlx_texture2d_tiledimage_vector3

Library: mtlx. Category: tiledimage. Type: vector3 LiteGraph id: mtlx/texture2d/tiledimage_vector3

Definition at line 2637 of file mtlx_stdlib.js.

2637 {
2638 this.nodedef_icon = '';
2639 this.nodedef_name = 'ND_tiledimage_vector3';
2640 this.nodedef_type = 'vector3';
2641 this.nodedef_node = 'tiledimage';
2642 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2643 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector3_out_genglsl.png';
2644 this.nodedef_group = 'texture2d';
2645 this.addInput('file','filename');
2646 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2647 this.addInput('default','vector3');
2648 this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2649 this.addInput('texcoord','vector2');
2650 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2651 this.addInput('uvtiling','vector2');
2652 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2653 this.addInput('uvoffset','vector2');
2654 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2655 this.addInput('realworldimagesize','vector2');
2656 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2657 this.addInput('realworldtilesize','vector2');
2658 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2659 this.addInput('filtertype','string');
2660 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2661 this.addInput('framerange','string');
2662 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2663 this.addInput('frameoffset','integer');
2664 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2665 this.addInput('frameendaction','string');
2666 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2667 this.addOutput('out','vector3');
2668 this.title = 'tiledimage_vector3';
2669 this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector3";
2670 this.onNodeCreated = function() {
2671 //console.log('Node created:', this);
2672}
2673 this.onRemoved = function() {
2674 //console.log('Node removed:', this);
2675 }
2676 this.onPropertyChanged = function(name, value, prev_value) {
2677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2678 }
2679 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2681 }
2682 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2684 }
2685 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2687 }
2688 this.bgcolor = '#111';
2689 this.color = '#222';
2690 this.shape = LiteGraph.ROUND_SHAPE;
2691 this.boxcolor = '#465';
2692}

◆ mtlx_texture2d_tiledimage_vector4()

function mtlx_texture2d_tiledimage_vector4 ( )

mtlx_texture2d_tiledimage_vector4

Library: mtlx. Category: tiledimage. Type: vector4 LiteGraph id: mtlx/texture2d/tiledimage_vector4

Definition at line 2703 of file mtlx_stdlib.js.

2703 {
2704 this.nodedef_icon = '';
2705 this.nodedef_name = 'ND_tiledimage_vector4';
2706 this.nodedef_type = 'vector4';
2707 this.nodedef_node = 'tiledimage';
2708 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2709 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector4_out_genglsl.png';
2710 this.nodedef_group = 'texture2d';
2711 this.addInput('file','filename');
2712 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2713 this.addInput('default','vector4');
2714 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2715 this.addInput('texcoord','vector2');
2716 this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
2717 this.addInput('uvtiling','vector2');
2718 this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2719 this.addInput('uvoffset','vector2');
2720 this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2721 this.addInput('realworldimagesize','vector2');
2722 this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2723 this.addInput('realworldtilesize','vector2');
2724 this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"distance","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2725 this.addInput('filtertype','string');
2726 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2727 this.addInput('framerange','string');
2728 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2729 this.addInput('frameoffset','integer');
2730 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2731 this.addInput('frameendaction','string');
2732 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2733 this.addOutput('out','vector4');
2734 this.title = 'tiledimage_vector4';
2735 this.desc = "MaterialX:mtlx/texture2d/tiledimage_vector4";
2736 this.onNodeCreated = function() {
2737 //console.log('Node created:', this);
2738}
2739 this.onRemoved = function() {
2740 //console.log('Node removed:', this);
2741 }
2742 this.onPropertyChanged = function(name, value, prev_value) {
2743 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2744 }
2745 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2746 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2747 }
2748 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2749 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2750 }
2751 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2752 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2753 }
2754 this.bgcolor = '#111';
2755 this.color = '#222';
2756 this.shape = LiteGraph.ROUND_SHAPE;
2757 this.boxcolor = '#275';
2758}

◆ mtlx_texture2d_UsdUVTexture()

function mtlx_texture2d_UsdUVTexture ( )

mtlx_texture2d_UsdUVTexture

Library: mtlx. Category: UsdPreviewSurface. Type: multioutput LiteGraph id: mtlx/texture2d/UsdUVTexture

Definition at line 38364 of file mtlx_stdlib.js.

38364 {
38365 this.nodedef_icon = './Icons/openusd_logo.webp';
38366 this.nodedef_name = 'ND_UsdUVTexture';
38367 this.nodedef_type = 'multioutput';
38368 this.nodedef_node = 'UsdUVTexture';
38369 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdUVTexture.html';
38370 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdUVTexture_r_genglsl.png';
38371 this.nodedef_group = 'texture2d';
38372 this.addInput('file','filename');
38373 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38374 this.addInput('st','vector2');
38375 this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
38376 this.addInput('wrapS','string');
38377 this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["black","clamp","periodic","mirror"]});
38378 this.addInput('wrapT','string');
38379 this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["black","clamp","periodic","mirror"]});
38380 this.addInput('fallback','color4');
38381 this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38382 this.addInput('scale','color4');
38383 this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38384 this.addInput('bias','color4');
38385 this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38386 this.addOutput('r','float');
38387 this.addOutput('g','float');
38388 this.addOutput('b','float');
38389 this.addOutput('a','float');
38390 this.addOutput('rgb','color3');
38391 this.addOutput('rgba','color4');
38392 this.title = 'UsdUVTexture_multioutput';
38393 this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture";
38394 this.onNodeCreated = function() {
38395 //console.log('Node created:', this);
38396}
38397 this.onRemoved = function() {
38398 //console.log('Node removed:', this);
38399 }
38400 this.onPropertyChanged = function(name, value, prev_value) {
38401 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38402 }
38403 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38404 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38405 }
38406 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38407 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38408 }
38409 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38410 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38411 }
38412 this.bgcolor = '#111';
38413 this.color = '#222';
38414 this.shape = LiteGraph.ROUND_SHAPE;
38415}

◆ mtlx_texture2d_UsdUVTexture_23()

function mtlx_texture2d_UsdUVTexture_23 ( )

mtlx_texture2d_UsdUVTexture_23

Library: mtlx. Category: UsdUVTexture. Type: multioutput LiteGraph id: mtlx/texture2d/UsdUVTexture_23

Definition at line 38426 of file mtlx_stdlib.js.

38426 {
38427 this.nodedef_icon = './Icons/openusd_logo.webp';
38428 this.nodedef_name = 'ND_UsdUVTexture_23';
38429 this.nodedef_type = 'multioutput';
38430 this.nodedef_node = 'UsdUVTexture';
38431 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdUVTexture.html';
38432 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdUVTexture_23_r_genglsl.png';
38433 this.nodedef_group = 'texture2d';
38434 this.addInput('file','filename');
38435 this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38436 this.addInput('st','vector2');
38437 this.addProperty('st', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
38438 this.addInput('wrapS','string');
38439 this.addProperty('wrapS', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["black","clamp","periodic","mirror"]});
38440 this.addInput('wrapT','string');
38441 this.addProperty('wrapT', 'periodic', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["black","clamp","periodic","mirror"]});
38442 this.addInput('fallback','color4');
38443 this.addProperty('fallback', [0, 0, 0, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38444 this.addInput('scale','color4');
38445 this.addProperty('scale', [1, 1, 1, 1], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38446 this.addInput('bias','color4');
38447 this.addProperty('bias', [0, 0, 0, 0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
38448 this.addOutput('r','float');
38449 this.addOutput('g','float');
38450 this.addOutput('b','float');
38451 this.addOutput('a','float');
38452 this.addOutput('rgb','color3');
38453 this.title = 'UsdUVTexture_multioutput';
38454 this.desc = "MaterialX:mtlx/texture2d/UsdUVTexture_23";
38455 this.onNodeCreated = function() {
38456 //console.log('Node created:', this);
38457}
38458 this.onRemoved = function() {
38459 //console.log('Node removed:', this);
38460 }
38461 this.onPropertyChanged = function(name, value, prev_value) {
38462 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
38463 }
38464 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
38465 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
38466 }
38467 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
38468 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
38469 }
38470 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
38471 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
38472 }
38473 this.bgcolor = '#111';
38474 this.color = '#222';
38475 this.shape = LiteGraph.ROUND_SHAPE;
38476}

◆ mtlx_texture3d_triplanarprojection_color3()

function mtlx_texture3d_triplanarprojection_color3 ( )

mtlx_texture3d_triplanarprojection_color3

Library: mtlx. Category: triplanarprojection. Type: color3 LiteGraph id: mtlx/texture3d/triplanarprojection_color3

Definition at line 2843 of file mtlx_stdlib.js.

2843 {
2844 this.nodedef_icon = '';
2845 this.nodedef_name = 'ND_triplanarprojection_color3';
2846 this.nodedef_type = 'color3';
2847 this.nodedef_node = 'triplanarprojection';
2848 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2849 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_color3_out_genglsl.png';
2850 this.nodedef_group = 'texture3d';
2851 this.addInput('filex','filename');
2852 this.addProperty('filex', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2853 this.addInput('filey','filename');
2854 this.addProperty('filey', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2855 this.addInput('filez','filename');
2856 this.addProperty('filez', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2857 this.addInput('layerx','string');
2858 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2859 this.addInput('layery','string');
2860 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2861 this.addInput('layerz','string');
2862 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2863 this.addInput('default','color3');
2864 this.addProperty('default', [0.0, 0.0, 0.0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2865 this.addInput('position','vector3');
2866 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
2867 this.addInput('normal','vector3');
2868 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
2869 this.addInput('upaxis','integer');
2870 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
2871 this.addInput('blend','float');
2872 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
2873 this.addInput('filtertype','string');
2874 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2875 this.addInput('framerange','string');
2876 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2877 this.addInput('frameoffset','integer');
2878 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2879 this.addInput('frameendaction','string');
2880 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2881 this.addOutput('out','color3');
2882 this.title = 'triplanarprojection_color3';
2883 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color3";
2884 this.onNodeCreated = function() {
2885 //console.log('Node created:', this);
2886}
2887 this.onRemoved = function() {
2888 //console.log('Node removed:', this);
2889 }
2890 this.onPropertyChanged = function(name, value, prev_value) {
2891 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2892 }
2893 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2894 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2895 }
2896 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2897 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2898 }
2899 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2900 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2901 }
2902 this.bgcolor = '#111';
2903 this.color = '#222';
2904 this.shape = LiteGraph.ROUND_SHAPE;
2905 this.boxcolor = '#37A';
2906}

◆ mtlx_texture3d_triplanarprojection_color4()

function mtlx_texture3d_triplanarprojection_color4 ( )

mtlx_texture3d_triplanarprojection_color4

Library: mtlx. Category: triplanarprojection. Type: color4 LiteGraph id: mtlx/texture3d/triplanarprojection_color4

Definition at line 2917 of file mtlx_stdlib.js.

2917 {
2918 this.nodedef_icon = '';
2919 this.nodedef_name = 'ND_triplanarprojection_color4';
2920 this.nodedef_type = 'color4';
2921 this.nodedef_node = 'triplanarprojection';
2922 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2923 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_color4_out_genglsl.png';
2924 this.nodedef_group = 'texture3d';
2925 this.addInput('filex','filename');
2926 this.addProperty('filex', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2927 this.addInput('filey','filename');
2928 this.addProperty('filey', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2929 this.addInput('filez','filename');
2930 this.addProperty('filez', '', 'filename',{"colorspace":"none","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2931 this.addInput('layerx','string');
2932 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2933 this.addInput('layery','string');
2934 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2935 this.addInput('layerz','string');
2936 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2937 this.addInput('default','color4');
2938 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'color4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2939 this.addInput('position','vector3');
2940 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
2941 this.addInput('normal','vector3');
2942 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
2943 this.addInput('upaxis','integer');
2944 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
2945 this.addInput('blend','float');
2946 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
2947 this.addInput('filtertype','string');
2948 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2949 this.addInput('framerange','string');
2950 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2951 this.addInput('frameoffset','integer');
2952 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2953 this.addInput('frameendaction','string');
2954 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2955 this.addOutput('out','color4');
2956 this.title = 'triplanarprojection_color4';
2957 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_color4";
2958 this.onNodeCreated = function() {
2959 //console.log('Node created:', this);
2960}
2961 this.onRemoved = function() {
2962 //console.log('Node removed:', this);
2963 }
2964 this.onPropertyChanged = function(name, value, prev_value) {
2965 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2966 }
2967 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2968 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2969 }
2970 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2971 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2972 }
2973 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2974 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2975 }
2976 this.bgcolor = '#111';
2977 this.color = '#222';
2978 this.shape = LiteGraph.ROUND_SHAPE;
2979 this.boxcolor = '#69A';
2980}

◆ mtlx_texture3d_triplanarprojection_float()

function mtlx_texture3d_triplanarprojection_float ( )

mtlx_texture3d_triplanarprojection_float

Library: mtlx. Category: tiledimage. Type: float LiteGraph id: mtlx/texture3d/triplanarprojection_float

Definition at line 2769 of file mtlx_stdlib.js.

2769 {
2770 this.nodedef_icon = '';
2771 this.nodedef_name = 'ND_triplanarprojection_float';
2772 this.nodedef_type = 'float';
2773 this.nodedef_node = 'triplanarprojection';
2774 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2775 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_float_out_genglsl.png';
2776 this.nodedef_group = 'texture3d';
2777 this.addInput('filex','filename');
2778 this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2779 this.addInput('filey','filename');
2780 this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2781 this.addInput('filez','filename');
2782 this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2783 this.addInput('layerx','string');
2784 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2785 this.addInput('layery','string');
2786 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2787 this.addInput('layerz','string');
2788 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2789 this.addInput('default','float');
2790 this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2791 this.addInput('position','vector3');
2792 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
2793 this.addInput('normal','vector3');
2794 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
2795 this.addInput('upaxis','integer');
2796 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
2797 this.addInput('blend','float');
2798 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
2799 this.addInput('filtertype','string');
2800 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
2801 this.addInput('framerange','string');
2802 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2803 this.addInput('frameoffset','integer');
2804 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
2805 this.addInput('frameendaction','string');
2806 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
2807 this.addOutput('out','float');
2808 this.title = 'triplanarprojection_float';
2809 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_float";
2810 this.onNodeCreated = function() {
2811 //console.log('Node created:', this);
2812}
2813 this.onRemoved = function() {
2814 //console.log('Node removed:', this);
2815 }
2816 this.onPropertyChanged = function(name, value, prev_value) {
2817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
2818 }
2819 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
2820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
2821 }
2822 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
2823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
2824 }
2825 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
2826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
2827 }
2828 this.bgcolor = '#111';
2829 this.color = '#222';
2830 this.shape = LiteGraph.ROUND_SHAPE;
2831 this.boxcolor = '#161';
2832}

◆ mtlx_texture3d_triplanarprojection_vector2()

function mtlx_texture3d_triplanarprojection_vector2 ( )

mtlx_texture3d_triplanarprojection_vector2

Library: mtlx. Category: triplanarprojection. Type: vector2 LiteGraph id: mtlx/texture3d/triplanarprojection_vector2

Definition at line 2991 of file mtlx_stdlib.js.

2991 {
2992 this.nodedef_icon = '';
2993 this.nodedef_name = 'ND_triplanarprojection_vector2';
2994 this.nodedef_type = 'vector2';
2995 this.nodedef_node = 'triplanarprojection';
2996 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2997 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector2_out_genglsl.png';
2998 this.nodedef_group = 'texture3d';
2999 this.addInput('filex','filename');
3000 this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3001 this.addInput('filey','filename');
3002 this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3003 this.addInput('filez','filename');
3004 this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3005 this.addInput('layerx','string');
3006 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3007 this.addInput('layery','string');
3008 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3009 this.addInput('layerz','string');
3010 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3011 this.addInput('default','vector2');
3012 this.addProperty('default', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3013 this.addInput('position','vector3');
3014 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
3015 this.addInput('normal','vector3');
3016 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
3017 this.addInput('upaxis','integer');
3018 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
3019 this.addInput('blend','float');
3020 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
3021 this.addInput('filtertype','string');
3022 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
3023 this.addInput('framerange','string');
3024 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3025 this.addInput('frameoffset','integer');
3026 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3027 this.addInput('frameendaction','string');
3028 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
3029 this.addOutput('out','vector2');
3030 this.title = 'triplanarprojection_vector2';
3031 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector2";
3032 this.onNodeCreated = function() {
3033 //console.log('Node created:', this);
3034}
3035 this.onRemoved = function() {
3036 //console.log('Node removed:', this);
3037 }
3038 this.onPropertyChanged = function(name, value, prev_value) {
3039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3040 }
3041 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3043 }
3044 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3046 }
3047 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3049 }
3050 this.bgcolor = '#111';
3051 this.color = '#222';
3052 this.shape = LiteGraph.ROUND_SHAPE;
3053 this.boxcolor = '#265';
3054}

◆ mtlx_texture3d_triplanarprojection_vector3()

function mtlx_texture3d_triplanarprojection_vector3 ( )

mtlx_texture3d_triplanarprojection_vector3

Library: mtlx. Category: triplanarprojection. Type: vector3 LiteGraph id: mtlx/texture3d/triplanarprojection_vector3

Definition at line 3065 of file mtlx_stdlib.js.

3065 {
3066 this.nodedef_icon = '';
3067 this.nodedef_name = 'ND_triplanarprojection_vector3';
3068 this.nodedef_type = 'vector3';
3069 this.nodedef_node = 'triplanarprojection';
3070 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
3071 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector3_out_genglsl.png';
3072 this.nodedef_group = 'texture3d';
3073 this.addInput('filex','filename');
3074 this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3075 this.addInput('filey','filename');
3076 this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3077 this.addInput('filez','filename');
3078 this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3079 this.addInput('layerx','string');
3080 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3081 this.addInput('layery','string');
3082 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3083 this.addInput('layerz','string');
3084 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3085 this.addInput('default','vector3');
3086 this.addProperty('default', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3087 this.addInput('position','vector3');
3088 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
3089 this.addInput('normal','vector3');
3090 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
3091 this.addInput('upaxis','integer');
3092 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
3093 this.addInput('blend','float');
3094 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
3095 this.addInput('filtertype','string');
3096 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
3097 this.addInput('framerange','string');
3098 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3099 this.addInput('frameoffset','integer');
3100 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3101 this.addInput('frameendaction','string');
3102 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
3103 this.addOutput('out','vector3');
3104 this.title = 'triplanarprojection_vector3';
3105 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector3";
3106 this.onNodeCreated = function() {
3107 //console.log('Node created:', this);
3108}
3109 this.onRemoved = function() {
3110 //console.log('Node removed:', this);
3111 }
3112 this.onPropertyChanged = function(name, value, prev_value) {
3113 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3114 }
3115 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3116 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3117 }
3118 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3119 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3120 }
3121 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3122 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3123 }
3124 this.bgcolor = '#111';
3125 this.color = '#222';
3126 this.shape = LiteGraph.ROUND_SHAPE;
3127 this.boxcolor = '#465';
3128}

◆ mtlx_texture3d_triplanarprojection_vector4()

function mtlx_texture3d_triplanarprojection_vector4 ( )

mtlx_texture3d_triplanarprojection_vector4

Library: mtlx. Category: triplanarprojection. Type: vector4 LiteGraph id: mtlx/texture3d/triplanarprojection_vector4

Definition at line 3139 of file mtlx_stdlib.js.

3139 {
3140 this.nodedef_icon = '';
3141 this.nodedef_name = 'ND_triplanarprojection_vector4';
3142 this.nodedef_type = 'vector4';
3143 this.nodedef_node = 'triplanarprojection';
3144 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
3145 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector4_out_genglsl.png';
3146 this.nodedef_group = 'texture3d';
3147 this.addInput('filex','filename');
3148 this.addProperty('filex', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3149 this.addInput('filey','filename');
3150 this.addProperty('filey', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3151 this.addInput('filez','filename');
3152 this.addProperty('filez', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3153 this.addInput('layerx','string');
3154 this.addProperty('layerx', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3155 this.addInput('layery','string');
3156 this.addProperty('layery', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3157 this.addInput('layerz','string');
3158 this.addProperty('layerz', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3159 this.addInput('default','vector4');
3160 this.addProperty('default', [0.0, 0.0, 0.0, 0.0], 'vector4',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3161 this.addInput('position','vector3');
3162 this.addProperty('position', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Pobject"});
3163 this.addInput('normal','vector3');
3164 this.addProperty('normal', [0.0, 0.0, 0.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"Nobject"});
3165 this.addInput('upaxis','integer');
3166 this.addProperty('upaxis', 2, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["X","Y","Z"],"enumvalues":["0","1","2"]});
3167 this.addInput('blend','float');
3168 this.addProperty('blend', 1.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":"0.0","uimax":"1.0","uifolder":"","defaultgeomprop":""});
3169 this.addInput('filtertype','string');
3170 this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["closest","linear","cubic"]});
3171 this.addInput('framerange','string');
3172 this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3173 this.addInput('frameoffset','integer');
3174 this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
3175 this.addInput('frameendaction','string');
3176 this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"","enum":["constant","clamp","periodic","mirror"]});
3177 this.addOutput('out','vector4');
3178 this.title = 'triplanarprojection_vector4';
3179 this.desc = "MaterialX:mtlx/texture3d/triplanarprojection_vector4";
3180 this.onNodeCreated = function() {
3181 //console.log('Node created:', this);
3182}
3183 this.onRemoved = function() {
3184 //console.log('Node removed:', this);
3185 }
3186 this.onPropertyChanged = function(name, value, prev_value) {
3187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
3188 }
3189 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
3190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
3191 }
3192 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
3193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
3194 }
3195 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
3196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
3197 }
3198 this.bgcolor = '#111';
3199 this.color = '#222';
3200 this.shape = LiteGraph.ROUND_SHAPE;
3201 this.boxcolor = '#275';
3202}

◆ mtlx_translation_standard_surface_to_gltf_pbr()

function mtlx_translation_standard_surface_to_gltf_pbr ( )

mtlx_translation_standard_surface_to_gltf_pbr

Library: mtlx. Category: LamaTranslucent. Type: multioutput LiteGraph id: mtlx/translation/standard_surface_to_gltf_pbr

Definition at line 40114 of file mtlx_stdlib.js.

40114 {
40115 this.nodedef_icon = '';
40116 this.nodedef_name = 'ND_standard_surface_to_gltf_pbr';
40117 this.nodedef_type = 'multioutput';
40118 this.nodedef_node = 'standard_surface_to_gltf_pbr';
40119 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface_to_gltf_pbr.html';
40120 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_to_gltf_pbr_base_color_out_genglsl.png';
40121 this.nodedef_group = 'translation';
40122 this.addInput('base','float');
40123 this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40124 this.addInput('base_color','color3');
40125 this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40126 this.addInput('metalness','float');
40127 this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40128 this.addInput('specular_roughness','float');
40129 this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40130 this.addInput('transmission','float');
40131 this.addProperty('transmission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40132 this.addInput('transmission_color','color3');
40133 this.addProperty('transmission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40134 this.addInput('transmission_depth','float');
40135 this.addProperty('transmission_depth', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40136 this.addInput('sheen','float');
40137 this.addProperty('sheen', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40138 this.addInput('sheen_color','color3');
40139 this.addProperty('sheen_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40140 this.addInput('sheen_roughness','float');
40141 this.addProperty('sheen_roughness', 0.3, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40142 this.addInput('coat','float');
40143 this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40144 this.addInput('coat_color','color3');
40145 this.addProperty('coat_color', [0, 0, 0], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40146 this.addInput('coat_roughness','float');
40147 this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40148 this.addInput('emission','float');
40149 this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40150 this.addInput('emission_color','color3');
40151 this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40152 this.addOutput('base_color_out','color3');
40153 this.addOutput('metallic_out','float');
40154 this.addOutput('roughness_out','float');
40155 this.addOutput('transmission_out','float');
40156 this.addOutput('thickness_out','float');
40157 this.addOutput('attenuation_color_out','color3');
40158 this.addOutput('sheen_color_out','color3');
40159 this.addOutput('sheen_roughness_out','float');
40160 this.addOutput('clearcoat_out','float');
40161 this.addOutput('clearcoat_roughness_out','float');
40162 this.addOutput('emissive_out','color3');
40163 this.title = 'standard_surface_to_gltf_pbr_multioutput';
40164 this.desc = "MaterialX:mtlx/translation/standard_surface_to_gltf_pbr";
40165 this.onNodeCreated = function() {
40166 //console.log('Node created:', this);
40167}
40168 this.onRemoved = function() {
40169 //console.log('Node removed:', this);
40170 }
40171 this.onPropertyChanged = function(name, value, prev_value) {
40172 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40173 }
40174 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40175 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40176 }
40177 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40178 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40179 }
40180 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40181 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40182 }
40183 this.bgcolor = '#111';
40184 this.color = '#222';
40185 this.shape = LiteGraph.ROUND_SHAPE;
40186}

◆ mtlx_translation_standard_surface_to_UsdPreviewSurface()

function mtlx_translation_standard_surface_to_UsdPreviewSurface ( )

mtlx_translation_standard_surface_to_UsdPreviewSurface

Library: mtlx. Category: standard_surface_to_gltf_pbr. Type: multioutput LiteGraph id: mtlx/translation/standard_surface_to_UsdPreviewSurface

Definition at line 40197 of file mtlx_stdlib.js.

40197 {
40198 this.nodedef_icon = '';
40199 this.nodedef_name = 'ND_standard_surface_to_UsdPreviewSurface';
40200 this.nodedef_type = 'multioutput';
40201 this.nodedef_node = 'standard_surface_to_UsdPreviewSurface';
40202 this.nodedef_href = 'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface_to_UsdPreviewSurface.html';
40203 this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_to_UsdPreviewSurface_diffuseColor_out_genglsl.png';
40204 this.nodedef_group = 'translation';
40205 this.addInput('metalness','float');
40206 this.addProperty('metalness', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40207 this.addInput('base','float');
40208 this.addProperty('base', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40209 this.addInput('base_color','color3');
40210 this.addProperty('base_color', [0.8, 0.8, 0.8], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40211 this.addInput('specular','float');
40212 this.addProperty('specular', 1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40213 this.addInput('specular_color','color3');
40214 this.addProperty('specular_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40215 this.addInput('specular_IOR','float');
40216 this.addProperty('specular_IOR', 1.5, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40217 this.addInput('specular_roughness','float');
40218 this.addProperty('specular_roughness', 0.2, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40219 this.addInput('coat','float');
40220 this.addProperty('coat', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40221 this.addInput('coat_color','color3');
40222 this.addProperty('coat_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40223 this.addInput('coat_roughness','float');
40224 this.addProperty('coat_roughness', 0.1, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40225 this.addInput('emission','float');
40226 this.addProperty('emission', 0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40227 this.addInput('emission_color','color3');
40228 this.addProperty('emission_color', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40229 this.addInput('opacity','color3');
40230 this.addProperty('opacity', [1, 1, 1], 'color3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40231 this.addInput('normal','vector3');
40232 this.addProperty('normal', [0.5, 0.5, 1.0], 'vector3',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
40233 this.addOutput('diffuseColor_out','color3');
40234 this.addOutput('emissiveColor_out','color3');
40235 this.addOutput('metallic_out','float');
40236 this.addOutput('roughness_out','float');
40237 this.addOutput('clearcoat_out','float');
40238 this.addOutput('clearcoatRoughness_out','float');
40239 this.addOutput('opacity_out','float');
40240 this.addOutput('ior_out','float');
40241 this.addOutput('normal_out','vector3');
40242 this.title = 'standard_surface_to_UsdPreviewSurface_multioutput';
40243 this.desc = "MaterialX:mtlx/translation/standard_surface_to_UsdPreviewSurface";
40244 this.onNodeCreated = function() {
40245 //console.log('Node created:', this);
40246}
40247 this.onRemoved = function() {
40248 //console.log('Node removed:', this);
40249 }
40250 this.onPropertyChanged = function(name, value, prev_value) {
40251 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value, this);
40252 }
40253 this.onPropertyInfoChanged = function(name, info, value, prev_value) {
40254 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value, this);
40255 }
40256 this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
40257 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot, this);
40258 }
40259 this.onConnectInput = function(target_slot, output_type, output, source, slot) {
40260 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot, this);
40261 }
40262 this.bgcolor = '#111';
40263 this.color = '#222';
40264 this.shape = LiteGraph.ROUND_SHAPE;
40265}

Variable Documentation

◆ nodedef_href

mtlx_light_spot_light nodedef_href
Initial value:
= 'https:
LiteGraph.registerNodeType('mtlx/material/surfacematerial',mtlx_material_surfacematerial)

Definition at line 1883 of file mtlx_stdlib.js.

◆ nodedef_name

mtlx_light_spot_light nodedef_name = 'ND_surfacematerial'

Definition at line 1881 of file mtlx_stdlib.js.

◆ nodedef_node

mtlx_light_spot_light nodedef_node = 'surfacematerial'

Definition at line 1882 of file mtlx_stdlib.js.