Hi everybody,
I can’t get renderTextures to work in the right way when I use 3D textures instead of 2D ones. Here is a quick snippet of the initialization.
public RenderTexture rtVol;
public int size = 128;
.
.
.
void Start () {
rtVol = new RenderTexture(size, size, 0, RenderTextureFormat.ARGB32);
rtVol.useMipMap = false;
rtVol.volumeDepth = size;
rtVol.isVolume = true;
rtVol.enableRandomWrite = true;
rtVol.Create();
}
Now, the 8 MB size seems right for the 128 x 128 x 128 32 bit 3D texture, but instead of the editor showing my a preview of some nice 3D Texture, all I get is this:
Likewise, when I try to write to that renderTexture from a pixel shader, using a RWTexture3D, nothing seems to work. I get no errors but I see no effects.
Any hints on what I’m doing wrong?