good progress today
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user