So I have this shader in which I want to use an albedo texture which is defined by a uniform sampler 2D. The thing is that the mesh the shader is put on is pretty big, and I would like to tile the texture. I tried setting the sampler2D to repeat_enable but that didn’t do anything. What can I do? Here’s part of my code:
uniform sampler2D albedo : repeat_enable; //Variable that controls color
//Albedo vec3 conversion
vec3 albedo_text = texture(albedo, UV).rgb;
ALBEDO = albedo_text*vec3(0.5, 0.8, 0.45); //vec 3 only gives another color to it