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
3
#include "
Actor/Image/BinaryMixedImage.h
"
4
#include "
Math/TVector3.h
"
5
6
namespace
ph
7
{
8
9
class
GradientImage
:
public
BinaryMixedImage
10
{
11
public
:
12
GradientImage
();
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
22
private
:
23
math::Vector3R
m_beginUvw;
24
math::Vector3R
m_endUvw;
25
};
26
27
}
// end namespace ph
BinaryMixedImage.h
TVector3.h
ph::BinaryMixedImage
Definition
BinaryMixedImage.h:12
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::GradientImage
Definition
GradientImage.h:10
ph::GradientImage::genColorTexture
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override
Definition
GradientImage.cpp:31
ph::GradientImage::GradientImage
GradientImage()
Definition
GradientImage.cpp:7
ph::GradientImage::genNumericTexture
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override
Definition
GradientImage.cpp:15
ph::GradientImage::setUvwEndpoints
void setUvwEndpoints(const math::Vector3R &beginUvw, const math::Vector3R &endUvw)
Definition
GradientImage.cpp:47
ph::math::TVector3< real >
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
Source
Actor
Image
GradientImage.h
Generated by
1.11.0