You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a game featuring an electronics circuit builder, and I've been prototyping whether I could use the GraphEdit Node to create the circuit part. I'd assume other projects may also need such a feature. For example, it would be nice to override the shaders to create animations. I'm okay with implementing the feature if it gets the go-ahead.
Describe the problem or limitation you are having in your project
In version 4.3, I'm able to override the line drawing algorithm by using the _get_connection_line function. I'm missing a similar functionality in GDscript to override the line shader.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Creating a way to override the shader will allow me to create a custom pixelated theme to my game.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The most straightforward way to enable this feature would be export the override_connections_shader function. Though I suspect there are good reasons why the function was not exported, as it relies on working well with the default line material.
We could also spend some time creating a new GraphConnection node and allow the material to be overridden there.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I couldn't find a quick workaround.
Is there a reason why this should be core and not an add-on in the asset library?
Honestly, I'm not sure. I'll need to develop this functionality for my game. I believe in Open Source and the power of sharing. If you think the enhancements needed for my specific use-case benefit the community, I'm happy to contribute my time.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
I'm developing a game featuring an electronics circuit builder, and I've been prototyping whether I could use the GraphEdit Node to create the circuit part. I'd assume other projects may also need such a feature. For example, it would be nice to override the shaders to create animations. I'm okay with implementing the feature if it gets the go-ahead.
Describe the problem or limitation you are having in your project
In version
4.3
, I'm able to override the line drawing algorithm by using the_get_connection_line
function. I'm missing a similar functionality in GDscript to override the line shader.Describe the feature / enhancement and how it helps to overcome the problem or limitation
Creating a way to override the shader will allow me to create a custom pixelated theme to my game.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The most straightforward way to enable this feature would be export the
override_connections_shader
function. Though I suspect there are good reasons why the function was not exported, as it relies on working well with the default line material.We could also spend some time creating a new GraphConnection node and allow the material to be overridden there.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I couldn't find a quick workaround.
Is there a reason why this should be core and not an add-on in the asset library?
Honestly, I'm not sure. I'll need to develop this functionality for my game. I believe in Open Source and the power of sharing. If you think the enhancements needed for my specific use-case benefit the community, I'm happy to contribute my time.
The text was updated successfully, but these errors were encountered: