Marble Procedural Texture
Using the Marble procedural texture
Marble procedural texture can be found here:
A demo can be found here: Marble Procedural Texture Demo
This texture has 4 parameters :
- numberOfTilesHeight controls the number of tiles in height (Int)
- numberOfTilesWidth controls the number of tiles in width (Int)
- jointColor changes the color for the joint between tiles (BABYLON.Color3/4)
- marbleColor changes the color for the tile itself (BABYLON.Color3/4)
var marbleMaterial = new BABYLON.StandardMaterial("torus", scene);var marbleTexture = new BABYLON.MarbleProceduralTexture("marble", 512, scene);marbleTexture.numberOfTilesHeight = 5;marbleTexture.numberOfTilesWidth = 5;marbleMaterial.ambientTexture = marbleTexture;