Skip to content

ktxview.cpp wrongly pointing the uniform variable #51

Open

Description

@Logickin-Lambda

Learning OpenGL and going through the texture part of the book, and I seems to find a bug in the ktxview example which I initially only getting a black screen.

Change the location of the uniform to 1 as shown seem to bring back the example to life:

glUniform1f(1, (float) (sin(t) * 16 + 16));

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions