Skip to content

Shader Compilation Error: #version required and missing. / 'varying' : syntax error: syntax error #372

@EndlessJour9527

Description

@EndlessJour9527

Critical Error Log:

Shader(18) compilation error:
ERROR: 0:1: '' :  #version required and missing.
ERROR: 0:2: 'varying' : syntax error: syntax error

============== shader source ==============
precision mediump float;
varying vec4 v_color;
void main() {
    gl_FragColor = v_color;
}

============================================

Case Path Example:
https://github.com/M-CreativeLab/WebGL/tree/main/sdk/tests/conformance/attribs/gl-disabled-vertex-attrib.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions