From 3ddbca74567ecab28b2b1624e6e9b026f9705f3c Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 1 Nov 2021 18:01:34 +0000 Subject: Switch from OpenGL ES 3 to 2. --- shaders/frag.frag | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'shaders/frag.frag') diff --git a/shaders/frag.frag b/shaders/frag.frag index c6bdbde..3528c6c 100644 --- a/shaders/frag.frag +++ b/shaders/frag.frag @@ -1,4 +1,4 @@ -#version 300 es +#version 100 /* * Copyright (C) 2021 Philip Jones @@ -11,15 +11,13 @@ * I don't think you can really copyright this shader though :) */ -precision highp float; +precision mediump float; -in vec2 Texcoord; - -out vec4 FragColor; +varying vec2 Texcoord; uniform sampler2D tex; void main() { - FragColor = texture(tex, Texcoord); + gl_FragColor = texture2D(tex, Texcoord); } -- cgit v1.2.3