webgl: fixes

This commit is contained in:
Zellyn Hunter 2018-05-16 21:33:47 -04:00
parent 9781548413
commit 994007bec0
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>MDN Games: Shaders demo</title>
<title>WebGL port of OpenEmulator NTSC shader</title>
<style>
</style>
<style>

View File

@ -990,7 +990,7 @@ void main(void)
0, 0, this.display.videoSaturation).mul(decoderMatrix);
// Hue
const hue = 2 * Math.PI * this.display.videoHue;
let hue = 2 * Math.PI * this.display.videoHue;
decoderMatrix = new Matrix3(1, 0, 0,
0, Math.cos(hue), -Math.sin(hue),
@ -1360,7 +1360,7 @@ void main(void)
break;
}
const shadowMaskDotPitch = this.display.displayShadowMaskDotPitch;
let shadowMaskDotPitch = this.display.displayShadowMaskDotPitch;
if (shadowMaskDotPitch <= 0.001)
shadowMaskDotPitch = 0.001;