Have the original lighting system back and a little lightbulb model to show where the light is.

This commit is contained in:
Zed A. Shaw 2026-09-13 16:06:18 -04:00
parent 3231f747a9
commit a29494325b
143 changed files with 16360 additions and 9 deletions

View file

@ -0,0 +1,33 @@
#include <deque>
#include <string>
#include <fuc2/testing.hpp>
#include "shader.hpp"
using namespace fuc2;
namespace shader_tests {
void test_load_shaders() {
Shader shader({"shaders/3.3.shader.vs", "shaders/3.3.shader.fs", ""});
shader.use();
CHECK(shader.ID != UINT_MAX, "Shader not initialized");
}
void test_compile_fail() {
auto runner = [&]() {
Shader shader({"tests/bad_shader.vs", "shaders/3.3.shader.fs", ""});
};
BLOWS_UP(runner, "compile fail should blow up");
}
fuc2::Set TESTS{
.name="shaders",
.options={ .fail_fast=false },
.tests={
TEST(test_load_shaders),
TEST(test_compile_fail),
}
};
}