mirror of
https://github.com/zellyn/apple2shader.git
synced 2024-12-06 02:49:17 +00:00
webgl: fixes
This commit is contained in:
parent
9781548413
commit
994007bec0
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user