render: move render_world_helper, remove chunks drawn behind view

This commit is contained in:
2022-01-27 01:09:45 +08:00
parent d8df67bc20
commit 7b6c16789c
11 changed files with 257 additions and 56 deletions

View File

@ -4,4 +4,10 @@ import "edgaru089.ml/go/gl01/internal/util/itype"
var (
DisplaySize itype.Vec2i // Size of the window viewport in pixels.
// Directions are not always normalized.
ViewPos, ViewDir itype.Vec3d // Position and Direction of the player view.
RenderPos, RenderDir itype.Vec3d // Position and Direction of view for the current render pass. Might be different for e.g. lighting passes
ShowDebugInfo bool // Show debug info (F3 screen)?
)