Skip to content

Commit

Permalink
BoundingGrid: Fix y orientation and update compiled shader
Browse files Browse the repository at this point in the history
  • Loading branch information
skalarproduktraum committed Sep 23, 2023
1 parent 3afb85e commit 25f1e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/graphics/scenery/BoundingGrid.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ open class BoundingGrid : Mesh("Bounding Grid"), RenderingOrder {

/** Whether to show only the ticks on the grid, or show the full grid. */
@ShaderProperty
var ticksOnly: Int = 0
var ticksOnly: Int = 1
set(value) {
field = value
if(ticksOnly == 0) {
Expand Down Expand Up @@ -208,6 +208,7 @@ open class BoundingGrid : Mesh("Bounding Grid"), RenderingOrder {
labels["0"]?.spatial()?.scale = invScale
labels["x"]?.spatial()?.scale = invScale
labels["y"]?.spatial()?.scale = invScale
labels["y"]?.spatial()?.scale?.timesAssign(-1.0f)
labels["z"]?.spatial()?.scale = invScale

spatial {
Expand Down
Binary file not shown.

0 comments on commit 25f1e45

Please sign in to comment.