- Home /
Question by
kvekos · Jan 26, 2017 at 11:29 AM ·
shaderrendertextureblit
Blit shader to RenderTexture results in solid black
I have set up a scene with a simple script that uses Blit to write to a RenderTexture:
void Update()
{
Graphics.Blit(sourceTexture, this.renderTexture, material);
RenderTexture.active = this.renderTexture;
}
For some reason this works with most Materials/Shaders but it won't work with this cellular noise generating shader on this Material I've created. It just results in a solid black RenderTexture image.
The strange part is that the noise material/shader looks fine in the game and scene viewports.
I have included all of the files and the scene here: My Scene
Why isn't it rendering properly?
noisecantbake.zip
(23.0 kB)
Comment