Skip to content

Instantly share code, notes, and snippets.

View afonsolage's full-sized avatar
🛠️
Bevy

Afonso Lage afonsolage

🛠️
Bevy
  • SCIO Tech
  • Fortaleza, CE - Brasil
  • 03:48 (UTC -03:00)
View GitHub Profile
use bevy::{prelude::*, render::{mesh::Indices, pipeline::{PipelineDescriptor, PrimitiveTopology, RenderPipeline}, shader::{ShaderStage, ShaderStages}}};
/// This example illustrates how to add a custom attribute to a mesh and use it in a custom shader.
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();
}
@afonsolage
afonsolage / test.rs
Created September 12, 2021 22:19
drawing test
use bevy::prelude::shape::{Cube, UVSphere};
use bevy::prelude::*;
use rand::Rng;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_startup_system(spawn_test_world)
.add_startup_system(spawn_character)
.run();
@afonsolage
afonsolage / reproduce.sh
Created November 11, 2023 10:26
WSL segfault reproduce on a fresh WSL Ubuntu install
sudo apt update
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
git clone https://github.com/bevyengine/bevy.git
cd bevy
sudo apt install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
sudo add-apt-repository ppa:kisak/kisak-mesa -y && sudo apt update && sudo apt install -y mesa-vulkan-drivers
cargo run --example bevymark --features wayland
@afonsolage
afonsolage / config.toml
Created November 20, 2023 06:50
Helix Config
theme = "dracula"
[editor]
line-number = "relative"
mouse = false
shell = ["nu", "-c"]
bufferline = "always"
rulers = [100]
true-color = true
color-modes = true
@afonsolage
afonsolage / wezterm.lua
Created December 2, 2023 17:47
wezterm.lua
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.color_scheme = 'Dracula (Official)'
config.window_frame = {