Skip to content

Commit

Permalink
deploy: e6248ba
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmas committed Nov 18, 2023
1 parent 5981500 commit b41f636
Show file tree
Hide file tree
Showing 8 changed files with 2,049 additions and 2,030 deletions.
4 changes: 4 additions & 0 deletions assets/index-8cc1c447.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions assets/index-a48f680b.js

This file was deleted.

2,026 changes: 0 additions & 2,026 deletions assets/vendor-1549386c.js

This file was deleted.

2,020 changes: 2,020 additions & 0 deletions assets/vendor-389425bf.js

Large diffs are not rendered by default.

Binary file added images/Earth_Cloud.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@


<title>Stuff in Space</title>
<script type="module" crossorigin src="/StuffInSpace/assets/index-a48f680b.js"></script>
<link rel="modulepreload" crossorigin href="/StuffInSpace/assets/vendor-1549386c.js">
<script type="module" crossorigin src="/StuffInSpace/assets/index-8cc1c447.js"></script>
<link rel="modulepreload" crossorigin href="/StuffInSpace/assets/vendor-389425bf.js">
</head>
<body class="loading">
<div id="no-webgl">
Expand Down
9 changes: 9 additions & 0 deletions shaders/dot2-fragment.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
uniform vec3 color;
uniform sampler2D pointTexture;

varying vec3 vColor;

void main() {
gl_FragColor = vec4( color * vColor, 1.0 );
gl_FragColor = gl_FragColor * texture2D( pointTexture, gl_PointCoord );
}
14 changes: 14 additions & 0 deletions shaders/dot2-vertex.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
attribute float size;
attribute vec3 color;

varying vec3 vColor;

void main() {
vColor = color;

vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );

gl_PointSize = size * ( 300.0 / -mvPosition.z );

gl_Position = projectionMatrix * mvPosition;
}

0 comments on commit b41f636

Please sign in to comment.