Reintroduce input for the node trait

# Conflicts:
#	node-graph/gcore/src/raster.rs
This commit is contained in:
Dennis
2022-08-10 13:05:57 +02:00
committed by Keavon Chambers
parent 3775aedab1
commit 6b45927a60
6 changed files with 79 additions and 34 deletions

View File

@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
/// The other components (RGB) are stored as `f32` that range from `0.0` up to `f32::MAX`,
/// the values encode the brightness of each channel proportional to the light intensity in cd/m² (nits) in HDR, and `0.0` (black) to `1.0` (white) in SDR color.
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Copy, PartialEq, Default)] //, Serialize, Deserialize)]
pub struct Color {
red: f32,
green: f32,