<commit_before>// Multi-texture fragment shader
// <NAME>

// Composite second texture over first.
// We're assuming the 2nd texture has a meaningful alpha channel.

uniform sampler2D tex1;
uniform sampler2D tex2;

vec4 sample(sampler2D t, vec2 coord)
{
   return texture2D(t, coord);
}

void main0()
{
   vec4 t1 = texture2D(tex1, gl_TexCoord[0].xy);
   //vec4 t1 = sample(tex1, gl_TexCoord[0].xy);
   //vec4 t2 = texture2D(tex2, gl_TexCoord[1].xy);
   vec4 t2 = sample(tex2, gl_TexCoord[0].xy);
   gl_FragColor = mix(t1, t2, t2.w);
}

void main()
{
   vec4 t1 = sample(tex1, gl_TexCoord[0].xy);
   vec4 t2 = sample(tex2, gl_TexCoord[0].xy);
   gl_FragColor = t1 + t2;
}
/*
  0: MOV SAMPLER[0].x, SAMPLER[0];
  1: MOV TEMP[1], INPUT[4];
  2: TEX OUTPUT[0], TEMP[1], texture[0], 2D;
  3: END
*/<commit_msg>undo accidental changes to multitex.frag shader<commit_after>// Multi-texture fragment shader
// <NAME>

// Composite second texture over first.
// We're assuming the 2nd texture has a meaningful alpha channel.

uniform sampler2D tex1;
uniform sampler2D tex2;

void main()
{
   vec4 t1 = texture2D(tex1, gl_TexCoord[0].xy);
   vec4 t2 = texture2D(tex2, gl_TexCoord[1].xy);
   gl_FragColor = mix(t1, t2, t2.w);
}
{'fraction_non_alphanumeric': 0.14461791290057519, 'fraction_numerical': 0.05834018077239113, 'mean_word_length': 3.891566265060241, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3274134', 'n_tokens_mistral': 508, 'n_tokens_neox': 495, 'n_words': 130}