Added elongation node and update documentation
@ -9,7 +9,7 @@ Base class for texture generators that provide a texture as output
|
||||
var texture : ImageTexture = ImageTexture.new()
|
||||
|
||||
func get_output_defs() -> Array:
|
||||
return [ { rgba="" } ]
|
||||
return [ { rgba="", type="rgba" } ]
|
||||
|
||||
func _get_shader_code_lod(uv : String, output_index : int, context : MMGenContext, lod : float = 0.0) -> Dictionary:
|
||||
var genname = "o"+str(get_instance_id())
|
||||
|
@ -78,7 +78,7 @@
|
||||
"paramdefs":"vec4 p",
|
||||
"params":"p",
|
||||
"slot_type":3,
|
||||
"color":{ "r":1.0, "g":0.0, "b":0.0, "a":1.0 }
|
||||
"color":{ "r":1.0, "g":0.0, "b":1.0, "a":1.0 }
|
||||
},
|
||||
{
|
||||
"name":"any",
|
||||
|
65
addons/material_maker/nodes/sdf3d_elongation.mmg
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "sdf3d_elongation",
|
||||
"node_position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"parameters": {
|
||||
"x": 0.2,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"shader_model": {
|
||||
"code": "",
|
||||
"global": "",
|
||||
"inputs": [
|
||||
{
|
||||
"default": "vec2(0.0)",
|
||||
"label": "",
|
||||
"name": "in",
|
||||
"type": "sdf3dc"
|
||||
}
|
||||
],
|
||||
"instance": "",
|
||||
"name": "Elongation",
|
||||
"outputs": [
|
||||
{
|
||||
"sdf3dc": "$in($uv-clamp($uv, -abs(vec3($x, $y, $z)), abs(vec3($x, $y, $z))))",
|
||||
"type": "sdf3dc"
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"control": "P1.x",
|
||||
"default": 0,
|
||||
"label": "X",
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "x",
|
||||
"step": 0.01,
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
"control": "P1.y",
|
||||
"default": 0,
|
||||
"label": "Y",
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "y",
|
||||
"step": 0.01,
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
"control": "None",
|
||||
"default": 0,
|
||||
"label": "Z",
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "z",
|
||||
"step": 0.01,
|
||||
"type": "float"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "shader"
|
||||
}
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 6.7 KiB |
BIN
material_maker/doc/images/node_3d_sdf_color.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_boolean.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_circlerepeat.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_elongation.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 16 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_extrusion.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_morph.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_repeat.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_revolution.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
material_maker/doc/images/node_3d_sdf_operators_rounded.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.3 KiB |
BIN
material_maker/doc/images/node_3d_sdf_render.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_box.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_capsule.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_cone.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_cylinder.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_sphere.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
material_maker/doc/images/node_3d_sdf_shapes_torus.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
material_maker/doc/images/node_3d_sdf_transforms_rotate.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
material_maker/doc/images/node_3d_sdf_transforms_scale.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
material_maker/doc/images/node_3d_sdf_transforms_translate.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
material_maker/doc/images/node_3d_texture_apply.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
material_maker/doc/images/node_3d_texture_blend.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
material_maker/doc/images/node_3d_texture_blend_sample.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
material_maker/doc/images/node_3d_texture_colorize.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
material_maker/doc/images/node_3d_texture_colorize_sample.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
material_maker/doc/images/node_3d_texture_distort.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
material_maker/doc/images/node_3d_texture_distort_sample.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
material_maker/doc/images/node_3d_texture_fbm.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
material_maker/doc/images/node_3d_texture_fbm_sample.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
material_maker/doc/images/node_3d_texture_from2d.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
material_maker/doc/images/node_3d_texture_from2d_sample.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
material_maker/doc/images/node_3d_texture_pattern.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
material_maker/doc/images/node_3d_texture_pattern_sample.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
material_maker/doc/images/node_3d_texture_rotate.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
material_maker/doc/images/node_3d_texture_rotate_sample.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
material_maker/doc/images/node_3d_texture_select.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.3 KiB |
BIN
material_maker/doc/images/node_filter_adjusthsv.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
material_maker/doc/images/node_filter_blend.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
material_maker/doc/images/node_filter_blur.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
material_maker/doc/images/node_filter_blur_directional.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
material_maker/doc/images/node_filter_brightnesscontrast.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
material_maker/doc/images/node_filter_colorize.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
material_maker/doc/images/node_filter_colorize_invert.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
material_maker/doc/images/node_filter_colorize_rainbow.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
material_maker/doc/images/node_filter_combine.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
material_maker/doc/images/node_filter_decompose.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
material_maker/doc/images/node_filter_edge_detect.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.2 KiB |
BIN
material_maker/doc/images/node_filter_edge_detect_diagonal.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
material_maker/doc/images/node_filter_emboss.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
material_maker/doc/images/node_filter_greyscale.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
material_maker/doc/images/node_filter_invert.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
material_maker/doc/images/node_filter_normal_map.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
material_maker/doc/images/node_filter_occlusion.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
material_maker/doc/images/node_filter_quantize.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
material_maker/doc/images/node_filter_sharpen.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
material_maker/doc/images/node_filter_swapchannels.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.3 KiB |
BIN
material_maker/doc/images/node_miscellaneous_buffer.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
material_maker/doc/images/node_miscellaneous_comment.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
material_maker/doc/images/node_miscellaneous_custom_shader.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
material_maker/doc/images/node_miscellaneous_debug.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
material_maker/doc/images/node_miscellaneous_export.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
material_maker/doc/images/node_miscellaneous_material.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
material_maker/doc/images/node_miscellaneous_remote.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
material_maker/doc/images/node_miscellaneous_switch.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 4.6 KiB |
BIN
material_maker/doc/images/node_noise_color.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
material_maker/doc/images/node_noise_fbm.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
material_maker/doc/images/node_noise_fbm_sample.png
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
material_maker/doc/images/node_noise_perlin.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
material_maker/doc/images/node_noise_perlin_color.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
material_maker/doc/images/node_noise_perlin_warp1.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
material_maker/doc/images/node_noise_perlin_warp2.png
Normal file
After Width: | Height: | Size: 6.9 KiB |