-
Notifications
You must be signed in to change notification settings - Fork 0
/
comics.html
353 lines (312 loc) · 15.5 KB
/
comics.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html>
<html>
<head>
<title>Comics | Kamigen | A Tropical Cyberpunk World
</title>
<base href="/">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet"><!-- Facebook Pixel Code --><script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1266796517023212'); fbq('track', 'PageView');</script><noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=1266796517023212&ev=PageView&noscript=1"/></noscript><!-- End Facebook Pixel Code -->
<link href="/dist/website.css" rel="stylesheet">
</head>
<body>
<div class="ui grid stackable">
<div class="row">
<div class="column">
<div class="ui five column very relaxed grid center aligned" id="main_menu">
<div class="column"><a class="ui button inverted big fluid" href="/comics.html">Comics</a></div>
<div class="column"><a class="ui button inverted big fluid" href="/game.html">Game</a></div>
<div class="column logo"><a href="/"><img src="/art/design/Website%20Logo-01.png" title="Return to the Kamigen Homepage"></a></div>
<div class="column"><a class="ui button inverted big fluid" href="/shop.html">Shop</a></div>
<div class="column"><a class="ui button inverted big fluid" href="/wiki.html">Wiki</a></div>
</div>
<div class="ui fluid vertical menu inverted" id="mobile_menu">
<div class="item logo"><a href="/"><img src="/art/design/Website%20Logo-01.png" title="Return to the Kamigen Homepage"></a>
<div id="mobile_menu_toggle"><i class="content icon"></i></div>
</div>
<div class="item"><a class="ui button inverted big fluid" href="/comics.html">Comics</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/game.html">Game</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/shop.html">Shop</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/wiki.html">Wiki</a></div>
</div>
</div>
</div>
<div class="ui dividing header"></div>
<div class="row">
<div class="column">
<div class="ui inverted vertical center aligned segment" id="comics_hero">
<div class="gradient-sky"></div>
<div class="gradient-water"></div>
<div class="gradient-water-edge"></div>
<div class="ui stackable middle aligned very relaxed page grid">
<div class="row">
<div class="column eight wide"><a href="/comics/cover.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen_Cover.png">
<h3>The whole story</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/cover.html">
<h2>The whole story</h2></a>
<h4>First time reading the Kamigen comics? This is the spot for you!</h4>
<p>This is the whole story from the official hard cover to the latest pages.</p><a href="/comics/cover.html">Read the whole story now</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<div class="ui stackable middle aligned very relaxed page grid">
<div class="row">
<div class="column eight wide"><a href="/comics/issue_1.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen Issue 01 Cover-01.png">
<h3>Issue 01</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/issue_1.html">
<h2>Issue 01</h2></a>
<h4>Welcome to Kamigen</h4>
<p>The first issue introduces Kamigen Island and explains a bit about the current state of the world.</p>
<p><a href="/comics/issue_1.html">Open Issue 01</a></p>
<p><a href="/comics/issue_1_script.html">Transcript</a></p>
</div>
</div>
<div class="row">
<div class="column eight wide"><a href="/comics/issue_2.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen Issue 02 Cover-01.png">
<h3>Issue 02</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/issue_2.html">
<h2>Issue 02</h2></a>
<h4>Mysteries in Outer Space</h4>
<p>Ryoko is part of a team tasked with saving the Earth from a second water comet and the human race from extinction!</p>
<p><a href="/comics/issue_2.html">Launch Issue 02</a></p>
<p><a href="/comics/issue_2_script.html">Transcript</a></p>
</div>
</div>
<div class="row">
<div class="column eight wide"><a href="/comics/issue_3.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen Issue 03 Cover-01.png">
<h3>Issue 03</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/issue_3.html">
<h2>Issue 03</h2></a>
<h4>Bulawan</h4>
<p>A hundred million years ago, an advanced society prospered from advancements based on ancient relics from a long dead race.</p><a href="/comics/issue_3.html">Enter Issue 03</a>
</div>
</div>
<div class="row">
<div class="column eight wide"><a href="/comics/issue_4.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen Issue 04 Cover-01.png">
<h3>Issue 04</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/issue_4.html">
<h2>Issue 04</h2></a>
<h4>Islands</h4>
<p>Anak is on a quest to find out why he's the last of his kind - oh and he might as well save the human race along the way!</p><a href="/comics/issue_4.html">Begin Issue 04</a>
</div>
</div>
<div class="row">
<div class="column eight wide"><a href="/comics/issue_5.html"><img class="ui image fluid" src="./art/comics/SD/Kamigen Issue 05 Cover-01.png">
<h3>Issue 05</h3></a></div>
<div class="column eight wide left aligned"><a href="/comics/issue_5.html">
<h2>Issue 05</h2></a>
<h4>Name TBA</h4>
<p>This is the end of phase 1 and the first comic to be entirely in color!</p><a href="/comics/issue_5.html">Preview Issue 05</a>
</div>
</div>
</div>
</div>
</div>
<div class="row footer">
<div class="column five wide">
<div class="ui horizontal list">
<div class="item"><a href="https://www.deviantart.com/thezeski/gallery/70776399/kamigen-comics" title="Kamigen Comics on DeviantArt"><img class="ui mini image" src="/assets/deviantart.png" alt="Deviantart"></a></div>
<div class="item"><a href="https://www.facebook.com/kamigenofficial/" title="Kamigen Facebook Page"><img class="ui mini image" src="/assets/facebook.png" alt="Facebook"></a></div>
<div class="item"><a href="https://www.instagram.com/kamigen_comics/" title="Kamigen Comics Instagram"><img class="ui mini image" src="/assets/instagram.png" alt="Facebook"></a></div>
</div>
</div>
<div class="column six wide"><a href="/" title="Kamigen"><img src="/art/design/Website%20Footer%20Logo-01.png" alt="Kamigen"></a></div>
<div class="column five wide"><a href="https://openstudios.xyz" title="An Open Studios Project"><img class="ui image small" src="/assets/open_studios_logo.png" style="margin: 0 auto" alt="Open Studios logo"></a></div>
</div>
</div>
<script id="landVertexShader" type="x-shader/x-vertex">uniform sampler2D bumpTexture;
uniform float bumpScale;
varying float vAmount;
varying vec2 vUV;
varying vec4 worldPosition;
varying vec3 vViewPosition;
varying vec3 vNormal;
void main()
{
vUV = uv;
vec4 bumpData = texture2D( bumpTexture, uv );
vAmount = bumpData.r; // assuming map is grayscale it doesn't matter if you use r, g, or b.
// move the position along the normal
vec3 newPosition = position + normal * bumpScale * vAmount;
worldPosition = modelMatrix * vec4( newPosition, 1.0 );
// Normal position.
vNormal = normalize( normalMatrix * normal );
// View vector.
vViewPosition = cameraPosition - worldPosition.xyz;
gl_Position = projectionMatrix * modelViewMatrix * vec4( newPosition, 1.0 );
}
</script>
<script id="landFragmentShader" type="x-shader/x-fragment">uniform float landSize;
uniform float time;
uniform sampler2D sandyTexture;
uniform sampler2D forestTexture;
uniform sampler2D rockyTexture;
uniform sampler2D texture;
uniform vec3 sunPosition;
uniform vec3 center;
varying vec2 vUV;
varying float vAmount;
varying vec4 worldPosition;
varying vec3 vViewPosition;
varying vec3 vNormal;
// Shade island based on sun direction.
float sunshadeIsland() {
float radius = landSize / 4.;
// Distance between this point and sun.
float a = distance(worldPosition.xyz, sunPosition);
// Distance between the center and sun.
float b = distance(center, sunPosition);
// Default shade
float c = 0.0;
// Sun max height
float maxSun = 150000.;
float brightness = (sunPosition.y / maxSun);
if (sunPosition.y > 0.) {
if (a < b) {
brightness *= 0.5;
}
else {
brightness *= 0.3;
}
}
else {
brightness *= 0.05;
}
return brightness;
}
float snoise ( vec3 coord, float scale, float time_factor ) {
vec3 scaledCoord = coord * scale - (vNormal / time_factor + vec3(0.0, 0.0, -time / time_factor));
vec2 uvTimeShift = vec2((scaledCoord.x + scaledCoord.z) / 2.0, scaledCoord.y) + vec2( -0.7, 1.5 ) * time / time_factor * 0.015;
vec4 noiseGeneratorTimeShift = texture2D( forestTexture, uvTimeShift ) * 50.;
vec2 uvNoiseTimeShift = vec2(scaledCoord.x, scaledCoord.y) + 0.5 * vec2( noiseGeneratorTimeShift.r, noiseGeneratorTimeShift.b );
vec4 baseColor = texture2D( forestTexture, uvNoiseTimeShift * vec2(4.0, 4.0) );
return baseColor.b;
}
float heightMap( vec3 coord ) {
float n = abs(snoise(coord , 1.0 , 18.0));
n -= 0.75 * abs(snoise(coord , 4.0 , 25.0));
n += 0.125 * abs(snoise(coord , 14.0 , 35.0));
n *= 0.7;
return n;
}
// normal
vec3 getNormalLightWeight() {
const float e = .01;
float n = heightMap(worldPosition.xyz);
float nx = heightMap( worldPosition.xyz + vec3( e, 0.0, 0.0 ) );
float ny = heightMap( worldPosition.xyz + vec3( 0.0, e, 0.0 ) );
float nz = heightMap( worldPosition.xyz + vec3( 0.0, 0.0, e ) );
vec3 normal = normalize( vNormal + .5 * vec3( n - nx, n - ny, n - nz ) / e );
// diffuse light
vec3 vLightWeighting = vec3( 0.005 );
vec4 lDirection = viewMatrix * vec4( normalize( vec3( 1.0, 0.0, 0.5 ) ), 0.0 );
float directionalLightWeighting = dot( normal, normalize( lDirection.xyz ) ) * 0.15 + 0.85;
vLightWeighting += vec3( 1.0 ) * directionalLightWeighting;
// specular light
vec3 dirHalfVector = normalize( lDirection.xyz + normalize( vViewPosition ) );
float dirDotNormalHalf = dot( normal, dirHalfVector );
float dirSpecularWeight = 0.0;
if ( dirDotNormalHalf >= 0.0 )
dirSpecularWeight = ( 1.0 - n ) * pow( dirDotNormalHalf, 5.0 );
vLightWeighting *= vec3( 1.0, 0.5, 0.0 ) * dirSpecularWeight * n * 2.0;
return vLightWeighting;
}
void main()
{
if (vAmount < 0.01) {
gl_FragColor = texture2D( sandyTexture, vUV * 50.0 );
gl_FragColor.a = 0.0;
}
else {
vec4 sandy = (smoothstep(0.01, 0.03, vAmount) - smoothstep(0.05, 0.07, vAmount)) * texture2D( sandyTexture, vUV * 50.0 );
vec4 forest = (smoothstep(0.05, 0.07, vAmount) - smoothstep(0.40, 0.70, vAmount)) * texture2D( forestTexture, vUV * 50.0 );
vec4 rocky = (smoothstep(0.50, 0.65, vAmount)) * texture2D( rockyTexture, vUV * 25.0 );
gl_FragColor = sandy + forest + rocky;
gl_FragColor -= (texture2D( texture, vUV ) * 0.5);
// Alternative shading.. needs work. Look to integrate above old functions from Langenium..
//float diffuse = max(sunPosition.x * gl_FragColor.r + sunPosition.y * gl_FragColor.g + sunPosition.z * gl_FragColor.b, 0.0);
//gl_FragColor *= 1. + diffuse * 0.1;
gl_FragColor += sunshadeIsland();
gl_FragColor.a = 1.0;
}
}
</script>
<script id="spriteVertexShader" type="x-shader/x-vertex">varying vec2 vUV;
void main()
{
vUV = uv;
gl_Position = projectionMatrix *
modelViewMatrix *
vec4(position,1.0);
}
</script>
<script id="spriteFragmentShader" type="x-shader/x-fragment">varying vec2 vUV;
void main()
{
vec2 uv = vUV;
uv -= 0.5;
uv.x *= 0.8;
float d = length(uv);
float c = smoothstep(0.4, 0.4-0.6, d);
c *= 0.5;
gl_FragColor = vec4(c);
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.js"></script>
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-126811218-1"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/17.4.0/Tween.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r116/three.min.js"></script>
<script src="./vendor/ImprovedNoise.js"></script>
<script src="./vendor/simplex.js"></script>
<script src="./vendor/threex.keyboardstate.js"></script>
<script src="./vendor/stats.min.js"></script>
<script src="./vendor/OrbitControls.js"></script>
<script src="./vendor/Water.js"></script>
<script src="./vendor/Sky.js"></script>
<script>
$(document).ready(()=>{
$('#mobile_menu_toggle').click(()=>{
$('#mobile_menu .item:not(.logo)').slideToggle();
});
});
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-126811218-1');
</script>
<script>
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://kamigen.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-V14S7QR4X4');
</script>
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.openstudios.xyz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '8']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
</body>
</html>