2
\$\begingroup\$

Is it possible to append a blur shader to a standard (diffuse) shader ? I am looking for a way to do this as Unity indie doesn't allow render textures.

\$\endgroup\$
5
  • \$\begingroup\$ Can't you apply the blurr while rendering everything to screen? Might not be ideal but blending slightly and sampling randomly might give a nice enough effect. \$\endgroup\$ Commented Dec 7, 2012 at 14:00
  • \$\begingroup\$ @RoyT. What do you mean? I can't since I don't have access to render textures. \$\endgroup\$ Commented Dec 8, 2012 at 1:44
  • \$\begingroup\$ But you do have shaders right? I mean trying to blur everything individually while drawing it to screen and making everything slightly transparent so that the blend into each other. Not sure how good it would look though. \$\endgroup\$ Commented Dec 8, 2012 at 8:40
  • \$\begingroup\$ @RoyT. Got the shaders. \$\endgroup\$ Commented Dec 10, 2012 at 16:47
  • 3
    \$\begingroup\$ Yes, but it's much worse looking and way slower. Upgrade your Unity license or use a Freer engine. \$\endgroup\$ Commented Feb 13, 2013 at 20:37

1 Answer 1

2
\$\begingroup\$

In theory, you could use Shader Replacement to re-render your whole scene using shaders that offset the positions of everything slightly, and output with e.g. 25% alpha.

So you'd render the scene normally, and then:

Clear depth buffer
Set shader replacement to offset everything 1px left and 25% alpha
Render
Clear depth buffer
Set shader replacement to offset everything 1px right and 25% alpha
Render
Clear depth buffer
Set shader replacement to offset everything 1px up and 25% alpha
Render
Clear depth buffer
Set shader replacement to offset everything 1px down and 25% alpha
Render

Or something along those lines, anyway.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.