Inherits G3D::ReferenceCountedObject.
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
◆ GaussianMIPFilter()
G3D::GaussianMIPFilter::GaussianMIPFilter |
( |
| ) |
|
|
protected |
◆ apply()
void G3D::GaussianMIPFilter::apply |
( |
RenderDevice * |
rd, |
|
|
const shared_ptr< Texture > & |
texture, |
|
|
const shared_ptr< Texture > & |
positionMIP0, |
|
|
const shared_ptr< Texture > & |
normalMIP0, |
|
|
const shared_ptr< Texture > & |
glossy, |
|
|
const CFrame & |
cameraFrame |
|
) |
| const |
◆ create()
◆ createShared()
template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared |
( |
ArgTypes &&... |
args | ) |
|
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
◆ mipLimit()
int G3D::GaussianMIPFilter::mipLimit |
( |
| ) |
const |
|
inline |
◆ m_framebuffer
shared_ptr<Framebuffer> G3D::GaussianMIPFilter::m_framebuffer |
|
protected |
◆ m_mipLimit
const int G3D::GaussianMIPFilter::m_mipLimit = 3 |
|
protected |
Clamp the mip level to make the reflections look good.
Because this is a gaussian blur, we need this clamp to avoid the sky sampling a high mip level and overdarkening when blurred with the relatively dark ceiling.
Referenced by mipLimit().
◆ m_normalZ
shared_ptr<Texture> G3D::GaussianMIPFilter::m_normalZ |
|
protected |