简介
1 .代码地址 https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview%20release/proceduralTexturesLibrary/babylon.cloudProceduralTexture.min.js
2 .可以设置的参数
1 .云的颜色
2 .天空的颜色
3 .注意:云的颜色似乎是主色
3 .主要代码
var boxCloud = BABYLON.Mesh.CreateSphere("boxCloud", 100, 1000, scene);
boxCloud.position = new BABYLON.Vector3(0, 0, 12);
var cloudMaterial = new BABYLON.StandardMaterial("cloudMat", scene);
var cloudProcText = new BABYLON.CloudProceduralTexture("cloud", 1024, scene);
cloudProcText.skyColor=new BABYLON.Color3(0.91, 0.07, 0.07)
cloudProcText.cloudColor=new BABYLON.Color3(0.87, 0.79, 0.79)
cloudMaterial.emissiveTexture = cloudProcText;
cloudMaterial.backFaceCulling = false;
cloudMaterial.emissiveTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
boxCloud.material = cloudMaterial;
其他实现云的方法
1 .粒子
2 .动态地形
3 .
网友评论