From aad5324b7a25e9ffee21cf713b14bc451f737ef3 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Wed, 23 Oct 2024 17:46:30 +0200 Subject: [PATCH 1/2] Add brdf uri to material schema Signed-off-by: ClemensLinnhoff --- examples/example_material.xomp | 7 ++++++- schemas/material_schema.json | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/example_material.xomp b/examples/example_material.xomp index c75d327..9cc7536 100644 --- a/examples/example_material.xomp +++ b/examples/example_material.xomp @@ -30,6 +30,11 @@ "density": 2699.0, "source": "internet: https://en.wikipedia.org/wiki/Aluminium" }, - "electromagneticPropertiesUri": "example_material_emp.xompt" + "electromagneticPropertiesUri": "example_material_emp.xompt", + "brdfUris": [ + "example_material_camera_brdf.xompt", + "example_material_lidar_brdf.xompt", + "example_material_radar_brdf.xompt" + ] } } diff --git a/schemas/material_schema.json b/schemas/material_schema.json index da112db..9a5730e 100644 --- a/schemas/material_schema.json +++ b/schemas/material_schema.json @@ -155,6 +155,14 @@ "description": "Relative path to a property lookup table file with electromagnetic material properties.", "pattern": ".*_emp\\.xompt$" }, + "brdfUris": { + "type": "array", + "description": "Relative paths to a property lookup table files with wavelength-dependent bidirectional reflectance distribution functions.", + "items": { + "type": "string", + "pattern": ".*_brdf\\.xompt$" + } + }, "retroreflectivityData": { "type": "object", "description": "Information about the retro-reflective properties of the material in the visible light spectrum.", From 252485cb788eaa9845b915e7900bf6dbe415322c Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Wed, 23 Oct 2024 17:47:34 +0200 Subject: [PATCH 2/2] Minor description fix Signed-off-by: ClemensLinnhoff --- schemas/material_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/material_schema.json b/schemas/material_schema.json index 9a5730e..d1f3d86 100644 --- a/schemas/material_schema.json +++ b/schemas/material_schema.json @@ -157,7 +157,7 @@ }, "brdfUris": { "type": "array", - "description": "Relative paths to a property lookup table files with wavelength-dependent bidirectional reflectance distribution functions.", + "description": "Relative paths to one or multiple property lookup table files with wavelength-dependent bidirectional reflectance distribution functions.", "items": { "type": "string", "pattern": ".*_brdf\\.xompt$"