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
3
#include "
Actor/Material/Material.h
"
4
5
namespace
ph
6
{
7
8
class
VolumeOptics;
9
class
VolumeBehavior;
10
11
class
VolumeMaterial
:
public
Material
12
{
13
public
:
14
enum class
ESidedness
15
{
16
INTERIOR
,
17
EXTERIOR
18
};
19
20
VolumeMaterial
();
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
27
private
:
28
ESidedness
m_sidedness;
29
};
30
31
}
// end namespace ph
Material.h
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::Material
Definition
Material.h:17
ph::PrimitiveMetadata
Collection of attached components to a primitive. This type effectively "glues" various components th...
Definition
PrimitiveMetadata.h:22
ph::VolumeBehavior
Definition
VolumeBehavior.h:13
ph::VolumeMaterial
Definition
VolumeMaterial.h:12
ph::VolumeMaterial::genVolume
virtual void genVolume(const CookingContext &ctx, VolumeBehavior &behavior) const =0
ph::VolumeMaterial::genBehaviors
void genBehaviors(const CookingContext &ctx, PrimitiveMetadata &metadata) const override
Definition
VolumeMaterial.cpp:14
ph::VolumeMaterial::VolumeMaterial
VolumeMaterial()
Definition
VolumeMaterial.cpp:9
ph::VolumeMaterial::ESidedness
ESidedness
Definition
VolumeMaterial.h:15
ph::VolumeMaterial::ESidedness::EXTERIOR
@ EXTERIOR
ph::VolumeMaterial::ESidedness::INTERIOR
@ INTERIOR
ph::VolumeMaterial::setSidedness
void setSidedness(ESidedness sidedness)
Definition
VolumeMaterial.cpp:34
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
Source
Actor
Material
VolumeMaterial.h
Generated by
1.11.0