I'm looking to add extra textures to the CanvasTexture class. I'm finding it difficult in finding the definition of it in the game engine. I can only find 2 references to CanvasTexture and they are both for the UI text.
I want to know how to either create my own class by extending the CanvasTexture class, or by extending the Texture2D class. I then want to be able to copy paste the existing shader code useD to draw these textures and modify the logic (so that I can incorporate the new textures).
Use case:
I want to use the built in CanvasTexture with diffuse, normal and specular, 2d shadows but I want to add an extra 1 - 2 texture inputs for to update damage masks dynamically at runtime with a shader.
Env:
- Godot 4
- C#
Any help would be appreciated thanks!