summaryrefslogtreecommitdiffstats
path: root/scene/resources/shader_graph.h
diff options
context:
space:
mode:
authorJuan Linietsky <juan@okamstudio.com>2015-01-20 20:25:19 -0300
committerJuan Linietsky <juan@okamstudio.com>2015-01-20 20:36:25 -0300
commit11c1756257368f3cd41702016c3303c0d22e3b59 (patch)
tree65a18926a726df7e550e964f8e0169a6fe8268ba /scene/resources/shader_graph.h
parent79af8057107214a385505d3b130c42d8e4a7a875 (diff)
downloadredot-engine-11c1756257368f3cd41702016c3303c0d22e3b59.tar.gz
Visual Shader Editing for 2D
Editing 2D shaders with visual editor seems to work now.
Diffstat (limited to 'scene/resources/shader_graph.h')
-rw-r--r--scene/resources/shader_graph.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/scene/resources/shader_graph.h b/scene/resources/shader_graph.h
index ff2ca68335..5c34bedadd 100644
--- a/scene/resources/shader_graph.h
+++ b/scene/resources/shader_graph.h
@@ -406,7 +406,6 @@ VARIANT_ENUM_CAST( ShaderGraph::GraphError );
class MaterialShaderGraph : public ShaderGraph {
OBJ_TYPE( MaterialShaderGraph, ShaderGraph );
- RES_BASE_EXTENSION("sgp");
public:
@@ -416,4 +415,17 @@ public:
}
};
+class CanvasItemShaderGraph : public ShaderGraph {
+
+ OBJ_TYPE( CanvasItemShaderGraph, ShaderGraph );
+
+public:
+
+
+ CanvasItemShaderGraph() : ShaderGraph(MODE_CANVAS_ITEM) {
+
+ }
+};
+
+
#endif // SHADER_GRAPH_H