Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
GradientImage.h
Go to the documentation of this file.
1#pragma once
2
4#include "Math/TVector3.h"
5
6namespace ph
7{
8
10{
11public:
13
14 std::shared_ptr<TTexture<Image::ArrayType>> genNumericTexture(
15 const CookingContext& ctx) override;
16
17 std::shared_ptr<TTexture<math::Spectrum>> genColorTexture(
18 const CookingContext& ctx) override;
19
20 void setUvwEndpoints(const math::Vector3R& beginUvw, const math::Vector3R& endUvw);
21
22private:
23 math::Vector3R m_beginUvw;
24 math::Vector3R m_endUvw;
25};
26
27}// end namespace ph
Definition BinaryMixedImage.h:12
Information about the world being cooked.
Definition CookingContext.h:24
Definition GradientImage.h:10
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override
Definition GradientImage.cpp:31
GradientImage()
Definition GradientImage.cpp:7
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override
Definition GradientImage.cpp:15
void setUvwEndpoints(const math::Vector3R &beginUvw, const math::Vector3R &endUvw)
Definition GradientImage.cpp:47
The root for all renderer implementations.
Definition EEngineProject.h:6