Photon Engine
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
HdrRgbTexture2D.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Core/Texture/TTexture.h
"
4
#include "
Core/Texture/TAbstractPixelTex2D.h
"
5
#include "
Frame/frame_fwd.h
"
6
#include "
Math/Color/Spectrum.h
"
7
8
#include <memory>
9
10
namespace
ph
11
{
12
13
class
HdrRgbTexture2D
:
public
TTexture
<math::Spectrum>
14
{
15
public
:
16
HdrRgbTexture2D
();
17
explicit
HdrRgbTexture2D
(std::unique_ptr<
TAbstractPixelTex2D<HdrComponent, 3>
> texture);
18
19
void
sample
(
const
SampleLocation
& sampleLocation,
math::Spectrum
* out_value)
const override
;
20
21
private
:
22
std::unique_ptr<TAbstractPixelTex2D<HdrComponent, 3>> m_texture;
23
};
24
25
}
// end namespace ph
Spectrum.h
TAbstractPixelTex2D.h
TTexture.h
ph::HdrRgbTexture2D
Definition
HdrRgbTexture2D.h:14
ph::HdrRgbTexture2D::sample
void sample(const SampleLocation &sampleLocation, math::Spectrum *out_value) const override
Definition
HdrRgbTexture2D.cpp:20
ph::HdrRgbTexture2D::HdrRgbTexture2D
HdrRgbTexture2D()
Definition
HdrRgbTexture2D.cpp:9
ph::SampleLocation
Definition
SampleLocation.h:22
ph::TAbstractPixelTex2D
Definition
TAbstractPixelTex2D.h:21
ph::TTexture
Definition
TTexture.h:12
ph::math::TTristimulusSpectrum
Definition
TTristimulusSpectrum.h:11
frame_fwd.h
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
Source
Core
Texture
HdrRgbTexture2D.h
Generated by
1.11.0