Low-level image filtering

From Doomsday Wiki
Jump to: navigation, search

< Assets

The Doomsday 2 file system supports basic image filtering operations. This means that image files associated with assets can be modified when they are loaded. The mechanism works with all assets.

To apply a filter operation, the following syntax is used:

path = "images/heights.png/HeightMap.toNormals"

It is also possible to chain multiple operations:

path = "images/heights.png/HeightMap.toNormals/Multiply:mask.png"

That would first load images/height.png, then apply the heightmap-to-normals conversion, and finally multiply with images/mask.png.

Operation Description
HeightMap.toNormals Convert a grayscale heightmap to an RGB normal map.
Multiply:(path) Multiply the image with another image file. The other image file (path) is relative to the first file.