From 2d23f7d05fd4a982d5fd092153100ce26cb8aaf7 Mon Sep 17 00:00:00 2001 From: RodZill4 Date: Mon, 10 Feb 2020 23:11:32 +0100 Subject: [PATCH] Added TEX3D apply node --- addons/material_maker/nodes/tex3d_apply.mmg | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 addons/material_maker/nodes/tex3d_apply.mmg diff --git a/addons/material_maker/nodes/tex3d_apply.mmg b/addons/material_maker/nodes/tex3d_apply.mmg new file mode 100644 index 0000000..22e9b86 --- /dev/null +++ b/addons/material_maker/nodes/tex3d_apply.mmg @@ -0,0 +1,46 @@ +{ + "name": "tex3d_apply", + "node_position": { + "x": 0, + "y": 0 + }, + "parameters": { + + }, + "shader_model": { + "code": "", + "global": "", + "inputs": [ + { + "default": "0.0", + "label": "Height", + "name": "z", + "type": "f" + }, + { + "default": "0.0", + "label": "Color", + "name": "c", + "type": "f" + }, + { + "default": "vec3(1.0)", + "label": "Texture", + "name": "t", + "type": "tex3d" + } + ], + "instance": "", + "name": "TEX3D Apply", + "outputs": [ + { + "rgb": "$t(vec4($uv, $z($uv), $c($uv)))", + "type": "rgb" + } + ], + "parameters": [ + + ] + }, + "type": "shader" +} \ No newline at end of file