mirror of https://github.com/AxioDL/metaforce.git
HLSL backend update
This commit is contained in:
parent
35b202dfb3
commit
635193c2fe
|
@ -1 +1 @@
|
|||
Subproject commit 5b43b31529447482add3a441596910db16e0ce4c
|
||||
Subproject commit 23f49fcc19f2ef2be2e272ba00bfed863eaea423
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue