Add Attributes to Shader.
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m40s

This commit is contained in:
2024-08-24 23:27:10 -04:00
parent f96a3851a1
commit 04a4cbd54d
6 changed files with 280 additions and 32 deletions

View File

@@ -5,6 +5,7 @@
#include <chrono>
#include <J3ML/LinearAlgebra/Vector2.hpp>
#include <JGL/types/Font.h>
#include <JGL/types/Shader.h>
#include <JGL/Logger.h>
#include <ReTexture/Texture.h>
@@ -13,6 +14,7 @@ using namespace JGL;
JGL::Font FreeSans;
JGL::Font Jupiteroid;
JGL::Shader test_shader;
class Gizmo
{
@@ -135,7 +137,9 @@ public:
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
glDepthMask(GL_TRUE);
test_shader = Shader("assets/shader_programs/test_vertex.glsl", "assets/shader_programs/test_fragment.glsl");
image = new Texture("assets/sprites/Re3D.png", TextureFilteringMode::BILINEAR);
test_shader.SetAV2("position", {{2,2}});
}
Vector3 textAngle = {0,0,0};