Skip to content

Commit

Permalink
Updated opengl for mac to apparently the mostl widely compatible vers…
Browse files Browse the repository at this point in the history
…ion (3.3), and shaders to language 330, which is also the most widely compatible
  • Loading branch information
RussellGarwood committed Apr 5, 2020
1 parent c531288 commit 9d7f255
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 150
#version 330

uniform float ambientReflection;
uniform float diffuseReflection;
Expand Down
2 changes: 1 addition & 1 deletion SPIERSview/resources/lightingFragmentShader_mac.fsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 150
#version 330

uniform vec4 ambientColor;
uniform vec4 diffuseColor;
Expand Down
2 changes: 1 addition & 1 deletion SPIERSview/resources/lightingVertexShaderTextured_mac.vsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 150
#version 330

uniform mat4 mvpMatrix;
uniform mat4 mvMatrix;
Expand Down
2 changes: 1 addition & 1 deletion SPIERSview/resources/lightingVertexShader_mac.vsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 150
#version 330

uniform mat4 mvpMatrix;
uniform mat4 mvMatrix;
Expand Down
2 changes: 1 addition & 1 deletion SPIERSview/src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MainWindow;
#define GL_MAJOR 2
#define GL_MINOR 1
#define GL_MAJOR_MAC 3
#define GL_MINOR_MAC 2
#define GL_MINOR_MAC 3
#define STEREO_SEPARATION_MODIFIER 15.0
#define SHININESS 0.0
#define FONT_SCALE_FACTOR 24.0 // Eqates to roughtly the same font size as the default used by the QT GUI
Expand Down

0 comments on commit 9d7f255

Please sign in to comment.