Validates PBR texture sets for correctness and compatibility with game engines (Unreal Engine, Unity, Godot).
| Texture | Purpose |
|---|---|
| Albedo | Base color (no lighting) |
| Normal | Surface normal perturbation |
| Roughness | Micro-surface roughness |
| Metallic | Metallic/insulator mask |
| AO | Ambient occlusion |
pip install pbr-validator
Or from source:
git clone https://github.com/belentani7/pbr-validator.git
cd pbr-validator
pip install -e .
pbrv validate albedo.png normal.png roughness.png metallic.png ao.png --engine unreal
pbrv check normal.png --type normal
pbrv check roughness.png --type roughness
pbrv validate albedo.png normal.png roughness.png metallic.png ao.png --engine unity
pbrv validate albedo.png normal.png roughness.png metallic.png ao.png --engine godot
from validator import load_pbr_set, validate_unreal
from validator.report import ValidationReport
pbr = load_pbr_set(
albedo="albedo.png",
normal="normal.png",
roughness="roughness.png",
metallic="metallic.png",
ao="ao.png",
)
issues = validate_unreal(pbr)
for issue in issues:
print(issue)
pip install -e ".[dev]"
pytest
MIT