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.
\$\begingroup\$
\$\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\$Roy T.– Roy T.2012-12-07 14:00:31 +00:00Commented 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\$Daniel– Daniel2012-12-08 01:44:28 +00:00Commented 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\$Roy T.– Roy T.2012-12-08 08:40:31 +00:00Commented Dec 8, 2012 at 8:40
-
\$\begingroup\$ @RoyT. Got the shaders. \$\endgroup\$Daniel– Daniel2012-12-10 16:47:23 +00:00Commented 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\$Sean Middleditch– Sean Middleditch2013-02-13 20:37:23 +00:00Commented Feb 13, 2013 at 20:37
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
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.