API

Road Procedural Texture

Road Procedural texture

Using the Road procedural texture

Road procedural texture can be found here:

A demo can be found here: Road Procedural Texture Demo

This texture has 1 parameter:

  • roadColor is the road color (BABYLON.Color3/4)
import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial";
import { RoadProceduralTexture } from "@babylonjs/procedural-textures/road/roadProceduralTexture";
var roadmaterial = new StandardMaterial("roadMat", scene);
var roadmaterialpt = new RoadProceduralTexture("roadTex", 512, scene);
roadmaterial.diffuseTexture = roadmaterialpt;