mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-23 20:38:21 -06:00
wip things
This commit is contained in:
parent
99605766d9
commit
197bb7b784
|
@ -9,6 +9,10 @@ uniform sampler2DArray tex;
|
|||
void main() {
|
||||
// base color from texture
|
||||
color = texture(tex, vec3(v_uv, v_tex_index));
|
||||
// discard fully transparent pixels
|
||||
if (color.w <= 0.0) {
|
||||
discard;
|
||||
}
|
||||
//basic "lighting"
|
||||
float light = abs(v_normal.x) + .8 * abs(v_normal.y) + .6 * abs(v_normal.z);
|
||||
color *= vec4(vec3(light), 1.);
|
||||
|
|
1
kubi/src/gui.rs
Normal file
1
kubi/src/gui.rs
Normal file
|
@ -0,0 +1 @@
|
|||
//TODO
|
0
kubi/src/gui/text_widget.rs
Normal file
0
kubi/src/gui/text_widget.rs
Normal file
|
@ -31,6 +31,8 @@ pub(crate) mod block_placement;
|
|||
pub(crate) mod delta_time;
|
||||
pub(crate) mod cursor_lock;
|
||||
pub(crate) mod control_flow;
|
||||
pub(crate) mod state;
|
||||
pub(crate) mod gui;
|
||||
|
||||
use world::{
|
||||
init_game_world,
|
||||
|
|
14
kubi/src/state.rs
Normal file
14
kubi/src/state.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use shipyard::Unique;
|
||||
|
||||
#[derive(Unique)]
|
||||
pub enum GameState {
|
||||
Connecting,
|
||||
LoadingWorld,
|
||||
InGame,
|
||||
}
|
||||
|
||||
fn insert_default_state(
|
||||
|
||||
) {
|
||||
|
||||
}
|
Loading…
Reference in a new issue