From e3e848ac4da1c2ae59d93e62da8ef6f87b3452cd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 23 May 2022 22:36:46 -0700 Subject: Changeset: 37 Branch comment: [] Add infrastructure for rendering wireframe (rendering broken) including saving and loading config files --- assets/.stationary/Shaders/SimpleLine.glsl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 assets/.stationary/Shaders/SimpleLine.glsl (limited to 'assets/.stationary') diff --git a/assets/.stationary/Shaders/SimpleLine.glsl b/assets/.stationary/Shaders/SimpleLine.glsl new file mode 100644 index 0000000..60c23d4 --- /dev/null +++ b/assets/.stationary/Shaders/SimpleLine.glsl @@ -0,0 +1,20 @@ +#type vertex +#version 330 core + +layout(location = 0) in vec3 pos; + +// Autofill uniforms +uniform mat4 transformation; + +void main() { + gl_Position = transformation * vec4(pos, 1.0); +} + +#type fragment +#version 330 core + +out vec4 fragColor; + +void main() { + fragColor = vec4(1.0, 1.0, 1.0, 1.0); +} -- cgit v1.2.3-70-g09d2