TS/RA2 SHP shadow support.

This commit is contained in:
Justin Marshall
2020-08-03 08:36:06 -07:00
parent 19b9cb16f8
commit 65ebb17489
9 changed files with 48 additions and 4 deletions
+9
View File
@@ -427,6 +427,11 @@ long Buffer_Frame_To_Page(int shapeNum, int x, int y, int width, int height, str
//
// return 0;
//}
if(CCGlobalShadowRender) {
GL_EnableBlend(GL_BLEND_MULT);
}
xstart = xstart + WindowList[Window][WINDOWX];// + LogicPage->Get_XPos();
ystart = ystart + WindowList[Window][WINDOWY];// + LogicPage->Get_YPos();
//GL_SetClipRect(WindowList[Window][WINDOWX], WindowList[Window][WINDOWY], WindowList[Window][WINDOWWIDTH], WindowList[Window][WINDOWWIDTH]);
@@ -435,6 +440,10 @@ long Buffer_Frame_To_Page(int shapeNum, int x, int y, int width, int height, str
else
GL_RenderImage(shape_image, xstart, ystart, width, height, 0);
if (CCGlobalShadowRender) {
GL_EnableBlend(GL_BLEND_NONE);
}
// Here we just use the function that will blit the entire frame
// using the appropriate effects.
//if (blit_height > 0 && blit_width > 0) {