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

Tracks all of the data related to the image gradient size, including its transform. More...

#include <ImageGradientModification.h>

Public Attributes

float m_metersPerPixelX = 0.0f
 
float m_metersPerPixelY = 0.0f
 
float m_localMetersPerPixelX = 0.0f
 
float m_localMetersPerPixelY = 0.0f
 
int16_t m_imageWidth = 0
 Image width and height in pixels.
 
int16_t m_imageHeight = 0
 
PixelIndex m_topLeftPixelIndex
 The pixel indices for the pixels on the edges of the local bounds. These are used for calculating dirty region bounding boxes.
 
PixelIndex m_bottomRightPixelIndex
 
GradientTransform m_gradientTransform
 The gradient transform for this image gradient.
 

Detailed Description

Tracks all of the data related to the image gradient size, including its transform.

Member Data Documentation

◆ m_localMetersPerPixelX

float GradientSignal::ImageGradientSizeData::m_localMetersPerPixelX = 0.0f

The meters per pixel in each direction for this image gradient in the image's local space. This accounts for image tiling and frequency zoom, but removes the effects of the transform's scale, since the scale is applied outside of the local space calculations.

◆ m_metersPerPixelX

float GradientSignal::ImageGradientSizeData::m_metersPerPixelX = 0.0f

The meters per pixel in each direction for this image gradient. These help us query the paintbrush for exactly one world position per image pixel.


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