3D WebGL minor update.

This commit is contained in:
Andreas Røsdal
2021-04-09 22:15:50 +01:00
parent 67368da82f
commit a5a037c2d3
2 changed files with 4 additions and 3 deletions

View File

@@ -123,12 +123,12 @@ function init_webgl_mapview() {
var waterGeometry = new THREE.PlaneBufferGeometry( mapview_model_width - 10, mapview_model_height - 10 );
water = new THREE.Water(waterGeometry, {
color: '#bbffff',
color: '#ddddff',
scale: 8,
flowDirection: new THREE.Vector2( 0.1, -0.1),
textureWidth: 1024,
textureHeight: 1024,
reflectivity : 0.08,
reflectivity : 0.04,
clipBias : 0.1,
normalMap0 : textureLoader.load( '/textures/Water_1_M_Normal.jpg' ),
normalMap1 : textureLoader.load( '/textures/Water_2_M_Normal.jpg' )
@@ -274,5 +274,5 @@ function animate() {
if (webgl_controls != null && clock != null) webgl_controls.update(clock.getDelta());
if (renderer == RENDERER_WEBGL) requestAnimationFrame(animate);
requestAnimationFrame(animate);
}

View File

@@ -1,2 +1,3 @@
sleep 10
cp /vagrant/music/*.* /var/lib/tomcat9/webapps/freeciv-web/music/ || echo "could not install music"