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