Access color registers from lighting uniform on Metal

This commit is contained in:
Jack Andersen 2016-07-20 19:18:12 -10:00
parent 77269270cb
commit c74f05f9ac
2 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,11 @@ private:
return hecl::Format("float3(%g,%g,%g)", vec.vec[0], vec.vec[1], vec.vec[2]);
}
std::string EmitColorRegUse(unsigned idx) const
{
return hecl::Format("lu.colorReg%u", idx);
}
std::string EmitTexGenSource2(TexGenSrc src, int uvIdx) const;
std::string EmitTexGenSource4(TexGenSrc src, int uvIdx) const;
};

View File

@ -79,7 +79,7 @@ private:
return hecl::Format("sampling%u.a", samplingIdx);
}
std::string EmitColorRegUse(unsigned idx) const
virtual std::string EmitColorRegUse(unsigned idx) const
{
return hecl::Format("colorReg%u", idx);
}