summaryrefslogtreecommitdiffstats
path: root/src/render/CutsceneShadow.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
commit1803dcc873df329282adab46e1d42baa4b6ee45b (patch)
treed78ac699caa9124338701a5e413b70379204c8a3 /src/render/CutsceneShadow.h
parentNULL->nil (diff)
downloadre3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.gz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.bz2
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.lz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.xz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.zst
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.zip
Diffstat (limited to '')
-rw-r--r--src/render/CutsceneShadow.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/render/CutsceneShadow.h b/src/render/CutsceneShadow.h
new file mode 100644
index 00000000..bf4b8173
--- /dev/null
+++ b/src/render/CutsceneShadow.h
@@ -0,0 +1,54 @@
+#pragma once
+#include "ShadowCamera.h"
+
+class CCutsceneShadow
+{
+public:
+ enum
+ {
+ RASTER = 0,
+ RESAMPLE,
+ BLUR,
+ GRADIENT,
+ };
+
+ CShadowCamera m_Camera;
+ bool m_bResample;
+ char _pad0[3];
+ CShadowCamera m_ResampleCamera;
+ int32 m_nBlurPasses;
+ CShadowCamera m_BlurCamera;
+ bool m_bGradient;
+ char _pad1[3];
+ CShadowCamera m_GradientCamera;
+
+ union
+ {
+ RwObject *m_pObject;
+ RpAtomic *m_pAtomic;
+ RpClump *m_pClump;
+ };
+
+ int m_nRwObjectType;
+ RpLight *m_pLight;
+ RwSphere m_BoundingSphere;
+ RwSphere m_BaseSphere;
+
+ CCutsceneShadow();
+ ~CCutsceneShadow();
+
+ RwSphere &GetBaseSphere()
+ {
+ return m_BaseSphere;
+ }
+
+ bool Create(RwObject *object, int32 rasterSize, bool resample, int32 blurPasses, bool gradient);
+ RwFrame *SetLightProperties(float angleY, float angleX, bool setLight);
+ bool IsInitialized();
+ void Destroy();
+ RwRaster *Update();
+ RwTexture *UpdateForCutscene();
+ CShadowCamera *GetShadowCamera(int32 camType = RASTER);
+ RwTexture *GetShadowRwTexture();
+ void DrawBorderAroundTexture(RwRGBA const& color);
+}; \ No newline at end of file