feat: complete M2 content workspace and inspector

This commit is contained in:
Rbanh committed 2026-07-17 23:40:49 -04:00
1 parent 931f561e7f
commit cf6eaba534
438 files changed
+59749 -19043

No files matched your search

+139 -65
View File
@@ -1,73 +1,147 @@
(
schema_version: 1,
schema_version: 2,
label: "Standard Lit",
kind: StandardLit,
wgsl_path: None,
parameters: [
(
name: "base_color",
display_name: "Base Color",
group: "Surface",
property_type: Color,
),
(
name: "metallic",
display_name: "Metallic",
group: "Surface",
property_type: Float(
min: Some(0.0),
max: Some(1.0),
schema: (
groups: [
(
id: "surface_inputs",
display_name: "Surface Inputs",
order: 0,
advanced: false,
),
),
(
name: "roughness",
display_name: "Roughness",
group: "Surface",
property_type: Float(
min: Some(0.0),
max: Some(1.0),
(
id: "advanced_inputs",
display_name: "Advanced Inputs",
order: 100,
advanced: true,
),
),
(
name: "emissive_color",
display_name: "Emissive Color",
group: "Emission",
property_type: Color,
),
(
name: "emissive_intensity",
display_name: "Emissive Nits",
group: "Emission",
property_type: Float(
min: Some(0.0),
max: Some(20000.0),
],
inputs: [
(
name: "base_color",
display_name: "Base Color",
group: "surface_inputs",
order: 0,
property_type: Color,
default_value: Some(Color((
r: 0.8,
g: 0.8,
b: 0.8,
a: 1.0,
))),
texture: Some((
semantic: Color,
default_channel: Rgba,
allow_channel_override: false,
)),
tooltip: "Color multiplier applied to the base-color texture.",
advanced: false,
),
),
(
name: "base_color_texture",
display_name: "Base Color Texture",
group: "Textures",
property_type: Texture,
),
(
name: "normal_map_texture",
display_name: "Normal Map",
group: "Textures",
property_type: Texture,
),
(
name: "metallic_roughness_texture",
display_name: "Metallic/Roughness Texture",
group: "Textures",
property_type: Texture,
),
(
name: "emissive_texture",
display_name: "Emissive Texture",
group: "Textures",
property_type: Texture,
),
],
default_values: [],
default_textures: [],
(
name: "metallic",
display_name: "Metallic",
group: "surface_inputs",
order: 10,
property_type: Float(
min: Some(0.0),
max: Some(1.0),
),
default_value: Some(Float(0.0)),
texture: Some((
semantic: Scalar,
default_channel: B,
allow_channel_override: true,
)),
tooltip: "Scalar multiplier; ARM/ORM uses the blue channel.",
advanced: false,
),
(
name: "roughness",
display_name: "Roughness",
group: "surface_inputs",
order: 20,
property_type: Float(
min: Some(0.0),
max: Some(1.0),
),
default_value: Some(Float(0.65)),
texture: Some((
semantic: Scalar,
default_channel: G,
allow_channel_override: true,
)),
tooltip: "Scalar multiplier; ARM/ORM uses the green channel.",
advanced: false,
),
(
name: "occlusion",
display_name: "Occlusion",
group: "surface_inputs",
order: 30,
property_type: Float(
min: Some(0.0),
max: Some(1.0),
),
default_value: Some(Float(1.0)),
texture: Some((
semantic: Scalar,
default_channel: R,
allow_channel_override: true,
)),
tooltip: "Ambient-occlusion strength; ARM/ORM uses the red channel.",
advanced: false,
),
(
name: "normal",
display_name: "Normal Map",
group: "surface_inputs",
order: 40,
property_type: Texture,
default_value: None,
texture: Some((
semantic: Normal,
default_channel: Rgb,
allow_channel_override: false,
)),
tooltip: "",
advanced: false,
),
(
name: "emissive_color",
display_name: "Emissive",
group: "surface_inputs",
order: 50,
property_type: Color,
default_value: Some(Color((
r: 1.0,
g: 1.0,
b: 1.0,
a: 1.0,
))),
texture: Some((
semantic: Color,
default_channel: Rgb,
allow_channel_override: false,
)),
tooltip: "Emissive color multiplied by the texture and intensity.",
advanced: false,
),
(
name: "emissive_intensity",
display_name: "Emissive Intensity",
group: "surface_inputs",
order: 60,
property_type: Float(
min: Some(0.0),
max: Some(50000.0),
),
default_value: Some(Float(0.0)),
texture: None,
tooltip: "Emissive luminance multiplier in nits.",
advanced: false,
),
],
),
)
+90 -72
View File
@@ -1,80 +1,98 @@
(
schema_version: 1,
schema_version: 2,
label: "Surface Tint",
kind: Custom,
wgsl_path: Some("assets/shaders/surface_tint.wgsl"),
parameters: [
(
name: "tint",
display_name: "Tint",
group: "Surface",
property_type: Color,
),
(
name: "roughness",
display_name: "Roughness",
group: "Surface",
property_type: Float(
min: Some(0.001),
max: Some(1.0),
schema: (
groups: [
(
id: "surface",
display_name: "Surface",
order: 0,
advanced: false,
),
),
(
name: "metallic",
display_name: "Metallic",
group: "Surface",
property_type: Float(
min: Some(0.0),
max: Some(1.0),
(
id: "emission",
display_name: "Emission",
order: 1,
advanced: false,
),
),
(
name: "emissive",
display_name: "Emissive",
group: "Emission",
property_type: Color,
),
(
name: "emissive_intensity",
display_name: "Emissive Nits",
group: "Emission",
property_type: Float(
min: Some(0.0),
max: Some(20000.0),
],
inputs: [
(
name: "tint",
display_name: "Tint",
group: "surface",
order: 0,
property_type: Color,
default_value: Some(Color((
r: 0.12,
g: 0.42,
b: 0.95,
a: 1.0,
))),
texture: None,
tooltip: "",
advanced: false,
),
),
],
default_values: [
(
name: "tint",
value: Color((
r: 0.12,
g: 0.42,
b: 0.95,
a: 1.0,
)),
),
(
name: "roughness",
value: Float(0.28),
),
(
name: "metallic",
value: Float(0.15),
),
(
name: "emissive",
value: Color((
r: 0.02,
g: 0.08,
b: 0.25,
a: 1.0,
)),
),
(
name: "emissive_intensity",
value: Float(3.0),
),
],
default_textures: [],
(
name: "roughness",
display_name: "Roughness",
group: "surface",
order: 1,
property_type: Float(
min: Some(0.001),
max: Some(1.0),
),
default_value: Some(Float(0.28)),
texture: None,
tooltip: "",
advanced: false,
),
(
name: "metallic",
display_name: "Metallic",
group: "surface",
order: 2,
property_type: Float(
min: Some(0.0),
max: Some(1.0),
),
default_value: Some(Float(0.15)),
texture: None,
tooltip: "",
advanced: false,
),
(
name: "emissive",
display_name: "Emissive",
group: "emission",
order: 3,
property_type: Color,
default_value: Some(Color((
r: 0.02,
g: 0.08,
b: 0.25,
a: 1.0,
))),
texture: None,
tooltip: "",
advanced: false,
),
(
name: "emissive_intensity",
display_name: "Emissive Nits",
group: "emission",
order: 4,
property_type: Float(
min: Some(0.0),
max: Some(20000.0),
),
default_value: Some(Float(3.0)),
texture: None,
tooltip: "",
advanced: false,
),
],
),
)
+75 -31
View File
@@ -1,37 +1,81 @@
(
schema_version: 1,
schema_version: 2,
label: "Unlit",
kind: Unlit,
wgsl_path: None,
parameters: [
(
name: "base_color",
display_name: "Base Color",
group: "Surface",
property_type: Color,
),
(
name: "base_color_texture",
display_name: "Base Color Texture",
group: "Textures",
property_type: Texture,
),
(
name: "emissive_color",
display_name: "Emissive Color",
group: "Emission",
property_type: Color,
),
(
name: "emissive_intensity",
display_name: "Emissive Nits",
group: "Emission",
property_type: Float(
min: Some(0.0),
max: Some(20000.0),
schema: (
groups: [
(
id: "surface",
display_name: "Surface",
order: 0,
advanced: false,
),
),
],
default_values: [],
default_textures: [],
(
id: "textures",
display_name: "Textures",
order: 1,
advanced: false,
),
(
id: "emission",
display_name: "Emission",
order: 2,
advanced: false,
),
],
inputs: [
(
name: "base_color",
display_name: "Base Color",
group: "surface",
order: 0,
property_type: Color,
default_value: None,
texture: None,
tooltip: "",
advanced: false,
),
(
name: "base_color_texture",
display_name: "Base Color Texture",
group: "textures",
order: 1,
property_type: Texture,
default_value: None,
texture: Some((
semantic: Mask,
default_channel: Rgba,
allow_channel_override: true,
)),
tooltip: "",
advanced: false,
),
(
name: "emissive_color",
display_name: "Emissive Color",
group: "emission",
order: 2,
property_type: Color,
default_value: None,
texture: None,
tooltip: "",
advanced: false,
),
(
name: "emissive_intensity",
display_name: "Emissive Nits",
group: "emission",
order: 3,
property_type: Float(
min: Some(0.0),
max: Some(20000.0),
),
default_value: None,
texture: None,
tooltip: "",
advanced: false,
),
],
),
)