mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
Fix in convolution node and 4 new convolution node templates
This commit is contained in:
parent
f05c8a408b
commit
ebeb998333
@ -181,4 +181,5 @@ func _serialize(data: Dictionary) -> Dictionary:
|
||||
return data
|
||||
|
||||
func _deserialize(data : Dictionary) -> void:
|
||||
if data.has("convolution_params"):
|
||||
set_convolution_params(data.convolution_params)
|
||||
|
1
addons/material_maker/nodes/edge_detect_1.mmg
Normal file
1
addons/material_maker/nodes/edge_detect_1.mmg
Normal file
@ -0,0 +1 @@
|
||||
{"convolution_params":{"name":"Edge detect 1","input_type":"rgb","matrix":[[-1,-1,-1],[-1,8,-1],[-1,-1,-1]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}
|
1
addons/material_maker/nodes/edge_detect_2.mmg
Normal file
1
addons/material_maker/nodes/edge_detect_2.mmg
Normal file
@ -0,0 +1 @@
|
||||
{"convolution_params":{"name":"Edge detect 2","input_type":"rgb","matrix":[[0,-1,0],[-1,4,-1],[0,-1,0]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}
|
1
addons/material_maker/nodes/edge_detect_3.mmg
Normal file
1
addons/material_maker/nodes/edge_detect_3.mmg
Normal file
@ -0,0 +1 @@
|
||||
{"convolution_params":{"name":"Edge detect 3","input_type":"rgb","matrix":[[1,0,-1],[0,0,0],[-1,0,1]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}
|
1
addons/material_maker/nodes/sharpen.mmg
Normal file
1
addons/material_maker/nodes/sharpen.mmg
Normal file
@ -0,0 +1 @@
|
||||
{"convolution_params":{"name":"Sharpen","input_type":"rgb","matrix":[[0,-1,0],[-1,5,-1],[0,-1,0]],"output_type":"rgb","x":1,"y":1},"name":"edge_detect","node_position":{"x":0,"y":0},"parameters":{"size":10},"type":"convolution"}
|
Loading…
Reference in New Issue
Block a user