Documentation for module: Graphics
Former-commit-id: 1757c33318443aade1dc38e16d053240d7dc885c
This commit is contained in:
@@ -13,6 +13,11 @@ namespace Nz
|
||||
{
|
||||
namespace
|
||||
{
|
||||
/*!
|
||||
* \brief Builds the shader for the fog
|
||||
* \return Reference to the shader newly created
|
||||
*/
|
||||
|
||||
ShaderRef BuildFogShader()
|
||||
{
|
||||
/*const UInt8 fragmentSource[] = {
|
||||
@@ -117,6 +122,16 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
* \ingroup graphics
|
||||
* \class Nz::DeferredFogPass
|
||||
* \brief Graphics class that represents the pass for fog in deferred rendering
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \brief Constructs a DeferredFogPass object by default
|
||||
*/
|
||||
|
||||
DeferredFogPass::DeferredFogPass()
|
||||
{
|
||||
m_pointSampler.SetAnisotropyLevel(1);
|
||||
@@ -131,7 +146,16 @@ namespace Nz
|
||||
|
||||
DeferredFogPass::~DeferredFogPass() = default;
|
||||
|
||||
bool DeferredFogPass::Process( const SceneData& sceneData, unsigned int firstWorkTexture, unsigned secondWorkTexture) const
|
||||
/*!
|
||||
* \brief Processes the work on the data while working with textures
|
||||
* \return true
|
||||
*
|
||||
* \param sceneData Data for the scene
|
||||
* \param firstWorkTexture Index of the first texture to work with
|
||||
* \param firstWorkTexture Index of the second texture to work with
|
||||
*/
|
||||
|
||||
bool DeferredFogPass::Process( const SceneData& sceneData, unsigned int firstWorkTexture, unsigned int secondWorkTexture) const
|
||||
{
|
||||
NazaraAssert(sceneData.viewer, "Invalid viewer");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user