This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| assets:low-level_image_filtering [2018-12-15 18:31] – skyjake | assets:low-level_image_filtering [2018-12-15 18:35] (current) – skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Low-level image filtering ====== | ||
| + | |||
| + | 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: | ||
| + | |||
| + | > filePath/ | ||
| + | |||
| + | For example: | ||
| + | |||
| + | path = " | ||
| + | |||
| + | * File path is: **images/ | ||
| + | * Filter operation is: " | ||
| + | |||
| + | It is also possible to chain multiple operations: | ||
| + | |||
| + | path = " | ||
| + | |||
| + | That would first load **images/ | ||
| + | |||
| + | ^ Operation ^ Description | | ||
| + | | Color.desaturate | Desaturate colors of the image (convert to grayscale). | | ||
| + | | HeightMap.toNormals | Convert a grayscale heightmap to an RGB normal map. | | ||
| + | | Multiply: | ||
| + | |||
| + | |||
| + | |||
| + | |||