PageSourceSearch

https://kimizuka.org/_next/static/chunks/pages/mock/r127/vr-gltf-8054a9cfd98b9942.js

js kimizuka.org collected 2026-09-25 14:57:47 UTC 1,769 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8287],{3181:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return d},default:function(){return l}});var i=t(7294),o=t(5608),r=t(6305),a=t(8630),c=t(4036),s=t(6378),u=t(4062),f=t(5893),d=!0;function l(e){var n=e.contents,t=(0,i.useRef)(null),d=(0,r.Z)(),l=d.windowWidth,w=d.windowHeight,p=(0,a.Z)(t.current),v=p.THREE,_=p.renderer,h=p.camera,m=p.scene,E=(0,c.Z)(h,t.current);return(0,i.useEffect)((function(){if(_&&h){_.setClearColor(16777215,1),_.setPixelRatio(window.devicePixelRatio),_.outputEncoding=v.GammaEncoding,_.xr.enabled=!0,h.position.set(0,0,8),h.lookAt(new v.Vector3(0,0,-2));var e=new v.AmbientLight(16777215,1);m.add(e);var n;(new o.E).load("/gltf/model.glb",(function(e){var t=e.scene,i=e.animations;if(i&&i.length){n=new v.AnimationMixer(t);for(var o=0;o<i.length;o++){var r=i[o];n.clipAction(r).play()}}t.traverse((function(e){e.isMesh&&(e.material.trasparent=!0,e.material.alphaToCoverage=!0,e.castShadow=!0)})),t.scale.set(10,10,10),t.position.set(0,0,-2),t.rotation.y=Math.PI/180*0,m.add(t),_.setAnimationLoop((function(){n&&n.setTime(Date.now()/1e3),_.render(m,h)}))}),(function(e){console.error(e)})),_.setAnimationLoop((function(){E&&E.update(),_.render(m,h)}))}}),[_,h]),(0,i.useEffect)((function(){_&&h&&(_.setPixelRatio(window.devicePixelRatio),_.setSize(l,w),h.aspect=l/w,h.updateProjectionMatrix())}),[_,h,l,w]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{content:n[0]}),(0,f.jsx)("canvas",{ref:t}),(0,f.jsx)(u.Z,{renderer:_})]})}},9479:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mock/r127/vr-gltf",function(){return t(3181)}])}},function(e){e.O(0,[8349,4036,2869,9774,2888,179],(function(){return n=9479,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.