Texture Tiling Example - luis605 (#3353)
* Texture Tiling Example - luis605 * Removed SetTraceLogLevel(LOG_WARNING);
This commit is contained in:
parent
7351240218
commit
bc15c19518
2 changed files with 108 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…
Add table
Add a link
Reference in a new issue