Diligent Engine
Loading...
Searching...
No Matches
Diligent::EnvMapRenderer::RenderAttribs Struct Reference

Environment map renderer attributes. More...

#include <EnvMapRenderer.hpp>

Public Attributes

ITextureView * pEnvMap = nullptr
 Environment map cube map or sphere map.
float AverageLogLum = 1
 Average log luminance for tone mapping.
float MipLevel = 0
float Alpha = 1
 Alpha value to write to the output render target.
OPTION_FLAGS Options = OPTION_FLAG_NONE
 Option flags.
float3 Scale = {1, 1, 1}
 Scaling factor to apply to the environment map.
float Yaw = 0
float4 SphereMapUVScaleBias = {1, 1, 0, 0}
float SphereMapSlice = 0
bool SphereMapRow0IsNegativeY = false

Detailed Description

Environment map renderer attributes.

Member Data Documentation

◆ MipLevel

float Diligent::EnvMapRenderer::RenderAttribs::MipLevel = 0

Mip level of the environment map to use. Fractional levels blend adjacent mips. For atlas regions, the caller must limit this value to the region's valid mip range.

◆ SphereMapRow0IsNegativeY

bool Diligent::EnvMapRenderer::RenderAttribs::SphereMapRow0IsNegativeY = false

Whether row 0 of a sphere map represents the negative Y direction. Ignored for cube maps.

◆ SphereMapSlice

float Diligent::EnvMapRenderer::RenderAttribs::SphereMapSlice = 0

Array slice containing a sphere map. Ignored for cube and Texture2D source views.

◆ SphereMapUVScaleBias

float4 Diligent::EnvMapRenderer::RenderAttribs::SphereMapUVScaleBias = {1, 1, 0, 0}

UV scale and bias used to address a sphere map in its backing texture. The identity transform samples the full image.

◆ Yaw

float Diligent::EnvMapRenderer::RenderAttribs::Yaw = 0

Horizontal orientation of the environment, in radians. Rotation is around the positive Y axis; positive angles rotate +X toward -Z.