Open 3D Engine Terrain Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Terrain::ModifiedImageRegion Struct Reference

#include <MacroMaterialImageModification.h>

Public Member Functions

 ModifiedImageRegion (const MacroMaterialImageSizeData &imageData)
 
void AddPoint (const PixelIndex &pixelIndex)
 Add a pixel's pixel index into the dirty region.
 
AZ::Aabb GetDirtyRegion ()
 Calculate the dirty region in world space that reflects everywhere that's changed.
 
bool IsModified () const
 Returns true if there is a dirty region, false if there isn't.
 

Detailed Description

Handles all of the calculations for figuring out the dirty region AABB for the macro material texture. It tracks the dirty pixel region and converts that back to world space bounds on request. This ensures that our bounds fully encompass the world space pixel volumes, and not just their corners or centers.


The documentation for this struct was generated from the following file: