- Home /
Ambient occlusion in custom shader
Hey all,
Does anyone know if it's possible to create a custom ambient occlusion shader in normal unity 4 (so not pro)?
Thanks in advance.
Answer by Jessy · Dec 26, 2013 at 07:19 PM
There is only one way to do that, that I know of, and it only works in OpenGL ES. You'll need to read from the color buffer in the fragment shader; it has to be the color buffer because Unity doesn't give you the ability to write to more than one available buffer. On the desktop, you can't do that, but need to use render textures. In any case, the easy answer is "you need Pro".
Your answer

Follow this Question
Related Questions
Custom (Sprite-)Shader: Combine Sprite with light and original Sprite 0 Answers
Making a texture warp using geometry with shaders 1 Answer
Change linerenderer color to custom shader's color 1 Answer
Render real world UI infront of only 1 other Layer 1 Answer
Make Ambient Occlusion shader ignore some game objects 1 Answer