Skip to content

Tutorial 3. Normal Maps

Timur Gafarov edited this page Sep 16, 2021 · 10 revisions

Dagon version: >=0.11

Normal mapping nowadays is a standard technique that is used by everyone. You can easily add it to your Dagon game by defining normal property of a material:

matGround.normal = aTexStoneNormal.texture;

Dagon also supports parallax mapping. It requires a height map:

mGround.height = aTexStoneHeight.texture;
mGround.parallax = ParallaxSimple;

Browse source code for this tutorial

Clone this wiki locally