diff --git a/hecl/extern/boo b/hecl/extern/boo index 5b43b3152..23f49fcc1 160000 --- a/hecl/extern/boo +++ b/hecl/extern/boo @@ -1 +1 @@ -Subproject commit 5b43b31529447482add3a441596910db16e0ce4c +Subproject commit 23f49fcc19f2ef2be2e272ba00bfed863eaea423 diff --git a/hecl/lib/Backend/HLSL.cpp b/hecl/lib/Backend/HLSL.cpp index f2b815bdd..d88dd4cba 100644 --- a/hecl/lib/Backend/HLSL.cpp +++ b/hecl/lib/Backend/HLSL.cpp @@ -167,7 +167,7 @@ std::string HLSL::makeFrag(const ShaderFunction& lighting) const if (m_lighting) { if (lighting.m_entry) - retval += hecl::Format(" float4 lighting = %s();\n", lighting.m_entry); + retval += hecl::Format(" float4 lighting = %s(vtf.mvPos, vtf.mvNorm);\n", lighting.m_entry); else retval += " float4 lighting = float4(1.0,1.0,1.0,1.0);\n"; } @@ -215,7 +215,7 @@ std::string HLSL::makeFrag(const ShaderFunction& lighting, if (m_lighting) { if (lighting.m_entry) - retval += hecl::Format(" float4 lighting = %s();\n", lighting.m_entry); + retval += hecl::Format(" float4 lighting = %s(vtf.mvPos, vtf.mvNorm);\n", lighting.m_entry); else retval += " float4 lighting = float4(1.0,1.0,1.0,1.0);\n"; }