diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Camera/Lighting.h |
Diffstat (limited to 'Runtime/Camera/Lighting.h')
-rw-r--r-- | Runtime/Camera/Lighting.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Runtime/Camera/Lighting.h b/Runtime/Camera/Lighting.h new file mode 100644 index 0000000..dfe491b --- /dev/null +++ b/Runtime/Camera/Lighting.h @@ -0,0 +1,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 |