mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Refactor shaders to use GLES3 syntax
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b23c2ba3e3
commit
897d7a253d
@@ -47,15 +47,3 @@ vec2 calcLineTransformedAxisPos(vec2 originalAxisPos, vec2 shiftedPos, mat4 mode
|
||||
}
|
||||
|
||||
// FS (DO NOT modify this comment, it marks up block of fragment shader functions).
|
||||
|
||||
// Because of a bug in OpenGL driver on Samsung Google Nexus this workaround is here.
|
||||
// It must be used in shaders which do not have any sampler2D usage.
|
||||
vec4 samsungGoogleNexusWorkaround(vec4 color)
|
||||
{
|
||||
#ifdef SAMSUNG_GOOGLE_NEXUS
|
||||
const float kFakeColorScalar = 0.0;
|
||||
return color + texture2D(u_colorTex, vec2(0.0, 0.0)) * kFakeColorScalar;
|
||||
#else
|
||||
return color;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user