Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GLES] More incremental work on OpenGL ES support.
- Loading branch information
Showing
13 changed files
with
219 additions
and
57 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,14 @@ | ||
#version 300 es | ||
precision highp float; | ||
|
||
uniform sampler2D FontTexture; | ||
|
||
in vec4 color; | ||
in vec2 texCoord; | ||
|
||
out vec4 outputColor; | ||
|
||
void main() | ||
{ | ||
outputColor = color * texture(FontTexture, texCoord); | ||
} |
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,20 @@ | ||
#version 300 es | ||
|
||
uniform ProjectionMatrixBuffer | ||
{ | ||
mat4 projection_matrix; | ||
}; | ||
|
||
in vec2 in_position; | ||
in vec2 in_texCoord; | ||
in vec4 in_color; | ||
|
||
out vec4 color; | ||
out vec2 texCoord; | ||
|
||
void main() | ||
{ | ||
gl_Position = projection_matrix * vec4(in_position, 0, 1); | ||
color = in_color; | ||
texCoord = in_texCoord; | ||
} |
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
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
Oops, something went wrong.