blob: dfe491bc0c5af3b2b05ae31674b4be752c892fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef LIGHTING_H
#define LIGHTING_H
// Light type
enum LightType {
kLightSpot,
kLightDirectional,
kLightPoint,
kLightArea,
kLightTypeCount // keep this last
};
// Pixel lighting mode (keyword to use)
enum LightKeywordMode {
kLightKeywordSpot,
kLightKeywordDirectional,
kLightKeywordDirectionalCookie,
kLightKeywordPoint,
kLightKeywordPointCookie,
kLightKeywordCount // keep this last
};
enum ShadowType {
kShadowNone = 0,
kShadowHard,
kShadowSoft,
};
inline bool IsSoftShadow(ShadowType shadowType)
{
return (shadowType == kShadowSoft);
};
#endif
|