added some missing post process lua bindings

This commit is contained in:
Turanszki Janos
2020-08-27 21:09:56 +02:00
parent ad78833fba
commit fc75e46ead
8 changed files with 43 additions and 1 deletions
@@ -644,6 +644,7 @@ It inherits functions from RenderPath2D, so it can render a 2D overlay.
- SetReflectionsEnabled(bool value)
- SetFXAAEnabled(bool value)
- SetBloomEnabled(bool value)
- SetBloomThreshold(bool value)
- SetColorGradingEnabled(bool value)
- SetColorGradingTexture(Texture value)
- SetVolumeLightsEnabled(bool value)
@@ -652,6 +653,7 @@ It inherits functions from RenderPath2D, so it can render a 2D overlay.
- SetMotionBlurEnabled(bool value)
- SetMotionBlurStrength(float value)
- SetSSSEnabled(bool value)
- SetDitherEnabled(bool value)
- SetDepthOfFieldEnabled(bool value)
- SetDepthOfFieldFocus(float value)
- SetDepthOfFieldStrength(float value)
+30
View File
@@ -28,12 +28,14 @@ Luna<RenderPath3D_BindLua>::FunctionType RenderPath3D_BindLua::methods[] = {
lunamethod(RenderPath3D_BindLua, SetReflectionsEnabled),
lunamethod(RenderPath3D_BindLua, SetFXAAEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomThreshold),
lunamethod(RenderPath3D_BindLua, SetColorGradingEnabled),
lunamethod(RenderPath3D_BindLua, SetVolumeLightsEnabled),
lunamethod(RenderPath3D_BindLua, SetLightShaftsEnabled),
lunamethod(RenderPath3D_BindLua, SetLensFlareEnabled),
lunamethod(RenderPath3D_BindLua, SetMotionBlurEnabled),
lunamethod(RenderPath3D_BindLua, SetSSSEnabled),
lunamethod(RenderPath3D_BindLua, SetDitherEnabled),
lunamethod(RenderPath3D_BindLua, SetDepthOfFieldEnabled),
lunamethod(RenderPath3D_BindLua, SetEyeAdaptionEnabled),
lunamethod(RenderPath3D_BindLua, SetMSAASampleCount),
@@ -133,6 +135,21 @@ int RenderPath3D_BindLua::SetBloomEnabled(lua_State* L)
wiLua::SError(L, "SetBloomEnabled(bool value) not enough arguments!");
return 0;
}
int RenderPath3D_BindLua::SetBloomThreshold(lua_State* L)
{
if (component == nullptr)
{
wiLua::SError(L, "SetBloomThreshold(float value) component is null!");
return 0;
}
if (wiLua::SGetArgCount(L) > 0)
{
((RenderPath3D*)component)->setBloomThreshold(wiLua::SGetFloat(L, 1));
}
else
wiLua::SError(L, "SetBloomThreshold(float value) not enough arguments!");
return 0;
}
int RenderPath3D_BindLua::SetColorGradingEnabled(lua_State* L)
{
if (component == nullptr)
@@ -211,6 +228,19 @@ int RenderPath3D_BindLua::SetSSSEnabled(lua_State* L)
wiLua::SError(L, "SetSSSEnabled(bool value) not enough arguments!");
return 0;
}
int RenderPath3D_BindLua::SetDitherEnabled(lua_State* L)
{
if (component == nullptr)
{
wiLua::SError(L, "SetDitherEnabled(bool value) component is null!");
return 0;
}
if (wiLua::SGetArgCount(L) > 0)
((RenderPath3D*)component)->setDitherEnabled(wiLua::SGetBool(L, 1));
else
wiLua::SError(L, "SetDitherEnabled(bool value) not enough arguments!");
return 0;
}
int RenderPath3D_BindLua::SetDepthOfFieldEnabled(lua_State* L)
{
if (component == nullptr)
+2
View File
@@ -24,12 +24,14 @@ public:
int SetReflectionsEnabled(lua_State* L);
int SetFXAAEnabled(lua_State* L);
int SetBloomEnabled(lua_State* L);
int SetBloomThreshold(lua_State* L);
int SetColorGradingEnabled(lua_State* L);
int SetVolumeLightsEnabled(lua_State* L);
int SetLightShaftsEnabled(lua_State* L);
int SetLensFlareEnabled(lua_State* L);
int SetMotionBlurEnabled(lua_State* L);
int SetSSSEnabled(lua_State* L);
int SetDitherEnabled(lua_State* L);
int SetDepthOfFieldEnabled(lua_State* L);
int SetEyeAdaptionEnabled(lua_State* L);
int SetMSAASampleCount(lua_State* L);
@@ -27,12 +27,14 @@ Luna<RenderPath3D_Deferred_BindLua>::FunctionType RenderPath3D_Deferred_BindLua:
lunamethod(RenderPath3D_BindLua, SetReflectionsEnabled),
lunamethod(RenderPath3D_BindLua, SetFXAAEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomThreshold),
lunamethod(RenderPath3D_BindLua, SetColorGradingEnabled),
lunamethod(RenderPath3D_BindLua, SetVolumeLightsEnabled),
lunamethod(RenderPath3D_BindLua, SetLightShaftsEnabled),
lunamethod(RenderPath3D_BindLua, SetLensFlareEnabled),
lunamethod(RenderPath3D_BindLua, SetMotionBlurEnabled),
lunamethod(RenderPath3D_BindLua, SetSSSEnabled),
lunamethod(RenderPath3D_BindLua, SetDitherEnabled),
lunamethod(RenderPath3D_BindLua, SetDepthOfFieldEnabled),
lunamethod(RenderPath3D_BindLua, SetEyeAdaptionEnabled),
lunamethod(RenderPath3D_BindLua, SetSharpenFilterEnabled),
@@ -27,12 +27,14 @@ Luna<RenderPath3D_Forward_BindLua>::FunctionType RenderPath3D_Forward_BindLua::m
lunamethod(RenderPath3D_BindLua, SetReflectionsEnabled),
lunamethod(RenderPath3D_BindLua, SetFXAAEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomThreshold),
lunamethod(RenderPath3D_BindLua, SetColorGradingEnabled),
lunamethod(RenderPath3D_BindLua, SetVolumeLightsEnabled),
lunamethod(RenderPath3D_BindLua, SetLightShaftsEnabled),
lunamethod(RenderPath3D_BindLua, SetLensFlareEnabled),
lunamethod(RenderPath3D_BindLua, SetMotionBlurEnabled),
lunamethod(RenderPath3D_BindLua, SetSSSEnabled),
lunamethod(RenderPath3D_BindLua, SetDitherEnabled),
lunamethod(RenderPath3D_BindLua, SetDepthOfFieldEnabled),
lunamethod(RenderPath3D_BindLua, SetEyeAdaptionEnabled),
lunamethod(RenderPath3D_BindLua, SetMSAASampleCount),
@@ -27,12 +27,14 @@ Luna<RenderPath3D_TiledDeferred_BindLua>::FunctionType RenderPath3D_TiledDeferre
lunamethod(RenderPath3D_BindLua, SetReflectionsEnabled),
lunamethod(RenderPath3D_BindLua, SetFXAAEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomThreshold),
lunamethod(RenderPath3D_BindLua, SetColorGradingEnabled),
lunamethod(RenderPath3D_BindLua, SetVolumeLightsEnabled),
lunamethod(RenderPath3D_BindLua, SetLightShaftsEnabled),
lunamethod(RenderPath3D_BindLua, SetLensFlareEnabled),
lunamethod(RenderPath3D_BindLua, SetMotionBlurEnabled),
lunamethod(RenderPath3D_BindLua, SetSSSEnabled),
lunamethod(RenderPath3D_BindLua, SetDitherEnabled),
lunamethod(RenderPath3D_BindLua, SetDepthOfFieldEnabled),
lunamethod(RenderPath3D_BindLua, SetEyeAdaptionEnabled),
lunamethod(RenderPath3D_BindLua, SetSharpenFilterEnabled),
@@ -27,12 +27,14 @@ Luna<RenderPath3D_TiledForward_BindLua>::FunctionType RenderPath3D_TiledForward_
lunamethod(RenderPath3D_BindLua, SetReflectionsEnabled),
lunamethod(RenderPath3D_BindLua, SetFXAAEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomEnabled),
lunamethod(RenderPath3D_BindLua, SetBloomThreshold),
lunamethod(RenderPath3D_BindLua, SetColorGradingEnabled),
lunamethod(RenderPath3D_BindLua, SetVolumeLightsEnabled),
lunamethod(RenderPath3D_BindLua, SetLightShaftsEnabled),
lunamethod(RenderPath3D_BindLua, SetLensFlareEnabled),
lunamethod(RenderPath3D_BindLua, SetMotionBlurEnabled),
lunamethod(RenderPath3D_BindLua, SetSSSEnabled),
lunamethod(RenderPath3D_BindLua, SetDitherEnabled),
lunamethod(RenderPath3D_BindLua, SetDepthOfFieldEnabled),
lunamethod(RenderPath3D_BindLua, SetEyeAdaptionEnabled),
lunamethod(RenderPath3D_BindLua, SetMSAASampleCount),
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking API changes
const int minor = 47;
// minor bug fixes, alterations, refactors, updates
const int revision = 22;
const int revision = 23;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);