mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Remove hbbtv changes - not needed
This commit is contained in:
parent
6a31404aa0
commit
6c13195fda
@ -83,12 +83,11 @@ uniform sampler2D screenTexture; \
|
|||||||
\
|
\
|
||||||
void main() \
|
void main() \
|
||||||
{ \
|
{ \
|
||||||
color = texture(screenTexture, TexCoords) * alphaValue; \
|
color = texture(screenTexture, TexCoords) * alphaValue; \
|
||||||
if (color == vec4(0.0,0.0,0.0,1.0))\
|
|
||||||
color.a = 0.0;\
|
|
||||||
} \
|
} \
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
const char *textVertexShader = "%s\n \
|
const char *textVertexShader = "%s\n \
|
||||||
\
|
\
|
||||||
layout (location = 0) in vec2 position; \
|
layout (location = 0) in vec2 position; \
|
||||||
@ -749,9 +748,6 @@ void cOglVb::SetShaderColor(GLint color)
|
|||||||
|
|
||||||
void cOglVb::SetShaderAlpha(GLint alpha)
|
void cOglVb::SetShaderAlpha(GLint alpha)
|
||||||
{
|
{
|
||||||
GLfloat a = (GLfloat) (alpha) / 255.0f;
|
|
||||||
if (a > 0.98)
|
|
||||||
a = 1.0;
|
|
||||||
Shaders[shader]->SetVector4f("alpha", 1.0f, 1.0f, 1.0f, (GLfloat) (alpha) / 255.0f);
|
Shaders[shader]->SetVector4f("alpha", 1.0f, 1.0f, 1.0f, (GLfloat) (alpha) / 255.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1277,7 +1273,7 @@ cOglCmdDrawText::cOglCmdDrawText(cOglFb * fb, GLint x, GLint y, unsigned int *sy
|
|||||||
this->x = x;
|
this->x = x;
|
||||||
this->y = y;
|
this->y = y;
|
||||||
this->limitX = limitX;
|
this->limitX = limitX;
|
||||||
this->colorText = colorText & 0xfeffffff;
|
this->colorText = colorText;
|
||||||
this->fontSize = fontSize;
|
this->fontSize = fontSize;
|
||||||
this->symbols = symbols;
|
this->symbols = symbols;
|
||||||
this->fontName = name;
|
this->fontName = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user