-
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.
- No normals or light direction
- Loading branch information
Showing
4 changed files
with
30 additions
and
24 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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
// Basic Vertex Shader | ||
#version 140 | ||
// Basic Vertex Shader Template with Model, View, Project matrixes | ||
#version 140 | ||
|
||
in vec3 in_Position; | ||
in vec3 in_Color; | ||
in vec2 in_UV; | ||
|
||
uniform mat4 in_Model; | ||
uniform mat4 in_View; | ||
uniform mat4 in_Proj; | ||
|
||
out vec3 ex_Color; | ||
|
||
void main(void) { | ||
gl_Position.xyz = in_Position.xyz; | ||
gl_Position.w = 1.0; | ||
out vec2 ex_UV; | ||
|
||
ex_Color = vec3(1.0, 0.0, 0.0); | ||
void main(void) { | ||
gl_Position = in_Proj * (in_View * (in_Model * vec4(in_Position, 1.0))); | ||
ex_Color = vec3(in_Color); | ||
ex_UV = in_UV; | ||
} | ||
|
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