Temechon 3ee46c1e88 Added normal material %!s(int64=10) %!d(string=hai) anos
..
babylon.normalMaterial.ts 3ee46c1e88 Added normal material %!s(int64=10) %!d(string=hai) anos
normal.fragment.fx 3ee46c1e88 Added normal material %!s(int64=10) %!d(string=hai) anos
normal.vertex.fx 3ee46c1e88 Added normal material %!s(int64=10) %!d(string=hai) anos
readme.md 3ee46c1e88 Added normal material %!s(int64=10) %!d(string=hai) anos

readme.md

Normal material

No playground example for now

Using the normal material

Very simple

var ground = BABYLON.Mesh.CreateGround("ground", 512, 512, 32, scene);
var normalMaterial = new BABYLON.NormalMaterial("normal", scene);
ground.material = normalMaterial;

Customize the normal material

You can add a diffuse texture to the normal material, because why not? Normal colors will be mixed with texture color.

normalMaterial.diffuseTexture = new BABYLON.Texture("textures/amiga.jpg", scene);