Fixed shader compilation on WebAssembly

This commit is contained in:
Mergul 2020-05-12 12:30:21 +02:00
parent c94510a487
commit b19fbb1528

View file

@ -92,10 +92,10 @@ LOC(1) ATT vec2 tex_coords;
void main() {
#ifdef VBO_BATCH
vec3 position = vec3(positions*4,1.0);
vec3 position = vec3(positions*4.0,1.0);
uv = tex_coords;
#else
vec3 position = mat3(matrix_1.x,matrix_1.y,0,matrix_1.z,matrix_1.w,0,matrix_2.xy,1) * vec3(positions,1.0);
vec3 position = mat3(matrix_1.x,matrix_1.y,0,matrix_1.z,matrix_1.w,0,matrix_2.xy,1.0) * vec3(positions,1.0);
uv = tex_coords * uv_transform.zw + uv_transform.xy;
#endif