mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
bump tinyusdz npm version
Use URL for texture file.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user