-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1444: Fix shader versions to work on macOS r=kvark a=grtlr The shader versions were changed in #1417.
- Loading branch information
Showing
4 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#version 150 core | ||
|
||
in vec4 v_Color; | ||
out vec4 Target0; | ||
|
||
void main() { | ||
Target0 = v_Color; | ||
} |
10 changes: 5 additions & 5 deletions
10
...render/triangle/shader/triangle_120.glslv → ...render/triangle/shader/triangle_150.glslv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#version 120 | ||
#version 150 core | ||
|
||
attribute vec2 a_Pos; | ||
attribute vec3 a_Color; | ||
varying vec4 v_Color; | ||
in vec2 a_Pos; | ||
in vec3 a_Color; | ||
out vec4 v_Color; | ||
|
||
void main() { | ||
v_Color = vec4(a_Color, 1.0); | ||
gl_Position = vec4(a_Pos, 0.0, 1.0); | ||
} | ||
} |