very professinal seo

This commit is contained in:
Pavel Dobryakov
2019-03-15 20:03:50 +03:00
parent e41ed80ea0
commit ffc6914006
2 changed files with 10 additions and 6 deletions

View File

@@ -162,7 +162,7 @@ function startGUI () {
let captureFolder = gui.addFolder('Capture');
captureFolder.addColor(config, 'BACK_COLOR').name('background color');
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 : () => {
window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation');
@@ -198,7 +198,7 @@ function startGUI () {
gui.close();
}
function CaptureScreenshot () {
function captureScreenshot () {
colorProgram.bind();
gl.uniform4f(colorProgram.uniforms.color, 0, 0, 0, 1);
blit(density.write.fbo);