mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
add particles lighting
This commit is contained in:
parent
b944f257f7
commit
7abb1a88c7
10 changed files with 66 additions and 26 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
class Mesh;
|
||||
class Texture;
|
||||
class Chunks;
|
||||
|
||||
class MainBatch {
|
||||
std::unique_ptr<float[]> const buffer;
|
||||
|
|
@ -36,6 +37,10 @@ public:
|
|||
void setTexture(const Texture* texture, const UVRegion& region);
|
||||
void flush();
|
||||
|
||||
static glm::vec4 sampleLight(
|
||||
const glm::vec3& pos, const Chunks& chunks, bool backlight
|
||||
);
|
||||
|
||||
inline void vertex(
|
||||
const glm::vec3& pos,
|
||||
const glm::vec2& uv,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue