createWater method

dynamic createWater()

Implementation

createWater()
{
  var m = new THREE.MeshStandardMaterial({
    //'color': THREE.Color(0x0000ff),
    //  'color': 0x996633,
    // 'envMap': envMap, // optional environment map
    // 'specular': 0x050505,
    // 'shininess': 100


  });
  m.emissive = THREE.Color(
      0x2e3f50);//000000);//3d4848);//4f5b5b);//21170e);//406695);//64777d);//);//665600);
  m.metalness = 1.0;
  m.roughness = 0.5;

  m.opacity=0.9;
  m.transparent=true;
  return new THREE.Mesh(g, m);
}