Texture Tiling Example - luis605
This commit is contained in:
parent
115ba2b079
commit
8bbebe6127
1 changed files with 109 additions and 0 deletions
14
examples/shaders/resources/shaders/glsl330/tiling.fs
Normal file
14
examples/shaders/resources/shaders/glsl330/tiling.fs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 330 core
|
||||
|
||||
uniform sampler2D diffuseMap;
|
||||
uniform vec2 tiling;
|
||||
|
||||
in vec2 fragTexCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 texCoord = fragTexCoord * tiling;
|
||||
fragColor = texture(diffuseMap, texCoord);
|
||||
}
|
||||
Loading…
Reference in a new issue