REVIEWED: Makefile.Web
, reorganize and add examples
This commit is contained in:
parent
bd3ffa7db3
commit
21354119cc
3 changed files with 302 additions and 256 deletions
|
@ -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);
|
||||
}
|
||||
|
|
21
examples/shaders/resources/shaders/glsl100/tiling.fs
Normal file
21
examples/shaders/resources/shaders/glsl100/tiling.fs
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue