Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Bentoon · Jun 08, 2014 at 03:35 PM · shaderseffects

BLUR Shader with Alpha Channel

I am looking for making a Blur effect

Not as a general property of the Camera (I have Pro)

but on specific Plane Materials & Alpha textures.

I want to toggle these on and off with touch

and I'd rather not make tow materials for every component... Seems this could be accomplished with shaders. But every thread I have encountered on BLUR Shaders with Alpha Channels comes up dry

?

Any ideas?

Thanks

~be

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Jun 08, 2014 at 03:50 PM 0
Share

Sure this can be accomplished with shaders by sampling neighbouring pixels from the texture and averaging them. Note that this won't blur the edges of the object though - for that you'll need an image effect.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by robusto · Jun 08, 2014 at 04:03 PM

If you want just the plane material with alpha textures to just be blurred just blur the actual textures in gimp or inkscape and make new materials and assign them when you tap the screen.

If you want to blur them in shaders, that will require 2 cameras. The first camera will have the post process blur shader. You need to create a new layer and set the Culling Mask to this new layer which also means you have to tag the Plane Material to this layer. When you tap the screen you have to swap the Plane between layers in script. The second camera will render everything normally and set the Clear Flags on the 2nd camera to "Don't Clear".

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bentoon · Jun 10, 2014 at 01:41 PM 0
Share

Thanks Robusto!

I was hoping that there was a shader that applied to Textures rather than having to make 2 textures, Load & swap

Rarely will I need a blur to be Universal, something will always be in focus.

Perhaps this is what the Depth of Field could accomplish?

Think of it like Windows Vista where there are shallow planes of semi transparent material with words that I am blurring & focusing between...?

Ideas?

Thanks!

~be

avatar image robusto · Jun 10, 2014 at 09:10 PM 0
Share

There is a way, you have to render the texture to a RenderTexture and apply the blur shader on that, save the RenderTexture dynamically and set it as the texture in the material that you want to apply. You have to read up on RenderTexture and understand the blur shader.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

"Fade" objects far from camera 1 Answer

All pixels drawn on my RenderTexture with a Sprite Diffuse material are shown as black instead of the intended texture colour 1 Answer

Is there a working transparent reflective shader avaliable? 2 Answers

Visual Effect Graph strange problem 0 Answers

How do I create horror-like horizontal motion blur effect on object? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges