From 20a268ccb199aad3b05dcf0ce6dc27bece20f1d6 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 12 Oct 2019 16:41:31 -0400 Subject: [PATCH] add #version 140 to GLSL shaders to fix running with newer OpenGL --- shaders/obj.fp | 1 + shaders/obj.vp | 1 + 2 files changed, 2 insertions(+) diff --git a/shaders/obj.fp b/shaders/obj.fp index 35dc833..9b030d7 100644 --- a/shaders/obj.fp +++ b/shaders/obj.fp @@ -1,3 +1,4 @@ +#version 140 #ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; diff --git a/shaders/obj.vp b/shaders/obj.vp index 7d88a5f..730d61c 100644 --- a/shaders/obj.vp +++ b/shaders/obj.vp @@ -1,3 +1,4 @@ +#version 140 attribute vec3 pos; attribute vec3 normal;