mirror of https://github.com/AxioDL/metaforce.git
Access color registers from lighting uniform on Metal
This commit is contained in:
parent
77269270cb
commit
c74f05f9ac
|
@ -40,6 +40,11 @@ private:
|
||||||
return hecl::Format("float3(%g,%g,%g)", vec.vec[0], vec.vec[1], vec.vec[2]);
|
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 EmitTexGenSource2(TexGenSrc src, int uvIdx) const;
|
||||||
std::string EmitTexGenSource4(TexGenSrc src, int uvIdx) const;
|
std::string EmitTexGenSource4(TexGenSrc src, int uvIdx) const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,7 +79,7 @@ private:
|
||||||
return hecl::Format("sampling%u.a", samplingIdx);
|
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);
|
return hecl::Format("colorReg%u", idx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue