Dump material pass literal shader arguments

This commit is contained in:
Jan 2022-03-24 23:54:24 +01:00
parent 5fdde037a8
commit a06229042f

View File

@ -193,6 +193,18 @@ namespace IW4
m_stream << codeDestAccessor << " = UNKNOWN;\n"; m_stream << codeDestAccessor << " = UNKNOWN;\n";
} }
} }
else if (arg.type == MTL_ARG_LITERAL_VERTEX_CONST || arg.type == MTL_ARG_LITERAL_PIXEL_CONST)
{
if (arg.u.literalConst)
{
Indent();
m_stream << codeDestAccessor << " = float4( " << (*arg.u.literalConst)[0]
<< ", " << (*arg.u.literalConst)[1]
<< ", " << (*arg.u.literalConst)[2]
<< ", " << (*arg.u.literalConst)[3]
<< " );\n";
}
}
else else
{ {
Indent(); Indent();