this is way too complicated for what it is doing

This commit is contained in:
Dynamitos
2025-01-24 16:12:17 +01:00
parent 45ed7c75be
commit a5950cd471
5 changed files with 28 additions and 16 deletions
+4 -2
View File
@@ -8,12 +8,14 @@ int main()
bvh.addModels(ModelLoader::loadModel("../cube.fbx"), glm::mat4());
bvh.generate();
Window w(1920, 1080);
std::vector<uint32_t> texture(1920 * 1080);
std::vector<unsigned char> texture(1920 * 1080 * 3);
for (int j = 10; j < 100; ++j)
{
for (int i = 0; i < 1920; ++i)
{
texture[j * 1920 + i] = 0xff00ffff;
texture[(j * 1920 + i) * 3] = 0xff;
texture[(j * 1920 + i) * 3 + 1] = 0xff;
texture[(j * 1920 + i) * 3 + 2] = 0x0;
}
}
while (true)