From fbee0e833bc982062104705ab420c4b0431e2c54 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Wed, 26 Apr 2023 13:35:01 -0700 Subject: [PATCH] SetLightSource dir default value --- extensions/olcPGEX_Graphics3D.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/olcPGEX_Graphics3D.h b/extensions/olcPGEX_Graphics3D.h index f3f6b979..265d256a 100644 --- a/extensions/olcPGEX_Graphics3D.h +++ b/extensions/olcPGEX_Graphics3D.h @@ -61,7 +61,7 @@ Author ~~~~~~ - David Barr, aka javidx9, ©OneLoneCoder 2018 + David Barr, aka javidx9, �OneLoneCoder 2018 */ @@ -203,7 +203,7 @@ namespace olc void SetTransform(olc::GFX3D::mat4x4 &transform); void SetTexture(olc::Sprite *texture); //void SetMipMapTexture(olc::GFX3D::MipMap *texture); - void SetLightSource(uint32_t nSlot, uint32_t nType, olc::Pixel col, olc::GFX3D::vec3d pos, olc::GFX3D::vec3d dir = { 0.0f, 0.0f, 1.0f }, float fParam = 0.0f); + void SetLightSource(uint32_t nSlot, uint32_t nType, olc::Pixel col, olc::GFX3D::vec3d pos, olc::GFX3D::vec3d dir = { 0.0f, 0.0f, 1.0f, 1.0f }, float fParam = 0.0f); uint32_t Render(std::vector &triangles, uint32_t flags = RENDER_CULL_CW | RENDER_TEXTURED | RENDER_DEPTH); uint32_t Render(std::vector &triangles, uint32_t flags, int nOffset, int nCount); uint32_t RenderLine(olc::GFX3D::vec3d &p1, olc::GFX3D::vec3d &p2, olc::Pixel col = olc::WHITE);