Photon Engine
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
VAbsorptionOnly.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Actor/Material/VolumeMaterial.h
"
4
#include "
Math/Color/Spectrum.h
"
5
#include "
Math/math_fwd.h
"
6
7
#include <Common/primitive_type.h>
8
9
namespace
ph
10
{
11
12
class
VAbsorptionOnly
final :
public
VolumeMaterial
13
{
14
public
:
15
VAbsorptionOnly
();
16
explicit
VAbsorptionOnly
(
const
math::Vector3R
& absorptionCoeffSrgb);
17
explicit
VAbsorptionOnly
(
const
math::Spectrum
& absorptionCoeff);
18
19
void
genVolume
(
const
CookingContext
& ctx,
VolumeBehavior
& behavior)
const override
;
20
21
private
:
22
math::Spectrum
m_absorptionCoeff;
23
};
24
25
}
// end namespace ph
Spectrum.h
VolumeMaterial.h
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::VAbsorptionOnly
Definition
VAbsorptionOnly.h:13
ph::VAbsorptionOnly::VAbsorptionOnly
VAbsorptionOnly()
Definition
VAbsorptionOnly.cpp:9
ph::VAbsorptionOnly::genVolume
void genVolume(const CookingContext &ctx, VolumeBehavior &behavior) const override
Definition
VAbsorptionOnly.cpp:22
ph::VolumeBehavior
Definition
VolumeBehavior.h:13
ph::VolumeMaterial
Definition
VolumeMaterial.h:12
ph::math::TTristimulusSpectrum
Definition
TTristimulusSpectrum.h:11
ph::math::TVector3< real >
math_fwd.h
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
Source
Actor
Material
Volume
VAbsorptionOnly.h
Generated by
1.11.0