mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
TS/RA2 SHP shadow support.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user