mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(gx): implement CShaderEffect::SetTexMtx
This commit is contained in:
parent
f43e9f62d6
commit
1ceb396b3d
@ -190,8 +190,19 @@ void CShaderEffect::SetTexMtx_Identity(uint32_t a1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CShaderEffect::SetTexMtx(const C44Matrix& matrix, uint32_t a2) {
|
void CShaderEffect::SetTexMtx(const C44Matrix& matrix, uint32_t tcIndex) {
|
||||||
// TODO
|
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) {
|
void CShaderEffect::SetTexMtx_SphereMap(uint32_t a1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user