webgl: fixes
This commit is contained in:
parent
9781548413
commit
994007bec0
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>MDN Games: Shaders demo</title>
|
<title>WebGL port of OpenEmulator NTSC shader</title>
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -990,7 +990,7 @@ void main(void)
|
||||||
0, 0, this.display.videoSaturation).mul(decoderMatrix);
|
0, 0, this.display.videoSaturation).mul(decoderMatrix);
|
||||||
|
|
||||||
// Hue
|
// Hue
|
||||||
const hue = 2 * Math.PI * this.display.videoHue;
|
let hue = 2 * Math.PI * this.display.videoHue;
|
||||||
|
|
||||||
decoderMatrix = new Matrix3(1, 0, 0,
|
decoderMatrix = new Matrix3(1, 0, 0,
|
||||||
0, Math.cos(hue), -Math.sin(hue),
|
0, Math.cos(hue), -Math.sin(hue),
|
||||||
|
@ -1360,7 +1360,7 @@ void main(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const shadowMaskDotPitch = this.display.displayShadowMaskDotPitch;
|
let shadowMaskDotPitch = this.display.displayShadowMaskDotPitch;
|
||||||
|
|
||||||
if (shadowMaskDotPitch <= 0.001)
|
if (shadowMaskDotPitch <= 0.001)
|
||||||
shadowMaskDotPitch = 0.001;
|
shadowMaskDotPitch = 0.001;
|
||||||
|
|
Loading…
Reference in New Issue