mirror of
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation.git
synced 2025-10-03 17:31:53 +02:00
very professinal seo
This commit is contained in:
12
index.html
12
index.html
@@ -2,18 +2,22 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Fluid Simulation</title>
|
<meta http-equiv="Cache-Control" content="no-cache">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
|
||||||
<link rel="apple-touch-icon" href="logo.png">
|
<link rel="apple-touch-icon" href="logo.png">
|
||||||
<link rel="icon" href="logo.png">
|
<link rel="icon" href="logo.png">
|
||||||
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
|
|
||||||
|
<title>WebGL Fluid Simulation</title>
|
||||||
|
<meta name="description" content="A WebGL fluid simulation that works in mobile browsers.">
|
||||||
|
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="Webgl Fluid Simulation">
|
<meta property="og:title" content="Webgl Fluid Simulation">
|
||||||
<meta property="og:description" content="Play with fluids in your browser (works on mobile devices)">
|
<meta property="og:description" content="A WebGL fluid simulation that works in mobile browsers.">
|
||||||
<meta property="og:url" content="https://paveldogreat.github.io/WebGL-Fluid-Simulation/">
|
<meta property="og:url" content="https://paveldogreat.github.io/WebGL-Fluid-Simulation/">
|
||||||
<meta property="og:image" content="https://paveldogreat.github.io/WebGL-Fluid-Simulation/logo.png">
|
<meta property="og:image" content="https://paveldogreat.github.io/WebGL-Fluid-Simulation/logo.png">
|
||||||
|
|
||||||
|
@@ -162,7 +162,7 @@ function startGUI () {
|
|||||||
let captureFolder = gui.addFolder('Capture');
|
let captureFolder = gui.addFolder('Capture');
|
||||||
captureFolder.addColor(config, 'BACK_COLOR').name('background color');
|
captureFolder.addColor(config, 'BACK_COLOR').name('background color');
|
||||||
captureFolder.add(config, 'TRANSPARENT').name('transparent');
|
captureFolder.add(config, 'TRANSPARENT').name('transparent');
|
||||||
captureFolder.add({ fun: CaptureScreenshot }, 'fun').name('take screenshot');
|
captureFolder.add({ fun: captureScreenshot }, 'fun').name('take screenshot');
|
||||||
|
|
||||||
let github = gui.add({ fun : () => {
|
let github = gui.add({ fun : () => {
|
||||||
window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation');
|
window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation');
|
||||||
@@ -198,7 +198,7 @@ function startGUI () {
|
|||||||
gui.close();
|
gui.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
function CaptureScreenshot () {
|
function captureScreenshot () {
|
||||||
colorProgram.bind();
|
colorProgram.bind();
|
||||||
gl.uniform4f(colorProgram.uniforms.color, 0, 0, 0, 1);
|
gl.uniform4f(colorProgram.uniforms.color, 0, 0, 0, 1);
|
||||||
blit(density.write.fbo);
|
blit(density.write.fbo);
|
||||||
|
Reference in New Issue
Block a user