mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Update texture-cat-plane scene(exported from Blender 4.1)
This commit is contained in:
@@ -1,122 +1,120 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "root"
|
||||
doc = "Blender v3.5.0 Alpha"
|
||||
metersPerUnit = 0.01
|
||||
doc = "Blender v4.1.1"
|
||||
metersPerUnit = 1
|
||||
upAxis = "Z"
|
||||
)
|
||||
|
||||
def Xform "root"
|
||||
def Xform "root" (
|
||||
customData = {
|
||||
dictionary Blender = {
|
||||
bool generated = 1
|
||||
}
|
||||
}
|
||||
)
|
||||
{
|
||||
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"
|
||||
|
||||
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"
|
||||
token inputs:varname = "st"
|
||||
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"]
|
||||
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
|
||||
uniform token[] xformOpOrder = ["xformOp:transform"]
|
||||
|
||||
def Mesh "Grid" (
|
||||
active = true
|
||||
def Mesh "Grid_001" (
|
||||
prepend apiSchemas = ["MaterialBindingAPI"]
|
||||
)
|
||||
{
|
||||
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)] (
|
||||
float3[] extent = [(-1, -1, 0), (1, 1, 0)]
|
||||
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4]
|
||||
int[] faceVertexIndices = [0, 1, 5, 4, 1, 2, 6, 5, 2, 3, 7, 6, 4, 5, 9, 8, 5, 6, 10, 9, 6, 7, 11, 10, 8, 9, 13, 12, 9, 10, 14, 13, 10, 11, 15, 14]
|
||||
rel material:binding = </root/_materials/Material_001>
|
||||
normal3f[] normals = [(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, 0.99999994), (0, 0, 0.99999994), (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, 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)] (
|
||||
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)] (
|
||||
bool[] primvars:sharp_face = [1, 1, 1, 1, 1, 1, 1, 1, 1] (
|
||||
interpolation = "uniform"
|
||||
)
|
||||
texCoord2f[] primvars:UVMap = [(0, 0), (0.33333334, 0), (0.33333334, 0.33333334), (0, 0.33333334), (0.33333334, 0), (0.6666667, 0), (0.6666667, 0.33333334), (0.33333334, 0.33333334), (0.6666667, 0), (1, 0), (1, 0.33333334), (0.6666666, 0.33333334), (0, 0.33333334), (0.33333334, 0.33333334), (0.33333334, 0.6666667), (0, 0.6666667), (0.33333334, 0.33333334), (0.6666667, 0.33333334), (0.6666667, 0.6666667), (0.33333334, 0.6666667), (0.6666667, 0.33333334), (1, 0.33333334), (1, 0.6666667), (0.6666666, 0.6666667), (0, 0.6666666), (0.33333334, 0.6666666), (0.33333334, 1), (0, 1), (0.33333334, 0.6666666), (0.6666667, 0.6666666), (0.6666667, 1), (0.33333334, 1), (0.6666667, 0.6666666), (1, 0.6666666), (1, 1), (0.6666666, 1)] (
|
||||
interpolation = "faceVarying"
|
||||
)
|
||||
uniform token subdivisionScheme = "none"
|
||||
custom string userProperties:blenderName:data = "Mesh"
|
||||
custom string userProperties:blenderName:data:st = "UVMap"
|
||||
}
|
||||
}
|
||||
|
||||
def Scope "_materials"
|
||||
{
|
||||
def Material "Material_001"
|
||||
{
|
||||
token outputs:surface.connect = </root/_materials/Material_001/Principled_BSDF.outputs:surface>
|
||||
|
||||
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/Image_Texture.outputs:rgb>
|
||||
float inputs:ior = 1.5
|
||||
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/uvmap.outputs:result>
|
||||
token inputs:wrapS = "repeat"
|
||||
token inputs:wrapT = "repeat"
|
||||
float3 outputs:rgb
|
||||
}
|
||||
|
||||
def Shader "uvmap"
|
||||
{
|
||||
uniform token info:id = "UsdPrimvarReader_float2"
|
||||
token inputs:varname = "UVMap"
|
||||
float2 outputs:result
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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"]
|
||||
matrix4d xformOp:transform = ( (0.6859206557273865, 0.7276763319969177, 0, 0), (-0.32401347160339355, 0.305420845746994, 0.8953956365585327, 0), (0.6515582203865051, -0.6141703724861145, 0.44527140259742737, 0), (7.358891487121582, -6.925790786743164, 4.958309173583984, 1) )
|
||||
uniform token[] xformOpOrder = ["xformOp:transform"]
|
||||
|
||||
def Camera "Camera"
|
||||
{
|
||||
float2 clippingRange = (10, 10000)
|
||||
float focalLength = 50
|
||||
float horizontalAperture = 36
|
||||
float2 clippingRange = (0.1, 100)
|
||||
float focalLength = 0.5
|
||||
float horizontalAperture = 0.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 verticalAperture = 0.2025
|
||||
float verticalApertureOffset = 0
|
||||
}
|
||||
}
|
||||
|
||||
def Xform "Light"
|
||||
{
|
||||
matrix4d xformOp:transform = ( (-0.29086464643478394, 0.9551711678504944, -0.05518905818462372, 0), (-0.7711008191108704, -0.1998833566904068, 0.6045247316360474, 0), (0.5663931965827942, 0.21839119493961334, 0.7946722507476807, 0), (4.076245307922363, 1.0054539442062378, 5.903861999511719, 1) )
|
||||
uniform token[] xformOpOrder = ["xformOp:transform"]
|
||||
|
||||
def SphereLight "Light"
|
||||
{
|
||||
float3[] extent = [(-0.1, -0.1, -0.1), (0.1, 0.1, 0.1)]
|
||||
color3f inputs:color = (1, 1, 1)
|
||||
float inputs:diffuse = 1
|
||||
float inputs:exposure = 0
|
||||
float inputs:intensity = 318.30988
|
||||
bool inputs:normalize = 1
|
||||
float inputs:radius = 0.1
|
||||
float inputs:specular = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user