Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
[OPENTK] uniform matrix not being assigned
Author Summary
minsin56 is in OpenTk
Post Body

i don't even know why this is happening when try to set a rotation matrix to the transform uniform in my shader nothing is drawing but when i set gl_position to just the vertex position my triangle draws

drawing code:

            GLHelper.Clear();
            GL.UseProgram(shader.Program);

            GL.ProgramUniformMatrix4(shader.Program, 20, false, ref proj);

            mesh.Draw();

            SwapBuffers();

shader code:

#version 440 core

layout (location = 0) in vec3 position;
layout(location = 1) in vec4 color;
layout (location = 20) uniform  mat4 transform;
uniform float f;

out vec4 fragcolor;

void main(void)
{
    gl_Position = transform * vec4(position,1.0);

    fragcolor = color;
}

Author
Account Strength
0%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,548
Link Karma
9,973
Comment Karma
23,263
Profile updated: 7 months ago
Posts updated: 8 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago