Files
tinyusdz/tests/usda/spectral-emission-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

18 lines
415 B
Plaintext

#usda 1.0
(
doc = "Test: Spectral emission with interpolation metadata"
)
def RectLight "TestLight"
{
float inputs:intensity = 100.0
float2[] wavelength:emission = [
(380, 49.98), (400, 82.75), (450, 92.46), (500, 104.86),
(550, 100.00), (600, 90.01), (650, 87.70), (700, 82.28), (780, 75.09)
] (
customData = {
string interpolation = "linear"
}
)
}