NormalMaps

NormalMaps create and manipulate surface normals, which change the direction a surface faces for the purpose of lighting. NormalMaps do not change the shape or silhouette of the geometry. The output of NormalMaps is always in render space.

When viewing the attribute types in these documents, note that some inputs are NORMALMAP while others are RGB. NormalMaps are separated from Map shaders– a user must explicitly convert from one type to another using RgbToNormalMap, to ensure that the manipulating colors vs. normals is intentional.

The following NormalMap shaders are included in MoonRay: