HLSL backend update

This commit is contained in:
Jack Andersen 2016-04-04 09:34:22 -10:00
parent 35b202dfb3
commit 635193c2fe
2 changed files with 3 additions and 3 deletions

2
hecl/extern/boo vendored

@ -1 +1 @@
Subproject commit 5b43b31529447482add3a441596910db16e0ce4c
Subproject commit 23f49fcc19f2ef2be2e272ba00bfed863eaea423

View File

@ -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";
}