Skip to content

Instantly share code, notes, and snippets.

View TheNeikos's full-sized avatar
😼
💻🐈🌈

Marcel Müller TheNeikos

😼
💻🐈🌈
View GitHub Profile
@TheNeikos
TheNeikos / main.rs
Last active September 7, 2020 17:05 — forked from mcpar-land/main.rs
Bevy Ui Crash
use bevy::prelude::*;
pub struct GlobalChildRef(pub Entity);
pub struct GlobalChild;
fn setup(
mut commands: Commands,
mut materials: ResMut<Assets<ColorMaterial>>,
global_child: ResMut<GlobalChildRef>,
) {
@TheNeikos
TheNeikos / ambient_occlusion.rs
Last active May 5, 2021 12:53
Ambient Occlusion as shown by 0FPS
// This code is licensed under CC0
//
//
// The code assumes that your meshing goes in clockwise order, starting at the top left
//
// TL -> TR
// ^ v
// BL <- BR
// `alt_axis` and `alt2_axis` are `u` and `v` respectively