mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
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>
19 lines
451 B
Plaintext
19 lines
451 B
Plaintext
#usda 1.0
|
|
(
|
|
doc = "Test: Spectral reflectance with cubic interpolation"
|
|
)
|
|
|
|
def Shader "TestShader"
|
|
{
|
|
uniform token info:id = "UsdPreviewSurface"
|
|
float2[] wavelength:reflectance = [
|
|
(380, 0.05), (420, 0.08), (460, 0.12), (500, 0.20),
|
|
(540, 0.35), (580, 0.55), (620, 0.75), (660, 0.88),
|
|
(700, 0.92), (740, 0.94), (780, 0.95)
|
|
] (
|
|
customData = {
|
|
string interpolation = "cubic"
|
|
}
|
|
)
|
|
}
|