NormalMaps class abstract final

Normal maps made from a picture: its brightness taken as height (light high, unless inverted), rounded at a sprite's clear edges, the slope of that turned into each pixel's normal.

OpenGL-style, as the engine reads them in 2-D and 3-D: red is right, green is up, blue is out of the picture. Where the picture is clear, the map is clear too.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

flipGreen(Pixels map) → Pixels
map, a DirectX-style normal map (green down), as an OpenGL-style one: its green turned over.
generate(String root, String path, {NormalMapOptions options = const NormalMapOptions()}) → Future<String>
Makes the normal map of the image at path (project-relative) under root, beside it — <name>_normal.png, _2 and on when that is taken — and gives its path.
of(Pixels picture, {NormalMapOptions options = const NormalMapOptions()}) → Pixels
The normal map of picture.