Scene picking, shadow mapping adjustments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#load "../ui/widgets.jai";
|
||||
|
||||
pick_scene_view_at :: (coordinates: Vector2) {
|
||||
ray := normalized_screen_to_ray_v2(*editor.camera, coordinates);
|
||||
ray := normalized_screen_to_ray_v2(*current_scene.camera, coordinates);
|
||||
|
||||
if editor.should_check_entities {
|
||||
hit_entity : *Entity;
|
||||
@@ -126,7 +126,7 @@ editor_ui :: () {
|
||||
|
||||
state := ui_interactable_texture(get_texture_from_pass("UI Blend Pass"));
|
||||
if state.left_mouse_down {
|
||||
//pick_scene_view_at(.{state.normalized_local_mouse_coordinates.x, 1.0 - state.normalized_local_mouse_coordinates.y});
|
||||
pick_scene_view_at(.{state.normalized_local_mouse_coordinates.x, 1.0-state.normalized_local_mouse_coordinates.y});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user