initial
This commit is contained in:
commit
ded8dbba8c
199 changed files with 367950 additions and 0 deletions
19
assets/shaders/base.vert
Normal file
19
assets/shaders/base.vert
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 120
|
||||
|
||||
attribute vec3 vertexPosition;
|
||||
attribute vec2 vertexTexCoord;
|
||||
attribute vec3 vertexNormal;
|
||||
attribute vec4 vertexColor;
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
varying vec2 texcoord;
|
||||
varying vec4 color;
|
||||
varying vec2 pixel_position;
|
||||
|
||||
void main() {
|
||||
texcoord = vertexTexCoord;
|
||||
color = vertexColor;
|
||||
pixel_position = vertexPosition.xy;
|
||||
gl_Position = mvp * vec4(vertexPosition, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue