-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from AlwinEsch/master
Cleanup
- Loading branch information
Showing
7 changed files
with
31 additions
and
10 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 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 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,10 @@ | ||
#version 150 | ||
|
||
in vec4 v_color; | ||
|
||
out vec4 fragColor; | ||
|
||
void main() | ||
{ | ||
fragColor = v_color; | ||
} |
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,14 @@ | ||
#version 150 | ||
|
||
uniform mat4 u_projModelMat; | ||
|
||
in vec4 a_position; | ||
in vec4 a_color; | ||
|
||
out vec4 v_color; | ||
|
||
void main () | ||
{ | ||
gl_Position = u_projModelMat * a_position; | ||
v_color = a_color; | ||
} |
4 changes: 1 addition & 3 deletions
4
...ver.greynetic/resources/shaders/frag.glsl → ...reynetic/resources/shaders/GLES/frag.glsl
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,6 +1,4 @@ | ||
#ifndef GL_ES | ||
#define lowp | ||
#endif | ||
#version 100 | ||
|
||
varying lowp vec4 v_color; | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
...ver.greynetic/resources/shaders/vert.glsl → ...reynetic/resources/shaders/GLES/vert.glsl
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,3 +1,5 @@ | ||
#version 100 | ||
|
||
uniform mat4 u_projModelMat; | ||
|
||
attribute vec4 a_position; | ||
|
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