mirror of https://github.com/ClassiCube/ClassiCube
Xbox: Try to fix texture warping
This commit is contained in:
parent
39c266af1b
commit
18a1f45ee4
|
|
@ -1,5 +0,0 @@
|
|||
Commands used to generate the .bin files:
|
||||
|
||||
`bannertool makebanner -i banner.png -a audio.wav -o banner.bin`
|
||||
|
||||
`bannertool makesmdh -s ClassiCube -l ClassiCube -p UnknownShadow200 -i icon.png -o icon.bin`
|
||||
|
|
@ -15,6 +15,9 @@
|
|||
|
||||
#define _NV_ALPHAKILL_EN (1 << 2)
|
||||
|
||||
// Enables perspective correct texture interpolation
|
||||
#define _NV_CONTROL0_TEX_PERSPECTIVE_ENABLE (1 << 20)
|
||||
|
||||
|
||||
/*########################################################################################################################*
|
||||
*-----------------------------------------------------GPU pushbuffer------------------------------------------------------*
|
||||
|
|
@ -38,7 +41,7 @@ static CC_INLINE uint32_t* NV2A_push2(uint32_t* p, int cmd, uint32_t val1, uint3
|
|||
*#########################################################################################################################*/
|
||||
static CC_INLINE uint32_t* NV2A_reset_control0(uint32_t* p) {
|
||||
// resets "z perspective" flag
|
||||
return NV2A_push1(p, NV097_SET_CONTROL0, 0);
|
||||
return NV2A_push1(p, NV097_SET_CONTROL0, _NV_CONTROL0_TEX_PERSPECTIVE_ENABLE);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue