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
5#include "Frame/frame_fwd.h"
7
8#include <memory>
9
10namespace ph
11{
12
13class HdrRgbTexture2D : public TTexture<math::Spectrum>
14{
15public:
17 explicit HdrRgbTexture2D(std::unique_ptr<TAbstractPixelTex2D<HdrComponent, 3>> texture);
18
19 void sample(const SampleLocation& sampleLocation, math::Spectrum* out_value) const override;
20
21private:
22 std::unique_ptr<TAbstractPixelTex2D<HdrComponent, 3>> m_texture;
23};
24
25}// end namespace ph
Definition HdrRgbTexture2D.h:14
void sample(const SampleLocation &sampleLocation, math::Spectrum *out_value) const override
Definition HdrRgbTexture2D.cpp:20
HdrRgbTexture2D()
Definition HdrRgbTexture2D.cpp:9
Definition SampleLocation.h:22
Definition TAbstractPixelTex2D.h:21
Definition TTexture.h:12
Definition TTristimulusSpectrum.h:11
The root for all renderer implementations.
Definition EEngineProject.h:6