VTK  9.4.20241221
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
130
131VTK_ABI_NAMESPACE_BEGIN
134class vtkOpenGLTexture;
135class vtkRenderWindow;
136
137class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkPBRIrradianceTexture : public vtkOpenGLTexture
138{
139public:
142 void PrintSelf(ostream& os, vtkIndent indent) override;
143
145
149 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
151
155 void Load(vtkRenderer*) override;
156
160 void Render(vtkRenderer* ren) override { this->Load(ren); }
161
163
167 vtkGetMacro(IrradianceSize, unsigned int);
168 vtkSetMacro(IrradianceSize, unsigned int);
170
172
178 vtkGetMacro(IrradianceStep, float);
179 vtkSetMacro(IrradianceStep, float);
181
183
188 vtkGetMacro(ConvertToLinear, bool);
189 vtkSetMacro(ConvertToLinear, bool);
190 vtkBooleanMacro(ConvertToLinear, bool);
192
200
201protected:
204
205 float IrradianceStep = 0.04908738521; // pi / 64
206 unsigned int IrradianceSize = 256;
207 vtkOpenGLTexture* InputTexture = nullptr;
208 bool ConvertToLinear = false;
209
210private:
212 void operator=(const vtkPBRIrradianceTexture&) = delete;
213};
214
215VTK_ABI_NAMESPACE_END
216#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
#define VTK_MARSHALAUTO