Improve anti aliasing
This commit is contained in:
parent
e1e480daf2
commit
db75a10f2b
4 changed files with 7 additions and 6 deletions
|
|
@ -3,8 +3,6 @@ package ecs
|
|||
import "core:math"
|
||||
import "core:math/linalg"
|
||||
|
||||
import sa "../sokol/app"
|
||||
|
||||
CameraSystem :: struct {
|
||||
using base: SystemBase,
|
||||
}
|
||||
|
|
@ -19,8 +17,6 @@ camera_system_update :: proc(camera_system: ^CameraSystem, coordinator: ^Coordin
|
|||
camera := coordinator_get_component(CameraComponent, coordinator, entity)
|
||||
input := coordinator_get_component(InputComponent, coordinator, entity)
|
||||
|
||||
if input.key_down[.ESCAPE] do sa.quit()
|
||||
|
||||
move_input: Vec3
|
||||
if input.key_down[.W] do move_input.y = 1
|
||||
else if input.key_down[.S] do move_input.y = -1
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ input_system_update :: proc(input_system: ^InputSystem, coordinator: ^Coordinato
|
|||
case .KEY_UP:
|
||||
input.key_down[event.key_code] = false
|
||||
}
|
||||
|
||||
if input.key_down[.ESCAPE] do sa.quit()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ init_outline_material :: proc(render_system: ^RenderSystem) {
|
|||
bias_slope_scale = 1.0,
|
||||
compare = .LESS_EQUAL,
|
||||
},
|
||||
sample_count = 4,
|
||||
})
|
||||
|
||||
sampler := sg.make_sampler({})
|
||||
|
|
@ -102,6 +103,7 @@ init_cube_material :: proc(render_system: ^RenderSystem) {
|
|||
bias_slope_scale = 1.0,
|
||||
compare = .LESS_EQUAL,
|
||||
},
|
||||
sample_count = 4,
|
||||
})
|
||||
|
||||
w, h: i32
|
||||
|
|
@ -122,7 +124,7 @@ init_cube_material :: proc(render_system: ^RenderSystem) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
sampler := sg.make_sampler({})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue