ft (wip): deserialization

This commit is contained in:
djaidjai committed 2026-04-25 14:46:03 +02:00
1 parent ef8da70436
commit 430bdf63bc
15 files changed
+421 -158

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
use core::f32::math::sqrt;
use rand::RngExt;
use serde::Deserialize;
use crate::{
objects::{hit::Hit, materials::traits::Material},
@@ -8,6 +9,7 @@ use crate::{
vec3::{Colour, Vec3},
};
#[derive(Debug, Deserialize)]
pub struct Dielectric {
refraction_index: f32,
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.