16 bit processing fixes + code unification

This commit is contained in:
2025-05-16 11:05:27 +02:00
parent 415a3d64e8
commit d9baa5c454
19 changed files with 410 additions and 184 deletions

View File

@@ -37,7 +37,7 @@
"G": 0.5,
"B": 0.5
},
"output_bit_depth": "respect_inputs"
"bit_depth_policy": "preserve"
}
],
"CALCULATE_STATS_RESOLUTION": "1K",

View File

@@ -1,7 +1,7 @@
{
"FILE_TYPE_DEFINITIONS": {
"MAP_COL": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#ffaa00",
"description": "Color/Albedo Map",
"examples": [
@@ -15,7 +15,7 @@
"standard_type": "COL"
},
"MAP_NRM": {
"bit_depth_rule": "respect",
"bit_depth_policy": "preserve",
"color": "#cca2f1",
"description": "Normal Map",
"examples": [
@@ -27,7 +27,7 @@
"standard_type": "NRM"
},
"MAP_METAL": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#dcf4f2",
"description": "Metalness Map",
"examples": [
@@ -39,7 +39,7 @@
"standard_type": "METAL"
},
"MAP_ROUGH": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#bfd6bf",
"description": "Roughness Map",
"examples": [
@@ -52,7 +52,7 @@
"standard_type": "ROUGH"
},
"MAP_GLOSS": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#d6bfd6",
"description": "Glossiness Map",
"examples": [
@@ -64,7 +64,7 @@
"standard_type": "GLOSS"
},
"MAP_AO": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#e3c7c7",
"description": "Ambient Occlusion Map",
"examples": [
@@ -76,7 +76,7 @@
"standard_type": "AO"
},
"MAP_DISP": {
"bit_depth_rule": "respect",
"bit_depth_policy": "preserve",
"color": "#c6ddd5",
"description": "Displacement/Height Map",
"examples": [
@@ -88,7 +88,7 @@
"standard_type": "DISP"
},
"MAP_REFL": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#c2c2b9",
"description": "Reflection/Specular Map",
"examples": [
@@ -100,7 +100,7 @@
"standard_type": "REFL"
},
"MAP_SSS": {
"bit_depth_rule": "respect",
"bit_depth_policy": "preserve",
"color": "#a0d394",
"description": "Subsurface Scattering Map",
"examples": [
@@ -112,7 +112,7 @@
"standard_type": "SSS"
},
"MAP_FUZZ": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#a2d1da",
"description": "Fuzz/Sheen Map",
"examples": [
@@ -124,7 +124,7 @@
"standard_type": "FUZZ"
},
"MAP_IDMAP": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#ca8fb4",
"description": "ID Map (for masking)",
"examples": [
@@ -136,7 +136,7 @@
"standard_type": "IDMAP"
},
"MAP_MASK": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#c6e2bf",
"description": "Generic Mask Map",
"examples": [
@@ -146,8 +146,19 @@
"keybind": "",
"standard_type": "MASK"
},
"MAP_NRMRGH": {
"bit_depth_policy": "preserve",
"color": "#abcdef",
"description": "Packed Normal + Roughness + Metallic Map",
"examples": [
"_nrmrgh."
],
"is_grayscale": false,
"keybind": "",
"standard_type": "NRMRGH"
},
"MAP_IMPERFECTION": {
"bit_depth_rule": "force_8bit",
"bit_depth_policy": "force_8bit",
"color": "#e6d1a6",
"description": "Imperfection Map (scratches, dust)",
"examples": [
@@ -164,7 +175,7 @@
"standard_type": "IMPERFECTION"
},
"MODEL": {
"bit_depth_rule": "",
"bit_depth_policy": "",
"color": "#3db2bd",
"description": "3D Model File",
"examples": [
@@ -176,7 +187,7 @@
"standard_type": ""
},
"EXTRA": {
"bit_depth_rule": "",
"bit_depth_policy": "",
"color": "#8c8c8c",
"description": "asset previews or metadata",
"examples": [
@@ -193,7 +204,7 @@
"standard_type": "EXTRA"
},
"FILE_IGNORE": {
"bit_depth_rule": "",
"bit_depth_policy": "",
"color": "#673d35",
"description": "File identified to be ignored due to prioritization rules (e.g., a lower bit-depth version when a higher one is present).",
"category": "Ignored",