mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Dump material pass literal shader arguments
This commit is contained in:
@ -193,6 +193,18 @@ namespace IW4
|
||||
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
|
||||
{
|
||||
Indent();
|
||||
|
Reference in New Issue
Block a user