-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fff4aae
commit aa2da05
Showing
8 changed files
with
82 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ | |
"description": "A 6502 emulator written in typescript", | ||
"author": "[email protected]", | ||
"license": "GPL-2.0+", | ||
"files": ["lib"], | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [ | ||
"emulation", | ||
"6502", | ||
|
@@ -44,7 +46,6 @@ | |
"@types/react-router-redux": "^5.0.8", | ||
"@types/screenfull": "^3.3.1", | ||
"@types/seedrandom": "~2.4.27", | ||
"brfs": "~1.4.3", | ||
"classnames": "^2.2.5", | ||
"commonmark": "^0.28.1", | ||
"cssnano": "~3.10.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export const vertexShader = ` | ||
attribute vec2 a_VertexPosition; | ||
attribute vec2 a_TextureCoordinate; | ||
varying vec2 v_TextureCoordinate; | ||
void main() { | ||
v_TextureCoordinate = a_TextureCoordinate; | ||
gl_Position = vec4(a_VertexPosition, 0, 1); | ||
} | ||
`; | ||
|
||
export const fragmentShaderPlain = ` | ||
precision mediump float; | ||
varying vec2 v_TextureCoordinate; | ||
uniform sampler2D u_Sampler0; | ||
uniform float u_Gamma; | ||
void main() { | ||
vec4 texel = texture2D(u_Sampler0, v_TextureCoordinate); | ||
gl_FragColor = vec4(pow(texel.rgb, vec3(u_Gamma)), 1.); | ||
} | ||
`; | ||
|
||
export const fragmentShaderPov = ` | ||
precision mediump float; | ||
varying vec2 v_TextureCoordinate; | ||
uniform sampler2D u_Sampler0, u_Sampler1, u_Sampler2; | ||
uniform float u_Gamma; | ||
void main() { | ||
vec4 compositedTexel = | ||
0.4 * texture2D(u_Sampler0, v_TextureCoordinate) + | ||
0.4 * texture2D(u_Sampler1, v_TextureCoordinate) + | ||
0.2 * texture2D(u_Sampler2, v_TextureCoordinate); | ||
gl_FragColor = vec4(pow(compositedTexel.rgb, vec3(u_Gamma)), 1.); | ||
} | ||
`; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.