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

[ERROR] [RENDERER] Can't link program sprite: Fragment info #566

Open
DuendeInexistente opened this issue Oct 24, 2018 · 2 comments
Open

Comments

@DuendeInexistente
Copy link

I cloned and built the repo, but it fails to load the shaders.

The whole log is read weirdly by markdown, but here's the error:

[INFO] [RENDERER] Loading shader /home/cammera/.local/share/falltergeist/data/shaders/21/sprite.vp
 [ERROR] [RENDERER] Can't link program sprite: Fragment info
 
 -------------
 
 0(128) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
 0(134) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
 0(140) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
 0(146) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
 0(152) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
 [CRITICAL] Failed to link shader

System

  • Falltergeist: c7d6870
  • Operating System: Ubuntu 17
  • Fallout: Gog.com
@adamkewley
Copy link
Contributor

This error appears to be because your GPU doesn't support indexing a uniform in the fragment shader. I found articles mentioning the error:

Specifically mentions GeForce 7x cards, if you have one? Specific info for developers is that the fragment shader for sprites:

https://github.com/falltergeist/falltergeist/blob/develop/data/shaders/21/sprite.fp

Is indexing uniform int cnt[6]; in several places, which (as far as I understand) isn't allowed on older hardware and should instead be handled using a texture (e.g. make texture in app, pass to GPU, use texture mapping in GPU to derefence a sprite palette color, etc.)

@alexeevdv
Copy link
Contributor

Thanks for investigating the issue. We'll see what can be done here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants