-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The PSX had a Geometry Transformation Engine as COP2 for basic linear algebra calculations. It would be interesting to know if it still exists on the PS2's IOP, or is potentually emulated in software.
To enable the GTE, you first need to set bit 30 of COP0.r12.
Here is some sample code for using it, which calculates the weighted average of two color vectors: http://pastebin.com/0S3wGed9
The signature for the function there is void LoadAverageCol(unsigned char in1[3], unsigned char in2[3], long weight1, long weight2, unsigned char out[3]);
Note that the last parameter is passed on the stack.
Metadata
Metadata
Assignees
Labels
No labels