Removed Subrepository
This commit is contained in:
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/bricks.png
Normal file
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/bricks.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/font.png
Normal file
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/font.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"GlyphsPerLine": 16,
|
||||
"GlyphLineCount": 16,
|
||||
"GlyphWidth": 30,
|
||||
"GlyphHeight": 48,
|
||||
"CharXSpacing": 0,
|
||||
"AtlasOffsetX": -3,
|
||||
"AtlasOffsetY": -1,
|
||||
"FontSize": 35,
|
||||
"BitmapFont": false,
|
||||
"TexCoordOffset": 0.005
|
||||
}
|
||||
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/logo.png
Normal file
BIN
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
28
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/shader.glsl
Normal file
28
C#/OpenGLTutorial/bin/Debug/net5.0/Resources/shader.glsl
Normal file
@@ -0,0 +1,28 @@
|
||||
#type vertex
|
||||
#version 330 core
|
||||
layout (location = 0) in vec2 aPosition;
|
||||
layout (location = 1) in vec4 aColor;
|
||||
layout (location = 2) in vec2 aUV;
|
||||
out vec4 vertexColor;
|
||||
out vec2 uv;
|
||||
|
||||
uniform mat4 projection;
|
||||
uniform mat4 model;
|
||||
|
||||
void main() {
|
||||
vertexColor = aColor;
|
||||
uv = aUV;
|
||||
gl_Position = projection * model * vec4(aPosition.xy, 0, 1.0);
|
||||
}
|
||||
|
||||
#type fragment
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
in vec4 vertexColor;
|
||||
in vec2 uv;
|
||||
|
||||
uniform sampler2D texture0;
|
||||
|
||||
void main() {
|
||||
FragColor = texture(texture0, uv) * vertexColor;
|
||||
}
|
||||
Reference in New Issue
Block a user