27 gsSPClearGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BOTH | G_FOG | G_LIGHTING | G_TEXTURE_GEN |
28 G_TEXTURE_GEN_LINEAR | G_LOD | G_SHADING_SMOOTH | G_CLIPPING | 0x0040F9FA),
29 gsSPSetGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
30 gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_OFF),
226 (((frameBuffer1[(
SCREEN_WIDTH * y) + x - 1] >> 2) & 0xF) < 8) ||
227 (((frameBuffer1[(
SCREEN_WIDTH * y) + x + 0] >> 2) & 0xF) < 8) ||
228 (((frameBuffer1[(
SCREEN_WIDTH * y) + x + 1] >> 2) & 0xF) < 8))
265 #if !DX_PAUSE_LAG_FIX
266 if (((frameBuffer1[pixel] >> 2) & 0xF) < 8) {
277 zBuffer[pixel] = frameBuffer0[pixel] | 1;
280 zBuffer[pixel] = frameBuffer0[pixel] | 1;
291 gSPTexture(
gMainGfxPos++, -1, -1, 0, G_TX_RENDERTILE, G_ON);
296 gDPSetRenderMode(
gMainGfxPos++, G_RM_NOOP, G_RM_NOOP2);
299 for (i = 0; i < 40; i++) {
302 G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
303 gSPTextureRectangle(
gMainGfxPos++, 0, i * temp, 0x04FC, (i * 24) + 20, G_TX_RENDERTILE, 0, 0, 0x1000, 0x0400);
330 switch (bgRenderState) {
336 gDPSetBlendColor(
gMainGfxPos++, 0x80, 0x80, 0x80, 0xFF);
339 gDPSetRenderMode(
gMainGfxPos++, G_RM_VISCVG, G_RM_VISCVG2);
363 gDPSetRenderMode(
gMainGfxPos++, G_RM_NOOP, G_RM_NOOP2);
370 gDPSetRenderMode(
gMainGfxPos++, G_RM_OPA_SURF, G_RM_OPA_SURF2);
378 for (i = 0; i < 40; i++) {
381 G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
390 -1 << 5, 0 << 5, 1 << 10, 1 << 10);
403 gDPSetRenderMode(
gMainGfxPos++, G_RM_NOOP, G_RM_NOOP2);
417 if (backgroundMinX < viewportStartX) {
418 backgroundMinX = viewportStartX;
421 if (backgroundMinY < camera->viewportStartY) {
425 if (backgroundMaxX > viewportStartX + camera->
viewportW) {
426 backgroundMaxX = viewportStartX + camera->
viewportW;
433 if (backgroundMinX < 0) {
437 if (backgroundMinY < 0) {
441 if (backgroundMaxX < 1) {
445 if (backgroundMaxY < 1) {
466 gDPFillRectangle(
gMainGfxPos++, backgroundMinX, backgroundMinY, backgroundMaxX - 1, backgroundMaxY - 1);
473 gDPSetRenderMode(
gMainGfxPos++, G_RM_NOOP, G_RM_NOOP2);
477 if (backgroundMinY > 0) {
482 if (backgroundMinX > 0) {
483 gDPFillRectangle(
gMainGfxPos++, 0, backgroundMinY, backgroundMinX - 1, backgroundMaxY - 1);