About the Hand-painted style
Hand-painted art, the look made famous by World of Warcraft, puts the lighting into the texture instead of the shader.
- Only a diffuse (albedo) texture: highlights, shadows and colour shifts are painted in, so there are no normal, roughness or metallic maps.
- Works with unlit or simple lit shaders, which is cheap on mobile and web and looks the same across engines.
- Bark and rock textures emphasise form with painted cracks and edge highlights; leaves are alpha-tested cards with painted clusters.
- One texture per material means less memory and bandwidth than PBR.
- Strong, readable silhouettes work well with top-down, isometric and third-person cameras.
Typical genres: fantasy RPGs and MMOs, action RPGs, tower defence and mobile adventures.
Using it in Babylon.js
Babylon.js loads GLB through the glTF loader in @babylonjs/loaders: ImportMeshAsync (or SceneLoader.ImportMeshAsync in older code), or LoadAssetContainerAsync when you need many copies via instantiateModelsToScene.
- LOD:
lod0.addLODLevel(30, lod1),addLODLevel(80, lod2)and so on; passingnullas the mesh hides the object beyond that distance. - Thousands of trees: thin instances (
thinInstanceAddwith matrices) render in one draw call per mesh; use regularcreateInstancewhen each tree needs its own picking or logic. - Leaves: glTF MASK maps to alpha-tested PBRMaterial (
MATERIAL_ALPHATEST). - Collision mesh: set
isVisible = falseand use it withcheckCollisionsor Havok physics (PhysicsAggregatewith a MESH shape).

