Crates.io | material_designer |
lib.rs | material_designer |
version | 0.5.0 |
source | src |
created_at | 2022-01-08 18:28:44.441349 |
updated_at | 2022-01-09 17:57:05.044655 |
description | Custom Material designer for Bevy. |
homepage | |
repository | https://github.com/Neopallium/material_designer |
max_upload_size | |
id | 510388 |
size | 1,047,750 |
Design custom materials for Bevy.
On start the camera and objects are loaded from:
assets/settings.camera
assets/objects/*.obj
(
fov_degrees: 90.0,
translation: (3.0, 5.0, -8.0),
)
(
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,
}
)