From d24f17b88d901b779c81c7434995675eb2a17429 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 12:55:25 +0800 Subject: - Internal:: --- Runtime/Scripting/Rendering/Shader.bind.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Runtime/Scripting/Rendering/Shader.bind.cpp') diff --git a/Runtime/Scripting/Rendering/Shader.bind.cpp b/Runtime/Scripting/Rendering/Shader.bind.cpp index 08c96f9..4c0c321 100644 --- a/Runtime/Scripting/Rendering/Shader.bind.cpp +++ b/Runtime/Scripting/Rendering/Shader.bind.cpp @@ -2,6 +2,7 @@ #include "Runtime/Debug/Log.h" #include "Runtime/Graphics/GfxDevice.h" #include "Runtime/Common/DataBuffer.h" +#include "Runtime/Math/Math.h" using namespace LuaBind; @@ -130,7 +131,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector2) LUA_BIND_CHECK(L, "ST"); cc8* name = state.GetValue(1, ""); - Internal::Vector2 v2 = state.GetValue(2, Internal::Vector2::zero); + Vector2 v2 = state.GetValue(2, Vector2::zero); g_GfxDevice.SetUniformVec2(name, v2); return 1; @@ -144,7 +145,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector3) LUA_BIND_CHECK(L, "ST"); cc8* name = state.GetValue(1, ""); - Internal::Vector3 v3 = state.GetValue(2, Internal::Vector3::zero); + Vector3 v3 = state.GetValue(2, Vector3::zero); g_GfxDevice.SetUniformVec3(name, v3); return 1; @@ -158,7 +159,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector4) LUA_BIND_CHECK(L, "ST"); cc8* name = state.GetValue(1, ""); - Internal::Vector4 v4 = state.GetValue(2, Internal::Vector4::zero); + Vector4 v4 = state.GetValue(2, Vector4::zero); g_GfxDevice.SetUniformVec4(name, v4); return 1; @@ -172,7 +173,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetMatrix4) LUA_BIND_CHECK(L, "ST"); cc8* name = state.GetValue(1, ""); - Internal::Matrix44 m4 = state.GetValue(2, Internal::Matrix44::identity); + Matrix44 m4 = state.GetValue(2, Matrix44::identity); g_GfxDevice.SetUniformMat4(name, m4); return 1; -- cgit v1.1-26-g67d0