Comments from sdf3d_plane.mmg.

This commit is contained in:
Relintai 2021-10-12 12:11:49 +02:00
parent 55c23bc6b2
commit 95eb126b8f
2 changed files with 18 additions and 56 deletions

View File

@ -117,6 +117,24 @@ const Commons = preload("res://addons/mat_maker_gd/nodes/common/commons.gd")
#length, float, min: 0, max: 1, default:0.5, step:0.01
#radius, float, min: 0, max: 1, default:0.2, step:0.01
#----------------------
#sdf3d_plane.mmg
#Generates a plane that can be used to cut other shapes
#Outputs:
#X: $axis = x
#Y: $axis = y
#Z: $axis = z
#Output (sdf3dc) - Shows the plane
#$uv.$axis
#Inputs:
#axis, enum, default: 1, values: X, Y, Z
static func raymarch(uv : Vector2) -> Color:
var d : Vector2 = sdf3d_raymarch(uv);

View File

@ -1,56 +0,0 @@
{
"name": "sdf3d_plane",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"axis": 0
},
"seed": 0,
"seed_locked": false,
"shader_model": {
"code": "",
"global": "",
"inputs": [
],
"instance": "",
"longdesc": "Generates a plane that can be used to cut other shapes",
"name": "Plane",
"outputs": [
{
"longdesc": "Shows the plane",
"sdf3d": "$uv.$axis",
"shortdesc": "Output",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 2,
"label": "",
"longdesc": "The axis of the plane",
"name": "axis",
"shortdesc": "Axis",
"type": "enum",
"values": [
{
"name": "X",
"value": "x"
},
{
"name": "Y",
"value": "y"
},
{
"name": "Z",
"value": "z"
}
]
}
],
"shortdesc": "Plane"
},
"type": "shader"
}