This commit is contained in:
Synthasmagoria 2026-07-21 13:17:10 +02:00
commit ded8dbba8c
199 changed files with 367950 additions and 0 deletions

12
assets/shaders/base.frag Normal file
View file

@ -0,0 +1,12 @@
#version 120
varying vec2 texcoord;
varying vec4 color;
varying vec2 pixel_position;
uniform sampler2D texture0;
uniform vec4 colDiffuse;
void main() {
gl_FragColor = texture2D(texture0, texcoord) * colDiffuse;
}

19
assets/shaders/base.vert Normal file
View 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);
}