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
4#include "Math/TVector3.h"
5#include "Frame/TFrame.h"
8
9#include <Common/primitive_type.h>
10
11#include <vector>
12#include <memory>
13
14namespace ph
15{
16
17class LdrRgbTexture2D : public TTexture<math::Spectrum>
18{
19public:
21 explicit LdrRgbTexture2D(std::unique_ptr<TAbstractPixelTex2D<LdrComponent, 3>> texture);
22
23 void sample(const SampleLocation& sampleLocation, math::Spectrum* out_value) const override;
24
25private:
26 std::unique_ptr<TAbstractPixelTex2D<LdrComponent, 3>> m_texture;
27};
28
29}// end namespace ph
Definition LdrRgbTexture2D.h:18
LdrRgbTexture2D()
Definition LdrRgbTexture2D.cpp:14
void sample(const SampleLocation &sampleLocation, math::Spectrum *out_value) const override
Definition LdrRgbTexture2D.cpp:25
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