Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
VolumeMaterial.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph
6{
7
8class VolumeOptics;
9class VolumeBehavior;
10
12{
13public:
14 enum class ESidedness
15 {
18 };
19
21
22 virtual void genVolume(const CookingContext& ctx, VolumeBehavior& behavior) const = 0;
23
24 void genBehaviors(const CookingContext& ctx, PrimitiveMetadata& metadata) const override;
25 void setSidedness(ESidedness sidedness);
26
27private:
28 ESidedness m_sidedness;
29};
30
31}// end namespace ph
Information about the world being cooked.
Definition CookingContext.h:24
Definition Material.h:17
Collection of attached components to a primitive. This type effectively "glues" various components th...
Definition PrimitiveMetadata.h:22
Definition VolumeBehavior.h:13
Definition VolumeMaterial.h:12
virtual void genVolume(const CookingContext &ctx, VolumeBehavior &behavior) const =0
void genBehaviors(const CookingContext &ctx, PrimitiveMetadata &metadata) const override
Definition VolumeMaterial.cpp:14
VolumeMaterial()
Definition VolumeMaterial.cpp:9
ESidedness
Definition VolumeMaterial.h:15
void setSidedness(ESidedness sidedness)
Definition VolumeMaterial.cpp:34
The root for all renderer implementations.
Definition EEngineProject.h:6