Added ImGui.NET
Start working on controller.
This commit is contained in:
2
Nerfed.Runtime/Gui/Shaders/generate-spirv.bat
Normal file
2
Nerfed.Runtime/Gui/Shaders/generate-spirv.bat
Normal file
@ -0,0 +1,2 @@
|
||||
glslangvalidator -V imgui-vertex.glsl -o imgui-vertex.spv -S vert
|
||||
glslangvalidator -V imgui-frag.glsl -o imgui-frag.spv -S frag
|
13
Nerfed.Runtime/Gui/Shaders/imgui-frag.glsl
Normal file
13
Nerfed.Runtime/Gui/Shaders/imgui-frag.glsl
Normal file
@ -0,0 +1,13 @@
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in vec4 color;
|
||||
layout (location = 1) in vec2 texCoord;
|
||||
|
||||
layout(set = 2, binding = 0) uniform sampler2D Sampler;
|
||||
|
||||
layout (location = 0) out vec4 outputColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
outputColor = color * texture(Sampler, texCoord);
|
||||
}
|
BIN
Nerfed.Runtime/Gui/Shaders/imgui-frag.spv
Normal file
BIN
Nerfed.Runtime/Gui/Shaders/imgui-frag.spv
Normal file
Binary file not shown.
20
Nerfed.Runtime/Gui/Shaders/imgui-vertex.glsl
Normal file
20
Nerfed.Runtime/Gui/Shaders/imgui-vertex.glsl
Normal file
@ -0,0 +1,20 @@
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in vec2 in_position;
|
||||
layout (location = 1) in vec2 in_texCoord;
|
||||
layout (location = 2) in vec4 in_color;
|
||||
|
||||
layout (set = 1, binding = 0) uniform ProjectionMatrixBuffer
|
||||
{
|
||||
mat4 projection_matrix;
|
||||
};
|
||||
|
||||
layout (location = 0) out vec4 color;
|
||||
layout (location = 1) out vec2 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection_matrix * vec4(in_position, 0, 1);
|
||||
color = in_color;
|
||||
texCoord = in_texCoord;
|
||||
}
|
BIN
Nerfed.Runtime/Gui/Shaders/imgui-vertex.spv
Normal file
BIN
Nerfed.Runtime/Gui/Shaders/imgui-vertex.spv
Normal file
Binary file not shown.
Reference in New Issue
Block a user