- Home /
Render with replaced shaders and materials to a renderTexture
I have some objects with some fancy shaders. But then I would like to render thoes same objects with a different camera ( to a renderTexture ). But as the output for the renderTexture, I dont want the same shaders or materials. I want unlit objects with only one color. What is the best way of doing this? I looked at camera.SetReplacementShader, But that doesent seem to let me change the textures, only the shader?
Also posted the question here: http://forum.unity3d.com/threads/130502-render-with-replaced-shaders-and-materials-to-a-renderTexture?p=880594#post880594
Couldn't you write a shader that outputs flat color, and use that as the replacement shader? Nothing says you have to accept color information from textures attached to the material, as far as I know.
Disclaimer: I don't do much graphics program$$anonymous$$g. ^^;
Your answer
Follow this Question
Related Questions
Render scene depth to a texture 4 Answers
Rendering a G-Buffer for a cubemap 0 Answers
Applying post-processing effects to RenderTextures 1 Answer
What exactly are replacement shaders? 1 Answer
Multiple Blit problem 2 Answers