- Home /
Question by
Wouter97 · May 07, 2020 at 07:45 PM ·
shaderrenderingrendertexture
Update all slices of CustomRenderTexture
I've got code to create a CustomRenderTexture, render stuff to it, and display it on a plane. This works as expected. I now want to make want to set the dimension
to TextureDimension.Tex2DArray
and so have 2 slices render ( volumeDepth=2
). This doesn't work for some reason, the first slice is correct, but the second one is all black/zero. It seems only the first slice is rendered.
I've also tried setting UpdateZones, or calling Update() manually, but that seems to have no effect.
Any ideas?
Comment
Your answer
Follow this Question
Related Questions
How to Sample colors from a quad to a RenderTexture? 1 Answer
RenderTexture to Shader everyframe 0 Answers
Pixelart camera shader 2 Answers
[Unity SRP] How do I clear 3d RW RenderTexture? 1 Answer
CustomRenderTexture not working 5 Answers