-
Notifications
You must be signed in to change notification settings - Fork 1
/
venus.php
37 lines (33 loc) · 1.23 KB
/
venus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
$title = "Venus | SolarSim";
$desc = "Venus is the second planet in the solar system. SolarSim is a free, 3D solar system simulator for younger learners to explore and learn from.";
include ("header.php");
?>
<div class="info-container">
<h1>Venus</h1>
<p>Venus is the second planet in our solar system, named after the Roman goddess of beauty. It has an incredibly thick and deadly atmosphere,
so no human satellites have ever surveyed Venus's surface.</p>
<button id="zoom">Zoom</button>
</div>
<script id="vertexShader" type="x-shader/x-vertex">
uniform vec3 viewVector;
uniform float c;
uniform float p;
varying float intensity;
void main(){
vec3 vNormal = normalize( normalMatrix * normal );
vec3 vNormel = normalize( normalMatrix * viewVector );
intensity = pow( c - dot(vNormal, vNormel), p );
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<script id="fragmentShader" type="x-shader/x-vertex">
uniform vec3 glowColor;
varying float intensity;
void main(){
vec3 glow = glowColor * intensity;
gl_FragColor = vec4( glow, 1.0 );
}
</script>
<script src="js/venus.js"></script>
<?php require ("footer.php"); ?>