Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader code compilation issue on android browsers only #71

Closed
Abuzar-Thanvi opened this issue Aug 27, 2024 · 1 comment
Closed

Shader code compilation issue on android browsers only #71

Abuzar-Thanvi opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Abuzar-Thanvi
Copy link

  • three 0.164.1:
  • @pmndrs/vanilla 1.19.1:
  • node 20.16.0:
  • npm (or yarn) 10.8.1:

Problem description:

THIS OCCURS ONLY ON ANDROID BROWSERS

Note: This issue can be reproduced on : https://vis-prime.github.io/explore-vanilla-drei/?scene=Cloud

The shader code for clouds class (drei-vanilla/src/core/Cloud.ts) is causing an error due to a conflict in names for shader attributes in the CloudMaterialMaker function

Below is the complete error message

_three.module.js:20131 THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Material Name:
Material Type: MeshLambertMaterial

Program Info Log: Name conflicts between an uniform and an attribute: opacity_

Suggested solution:

Just rename the repeated attribute and all its used instances and it'll be fixed

@Abuzar-Thanvi Abuzar-Thanvi added the bug Something isn't working label Aug 27, 2024
@vis-prime
Copy link
Collaborator

vis-prime commented Aug 28, 2024

Confirmed

Screenshot 2024-08-28 235938

Happens on the react version too https://drei.pmnd.rs/?path=/story/staging-cloud--cloud-st

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants