Changes

m
no edit summary
Line 58: Line 58:  
* GX_XF_VIEWPORT_Z = (viewport_farplane - viewport_nearplane) * 16777215
 
* GX_XF_VIEWPORT_Z = (viewport_farplane - viewport_nearplane) * 16777215
 
''Note: These formulas are taken from the libogc function GX_SetViewportJitter().''
 
''Note: These formulas are taken from the libogc function GX_SetViewportJitter().''
 +
    
GX_XF_VIEWPORT_FP and GX_XF_VIEWPORT_Z are 24-bit fixed-point values ranging between 0 and 16777215. These values respectively represent 0.0 and 1.0 in floating-point.
 
GX_XF_VIEWPORT_FP and GX_XF_VIEWPORT_Z are 24-bit fixed-point values ranging between 0 and 16777215. These values respectively represent 0.0 and 1.0 in floating-point.
 +
 
All the other viewport registers are 32-bit floating-point values.
 
All the other viewport registers are 32-bit floating-point values.
55

edits