don't fade grid axes depending on camera angle
This commit is contained in:
@@ -108,10 +108,13 @@ fragment {
|
|||||||
1.0
|
1.0
|
||||||
);
|
);
|
||||||
|
|
||||||
color.rgb = (axes.x < 1e-8) ? color.rgb : AXIS_COLOR_X;
|
if(axes.x > 1e-8) {
|
||||||
color.rgb = (axes.z < 1e-8) ? color.rgb : AXIS_COLOR_Z;
|
material.baseColor = vec4(AXIS_COLOR_X, 1.0);
|
||||||
|
} else if(axes.z > 1e-8) {
|
||||||
material.baseColor = color * gridAlpha;
|
material.baseColor = vec4(AXIS_COLOR_Z, 1.0);
|
||||||
|
} else {
|
||||||
|
material.baseColor = color * gridAlpha;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,5 +8,5 @@ GRID_PACKAGE:
|
|||||||
GRID_GRID_OFFSET:
|
GRID_GRID_OFFSET:
|
||||||
.int 0
|
.int 0
|
||||||
GRID_GRID_SIZE:
|
GRID_GRID_SIZE:
|
||||||
.int 50913
|
.int 49793
|
||||||
|
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ _GRID_PACKAGE:
|
|||||||
_GRID_GRID_OFFSET:
|
_GRID_GRID_OFFSET:
|
||||||
.int 0
|
.int 0
|
||||||
_GRID_GRID_SIZE:
|
_GRID_GRID_SIZE:
|
||||||
.int 50913
|
.int 49793
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user