Skip to content

Commit 0597fc9

Browse files
committed
add backface color to material struct
1 parent 3c5494b commit 0597fc9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

modeling-cmds/src/def_enum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ define_modeling_cmd_enum! {
802802
pub roughness: f32,
803803
/// Ambient Occlusion of the new material
804804
pub ambient_occlusion: f32,
805+
/// Color of the backface
806+
pub backface_color: Option<Color>,
805807
}
806808
/// What type of entity is this?
807809
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema, ModelingCmdVariant)]

modeling-session/examples/cube_png.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const CUBE_WIDTH: LengthUnit = LengthUnit(100.0);
2121
async fn main() -> Result<()> {
2222
// Set up the API client.
2323
let token = env::var("ZOO_API_TOKEN")
24-
.or_else(|_| env::var("KITTYCAD_API_TOKEN")) // legacy name
25-
.context("You must set $ZOO_API_TOKEN")?;
24+
.or_else(|_| env::var("KITTYCAD_API_TOKEN")) // legacy name
25+
.context("You must set $ZOO_API_TOKEN")?;
2626
let client = kittycad::Client::new(token);
2727

2828
// Where should the final PNG be saved?

0 commit comments

Comments
 (0)