Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by kellerr112 · Jan 20, 2016 at 03:12 PM · androidshadercgblurgles

Shader breaks on device.

Hello! I've been trying to make a simple gaussian blur shader using Grabpass.

I've managed to get it to work in the editor. The problem right now is that it doesn't display on Note 3 with Android 6.0. It gives me 'broken shader' pink instead.

What I do is run 4 of these passes:

 GrabPass{}
     
 Pass
 {
     CGPROGRAM
     #pragma target 2.0
     #pragma vertex vert
     #pragma fragment frag1
     ENDCG
 }

And the pass contains the following things :

 float4 frag3 (v2f i) : COLOR
 {
     pixel_info pinfo;
     pinfo.tex = _GrabTexture;
     pinfo.uv = UNITY_PROJ_COORD(i.proj);        
     pinfo.texelSize = _GrabTexture_TexelSize;
     return GaussianBlur(pinfo, _Resolution * 1.2, _Direction.zw);
 }


This works without issue in the editor, however once i compile it and run the project on mobile it no longer works.

The only error i have managed to get out of it is the following, occurring after the build finishes :

 Shader error in 'Custom/GaussianBlur': 'assign' :  cannot convert from 'uniform sampler2D' to 'sampler2D' at line 94 (on gles)

 Compiling Vertex program
 Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_NO_LINEAR_COLORSPACE

Where line 94 is the

 pinfo.uv = UNITY_PROJ_COORD(i.proj);        

line, where no actual textures are being assigned. This is also very weird since the _GrabTexture property is not uniform.

Has anyone run into anything like this in the past? Any Suggestions?

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 Krstn · Dec 05, 2018 at 10:33 AM 0
Share

Any luck in solving this? I have stumbled upon the same issue. Weird thing, on my friends computer (he's using windows i use macos) it works fine :/

0 Replies

· Add your reply
  • Sort: 

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

54 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mirror reflection not working as planned 0 Answers

Debugging on an Android device which I don't have 0 Answers

Shader blurs only one shader 0 Answers

About blur shader 0 Answers

Hi, I'm doing a geometry shader to be able to perform grass. I have a problem (which I think it is) with the transformation of the vertecies. 1 Answer


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