| Support Forum Library Source SourceForge Page G3D Web Page |
Per-frame, view-dependent lighting information. More...
Public Member Functions | |
| Environment () | |
| virtual | ~Environment () |
| const shared_ptr < AmbientOcclusion > | ambientOcclusion () const |
| virtual void | getScreenTextures (shared_ptr< Texture > &color, shared_ptr< Texture > &depth, bool updateNow) const |
| More efficient than calling screenColorTexture and screenDepthTexture independently when both are needed. | |
| const shared_ptr< Lighting > & | lighting () const |
| virtual const shared_ptr < Texture > & | screenColorTexture (bool updateNow) const |
| An image of the color buffer. | |
| virtual const shared_ptr < Texture > & | screenDepthTexture (bool updateNow) const |
| Used for screen-space reflection and refraction effects. | |
| void | setData (const shared_ptr< Lighting > &lighting, const shared_ptr< AmbientOcclusion > ambientOcclusion, const shared_ptr< Texture > &sourceScreenColorTexture, const shared_ptr< Texture > &sourceScreenDepthTexture) |
Protected Attributes | |
| shared_ptr< AmbientOcclusion > | m_ambientOcclusion |
| shared_ptr< Texture > | m_copiedScreenColorTexture |
| shared_ptr< Texture > | m_copiedScreenDepthTexture |
| bool | m_copiedScreenSinceLastSetData |
| True if the screen textures have been copied since the last call to setData. | |
| shared_ptr< Lighting > | m_lighting |
| shared_ptr< Texture > | m_sourceScreenColorTexture |
| shared_ptr< Texture > | m_sourceScreenDepthTexture |
Per-frame, view-dependent lighting information.
|
inline |
|
inlinevirtual |
|
inline |
Referenced by setData().
|
inlinevirtual |
More efficient than calling screenColorTexture and screenDepthTexture independently when both are needed.
|
inline |
Referenced by setData().
|
inlinevirtual |
An image of the color buffer.
This is a copy of the previous buffer; it is never the Texture currently being rendered to.
Commonly used for screen-space reflection and refraction effects. This may be lazily computed on the first call.
| updateNow | If true, the texture is re-copied from the source to include objects that have been rendered since the previous call. If false, the implementation may choose whether to re-copy the data. The default implementation does not re-copy the texture unless this is the first call. |
|
inlinevirtual |
Used for screen-space reflection and refraction effects.
|
inline |
|
protected |
Referenced by ambientOcclusion(), and setData().
|
protected |
|
protected |
|
mutableprotected |
True if the screen textures have been copied since the last call to setData.
Set to true in screenTexture() and screenDepthTexture().
|
protected |
Referenced by lighting(), and setData().
|
protected |
Referenced by screenColorTexture(), and setData().
|
protected |
Referenced by screenDepthTexture(), and setData().
1.8.2