Everywhere: Update work in progress

This commit is contained in:
Riyyi
2022-09-16 20:22:08 +02:00
parent 6b0095dadf
commit edc0ef7203
19 changed files with 285 additions and 135 deletions
+1
View File
@@ -27,6 +27,7 @@ void main()
vec4 textureColor = v_color;
switch(int(v_textureIndex)) {
case 0: break; // Texture unit 0 is reserved for no texture
// case 1: textureColor.a = 1; break;
case 1: textureColor.a = alpha(texture(u_textures[1], v_textureCoordinates).a); break;
// case 1: textureColor *= texture(u_textures[1], v_textureCoordinates); break;
case 2: textureColor.a = alpha(texture(u_textures[2], v_textureCoordinates).a); break;
+3
View File
@@ -33,4 +33,7 @@ void main()
v_borderColor = a_borderColor;
v_offset = a_offset;
gl_Position = vec4(a_position, 1.0f);
// Vclip = Camera projection * Camera view * Model transform * Vlocal
// gl_Position = u_projectionView * vec4(a_position, 1.0f);
}