mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Dump material pass literal shader arguments
This commit is contained in:
parent
5fdde037a8
commit
a06229042f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user