Added elongation node and update documentation

This commit is contained in:
RodZill4 2020-02-15 22:20:26 +01:00
parent f5d0e12d70
commit 6523ae3b06
305 changed files with 918 additions and 264 deletions
addons/material_maker
material_maker/doc/images
node_3d_box.pngnode_3d_sdf_color.pngnode_3d_sdf_operators_boolean.pngnode_3d_sdf_operators_circlerepeat.pngnode_3d_sdf_operators_elongation.pngnode_3d_sdf_operators_elongation_sample.pngnode_3d_sdf_operators_extrusion.pngnode_3d_sdf_operators_morph.pngnode_3d_sdf_operators_repeat.pngnode_3d_sdf_operators_revolution.pngnode_3d_sdf_operators_rounded.pngnode_3d_sdf_operators_smoothboolean.pngnode_3d_sdf_render.pngnode_3d_sdf_shapes_box.pngnode_3d_sdf_shapes_capsule.pngnode_3d_sdf_shapes_cone.pngnode_3d_sdf_shapes_cylinder.pngnode_3d_sdf_shapes_sphere.pngnode_3d_sdf_shapes_torus.pngnode_3d_sdf_transforms_rotate.pngnode_3d_sdf_transforms_scale.pngnode_3d_sdf_transforms_translate.pngnode_3d_sphere.pngnode_3d_texture_apply.pngnode_3d_texture_blend.pngnode_3d_texture_blend_sample.pngnode_3d_texture_colorize.pngnode_3d_texture_colorize_sample.pngnode_3d_texture_distort.pngnode_3d_texture_distort_sample.pngnode_3d_texture_fbm.pngnode_3d_texture_fbm_sample.pngnode_3d_texture_from2d.pngnode_3d_texture_from2d_sample.pngnode_3d_texture_pattern.pngnode_3d_texture_pattern_sample.pngnode_3d_texture_rotate.pngnode_3d_texture_rotate_sample.pngnode_3d_texture_select.pngnode_adjust_hsv.pngnode_blend.pngnode_blur.pngnode_bricks.pngnode_brightness_contrast.pngnode_buffer.pngnode_color_noise.pngnode_colorize.pngnode_combine.pngnode_customuv.pngnode_debug.pngnode_decompose.pngnode_directional_blur.pngnode_edge_detect.pngnode_emboss.pngnode_export.pngnode_fibers.pngnode_filter_adjusthsv.pngnode_filter_blend.pngnode_filter_blur.pngnode_filter_blur_directional.pngnode_filter_brightnesscontrast.pngnode_filter_colorize.pngnode_filter_colorize_invert.pngnode_filter_colorize_rainbow.pngnode_filter_combine.pngnode_filter_decompose.pngnode_filter_edge_detect.pngnode_filter_edge_detect_axis_aligned.pngnode_filter_edge_detect_diagonal.pngnode_filter_emboss.pngnode_filter_greyscale.pngnode_filter_invert.pngnode_filter_normal_map.pngnode_filter_occlusion.pngnode_filter_quantize.pngnode_filter_sharpen.pngnode_filter_swapchannels.pngnode_greyscale.pngnode_invert.pngnode_kaleidoscope.pngnode_mirror.pngnode_miscellaneous_buffer.pngnode_miscellaneous_comment.pngnode_miscellaneous_custom_shader.pngnode_miscellaneous_debug.pngnode_miscellaneous_export.pngnode_miscellaneous_material.pngnode_miscellaneous_remote.pngnode_miscellaneous_switch.pngnode_noise.pngnode_noise_color.pngnode_noise_fbm.pngnode_noise_fbm_sample.pngnode_noise_perlin.pngnode_noise_perlin_color.pngnode_noise_perlin_warp1.pngnode_noise_perlin_warp2.png

View File

@ -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())

View File

@ -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",

View 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"
}

Binary file not shown.

Before

(image error) Size: 8.0 KiB

After

(image error) Size: 6.7 KiB

Binary file not shown.

After

(image error) Size: 1.9 KiB

Binary file not shown.

After

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 2.3 KiB

Binary file not shown.

After

(image error) Size: 3.2 KiB

Binary file not shown.

After

(image error) Size: 16 KiB

Binary file not shown.

After

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 3.3 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 3.3 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 4.6 KiB

Binary file not shown.

After

(image error) Size: 3.9 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 4.0 KiB

Binary file not shown.

After

(image error) Size: 2.0 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 2.8 KiB

Binary file not shown.

After

(image error) Size: 1.7 KiB

Binary file not shown.

After

(image error) Size: 2.9 KiB

Binary file not shown.

Before

(image error) Size: 4.5 KiB

After

(image error) Size: 4.1 KiB

Binary file not shown.

After

(image error) Size: 4.1 KiB

Binary file not shown.

After

(image error) Size: 5.6 KiB

Binary file not shown.

After

(image error) Size: 19 KiB

Binary file not shown.

After

(image error) Size: 3.0 KiB

Binary file not shown.

After

(image error) Size: 46 KiB

Binary file not shown.

After

(image error) Size: 3.4 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 7.4 KiB

Binary file not shown.

After

(image error) Size: 20 KiB

Binary file not shown.

After

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 17 KiB

Binary file not shown.

After

(image error) Size: 6.1 KiB

Binary file not shown.

After

(image error) Size: 8.4 KiB

Binary file not shown.

After

(image error) Size: 3.5 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

Before

(image error) Size: 5.2 KiB

Binary file not shown.

Before

(image error) Size: 6.2 KiB

Binary file not shown.

Before

(image error) Size: 7.2 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

Before

(image error) Size: 5.3 KiB

Binary file not shown.

Before

(image error) Size: 4.6 KiB

Binary file not shown.

Before

(image error) Size: 4.7 KiB

Binary file not shown.

Before

(image error) Size: 3.9 KiB

Binary file not shown.

Before

(image error) Size: 3.3 KiB

Binary file not shown.

Before

(image error) Size: 3.5 KiB

Binary file not shown.

Before

(image error) Size: 3.8 KiB

Binary file not shown.

Before

(image error) Size: 2.7 KiB

Binary file not shown.

Before

(image error) Size: 6.9 KiB

Binary file not shown.

Before

(image error) Size: 4.3 KiB

Binary file not shown.

Before

(image error) Size: 5.9 KiB

Binary file not shown.

Before

(image error) Size: 3.4 KiB

Binary file not shown.

Before

(image error) Size: 3.3 KiB

Binary file not shown.

After

(image error) Size: 4.2 KiB

Binary file not shown.

After

(image error) Size: 5.2 KiB

Binary file not shown.

After

(image error) Size: 6.2 KiB

Binary file not shown.

After

(image error) Size: 5.8 KiB

Binary file not shown.

After

(image error) Size: 4.7 KiB

Binary file not shown.

After

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 3.0 KiB

Binary file not shown.

After

(image error) Size: 2.3 KiB

Binary file not shown.

After

(image error) Size: 3.0 KiB

Binary file not shown.

After

(image error) Size: 3.2 KiB

Binary file not shown.

After

(image error) Size: 3.2 KiB

Binary file not shown.

After

(image error) Size: 4.5 KiB

Binary file not shown.

After

(image error) Size: 3.2 KiB

Binary file not shown.

After

(image error) Size: 1.5 KiB

Binary file not shown.

After

(image error) Size: 4.9 KiB

Binary file not shown.

After

(image error) Size: 4.6 KiB

Binary file not shown.

After

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 2.9 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 4.7 KiB

Binary file not shown.

Before

(image error) Size: 2.2 KiB

Binary file not shown.

Before

(image error) Size: 3.5 KiB

Binary file not shown.

Before

(image error) Size: 4.3 KiB

Binary file not shown.

After

(image error) Size: 3.3 KiB

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

After

(image error) Size: 1.3 KiB

Binary file not shown.

After

(image error) Size: 2.8 KiB

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

After

(image error) Size: 8.7 KiB

Binary file not shown.

After

(image error) Size: 2.5 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 6.3 KiB

After

(image error) Size: 4.6 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

After

(image error) Size: 6.2 KiB

Binary file not shown.

After

(image error) Size: 53 KiB

Binary file not shown.

After

(image error) Size: 5.3 KiB

Binary file not shown.

After

(image error) Size: 5.5 KiB

Binary file not shown.

After

(image error) Size: 6.7 KiB

Binary file not shown.

After

(image error) Size: 6.9 KiB

Some files were not shown because too many files have changed in this diff Show More