Simple transparency
This commit is contained in:
@@ -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,
|
||||
// };
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ export interface Chunk {
|
||||
vertexBuffer?: WebGLBuffer;
|
||||
vertexCount?: number;
|
||||
dirty: boolean;
|
||||
vertexTransparentBuffer?: WebGLBuffer;
|
||||
vertexTransparentCount?: number;
|
||||
}
|
||||
|
||||
export class Dimension extends Component {
|
||||
|
||||
Reference in New Issue
Block a user