perf: 玻璃模型 3.18MB→1.53MB / 1.44MB→0.75MB — gltf→glb+KHR 顶点量化
gltf-transform dedup/prune/weld/quantize/sparse,几何未简化(simplify 会伤玻璃折射精度)。KHR_mesh_quantization 为 GLTFLoader 原生支持,无需 Draco/Meshopt 解码器;base64 内嵌 buffer 转 glb 二进制直接省 33% 开销。同步更新 GlassModels URL 与 loadingBus REQUIRED key。
This commit is contained in:
@@ -762,7 +762,7 @@ function GlassModel({
|
||||
export function HelloModel({ isMobile = false }: { isMobile?: boolean }) {
|
||||
return (
|
||||
<GlassModel
|
||||
url="/model/hello.gltf"
|
||||
url="/model/hello.glb"
|
||||
position={[-0.1, 0, 2]}
|
||||
beforeRotation={[0, 240, 0]}
|
||||
afterRotation={[0, 90, 0]}
|
||||
@@ -805,7 +805,7 @@ export function CursorStar({ isMobile = false }: { isMobile?: boolean }) {
|
||||
export function FooterModel() {
|
||||
return (
|
||||
<GlassModel
|
||||
url="/model/cnt.gltf"
|
||||
url="/model/cnt.glb"
|
||||
position={[0, 0, 0]}
|
||||
beforeRotation={[-180, 0, 0]}
|
||||
rotation={[0, 0, 0]}
|
||||
|
||||
Reference in New Issue
Block a user