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

Fix shaders on iOS #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix shaders on iOS #5

wants to merge 1 commit into from

Conversation

jsfdez
Copy link
Contributor

@jsfdez jsfdez commented Mar 26, 2020

QOpenGLShader::compile(Fragment): ERROR: 0:7: 'vec4' : declaration must include a precision qualifier for type
ERROR: 0:8: Use of undeclared identifier 'c'
ERROR: 0:8: Use of undeclared identifier 'c'

2020-03-26T18:27:56 (default.warning): *** Problematic Fragment shader source code ***
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
uniform sampler2D tex;
uniform lowp float opacity;
varying highp vec2 uv;
varying highp vec4 color;
void main() {
    vec4 c = color * texture2D(tex, uv);
    gl_FragColor = vec4(c.rgb, c.a * opacity);
}

***

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

Successfully merging this pull request may close these issues.

1 participant