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
5#include "Math/math_fwd.h"
6
7#include <Common/primitive_type.h>
8
9namespace ph
10{
11
12class VAbsorptionOnly final : public VolumeMaterial
13{
14public:
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
21private:
22 math::Spectrum m_absorptionCoeff;
23};
24
25}// end namespace ph
Information about the world being cooked.
Definition CookingContext.h:24
Definition VAbsorptionOnly.h:13
VAbsorptionOnly()
Definition VAbsorptionOnly.cpp:9
void genVolume(const CookingContext &ctx, VolumeBehavior &behavior) const override
Definition VAbsorptionOnly.cpp:22
Definition VolumeBehavior.h:13
Definition VolumeMaterial.h:12
Definition TTristimulusSpectrum.h:11
The root for all renderer implementations.
Definition EEngineProject.h:6