Files
tinyusdz/tests/usda/shader.usda
Syoyo Fujita 152c1fffa7 Add wise_enum
Refactor PrimAttr.
Change file layout of USDA parser unit test.
2021-08-29 21:33:06 +09:00

129 lines
5.1 KiB
Plaintext

#usda 1.0
(
customLayerData = {
string copyright = "Copyright (c) 2019 Apple Inc. All rights reserved."
string creator = "USD 19.05 Maya Plugin (Apple Internal a3)"
}
defaultPrim = "teapot"
metersPerUnit = 0.01
timeCodesPerSecond = 24
upAxis = "Y"
)
def Xform "teapot" (
kind = "component"
)
{
def Scope "Looks"
{
def Material "pxrUsdPreviewSurface1SG"
{
token outputs:surface.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/TeapotMaterial.outputs:surface>
def Shader "TeapotMaterial"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_BaseColor_1.outputs:rgb>
float inputs:metallic.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Metallic_1.outputs:r>
normal3f inputs:normal.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Normal_1.outputs:rgb>
float inputs:occlusion.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/file4.outputs:r>
float inputs:roughness.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Roughness_1.outputs:r>
token outputs:displacement
token outputs:surface
}
def Shader "teapot_high_lambert1_Normal_1"
{
uniform token info:id = "UsdUVTexture"
float4 inputs:fallback = (0.5, 0.5, 0.5, 1)
asset inputs:file = @0/teapot_n.png@
float2 inputs:st.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Normal_1/TexCoordReader.outputs:result>
token inputs:wrapS = "repeat"
token inputs:wrapT = "repeat"
float3 outputs:rgb
def Shader "TexCoordReader"
{
uniform token info:id = "UsdPrimvarReader_float2"
token inputs:varname = "st"
float2 outputs:result
}
}
def Shader "teapot_high_lambert1_Roughness_1"
{
uniform token info:id = "UsdUVTexture"
float4 inputs:fallback = (0.5, 0.5, 0.5, 1)
asset inputs:file = @0/teapot_r.png@
float2 inputs:st.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Roughness_1/TexCoordReader.outputs:result>
token inputs:wrapS = "repeat"
token inputs:wrapT = "repeat"
float outputs:r
float3 outputs:rgb
def Shader "TexCoordReader"
{
uniform token info:id = "UsdPrimvarReader_float2"
token inputs:varname = "st"
float2 outputs:result
}
}
def Shader "teapot_high_lambert1_Metallic_1"
{
uniform token info:id = "UsdUVTexture"
float4 inputs:fallback = (0.5, 0.5, 0.5, 1)
asset inputs:file = @0/teapot_m.png@
float2 inputs:st.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_Metallic_1/TexCoordReader.outputs:result>
token inputs:wrapS = "repeat"
token inputs:wrapT = "repeat"
float outputs:r
float3 outputs:rgb
def Shader "TexCoordReader"
{
uniform token info:id = "UsdPrimvarReader_float2"
token inputs:varname = "st"
float2 outputs:result
}
}
def Shader "teapot_high_lambert1_BaseColor_1"
{
uniform token info:id = "UsdUVTexture"
float4 inputs:fallback = (0.5, 0.5, 0.5, 1)
asset inputs:file = @0/teapot_bc.png@
float2 inputs:st.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/teapot_high_lambert1_BaseColor_1/TexCoordReader.outputs:result>
token inputs:wrapS = "repeat"
token inputs:wrapT = "repeat"
float3 outputs:rgb
def Shader "TexCoordReader"
{
uniform token info:id = "UsdPrimvarReader_float2"
token inputs:varname = "st"
float2 outputs:result
}
}
def Shader "file4"
{
uniform token info:id = "UsdUVTexture"
float4 inputs:fallback = (0.5, 0.5, 0.5, 1)
asset inputs:file = @0/teapot_ao.png@
float2 inputs:st.connect = </teapot/Looks/pxrUsdPreviewSurface1SG/file4/TexCoordReader.outputs:result>
float outputs:r
float3 outputs:rgb
def Shader "TexCoordReader"
{
uniform token info:id = "UsdPrimvarReader_float2"
token inputs:varname = "st"
float2 outputs:result
}
}
}
}
}