mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Added new blend types, added lighting to first soviet mission.
This commit is contained in:
@@ -19,7 +19,7 @@ static void GL_SetRenderTextureCallback(const ImDrawList* parent_list, const ImD
|
||||
}
|
||||
else {
|
||||
renderTexture->MakeCurrent();
|
||||
glClearColor(0.5, 0.5, 0.5, 1.0);
|
||||
glClearColor(0.45, 0.45, 0.45, 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
}
|
||||
@@ -31,10 +31,14 @@ static void GL_EnableBlendCallback(const ImDrawList* parent_list, const ImDrawCm
|
||||
glBlendEquation(GL_FUNC_ADD);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
}
|
||||
else {
|
||||
else if(blendType == GL_BLEND_ADD) {
|
||||
glBlendEquation(GL_ADD);
|
||||
glBlendFunc(GL_DST_COLOR, GL_SRC_COLOR);
|
||||
}
|
||||
else {
|
||||
glBlendEquation(GL_MULT);
|
||||
glBlendFunc(GL_DST_COLOR, GL_ZERO);
|
||||
}
|
||||
}
|
||||
|
||||
void GL_EnableBlend(GLBlendType blendType) {
|
||||
|
||||
Reference in New Issue
Block a user