mirror of
https://github.com/neon443/neon443.github.io.git
synced 2026-03-11 23:26:17 +00:00
added emulator: n64
updated hs to align from left
This commit is contained in:
BIN
games/emulators/N64/assets/overlay.png
Executable file
BIN
games/emulators/N64/assets/overlay.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 199 B |
BIN
games/emulators/N64/assets/res/arial.ttf
Executable file
BIN
games/emulators/N64/assets/res/arial.ttf
Executable file
Binary file not shown.
BIN
games/emulators/N64/assets/res/font.ttf
Executable file
BIN
games/emulators/N64/assets/res/font.ttf
Executable file
Binary file not shown.
21
games/emulators/N64/assets/shader_frag.hlsl
Executable file
21
games/emulators/N64/assets/shader_frag.hlsl
Executable file
@@ -0,0 +1,21 @@
|
||||
#version 300 es
|
||||
|
||||
precision highp float;
|
||||
|
||||
//the texture coordinate that came
|
||||
//in from the vertex shader
|
||||
in vec2 v_TexCoord;
|
||||
|
||||
//primary purpose of fragment shader is
|
||||
//to spit out a color for every pixel
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
// uniform vec4 u_Color;
|
||||
uniform sampler2D u_Texture;
|
||||
|
||||
//fragment shader gets called once per pixel
|
||||
void main()
|
||||
{
|
||||
vec4 texColor = texture(u_Texture, v_TexCoord);
|
||||
color = texColor;
|
||||
}
|
||||
20
games/emulators/N64/assets/shader_vert.hlsl
Executable file
20
games/emulators/N64/assets/shader_vert.hlsl
Executable file
@@ -0,0 +1,20 @@
|
||||
#version 300 es
|
||||
|
||||
precision highp float;
|
||||
|
||||
//position and texture coordinates
|
||||
//come in from the application as inputs
|
||||
layout(location = 0) in vec4 position;
|
||||
layout(location = 1) in vec2 texCoord;
|
||||
|
||||
//texture coordinate is just passthrough
|
||||
//to the fragment shader
|
||||
out vec2 v_TexCoord;
|
||||
|
||||
//vertex shader gets called once per vertex
|
||||
void main()
|
||||
{
|
||||
//gl_Position is a built in property
|
||||
gl_Position = position;
|
||||
v_TexCoord = texCoord;
|
||||
}
|
||||
Reference in New Issue
Block a user