#include <aglDepthOfField.h>
Inherits agl::utl::IParameterIO, and sead::hostio::Node.
|
| enum | Uniform {
cUniform_Param0 = 0
, cUniform_IndirectTexParam
, cUniform_IndirectTexMtx0
, cUniform_IndirectTexMtx1
,
cUniform_MulParam
, cUniform_AddParam
, cUniform_NearFarParam
, cUniform_TexParam
,
cUniform_VignettingRadius
, cUniform_VignettingParam
, cUniform_VignettingTrans
, cUniform_VignettingColor
,
cUniform_FarMulColor
, cUniform_Num
} |
| enum | Sampler {
cSampler_TexColor = 0
, cSampler_TexDepth
, cSampler_TexMipMap
, cSampler_TexMipMapDepth
,
cSampler_TexIndirect
, cSampler_Num
} |
| enum | VignettingBlendType { cVignettingBlendType_Normal = 0
, cVignettingBlendType_Add
, cVignettingBlendType_Mult
, cVignettingBlendType_Screen
} |
|
| | DepthOfField () |
| virtual | ~DepthOfField () |
| void | initialize (s32 ctx_num=1, sead::Heap *heap=nullptr) |
| bool | isEnable () const |
| void | setEnable (bool enable) |
| VignettingBlendType | getVignettingBlendType () const |
| ShaderMode | draw (s32 ctx_index, const RenderBuffer &render_buffer, f32 near, f32 far, ShaderMode mode=cShaderMode_Invalid) const |
| ShaderMode | draw (s32 ctx_index, const RenderBuffer &render_buffer, const TextureData &depth, bool view_depth, f32 near, f32 far, ShaderMode mode=cShaderMode_Invalid) const |
| void | allocBuffer (s32 ctx_index, const RenderBuffer &render_buffer) const |
| void | allocBuffer (s32 ctx_index, TextureFormat format, s32 width, s32 height) const |
| void | freeBuffer (s32 ctx_index) const |
| void | setIndirectTextureData (const TextureData *p_texture_data) |
| void | setIndirectEnable (bool enable) |
| void | setIndirectTextureTrans (const sead::Vector2f &trans) |
| | IParameterIO () |
| | IParameterIO (const sead::SafeString &type, u32 version=0) |
| virtual | ~IParameterIO () |
| virtual bool | save (const sead::SafeString &, u32) const |
| virtual void | applyResParameterArchive (ResParameterArchive arc) |
| virtual void | applyResParameterArchiveLerp (ResParameterArchive arc_a, ResParameterArchive arc_b, f32 t) |
| void | setDelegate (void *delegate) |
| | IParameterList () |
| void | addList (IParameterList *child, const sead::SafeString &name) |
| void | addObj (IParameterObj *child, const sead::SafeString &name) |
| void | applyResParameterList (ResParameterList list) |
| bool | isApply (ResParameterList list) const |
◆ Uniform
| Enumerator |
|---|
| cUniform_Param0 | |
| cUniform_IndirectTexParam | |
| cUniform_IndirectTexMtx0 | |
| cUniform_IndirectTexMtx1 | |
| cUniform_MulParam | |
| cUniform_AddParam | |
| cUniform_NearFarParam | |
| cUniform_TexParam | |
| cUniform_VignettingRadius | |
| cUniform_VignettingParam | |
| cUniform_VignettingTrans | |
| cUniform_VignettingColor | |
| cUniform_FarMulColor | |
| cUniform_Num | |
◆ Sampler
| Enumerator |
|---|
| cSampler_TexColor | |
| cSampler_TexDepth | |
| cSampler_TexMipMap | |
| cSampler_TexMipMapDepth | |
| cSampler_TexIndirect | |
| cSampler_Num | |
◆ VignettingBlendType
| Enumerator |
|---|
| cVignettingBlendType_Normal | |
| cVignettingBlendType_Add | |
| cVignettingBlendType_Mult | |
| cVignettingBlendType_Screen | |
◆ DepthOfField()
| agl::pfx::DepthOfField::DepthOfField |
( |
| ) |
|
◆ ~DepthOfField()
| agl::pfx::DepthOfField::~DepthOfField |
( |
| ) |
|
|
virtual |
◆ initialize()
| void agl::pfx::DepthOfField::initialize |
( |
s32 | ctx_num = 1, |
|
|
sead::Heap * | heap = nullptr ) |
◆ assignShaderProgram_()
| void agl::pfx::DepthOfField::assignShaderProgram_ |
( |
| ) |
|
|
private |
◆ initVertex_()
| void agl::pfx::DepthOfField::initVertex_ |
( |
sead::Heap * | heap | ) |
|
|
private |
◆ initIndex_()
| void agl::pfx::DepthOfField::initIndex_ |
( |
sead::Heap * | heap | ) |
|
|
private |
◆ isEnable()
| bool agl::pfx::DepthOfField::isEnable |
( |
| ) |
const |
|
inline |
◆ setEnable()
| void agl::pfx::DepthOfField::setEnable |
( |
bool | enable | ) |
|
|
inline |
◆ getVignettingBlendType()
◆ draw() [1/2]
◆ draw() [2/2]
◆ allocBuffer() [1/2]
| void agl::pfx::DepthOfField::allocBuffer |
( |
s32 | ctx_index, |
|
|
const RenderBuffer & | render_buffer ) const |
◆ allocBuffer() [2/2]
| void agl::pfx::DepthOfField::allocBuffer |
( |
s32 | ctx_index, |
|
|
TextureFormat | format, |
|
|
s32 | width, |
|
|
s32 | height ) const |
◆ freeBuffer()
| void agl::pfx::DepthOfField::freeBuffer |
( |
s32 | ctx_index | ) |
const |
◆ enableDepthOfField_()
| bool agl::pfx::DepthOfField::enableDepthOfField_ |
( |
| ) |
const |
|
private |
◆ enableBlurMipMapPass_()
| bool agl::pfx::DepthOfField::enableBlurMipMapPass_ |
( |
| ) |
const |
|
private |
◆ enableDepthBlur_()
| bool agl::pfx::DepthOfField::enableDepthBlur_ |
( |
| ) |
const |
|
private |
◆ enableDifferntShape_()
| bool agl::pfx::DepthOfField::enableDifferntShape_ |
( |
| ) |
const |
|
private |
◆ enableSeparateVignettingPass_()
| bool agl::pfx::DepthOfField::enableSeparateVignettingPass_ |
( |
| ) |
const |
|
private |
◆ bindRenderBuffer_()
| void agl::pfx::DepthOfField::bindRenderBuffer_ |
( |
RenderBuffer & | render_buffer, |
|
|
s32 | mip_level_color, |
|
|
s32 | mip_level_depth ) const |
|
private |
◆ drawKick_()
| void agl::pfx::DepthOfField::drawKick_ |
( |
const DrawArg & | arg | ) |
const |
|
private |
◆ drawColorMipMap_()
◆ drawDepthMipMap_()
◆ drawCompose_()
◆ drawVignetting_()
◆ uniformComposeParam_()
| void agl::pfx::DepthOfField::uniformComposeParam_ |
( |
const DrawArg & | arg, |
|
|
const ShaderProgram * | program ) const |
|
private |
◆ uniformVignettingParam_()
| void agl::pfx::DepthOfField::uniformVignettingParam_ |
( |
const DrawArg & | arg, |
|
|
const ShaderProgram * | program ) const |
|
private |
◆ roundUp_()
| s32 agl::pfx::DepthOfField::roundUp_ |
( |
f32 | value | ) |
|
|
inlinestaticprivate |
◆ roundDown_()
| s32 agl::pfx::DepthOfField::roundDown_ |
( |
f32 | value | ) |
|
|
inlinestaticprivate |
◆ getTexParam_()
◆ setIndirectTextureData()
| void agl::pfx::DepthOfField::setIndirectTextureData |
( |
const TextureData * | p_texture_data | ) |
|
◆ setIndirectEnable()
| void agl::pfx::DepthOfField::setIndirectEnable |
( |
bool | enable | ) |
|
◆ setIndirectTextureTrans()
| void agl::pfx::DepthOfField::setIndirectTextureTrans |
( |
const sead::Vector2f & | trans | ) |
|
◆ applyIndirectTextureData_()
| void agl::pfx::DepthOfField::applyIndirectTextureData_ |
( |
| ) |
|
|
private |
◆ updateIndirectMatrix_()
| void agl::pfx::DepthOfField::updateIndirectMatrix_ |
( |
| ) |
|
|
private |
◆ postRead_()
| void agl::pfx::DepthOfField::postRead_ |
( |
| ) |
|
|
privatevirtual |
◆ mContext
◆ _1e8
| s32 agl::pfx::DepthOfField::_1e8 |
|
private |
◆ _1ec
| f32 agl::pfx::DepthOfField::_1ec |
|
private |
◆ mEnableColorBlur
| bool agl::pfx::DepthOfField::mEnableColorBlur |
|
private |
◆ _1f4
| f32 agl::pfx::DepthOfField::_1f4 |
|
private |
◆ mGraphicsContext
◆ mParameterObj
◆ mEnable
◆ mNearEnable
◆ mFarEnable
◆ mDepthBlur
◆ mEnableVignettingColor
◆ mEnableVignettingBlur
◆ mEnableVignetting2Shape
◆ mEnableColorControl
◆ mIndirectEnable
◆ mStart
◆ mEnd
◆ mFarStart
◆ mFarEnd
◆ mLevel
◆ mDepthBlurAdd
◆ mSaturateMin
◆ mColorCtrlDepth
◆ mIndirectTexTrans
◆ mIndirectTexScale
◆ mIndirectTexRotate
◆ mIndirectScale
◆ mVignettingBlur
◆ mVignettingBlend
◆ mVignettingColor
◆ mTempVignetting0
◆ mTempVignetting1
◆ mFarMulColor
◆ mDebugTexturePage
◆ mpCurrentProgramNearMask
◆ mpCurrentProgramMipMap
◆ mpCurrentProgramDepthMask
◆ mpCurrentProgramFinal
◆ mpCurrentProgramVignetting
| ShaderProgram* agl::pfx::DepthOfField::mpCurrentProgramVignetting |
|
private |
◆ mpIndirectTextureData
| const TextureData* agl::pfx::DepthOfField::mpIndirectTextureData |
|
private |
◆ mIndirectTextureSampler
◆ mIndirectTexParam
◆ mIndirectTexMtx0
◆ mIndirectTexMtx1
◆ mVignettingShape
◆ _10e8
| u8 agl::pfx::DepthOfField::_10e8 |
|
private |