diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-09-30 14:31:44 -0700 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-09-30 14:31:44 -0700 |
| commit | 57e735af3911621ce9482d033697bd95cbfdf290 (patch) | |
| tree | 48db9c89abe785cca7dcbe32e6ad985aaf655f05 /src/JSystem/J3DGraphBase/J3DMatBlock.cpp | |
| parent | a85fb7c63ba10f6374eac3df3e42ff687cbb86ef (diff) | |
J3DMatBlock closer
Diffstat (limited to 'src/JSystem/J3DGraphBase/J3DMatBlock.cpp')
| -rw-r--r-- | src/JSystem/J3DGraphBase/J3DMatBlock.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DMatBlock.cpp b/src/JSystem/J3DGraphBase/J3DMatBlock.cpp index 6c125d74..edb8a2dd 100644 --- a/src/JSystem/J3DGraphBase/J3DMatBlock.cpp +++ b/src/JSystem/J3DGraphBase/J3DMatBlock.cpp @@ -14,6 +14,11 @@ #include "dolphin/types.h" #include "MSL_C/string.h" +inline GXAttnFn J3DColorChan::getAttnFn() { + u8 attnFnTbl[] = { GX_AF_NONE, GX_AF_SPEC, GX_AF_NONE, GX_AF_SPOT }; + return GXAttnFn(attnFnTbl[mChanCtrl >> 9 & 0x03]); +} + extern bool isTexNoReg(void*); extern u16 getTexNoReg(void*); extern void loadTexNo(u32, const u16 &); |
