Skip to content

Commit

Permalink
Adjust tabs and spaces in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
quadjr committed Sep 29, 2023
1 parent 726bae1 commit f7c94b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
</head>
<body style="background: black;">
<a-scene loading-screen="enabled: false" renderer="maxCanvasWidth: -1;antialias: false;precision: low;" light="defaultLightsEnabled: false" vr-mode-ui="enabled: false" stats>
<a-scene loading-screen="enabled: false" renderer="maxCanvasWidth: -1;antialias: false;precision: low;" light="defaultLightsEnabled: false" vr-mode-ui="enabled: false">
<a-entity 3d_gaussian_splatting position="0 0 -3.0"></a-entity>
<a-entity id="camera" camera="active: true;fov: 45;near:0.1;far:200.0;" look-controls wasd-controls></a-entity>
<a-entity id="camera" camera="active: true;fov: 45;near:0.1;far:200.0;" look-controls wasd-controls></a-entity>
</a-scene>
<script src="viewer.js?"></script>
<script src="viewer.js?"></script>
</body>
</html>
4 changes: 1 addition & 3 deletions viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ AFRAME.registerComponent("3d_gaussian_splatting", {
vCenter
+ position.x * v2 / viewport * 2.0
+ position.y * v1 / viewport * 2.0, 0.0, 1.0);
}
`,
fragmentShader: `
Expand All @@ -96,8 +95,7 @@ AFRAME.registerComponent("3d_gaussian_splatting", {
material.depthTest = false;
material.needsUpdate = true;


window.addEventListener('resize', () => {
window.addEventListener('resize', () => {
let size = new THREE.Vector2();
this.el.sceneEl.renderer.getSize(size);
const camera_el = document.getElementById("camera");
Expand Down

0 comments on commit f7c94b8

Please sign in to comment.