1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add custom shader attributes to Canvas Item Shaders

This commit is contained in:
Giwayume
2023-12-27 15:58:50 -05:00
parent 13a0d6e9b2
commit bb83c4adec
10 changed files with 106 additions and 25 deletions

View File

@@ -269,6 +269,7 @@ public:
RID material;
GLES3::CanvasMaterialData *material_data = nullptr;
CanvasShaderGLES3::ShaderVariant shader_variant = CanvasShaderGLES3::MODE_QUAD;
uint64_t vertex_input_mask;
const Item::Command *command = nullptr;
Item::Command::Type command_type = Item::Command::TYPE_ANIMATION_SLICE; // Can default to any type that doesn't form a batch.