REVIEWED: Makefile.Web, reorganize and add examples

This commit is contained in:
Ray 2023-11-08 18:10:29 +01:00
parent bd3ffa7db3
commit 21354119cc
3 changed files with 302 additions and 256 deletions

View file

@ -42,5 +42,5 @@ void main()
tc += center;
vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;
gl_FragColor = vec4(color.rgb, 1.0);;
gl_FragColor = vec4(color.rgb, 1.0);
}

View file

@ -0,0 +1,21 @@
#version 100
precision mediump float;
// Input vertex attributes (from vertex shader)
varying vec2 fragTexCoord;
varying vec4 fragColor;
// Input uniform values
uniform sampler2D diffuseMap;
uniform vec4 tiling;
// NOTE: Add here your custom variables
void main()
{
vec2 texCoord = fragTexCoord*tiling;
fragColor = texture2D(diffuseMap, texCoord);
gl_FragColor = fragColor;
}