• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Martomate / Hexacraft / 7351367576

28 Dec 2023 06:50PM UTC coverage: 51.185% (-0.1%) from 51.312%
7351367576

push

github

Martomate
Refactor: Made Chunk not know if it has been saved to file

9 of 12 new or added lines in 2 files covered. (75.0%)

110 existing lines in 32 files now uncovered.

2829 of 5527 relevant lines covered (51.19%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/game/src/main/scala/hexacraft/world/render/combiner.scala
1
package hexacraft.world.render
2

3
import hexacraft.infra.gpu.OpenGL
4
import hexacraft.renderer.{Shader, ShaderConfig, VAO}
5

6
class WorldCombinerShader {
1✔
7
  private val config = ShaderConfig("world_combiner").withAttribs("position")
1✔
8
  private val shader = Shader.from(config)
9

1✔
10
  shader.setUniform1i("worldColorTexture", 0)
1✔
11
  shader.setUniform1i("worldDepthTexture", 1)
12

×
13
  def colorTextureSlot: OpenGL.TextureSlot = OpenGL.TextureSlot.ofSlot(0)
×
14
  def depthTextureSlot: OpenGL.TextureSlot = OpenGL.TextureSlot.ofSlot(1)
15

1✔
16
  def setClipPlanes(nearPlane: Float, farPlane: Float): Unit =
1✔
17
    shader.setUniform1f("nearPlane", nearPlane)
1✔
18
    shader.setUniform1f("farPlane", farPlane)
19

×
20
  def enable(): Unit = shader.activate()
21

1✔
22
  def free(): Unit = shader.free()
23
}
24

25
object WorldCombinerVao {
1✔
26
  def create: VAO =
1✔
27
    VAO
1✔
28
      .builder()
1✔
29
      .addVertexVbo(4)(
1✔
UNCOV
30
        _.floats(0, 2),
×
31
        _.fillFloats(0, Seq(-1, -1, 1, -1, -1, 1, 1, 1))
32
      )
1✔
33
      .finish(4)
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc