Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question
    
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. –  Roy T. Dec 7 '12 at 14:00
    
@RoyT. What do you mean? I can't since I don't have access to render textures. –  Dan the Man Dec 8 '12 at 1:44
    
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. –  Roy T. Dec 8 '12 at 8:40
    
@RoyT. Got the shaders. –  Dan the Man Dec 10 '12 at 16:47
3  
Yes, but it's much worse looking and way slower. Upgrade your Unity license or use a Freer engine. –  Sean Middleditch Feb 13 '13 at 20:37

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.