Photon Engine 2.0.0-beta
A physically based renderer.
|
Enumerations | |
enum class | EWrapMode { Repeat = 0 , ClampToEdge , FlippedClampToEdge } |
enum class | ESampleMode { Nearest = 0 , Bilinear , Trilinear } |
enum class | EPixelLayout { RGBA = 0 , R , G , B , Monochromatic , A , RG , RGB , BGR , ARGB , ABGR , BGRA } |
Pixel layout of pixel texture. Represent the ordering of pixel components with respect to a color space. The characters RGB does not mean the pixel is in RGB color space. It simply represents pixel components, using R, G, B as placeholders. More... | |
Functions | |
float64 | uv_to_st_scalar (const float64 inputUV, const EWrapMode wrapMode) |
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. This overload operates on single channel only. The transformation will preserve texel density as it originally is (e.g, no scaling effect). | |
math::Vector2D | uv_to_st (const math::Vector2D &inputUV, const EWrapMode wrapModeS, const EWrapMode wrapModeT) |
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. The transformation will preserve texel density as it originally is (e.g, no scaling effect). | |
std::size_t | num_pixel_elements (const EPixelLayout layout) |
std::size_t | alpha_channel_index (const EPixelLayout layout) |
|
strong |
Pixel layout of pixel texture. Represent the ordering of pixel components with respect to a color space. The characters RGB does not mean the pixel is in RGB color space. It simply represents pixel components, using R, G, B as placeholders.
Enumerator | |
---|---|
RGBA | |
R | |
G | |
B | |
Monochromatic | |
A | |
RG | |
RGB | |
BGR | |
ARGB | |
ABGR | |
BGRA |
|
strong |
|
strong |
|
inline |
|
inline |
|
inline |
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. The transformation will preserve texel density as it originally is (e.g, no scaling effect).
|
inline |
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. This overload operates on single channel only. The transformation will preserve texel density as it originally is (e.g, no scaling effect).