Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Bevy

Afonso Lage afonsolage

🛠️
Bevy
  • Fortaleza, CE - Brasil
View GitHub Profile
View test.rs
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();
View main.rs
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();
}