Hi,
My scene is simple with just a few Quads, and I want to do two Passes rendering:
- first pass render the Quads with a single Texture, in fragment shader, write the texture LOD to renderTarget (renderTexture), call it LodRenderTexture,
- 2nd pass render the same Quads, use the mainTexture as previous pass, but also use the LodRenderTexture from the previous pass.
How can I achieve this in Unity through shader and material? I think Forward rendering is good enough. But I am not sure how to set the renderTexture and use it in shader.
Thanks