Simple transparency

This commit is contained in:
2026-03-13 13:16:35 -03:00
parent 0310bdaf7a
commit 96a485743f
10 changed files with 163 additions and 99 deletions
-26
View File
@@ -13,29 +13,3 @@ export class Camera extends Component {
near = 0.1;
far = 1000;
}
export function screen_to_world(
screen_x: number,
screen_y: number,
camera: Camera,
screen_width: number,
screen_height: number,
) {
// return {
// x: (screen_x - screen_width / 2) / camera.zoom + camera.x,
// y: (screen_y - screen_height / 2) / camera.zoom + camera.y,
// };
}
export function world_to_screen(
world_x: number,
world_y: number,
camera: Camera,
screen_width: number,
screen_height: number,
) {
// return {
// x: (world_x - camera.x) / camera.zoom + screen_width / 2,
// y: (world_y - camera.y) / camera.zoom + screen_height / 2,
// };
}