Files
tinyusdz/tests/usda/spectral-ior-sellmeier-002.usda
Syoyo Fujita 4b506dc780 Add LTE SpectralAPI unit test USDA files
17 test files covering spectral data parsing:

Reflectance tests:
- spectral-reflectance-001.usda: Basic wavelength:reflectance
- spectral-reflectance-002.usda: With linear interpolation metadata
- spectral-reflectance-003.usda: With cubic interpolation

IOR tests:
- spectral-ior-001.usda: Basic wavelength:ior
- spectral-ior-002.usda: With linear interpolation
- spectral-ior-sellmeier-001.usda: Fused silica Sellmeier coefficients
- spectral-ior-sellmeier-002.usda: BK7 glass Sellmeier coefficients

Emission tests:
- spectral-emission-001.usda: Basic wavelength:emission
- spectral-emission-002.usda: With interpolation metadata
- spectral-emission-preset-*.usda: D65, D50, A, F2 illuminant presets

Other tests:
- spectral-stage-metadata-*.usda: Stage-level unitForWavelength
- spectral-held-interp-001.usda: Held interpolation
- spectral-material-binding-001.usda: Complete material with binding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 03:41:58 +09:00

21 lines
478 B
Plaintext

#usda 1.0
(
doc = "Test: Spectral IOR with Sellmeier coefficients (BK7 glass)"
)
def Shader "TestShader"
{
uniform token info:id = "UsdPreviewSurface"
float inputs:ior = 1.5168
float2[] wavelength:ior = [
(1.03961212, 0.00600069867),
(0.231792344, 0.0200179144),
(1.01046945, 103.560653)
] (
customData = {
string interpolation = "sellmeier"
string unitForWavelength = "micrometers"
}
)
}