This class contains specular and diffuse maps required for Image Base Lighting (IBL) in PBR shading model with it's generation methods.
More...
|
void | Bind (const Handle< OpenGl_Context > &theCtx) |
| Binds diffuse and specular IBL maps to the corresponding texture units. More...
|
|
void | Unbind (const Handle< OpenGl_Context > &theCtx) |
| Unbinds diffuse and specular IBL maps. More...
|
|
void | Clear (const Handle< OpenGl_Context > &theCtx, const Graphic3d_Vec3 &theColor=Graphic3d_Vec3(1.f)) |
| Fills all mipmaps of specular IBL map and diffuse IBL map with one color. So that environment illumination will be constant. More...
|
|
void | Bake (const Handle< OpenGl_Context > &theCtx, const Handle< OpenGl_Texture > &theEnvMap, Standard_Boolean theZIsInverted=Standard_False, Standard_Boolean theIsTopDown=Standard_True, Standard_Size theDiffMapNbSamples=1024, Standard_Size theSpecMapNbSamples=256, Standard_ShortReal theProbability=0.99f) |
| Generates specular and diffuse (irradiance) IBL maps. More...
|
|
unsigned int | SpecMapLevelsNumber () const |
| Returns number of mipmap levels used in specular IBL map. It can be different from value passed to creation method. More...
|
|
unsigned int | Pow2Size () const |
| Returns size of IBL maps sides as power of 2. So that the real size can be calculated as 2^Pow2Size() More...
|
|
bool | SizesAreDifferent (unsigned int thePow2Size, unsigned int theSpecMapLevelsNumber) const |
| Checks whether the given sizes affects to the current ones. It can be imagined as creation of new PBR environment. If creation method with this values returns the PBR environment having real sizes which are equals to current ones then this method will return false. It is handful when sizes are required to be changed. If this method returns false there is no reason to recreate PBR environment in order to change sizes. More...
|
|
bool | IsNeededToBeBound () const |
| Indicates whether IBL map's textures have to be bound or it is not obligate. More...
|
|
virtual void | Release (OpenGl_Context *theCtx) override |
| Releases all OpenGL resources. It must be called before destruction. More...
|
|
virtual Standard_Size | EstimatedDataSize () const override |
| Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules. More...
|
|
Standard_Boolean | IsComplete () const |
| Checks completeness of PBR environment. Creation method returns only completed objects or null handles otherwise. More...
|
|
virtual | ~OpenGl_PBREnvironment () |
| Destructor. Warning! 'Release' method must be called before destruction. Otherwise unhandled critical error will be generated. More...
|
|
| OpenGl_NamedResource (const TCollection_AsciiString &theId) |
| Empty constructor. More...
|
|
const TCollection_AsciiString & | ResourceId () const |
| Return resource name. More...
|
|
| OpenGl_Resource () |
| Empty constructor. More...
|
|
virtual | ~OpenGl_Resource () |
| Destructor. Inheritors should call Clean (NULL) within it. More...
|
|
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| Dumps the content of me into the stream. More...
|
|
Public Member Functions inherited from Standard_Transient |
| Standard_Transient () |
| Empty constructor. More...
|
|
| Standard_Transient (const Standard_Transient &) |
| Copy constructor – does nothing. More...
|
|
Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More...
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual. More...
|
|
virtual void | Delete () const |
| Memory deallocator for transient classes. More...
|
|
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object. More...
|
|
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type. More...
|
|
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More...
|
|
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
|
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
|
Standard_Transient * | This () const |
| Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
|
|
Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More...
|
|
void | IncrementRefCounter () const |
| Increments the reference counter of this object. More...
|
|
Standard_Integer | DecrementRefCounter () const |
| Decrements the reference counter of this object; returns the decremented value. More...
|
|
This class contains specular and diffuse maps required for Image Base Lighting (IBL) in PBR shading model with it's generation methods.