Cloud Procedural Texture
Using the cloud procedural texture
Cloud procedural texture can be found here:
A demo can be found here: Cloud Procedural Texture Demo
This texture has 2 parameters :
- skyColor : the color for the sky (BABYLON.Color3/4)
- cloudColor : the color for the cloud (BABYLON.Color3/4)
Sample to create a cloudy sky
var cloud = BABYLON.MeshBuilder.CreateSphere("cloud", { segments: 100, diameter: 1000 }, scene);var cloudMaterial = new BABYLON.StandardMaterial("cloudMat", scene);var cloudProcTexture = new BABYLON.CloudProceduralTexture("cloudTex", 1024, scene);cloudMaterial.emissiveTexture = cloudProcTexture;cloudMaterial.backFaceCulling = false;cloudMaterial.emissiveTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;cloud.material = cloudMaterial;cloud.position = new BABYLON.Vector3(0, 0, 12);