feat(gx): implement CShaderEffect::SetTexMtx

This commit is contained in:
fallenoak committed 2025-12-25 22:00:12 -06:00
1 parent f43e9f62d6
commit 1ceb396b3d
1 file changed
+13 -2
+13 -2
View File
@@ -190,8 +190,19 @@ void CShaderEffect::SetTexMtx_Identity(uint32_t a1) {
}
}
void CShaderEffect::SetTexMtx(const C44Matrix& matrix, uint32_t a2) {
// TODO
void CShaderEffect::SetTexMtx(const C44Matrix& matrix, uint32_t tcIndex) {
if (CShaderEffect::s_enableShaders) {
float constants[] = {
matrix.a0, matrix.b0, matrix.c0, matrix.d0,
matrix.a1, matrix.b1, matrix.c1, matrix.d1
};
GxShaderConstantsSet(GxSh_Vertex, 2 * tcIndex + 6, constants, 2);
return;
}
// TODO non-shader path
}
void CShaderEffect::SetTexMtx_SphereMap(uint32_t a1) {