Skip to content

File "C........Python312\Lib\site-packages\moderngl\__init__.py", line 1647, in _vertex_array attribs = [types[x] if type(x) is int else types[locations[x]] for x in attribs] ^^^ KeyError: 'vertexTexCoord' #10

@IshaanGarud

Description

@IshaanGarud

The following error persists when you try to output a color using:-

#version 330 core
in vec3 fragmentColor;
in vec2 fragmentTexCoord;

uniform sampler2D imageTexture;

out vec4 color;
void main()
    {    color = vec4(1.0);       // White color   }

// Should've produce white screen

In short, you cant get an output rather than the texture fed to the shader (the screen).
It worked in previous versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions