blob: 3d59a2776264c60e6260bf69c52229e436edf778 (
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
|
#ifndef SKYBOX_H
#define SKYBOX_H
#include "Runtime/GameCode/Behaviour.h"
namespace Unity { class Material; }
class Camera;
class Skybox : public Behaviour {
public:
REGISTER_DERIVED_CLASS (Skybox, Behaviour)
DECLARE_OBJECT_SERIALIZE (Skybox)
Skybox (MemLabelId label, ObjectCreationMode mode);
static void RenderSkybox (Material* material, const Camera& camera);
void SetMaterial (Material* material);
Material* GetMaterial ()const;
virtual void AddToManager ();
virtual void RemoveFromManager ();
private:
PPtr<Material> m_CustomSkybox;
};
#endif
|