Skip to content

Commit 2c5d733

Browse files
committed
RENDER FIX grass now doesnt receive ao so it looks now correct
1 parent 9a3667e commit 2c5d733

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

renderer/viewer/lib/mesher/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ export function getSectionGeometry (sx: number, sy: number, sz: number, world: W
647647
// #endregion
648648

649649
for (const element of model.elements ?? []) {
650-
const ao = model.ao ?? true
650+
const ao = model.ao ?? block.boundingBox !== 'empty'
651651
if (block.transparent) {
652652
const pos = cursor.clone()
653653
delayedRender.push(() => {

renderer/viewer/lib/mesher/world.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class World {
239239
}
240240

241241
shouldMakeAo (block: WorldBlock | null) {
242-
return block?.isCube && !ignoreAoBlocks.includes(block.name)
242+
return block?.isCube && !ignoreAoBlocks.includes(block.name) && block.boundingBox !== 'empty'
243243
}
244244
}
245245

0 commit comments

Comments
 (0)