Skip to content

Commit

Permalink
modularize octree implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
soypat committed Oct 10, 2024
1 parent 30c5645 commit 9f6dd7e
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 393 deletions.
3 changes: 2 additions & 1 deletion glrender/glrender.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ type icube struct {
lvl int
}

func (c icube) isSmallest() bool { return c.lvl == 1 }
func (c icube) isSmallest() bool { return c.lvl == 1 }
func (c icube) isSecondSmallest() bool { return c.lvl == 2 }

func (c icube) size(baseRes float32) float32 {
dim := 1 << (c.lvl - 1)
Expand Down
Loading

0 comments on commit 9f6dd7e

Please sign in to comment.