mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
34 lines
511 B
Plaintext
34 lines
511 B
Plaintext
{
|
|
"name": "circle_map",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
{
|
|
"default": "vec4($uv, 0.0, 1.0)",
|
|
"label": "",
|
|
"name": "in",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"name": "CircleMap",
|
|
"outputs": [
|
|
{
|
|
"rgba": "$in(vec2(fract(atan($uv.y-0.5, $uv.x-0.5)*0.15915494309), min(0.99999, 2.0*length($uv-vec2(0.5)))))",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"parameters": [
|
|
|
|
]
|
|
},
|
|
"type": "shader"
|
|
} |