bump tinyusdz npm version

Use URL for texture file.
This commit is contained in:
Syoyo Fujita
2025-06-26 09:21:18 +09:00
parent 967a19daf6
commit b432cefd0b
2 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "TinyUSDZLoader demo",
"name": "TinyUSDZ JS/WASM demos",
"private": true,
"version": "0.0.0",
"type": "module",
@@ -20,7 +20,7 @@
"lil-gui": "^0.19.2",
"stats.js": "^0.17.0",
"three": ">=0.177.0",
"tinyusdz": "^0.9.0-rc10"
"tinyusdz": "^0.9.0-rc12"
},
"0module": "index.ts"
}

View File

@@ -57,15 +57,17 @@ def Xform "root" (
float inputs:ior = 1.5
float inputs:metallic = 0
float inputs:opacity = 1
float inputs:roughness = 0.85
float inputs:specular = 0.5
float inputs:roughness = 0.95
float inputs:specular = 0.05
token outputs:surface
}
def Shader "Image_Texture"
{
uniform token info:id = "UsdUVTexture"
asset inputs:file = @./assets/textures/texture-cat.jpg@
#asset inputs:file = @./assets/textures/texture-cat.jpg@
# WASM TinyUSDZ supports reading texture file from URL
asset inputs:file = @https://raw.githubusercontent.com/lighttransport/tinyusdz/171ae289c32a714d46961a5dcf9155ddd7183403/models/textures/texture-cat.jpg@
token inputs:sourceColorSpace = "sRGB"
float2 inputs:st.connect = </root/_materials/Material_001/uvmap.outputs:result>
token inputs:wrapS = "repeat"