Well, this is kind of complex, so I will try to explain it the best way I can.
I want to create a bitmap that could then be used inside other scripts. Since the bitmap is a bit big (2048px x 1535px), the fastest way to create it is through a shader.
I already created a TextureRect , set its Texture to ExternalTexture, created a ShaderMaterial for it, and created a new shader, that I coded to create some sort of image.
Now, I would like to be able to access the generated bitmap from within a GDScript.
By "access", I mean, be able to access the pixel values, and even be able to generate a new bitmap, by changing the Uniform variables that are defined in the Shader.
Is this possible?
In a nutshell:
1) create a bitmap using a Shader (since it is fast) that can be accessed from a GDScript?
2) from within a GCScript, force the Shader to recreate a new bitmap with new parameters?