mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add drop test
This commit is contained in:
parent
69ddcb7595
commit
4b20487c58
6 changed files with 21 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ ModelBatch::~ModelBatch() {
|
|||
|
||||
void ModelBatch::draw(const model::Mesh& mesh, const glm::mat4& matrix, const glm::mat3& rotation) {
|
||||
glm::vec3 gpos = matrix * glm::vec4(glm::vec3(), 1.0f);
|
||||
light_t light = chunks->getLight(gpos.x, gpos.y, gpos.z);
|
||||
light_t light = chunks->getLight(floor(gpos.x), floor(gpos.y), floor(gpos.z));
|
||||
glm::vec4 lights (
|
||||
Lightmap::extract(light, 0) / 15.0f,
|
||||
Lightmap::extract(light, 1) / 15.0f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue