RenderWithShader in Unity free

Hey everyone,

Is it possible to use RenderWithShader with Unity free ? As you need to assign a RenderTexture on the TargetTexture of your camera it seems impossible tu use this feature in Unity Free but maybe I am wrong.

Thank you !

Not sure about RenderWithShader, but you can use SetReplacemenstShader:

Right but it’s the same problem, I can’t use the TargetTexture :slight_smile:

You don’t need to assign a texture to render with replacement. The result will be visible on the screen.

Unfortunately, it doesn’t work. It seems that I need to assign a targetTexture on my camera to see the replacement shader. But maybe I am missing something, could you provide an example which might work ?

This will replace the standard diffuse with unlit.

@SunnySunshine Thank you for your example, I’ve also made my own research and I figured out on how to render with replaced shader a deactivated camera.
Thank you for your help ! :slight_smile:

No worries. Good luck with your project!