good progress today

This commit is contained in:
Asuro
2025-02-26 01:20:31 +01:00
parent 60f1e72144
commit cde37a2289
10 changed files with 264 additions and 56 deletions

View File

@@ -3,7 +3,6 @@
#include "Instance.h"
#include "Level.h"
#include "Log.h"
#include "Mesh.h"
#include "Puzzle.h"
#include "SDL3/SDL_mouse.h"
#include "bgfx/bgfx.h"
@@ -19,8 +18,8 @@ namespace Game
{
if (ModelHandle == UINT16_MAX || MaterialHandle == UINT16_MAX) return;
if (!Visible) return;
auto& rendering = GameRendering::Get();
// Log("%u", ModelHandle);
Transform.UpdateMatrix();
bgfx::setTransform(Transform.M.M);
@@ -33,6 +32,7 @@ namespace Game
float TimeValues[4]{0.0f};
TimeValues[0] = GetInstance().Time.Now;
bgfx::setTexture(0, currentMaterial.Textures[0].SamplerHandle, currentMaterial.Textures[0].Handle);
bgfx::setTexture(1, rendering.DitherTextures.Sampler, rendering.DitherTextures.FinalTex);
bgfx::setUniform(currentMaterial.Uniforms[Material::UTime], TimeValues);
bgfx::setUniform(currentMaterial.Uniforms[Material::UDotColor], TestColor);