<commit_before>import * as THREE from 'three';

import GP from '../GameProperties.js';

class WaterSurface extends THREE.Object3D {
    constructor(game) {
        super();

        this.game   = game;
        this.offset = new THREE.Vector2(0.0, 0.0);

        let textureLoader = new THREE.TextureLoader();
        this.tex1 = textureLoader.load('assets/img/water-bump-1.png');
        this.tex2 = textureLoader.load('assets/img/water-bump-2.png');
        this.tex3 = textureLoader.load('assets/img/water-bump-3.png');
        this.tex4 = textureLoader.load('assets/img/water-bump-4.png');
        
        this.tex1.wrapS = THREE.WrapAroundEnding;
        this.tex1.wrapT = THREE.WrapAroundEnding;
        this.tex2.wrapS = THREE.WrapAroundEnding;
        this.tex2.wrapT = THREE.WrapAroundEnding;
        this.tex3.wrapS = THREE.WrapAroundEnding;
        this.tex3.wrapT = THREE.WrapAroundEnding;
        this.tex4.wrapS = THREE.WrapAroundEnding;
        this.tex4.wrapT = THREE.WrapAroundEnding;

        let surfaceGeometry = new THREE.PlaneGeometry(600, 800, 1, 1);
        surfaceGeometry.rotateX(-Math.PI / 2)
        let surfaceMaterial = new THREE.MeshStandardMaterial({
            color: 0x66aadd,
        });
        this.surface = new THREE.Mesh(surfaceGeometry, surfaceMaterial);
        this.surface.receiveShadow = true;<commit_msg>Fixed wrapping (no more WebGL warnings)<commit_after>import * as THREE from 'three';

import GP from '../GameProperties.js';

class WaterSurface extends THREE.Object3D {
    constructor(game) {
        super();

        this.game   = game;
        this.offset = new THREE.Vector2(0.0, 0.0);

        let textureLoader = new THREE.TextureLoader();
        this.tex1 = textureLoader.load('assets/img/water-bump-1.png');
        this.tex2 = textureLoader.load('assets/img/water-bump-2.png');
        this.tex3 = textureLoader.load('assets/img/water-bump-3.png');
        this.tex4 = textureLoader.load('assets/img/water-bump-4.png');
        
        this.tex1.wrapS = THREE.RepeatWrapping;
        this.tex1.wrapT = THREE.RepeatWrapping;
        this.tex2.wrapS = THREE.RepeatWrapping;
        this.tex2.wrapT = THREE.RepeatWrapping;
        this.tex3.wrapS = THREE.RepeatWrapping;
        this.tex3.wrapT = THREE.RepeatWrapping;
        this.tex4.wrapS = THREE.RepeatWrapping;
        this.tex4.wrapT = THREE.RepeatWrapping;

        let surfaceGeometry = new THREE.PlaneGeometry(600, 800, 1, 1);
        surfaceGeometry.rotateX(-Math.PI / 2)
        let surfaceMaterial = new THREE.MeshStandardMaterial({
            color: 0x66aadd,
        });
        this.surface = new THREE.Mesh(surfaceGeometry, surfaceMaterial);
        this.surface.receiveShadow = true;
{'fraction_non_alphanumeric': 0.1224188790560472, 'fraction_numerical': 0.025073746312684365, 'mean_word_length': 2.5981432360742707, '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': '3603812', 'n_tokens_mistral': 914, 'n_tokens_neox': 850, 'n_words': 144}