<commit_before>var VERT = ' \
attribute vec2 aTexCoord0; \
attribute vec3 aNormal; \
attribute vec4 aPosition; \
uniform mat4 projection; \
uniform mat4 view; \
uniform mat4 model; \
varying vec3 vNormal; \
varying vec2 vUv; \
void main() { \
  vUv = aTexCoord0; \
  vNormal = aNormal; \
  gl_Position = projection * view * model * aPosition; \
  gl_PointSize = 1.0; \
}';

var FRAG = ' \
varying vec2 vUv; \
varying vec3 vNormal; \
uniform sampler2D iChannel0; \
uniform vec2 repeat; \
uniform vec2 uvOffset; \
void main() { \
  gl_FragColor = vec4(vNormal * 0.5 + 0.5, 1.0); \
  gl_FragColor = vec4(vUv, 0.0, 1.0); \
  gl_FragColor = texture2D(iChannel0, vUv * repeat + uvOffset); \
}';

module.exports = {
    vert: VERT,
    frag: FRAG
}
<commit_msg>06-pex-ctx-00 Fixed BasicMaterial test for the browser<commit_after>var VERT = ' \
attribute vec2 aTexCoord0; \
attribute vec3 aNormal; \
attribute vec4 aPosition; \
uniform mat4 projection; \
uniform mat4 view; \
uniform mat4 model; \
varying vec3 vNormal; \
varying vec2 vUv; \
void main() { \
  vUv = aTexCoord0; \
  vNormal = aNormal; \
  gl_Position = projection * view * model * aPosition; \
  gl_PointSize = 1.0; \
}';

var FRAG = ' \
varying vec2 vUv; \
varying vec3 vNormal; \
uniform sampler2D iChannel0; \
uniform vec2 repeat; \
uniform vec2 uvOffset; \
void main() { \
  gl_FragColor = vec4(vNormal * 0.5 + 0.5, 1.0); \
  gl_FragColor = vec4(vUv, 0.0, 1.0); \
  gl_FragColor = texture2D(iChannel0, vUv * repeat + uvOffset); \
}';

var Platform = require('../../sys/Platform');

if (Platform.isBrowser) {
    FRAG = 'precision highp float; \n' + FRAG;
}


module.exports = {
    vert: VERT,
    frag: FRAG
}

{'fraction_non_alphanumeric': 0.13628212791392708, 'fraction_numerical': 0.04064554692169755, 'mean_word_length': 3.1435643564356437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6799810', 'n_tokens_mistral': 686, 'n_tokens_neox': 655, 'n_words': 171}