mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 23:38:15 +00:00
REVIEWED: Makefile.Web
, reorganize and add examples
This commit is contained in:
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user