Water texture caustics array
C++ support for water caustic texture array. Until this is fixed there will be rendering problems with the water.
Pull out the old water shader and see if that bug exists with that.
Godot version: Vulkan branch
OS/device including version: Linux/Arch/Manjaro
Issue description: I have a shader I wrote in a .tres file which uses a TextureArray.
In the shader tres:
uniform sampler2DArray caustic_sampler : hint_black; // Caustic sampler, (Texture array with 16 Textures for the animation)
this is serialized correctly it seems:
at the top of the material tres:
[ext_resource path="res://Textures/FX-Caustic-A.png" type="TextureArray" id=2]
then later on:
shader_param/caustic_sampler = ExtResource( 2 )
Now I have moved this code to C++. I set up the binding like so:
ADD_GROUP("Caustic", "caustic_");
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "caustic_texture_caustic", PROPERTY_HINT_RESOURCE_TYPE, "TextureArray"), "set_texture_caustic", "get_texture_caustic");
When I run this, I can't setup the texture.
If I manually edit the material tres to setup the caustic_texture_caustic it looks to be loading, but I can't see it in the editor.
This may not be a problem since I hand massaged the file - might need a report a godot bug though which I started above. Need to wait for Vulkan to be more complete in regard to post fx