Category "glm-math"

Trying to implement shadow using OpenGL; depth texture seems correct but shadow is not displaying

trying to implement shadow. I checked my depth texture on a quad, and it seems correct, but the shadow is not displaying. I check my shadow vertex and fragment

OpenGL two rotations on one model

I have loaded a model of a coin, and I want it to constantly rotate around its axis: model = glm::rotate(model, (float)glfwGetTime(), glm::vec3(0, 1, 0)); But

Passing unsigned int input attribute to vertex shader

In a typical building of a vertex-array-buffer, I am trying to pass an unsigned int attribute along side other classical ones (vertex, normal, texture coordinat