VTK  9.3.20240423
vtkPBRIrradianceTexture.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
124#ifndef vtkPBRIrradianceTexture_h
125#define vtkPBRIrradianceTexture_h
126
127#include "vtkOpenGLTexture.h"
128#include "vtkRenderingOpenGL2Module.h" // For export macro
129
130VTK_ABI_NAMESPACE_BEGIN
133class vtkOpenGLTexture;
134class vtkRenderWindow;
135
136class VTKRENDERINGOPENGL2_EXPORT vtkPBRIrradianceTexture : public vtkOpenGLTexture
137{
138public:
141 void PrintSelf(ostream& os, vtkIndent indent) override;
142
144
148 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
150
154 void Load(vtkRenderer*) override;
155
159 void Render(vtkRenderer* ren) override { this->Load(ren); }
160
162
166 vtkGetMacro(IrradianceSize, unsigned int);
167 vtkSetMacro(IrradianceSize, unsigned int);
169
171
177 vtkGetMacro(IrradianceStep, float);
178 vtkSetMacro(IrradianceStep, float);
180
182
187 vtkGetMacro(ConvertToLinear, bool);
188 vtkSetMacro(ConvertToLinear, bool);
189 vtkBooleanMacro(ConvertToLinear, bool);
191
199
200protected:
203
204 float IrradianceStep = 0.04908738521; // pi / 64
205 unsigned int IrradianceSize = 256;
206 vtkOpenGLTexture* InputTexture = nullptr;
207 bool ConvertToLinear = false;
208
209private:
211 void operator=(const vtkPBRIrradianceTexture&) = delete;
212};
213
214VTK_ABI_NAMESPACE_END
215#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
OpenGL texture map.
void Load(vtkRenderer *) override
Implement base class method.
precompute irradiance texture used in physically based rendering
void Render(vtkRenderer *ren) override
Implement base class method.
vtkPBRIrradianceTexture()=default
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this texture.
void Load(vtkRenderer *) override
Implement base class method.
static vtkPBRIrradianceTexture * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkPBRIrradianceTexture() override
void SetInputTexture(vtkOpenGLTexture *texture)
Get/Set the input texture.
create a window for renderers to draw into
abstract specification for renderers
window superclass for vtkRenderWindow
Definition vtkWindow.h:48