PBRUtilsGles.h#

Parent directory (OpenGLES)

Contains OpenGL ES-specific utilities to facilitate Physically Based Rendering tasks, such as generating irradiance maps and BRDF lookup tables.

Includes#

  • PVRCore/texture/Texture.h

  • PVRUtils/OpenGLES/ConvertToGlesTypes.h

  • PVRUtils/OpenGLES/ErrorsGles.h

  • PVRUtils/PBRUtils.h

Included By#

Namespaces#

Functions#

Source Code#

#pragma once
#include "PVRCore/texture/Texture.h"
#include "PVRUtils/OpenGLES/ConvertToGlesTypes.h"
#include "PVRUtils/OpenGLES/ErrorsGles.h"
#include "PVRUtils/PBRUtils.h"

namespace pvr {
namespace utils {

void generateIrradianceMap(GLuint environmentMap, pvr::Texture& outTexture, GLuint& outTextureGles, uint32_t mapSize = 64, uint32_t mapNumSamples = 128);

void generatePreFilteredMapMipMapStyle(GLuint environmentMap, pvr::Texture& outTexture, GLuint& outTextureGles, uint32_t mapSize, bool zeroRoughnessIsExternal,
    int numMipLevelsToDiscard, uint32_t mapNumSamples = 65536);
} // namespace utils
} // namespace pvr