Hi.
I’m currently working with Texture Arrays and Shader Graphs for a full DOTS/ECS project.
I was able to create some Animations by using Texture Arrays (instead of Spritesheets) and by creating a specific ShaderGraph that will print the texture at the given index.
Here’s how the shadergraph looks:
It basically takes a TextureArray and Certain texture index as input parameters.
It will then use the index to display the texture at the given index.
So far it works fine, but I’m having the following problem:
If you notice there’s another texture by the character’s side but that doesn’t seem to be affected by the distance (or size in this case).
Here are the settings I’m using for the shader graph:
I have no idea what the problem is.
Not sure if it’s related to ECS (and Hybrid Renderer V2) still being on Preview, or if I’m messing up something with the shader.
Anyways, I was hoping anyone could shed some light on what I might be facing.
Thanks in advance and let me know if you would like to know more info on my current setup.
Regards.