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 didito · Mar 04, 2015 at 04:07 PM · androidshadervertex shadersamsungglsl

conditional vertex texture fetch / texture lookups in vertex shader

hello.

so I just found out that our old android friend Samsung S3 has a problem with vertex texture fetch. the unity error i got via logcat:

 03-03 14:29:02.083: E/Unity(6662): (Filename: Runtime/GfxDevice/opengles/GlslGpuProgramGLES.cpp Line: 413)
 03-03 14:29:02.083: E/Unity(6662): GLES20: vprog textures are used, but not supported.

as far as i understand - although support is required by GLES2.0, they bypass it by returning zero for GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS [1].

the tex2Dlod() call in our surface shader is already wrapped in

 #if !defined(SHADER_API_OPENGL)
 ...
 #endif

and has the necessary #pragma target 3.0 defined. and it works on devices that support it.

my question is what would be the best way to disable that for problematic devices only (like the S3)? there are no device group keywords for shader preprocessor tokens and i don't wanna swap material on load just for one device. so maybe via a custom Shader.EnableKeyword? but then how would i access the value of GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS to determine this case?

cheers, d


[1]: https://www.khronos.org/message_boards/showthread.php/7847-It-looks-like-modern-Galaxy-S2-does-not-support-opengl-es-2 (Galaxy 2, but i guess it is the same)

Comment
Add comment · Show 2
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 mcmorry · Apr 08, 2015 at 01:16 PM 0
Share

I have the same problem, and I set a fallback shader that work on S3. It works, but unfortunately we still receive error reports from all these devices.

avatar image didito · Apr 08, 2015 at 01:46 PM 0
Share

yes, our fallback shader also works. seems like not the show stopper i suspected it to be.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Uniform variable fails on the android 0 Answers

Is there something wrong with Application.persistentDataPath (on Samsung s6 running Android 5.1.1) ? 1 Answer

GLSL shader not working on android 0 Answers

GLSL Shaders not working on android. 0 Answers

GLSL error 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