mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
60 lines
912 B
Plaintext
60 lines
912 B
Plaintext
{
|
|
"name": "mwf_create_map",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"angle": 0,
|
|
"height": 1
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
{
|
|
"default": "1.0",
|
|
"label": "",
|
|
"name": "h",
|
|
"type": "f"
|
|
},
|
|
{
|
|
"default": "0.0",
|
|
"label": "",
|
|
"name": "o",
|
|
"type": "f"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"name": "Create Map",
|
|
"outputs": [
|
|
{
|
|
"rgb": "vec3($height*$h($uv), $angle*0.00277777777+0.5, rand(vec2(float($seed)+$o($uv))))",
|
|
"type": "rgb"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"control": "None",
|
|
"default": 1,
|
|
"label": "Height",
|
|
"max": 1,
|
|
"min": 0,
|
|
"name": "height",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
},
|
|
{
|
|
"control": "None",
|
|
"default": 0,
|
|
"label": "Angle",
|
|
"max": 180,
|
|
"min": -180,
|
|
"name": "angle",
|
|
"step": 0.1,
|
|
"type": "float"
|
|
}
|
|
]
|
|
},
|
|
"type": "shader"
|
|
} |