9#include <Common/assertion.h>
22template<
typename OutputType>
28 , m_value(
std::move(value))
46template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Linear_sRGB>
52 , m_value(
std::move(value))
57 , m_value({value, value, value})
75template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Spectral>
81 , m_value(
std::move(value))
Definition SampleLocation.h:22
math::EColorUsage expectedUsage() const
Gets expected type of the usage for the sample.
Definition SampleLocation.h:123
A constant color texture that can adapt spectral values to spectrum. Converts spectral values to spec...
Definition constant_textures.h:77
TConstantSpectralTexture(math::SpectralSampleValues value)
Definition constant_textures.h:79
void sample(const SampleLocation &sampleLocation, math::Spectrum *const out_value) const override
Definition constant_textures.h:84
Texture storing one single constant of arbitrary type. This texture provides only a constant value....
Definition constant_textures.h:24
void sample(const SampleLocation &sampleLocation, OutputType *const out_value) const override
Definition constant_textures.h:31
TConstantTexture(OutputType value)
Definition constant_textures.h:26
A constant color texture that can adapt values in tristimulus color space to spectrum....
Definition constant_textures.h:48
void sample(const SampleLocation &sampleLocation, math::Spectrum *const out_value) const override
Definition constant_textures.h:60
TConstantTristimulusTexture(math::ColorValue value)
Definition constant_textures.h:55
TConstantTristimulusTexture(math::TristimulusValues value)
Definition constant_textures.h:50
Derived & setTransformed(const auto &srcColorValues, EColorUsage usage)
Derived & setSpectral(const TSpectralSampleValues< T > &sampleValues, EColorUsage usage)
Helper for setting spectral values to this spectrum.
Definition TTristimulusSpectrum.h:11
TSpectralSampleValues< ColorValue > SpectralSampleValues
Definition color_basics.h:60
real ColorValue
Definition color_basics.h:42
TTristimulusValues< ColorValue > TristimulusValues
Definition color_basics.h:59
The root for all renderer implementations.
Definition EEngineProject.h:6