-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
221 additions
and
258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ | |
# Debug files | ||
*.dSYM/ | ||
.DS_Store | ||
deps/ |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#version 400 | ||
|
||
precision mediump float; | ||
in vec3 mColor; | ||
|
||
in vec3 color; | ||
out vec4 fragColor; | ||
|
||
void | ||
main(void) { | ||
fragColor = vec4(mColor, 1); | ||
void main(void) { | ||
fragColor = vec4(color, 1); | ||
} |
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,14 +1,14 @@ | ||
#version 400 | ||
|
||
precision mediump float; | ||
uniform mat4 uProjection; | ||
uniform mat4 uView; | ||
|
||
in vec3 vPosition; | ||
out vec3 mColor; | ||
uniform mat4 projection; | ||
uniform mat4 view; | ||
|
||
void | ||
main(void) { | ||
mColor = vec3(vPosition); | ||
gl_Position = uProjection * uView * vec4(vPosition, 1.0); | ||
in vec3 position; | ||
out vec3 color; | ||
|
||
void main(void) { | ||
color = vec3(position); | ||
gl_Position = projection * view * vec4(position, 1.0); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#version 400 | ||
|
||
precision mediump float; | ||
uniform vec3 uColor; | ||
|
||
uniform vec3 color; | ||
|
||
out vec4 fragColor; | ||
|
||
void | ||
main(void) { | ||
fragColor = vec4(uColor, 1); | ||
void main(void) { | ||
fragColor = vec4(color, 1); | ||
} |
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,11 +1,13 @@ | ||
#version 400 | ||
|
||
uniform mat4 uProjection; | ||
uniform mat4 uModel; | ||
uniform mat4 uView; | ||
in vec3 vPosition; | ||
|
||
void | ||
main(void) { | ||
gl_Position = uProjection * uView * uModel * vec4(vPosition, 1.0); | ||
precision mediump float; | ||
|
||
uniform mat4 projection; | ||
uniform mat4 model; | ||
uniform mat4 view; | ||
|
||
in vec3 position; | ||
|
||
void main(void) { | ||
gl_Position = projection * view * model * vec4(position, 1.0); | ||
} |
Oops, something went wrong.