mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
126 lines
6.6 KiB
Plaintext
126 lines
6.6 KiB
Plaintext
#usda 1.0
|
|
(
|
|
defaultPrim = "root"
|
|
doc = "Blender v3.5.0 Alpha"
|
|
metersPerUnit = 0.01
|
|
upAxis = "Z"
|
|
)
|
|
|
|
def Xform "root"
|
|
{
|
|
float3 xformOp:scale = (100, 100, 100)
|
|
uniform token[] xformOpOrder = ["xformOp:scale"]
|
|
|
|
def Scope "lights"
|
|
{
|
|
def DomeLight "environment"
|
|
{
|
|
custom color3f color = (0.05087609, 0.05087609, 0.05087609)
|
|
color3f inputs:color = (0.05087609, 0.05087609, 0.05087609)
|
|
float inputs:intensity = 683.0135
|
|
custom float intensity = 683.0135
|
|
}
|
|
}
|
|
|
|
def Scope "materials"
|
|
{
|
|
def Material "Material_001"
|
|
{
|
|
token outputs:surface.connect = </root/materials/Material_001/preview/Principled_BSDF.outputs:surface>
|
|
custom string userProperties:blenderName:data = "Material.001"
|
|
token inputs:stname = "st"
|
|
|
|
def Scope "preview"
|
|
{
|
|
def Shader "Principled_BSDF"
|
|
{
|
|
uniform token info:id = "UsdPreviewSurface"
|
|
float inputs:clearcoat = 0
|
|
float inputs:clearcoatRoughness = 0.03
|
|
color3f inputs:diffuseColor.connect = </root/materials/Material_001/preview/Image_Texture.outputs:rgb>
|
|
color3f inputs:emissiveColor = (0, 0, 0)
|
|
float inputs:ior = 1.45
|
|
float inputs:metallic = 0
|
|
float inputs:opacity = 1
|
|
float inputs:roughness = 0.5
|
|
float inputs:specular = 0.5
|
|
token outputs:surface
|
|
}
|
|
|
|
def Shader "Image_Texture"
|
|
{
|
|
uniform token info:id = "UsdUVTexture"
|
|
asset inputs:file = @./textures/texture-cat.jpg@
|
|
token inputs:sourceColorSpace = "sRGB"
|
|
float2 inputs:st.connect = </root/materials/Material_001/preview/uvmap.outputs:result>
|
|
token inputs:wrapS = "repeat"
|
|
token inputs:wrapT = "repeat"
|
|
color3f outputs:rgb
|
|
}
|
|
|
|
def Shader "uvmap"
|
|
{
|
|
uniform token info:id = "UsdPrimvarReader_float2"
|
|
# connect to `token` type attribute
|
|
string inputs:varname.connect = </root/materials/Material_001.inputs:stname>
|
|
float2 outputs:result
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
def Xform "Grid"
|
|
{
|
|
custom string userProperties:blenderName:object = "Grid"
|
|
float3 xformOp:rotateXYZ = (90, -0.000032328113, -0.19013378)
|
|
float3 xformOp:scale = (1, 1, 1)
|
|
double3 xformOp:translate = (0, 0, 0)
|
|
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
|
|
|
def Mesh "Grid" (
|
|
active = true
|
|
)
|
|
{
|
|
uniform bool doubleSided = 1
|
|
int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
|
|
int[] faceVertexIndices = [1, 4, 0, 2, 5, 1, 3, 6, 2, 5, 8, 4, 6, 9, 5, 7, 10, 6, 9, 12, 8, 10, 13, 9, 11, 14, 10, 1, 5, 4, 2, 6, 5, 3, 7, 6, 5, 9, 8, 6, 10, 9, 7, 11, 10, 9, 13, 12, 10, 14, 13, 11, 15, 14]
|
|
rel material:binding = </root/materials/Material_001>
|
|
normal3f[] normals = [(0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 0.99999994), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1)] (
|
|
interpolation = "faceVarying"
|
|
)
|
|
point3f[] points = [(-1, -1, 0), (-0.3333333, -1, 0), (0.33333337, -1, 0), (1, -1, 0), (-1, -0.3333333, 0), (-0.3333333, -0.3333333, 0), (0.33333337, -0.3333333, 0), (1, -0.3333333, 0), (-1, 0.33333337, 0), (-0.3333333, 0.33333337, 0), (0.33333337, 0.33333337, 0), (1, 0.33333337, 0), (-1, 1, 0), (-0.3333333, 1, 0), (0.33333337, 1, 0), (1, 1, 0)]
|
|
texCoord2f[] primvars:st = [(0.33333334, 0), (0, 0.33333334), (0, 0), (0.6666667, 0), (0.33333334, 0.33333334), (0.33333334, 0), (1, 0), (0.6666666, 0.33333334), (0.6666667, 0), (0.33333334, 0.33333334), (0, 0.6666667), (0, 0.33333334), (0.6666667, 0.33333334), (0.33333334, 0.6666667), (0.33333334, 0.33333334), (1, 0.33333334), (0.6666666, 0.6666667), (0.6666667, 0.33333334), (0.33333334, 0.6666666), (0, 1), (0, 0.6666666), (0.6666667, 0.6666666), (0.33333334, 1), (0.33333334, 0.6666666), (1, 0.6666666), (0.6666666, 1), (0.6666667, 0.6666666), (0.33333334, 0), (0.33333334, 0.33333334), (0, 0.33333334), (0.6666667, 0), (0.6666667, 0.33333334), (0.33333334, 0.33333334), (1, 0), (1, 0.33333334), (0.6666666, 0.33333334), (0.33333334, 0.33333334), (0.33333334, 0.6666667), (0, 0.6666667), (0.6666667, 0.33333334), (0.6666667, 0.6666667), (0.33333334, 0.6666667), (1, 0.33333334), (1, 0.6666667), (0.6666666, 0.6666667), (0.33333334, 0.6666666), (0.33333334, 1), (0, 1), (0.6666667, 0.6666666), (0.6666667, 1), (0.33333334, 1), (1, 0.6666666), (1, 1), (0.6666666, 1)] (
|
|
interpolation = "faceVarying"
|
|
)
|
|
int[] primvars:st:indices = None
|
|
uniform token subdivisionScheme = "none"
|
|
custom string userProperties:blenderName:data = "Mesh"
|
|
custom string userProperties:blenderName:data:st = "UVMap"
|
|
}
|
|
}
|
|
|
|
def Xform "Camera"
|
|
{
|
|
custom string userProperties:blenderName:object = "Camera"
|
|
float3 xformOp:rotateXYZ = (89.99999, -0, 0)
|
|
float3 xformOp:scale = (1, 1, 1)
|
|
double3 xformOp:translate = (0, -10, 0)
|
|
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
|
|
|
def Camera "Camera"
|
|
{
|
|
float2 clippingRange = (10, 10000)
|
|
float focalLength = 50
|
|
float horizontalAperture = 36
|
|
float horizontalApertureOffset = 0
|
|
token projection = "perspective"
|
|
double shutter:close = 0.25
|
|
double shutter:open = -0.25
|
|
custom string userProperties:blenderName:data = "Camera"
|
|
float verticalAperture = 24
|
|
float verticalApertureOffset = 0
|
|
}
|
|
}
|
|
}
|
|
|