Design custom materials for Bevy.
On start the camera and objects are loaded from:
- assets/settings.camera
- And all files in: assets/objects/*.obj
ron
(
fov_degrees: 90.0,
translation: (3.0, 5.0, -8.0),
)
ron
(
shape: Cube(2.0),
translation: (0.0, 2.0, 0.0),
material: (
material_type: "materials/base_texture.material_type",
resources: {
"base_texture": Texture("branding/icon.png"),
"base_color": Color(Rgba(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)),
}
)
)
(
name: "BaseTexture",
pipeline: (
vertex: "shaders/base_texture.vert",
fragment: Some("shaders/base_texture.frag"),
),
resource_types: {
"base_texture": Texture,
"base_color": Color,
}
)