Commit Graph

73 Commits

Author SHA1 Message Date
da126d1d45 Removed the input and output slot type parameter from the simple MMGraphNode property methods. Input and output was only available with universal properties anyway. 2021-10-09 19:15:15 +02:00
babee4f93a Fix division by zero error in shape.gd. 2021-10-09 19:07:50 +02:00
a0a2a81acf Implement type conversions for universal properties. 2021-10-09 19:07:32 +02:00
956d35fd84 Add support for disconnection and connecting universal properties via the mat_maker_gd editor plugin. 2021-10-09 18:48:01 +02:00
8758111bf6 Renamed output.gd to output_image.gd and implemented it's logic. 2021-10-09 14:47:55 +02:00
52858a6970 Add line edit slot support to mm_graph_node. 2021-10-09 14:47:26 +02:00
ebef2b0fd5 Update the test resource. 2021-10-09 14:09:44 +02:00
56a6bb75a9 The image property in shape.gd is not supposed to be exported. 2021-10-09 14:07:33 +02:00
c816f0e0fe Finish up the new mat_maker_gd input/output notification api and made shape use it. Now shape's image updates whenever a property changes. 2021-10-09 14:04:09 +02:00
7fd3ccd4ad Generic image rendering / property connection api for mat_maker_gd. 2021-10-09 13:33:59 +02:00
51dfad5018 Added image universal property to shape.gd. Not yet used. 2021-10-07 15:48:38 +02:00
6f5c7395ba Added a new output node. 2021-10-07 15:47:09 +02:00
e31aedbb1b Now add slot universal methods in MMGraphNode only take an universal property as argument. Also added an universal texture slot. Had to add init_properties and _init_properties, and had to change register_methods to _register_methods in subclasses. 2021-10-06 10:30:22 +02:00
8654865b1b Add everything needed to construct slots to the universal property. 2021-10-06 09:53:40 +02:00
efc5d8ae9c Added image type to MMNodeUniversalProperty. 2021-10-06 09:46:34 +02:00
f1afa03c66 Removed obj, getter and params from MMNodeUniversalProperty, now instead it will have an another MMNodeUniversalProperty ref as input_property. Also smaller simplifications. 2021-10-06 09:27:22 +02:00
1611efc9d1 Moved the SlotTypes enum from MMNode to MMNodeUniversalProperty. 2021-10-06 09:15:48 +02:00
9f24edd50f Now shape's radius and edge is using universal property. 2021-10-06 00:56:13 +02:00
cca43432f3 Add uv parameter to get_value, and call emit_changed() in get_default_value in the universal property. 2021-10-06 00:53:19 +02:00
04c3098390 Fix issues with universal property handling in MMGraphNode. 2021-10-06 00:51:52 +02:00
ebb8098ba2 Initial shapes node implementation / cleanup. It still needs universal inputs. 2021-10-06 00:24:13 +02:00
0923f1095b Enum slot support for mat_maker_gd. 2021-10-06 00:23:24 +02:00
27471b8bdf Universal input support for mat_maker_gd. Nothing is using it yet, so it might need fixes. 2021-10-05 23:14:54 +02:00
88aa8e84ac Optional range parameter for some of ht eadd slot methods. 2021-10-05 20:59:47 +02:00
59c43c0cab Now all add_slot methods return the slot index. 2021-10-05 20:21:11 +02:00
0548a8b7fd Did the same to noise_voronoi.gd. 2021-10-05 17:54:06 +02:00
28e7719c52 Add the original shader code top colors.gd aswell. 2021-10-05 17:27:15 +02:00
a80d0334a1 Updated noise_fbm code based on the new shaders. 2021-10-05 13:33:27 +02:00
49f9cf7d01 Added the shader code for noise_fbm aswell. 2021-10-05 13:26:40 +02:00
2074729364 Missed one. 2021-10-05 11:57:40 +02:00
057ad6c4bc Fix a few newlines. 2021-10-05 11:56:51 +02:00
1bc5139058 Merge branch 'master' of github.com:Relintai/broken_seals 2021-10-05 11:54:28 +02:00
9f41deb164 Added the current shader code from material maker as a comment to shapes. 2021-10-05 11:54:16 +02:00
b55487d6df Added a vector2 slot to MMGraphNode. 2021-10-04 18:29:11 +02:00
54003493f2 Fix errors. 2021-10-04 15:14:41 +02:00
e8a3874cfb Added universal slot type. 2021-10-04 15:10:38 +02:00
679e992ef8 Add step as a parameter to add_slot_float. 2021-10-04 15:00:00 +02:00
ef784088b4 Implemented int and float slots. 2021-10-04 14:58:15 +02:00
634d28b713 Added slot color support. 2021-10-04 13:28:00 +02:00
2eb6f789dd Added a SlotTypes Enum. 2021-10-04 13:27:29 +02:00
a13908fcec Also pass the seed to get_value for, and cleaned up perlin.gd. 2021-10-04 13:15:18 +02:00
0943dc32f8 Aldo pass slot_idx to get_value_for. 2021-10-04 13:11:08 +02:00
4b334a6ad6 Initial slot api for MMGraphNode. Already supports images. Also implemented the image generation helper methods for MMMaterial and MMNode. 2021-10-04 13:09:43 +02:00
537d44bc63 Now the editor loads and created nodes from MMNodes, and also implemented MMNode and graphnode creating logic for the add button/dialog. 2021-10-04 11:55:47 +02:00
1374df2b59 Not mat maker nodes inherit fromMMNode instead of TextureRect. 2021-10-04 11:54:52 +02:00
c5621036b2 Added an Add button to the mat maker's editor. 2021-10-04 11:27:35 +02:00
0c099d3325 Added a new MMGraphNode script. 2021-10-04 11:24:47 +02:00
137fd29f35 Also add MMMaterial as a custom type. 2021-10-04 11:24:02 +02:00
5bb4822164 MMNode now has a class_name declaration. 2021-10-04 11:23:43 +02:00
96e07af946 Removed the test scenes from mat_maker_gd. 2021-10-04 10:12:47 +02:00