~ | Weird random, needs to be upgrade

This commit is contained in:
TheRedShip
2025-01-02 14:47:10 +01:00
parent f64d6d0042
commit 21f2e84b61
7 changed files with 55 additions and 30 deletions

View File

@ -167,6 +167,10 @@ void Shader::set_int(const std::string &name, int value) const
{
glUniform1i(glGetUniformLocation(_program_compute, name.c_str()), value);
}
void Shader::set_float(const std::string &name, float value) const
{
glUniform1f(glGetUniformLocation(_program_compute, name.c_str()), value);
}
void Shader::set_vec2(const std::string &name, const glm::vec2 &value) const
{
glUniform2fv(glGetUniformLocation(_program_compute, name.c_str()), 1, glm::value_ptr(value));

View File

@ -90,7 +90,7 @@ void Window::mouseMoveCallback(GLFWwindow* window, double xpos, double ypos)
{
win->_scene->getCamera()->process_mouse(xoffset, yoffset, true);
// scene.frameCount = 0;
win->_frameCount = 0;
}
lastX = xpos;