mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
GL-related refactor
This commit is contained in:
parent
f8e02e1b3b
commit
87edb1d45e
16 changed files with 224 additions and 111 deletions
|
|
@ -13,6 +13,7 @@ class Shader;
|
|||
class Assets;
|
||||
class Camera;
|
||||
class Batch3D;
|
||||
class Framebuffer;
|
||||
|
||||
struct skysprite {
|
||||
std::string texture;
|
||||
|
|
@ -22,7 +23,7 @@ struct skysprite {
|
|||
};
|
||||
|
||||
class Skybox {
|
||||
uint fbo;
|
||||
std::unique_ptr<Framebuffer> fbo;
|
||||
uint cubemap;
|
||||
uint size;
|
||||
Shader* shader;
|
||||
|
|
@ -44,7 +45,8 @@ public:
|
|||
Camera* camera,
|
||||
Assets* assets,
|
||||
float daytime,
|
||||
float fog);
|
||||
float fog
|
||||
);
|
||||
|
||||
void refresh(const GfxContext& pctx, float t, float mie, uint quality);
|
||||
void bind() const;
|
||||
|
|
@ -54,4 +56,4 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
#endif // FRONTEND_GRAPHICS_SKYBOX_H_
|
||||
#endif // FRONTEND_GRAPHICS_SKYBOX_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue