16 lines
340 B
GLSL
16 lines
340 B
GLSL
|
|
// [COMBO] {"material":"ui_editor_properties_repeat","combo":"REPEAT","type":"options","default":1}
|
|
|
|
varying vec2 v_TexCoord;
|
|
|
|
uniform sampler2D g_Texture0; // {"hidden":true}
|
|
|
|
void main() {
|
|
vec2 texCoord = v_TexCoord.xy;
|
|
#if REPEAT
|
|
texCoord = frac(texCoord);
|
|
#endif
|
|
gl_FragColor = texSample2D(g_Texture0, texCoord);
|
|
|
|
}
|