mirror of
https://github.com/freeciv/freeciv-web.git
synced 2021-06-12 22:18:43 +03:00
3D WebGL minor update.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
sleep 10
|
||||
cp /vagrant/music/*.* /var/lib/tomcat9/webapps/freeciv-web/music/ || echo "could not install music"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user