Photon Engine
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
AbradedTranslucent.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Actor/Material/SurfaceMaterial.h
"
4
#include "
Actor/Material/Component/DielectricInterfaceInfo.h
"
5
#include "
Actor/Material/Component/MicrosurfaceInfo.h
"
6
#include "
SDL/sdl_interface.h
"
7
8
namespace
ph
9
{
10
11
class
AbradedTranslucent
:
public
SurfaceMaterial
12
{
13
public
:
14
AbradedTranslucent
();
15
16
void
genSurface
(
const
CookingContext
& ctx,
SurfaceBehavior
& behavior)
const override
;
17
18
private
:
19
DielectricInterfaceInfo
m_interfaceInfo;
20
MicrosurfaceInfo
m_microsurfaceInfo;
21
22
public
:
23
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<AbradedTranslucent>
)
24
{
25
ClassType clazz(
"abraded-translucent"
);
26
clazz.docName(
"Abraded Translucent Material"
);
27
clazz.description(
"Able to model translucent surfaces with variable roughnesses. Such as frosted glass."
);
28
clazz.baseOn<
SurfaceMaterial
>();
29
30
clazz.addStruct(&OwnerType::m_interfaceInfo);
31
clazz.addStruct(&OwnerType::m_microsurfaceInfo);
32
33
return
clazz;
34
}
35
};
36
37
}
// end namespace ph
DielectricInterfaceInfo.h
MicrosurfaceInfo.h
SurfaceMaterial.h
ph::AbradedTranslucent
Definition
AbradedTranslucent.h:12
ph::AbradedTranslucent::AbradedTranslucent
AbradedTranslucent()
Definition
AbradedTranslucent.cpp:10
ph::AbradedTranslucent::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< AbradedTranslucent >)
Definition
AbradedTranslucent.h:23
ph::AbradedTranslucent::genSurface
void genSurface(const CookingContext &ctx, SurfaceBehavior &behavior) const override
Definition
AbradedTranslucent.cpp:17
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::DielectricInterfaceInfo
Data describing the effects when light hits an dielectric interface.
Definition
DielectricInterfaceInfo.h:22
ph::MicrosurfaceInfo
Definition
MicrosurfaceInfo.h:19
ph::SurfaceBehavior
Definition
SurfaceBehavior.h:15
ph::SurfaceMaterial
Definition
SurfaceMaterial.h:15
ph::TSdlOwnerClass
SDL binding type for a canonical SDL resource class.
Definition
TSdlOwnerClass.h:23
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
sdl_interface.h
Source
Actor
Material
AbradedTranslucent.h
Generated by
1.11.0