Add textures
This commit is contained in:
parent
5723b91b32
commit
7bfad8711b
25 changed files with 407 additions and 104 deletions
18
src/graphics/rendering/shaders/random-vs.glsl
Normal file
18
src/graphics/rendering/shaders/random-vs.glsl
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#version 300 es
|
||||
|
||||
precision lowp float;
|
||||
|
||||
in vec4 vertexPosition;
|
||||
out vec2 uvCoordinates;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(vertexPosition.xy, 0.0, 1.0);
|
||||
|
||||
uvCoordinates = (
|
||||
vec3(vertexPosition.xy, 1.0)
|
||||
* mat3(
|
||||
0.5, 0.0, 0.5,
|
||||
0.0, 0.5, 0.5,
|
||||
0.0, 0.0, 1.0
|
||||
)).xy;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue