Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application
diff options
context:
space:
mode:
Diffstat (limited to 'source/application')
-rw-r--r--source/application/StarRenderer_opengl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/application/StarRenderer_opengl.cpp b/source/application/StarRenderer_opengl.cpp
index 411bfa5..2e1c47d 100644
--- a/source/application/StarRenderer_opengl.cpp
+++ b/source/application/StarRenderer_opengl.cpp
@@ -8,7 +8,7 @@ namespace Star {
size_t const MultiTextureCount = 4;
char const* DefaultVertexShader = R"SHADER(
-#version 130
+#version 140
uniform vec2 textureSize0;
uniform vec2 textureSize1;
@@ -49,7 +49,7 @@ void main() {
)SHADER";
char const* DefaultFragmentShader = R"SHADER(
-#version 130
+#version 140
uniform sampler2D texture0;
uniform sampler2D texture1;
@@ -65,13 +65,13 @@ out vec4 outColor;
void main() {
vec4 texColor;
if (fragmentTextureIndex == 3)
- texColor = texture2D(texture3, fragmentTextureCoordinate);
+ texColor = texture(texture3, fragmentTextureCoordinate);
else if (fragmentTextureIndex == 2)
- texColor = texture2D(texture2, fragmentTextureCoordinate);
+ texColor = texture(texture2, fragmentTextureCoordinate);
else if (fragmentTextureIndex == 1)
- texColor = texture2D(texture1, fragmentTextureCoordinate);
+ texColor = texture(texture1, fragmentTextureCoordinate);
else
- texColor = texture2D(texture0, fragmentTextureCoordinate);
+ texColor = texture(texture0, fragmentTextureCoordinate);
if (texColor.a <= 0.0)
discard;