black-format #4

Open
joseph.henry wants to merge 6 commits from black-format into master
3 changed files with 11 additions and 6 deletions
Showing only changes of commit d90fccb014 - Show all commits

View File

@ -32,6 +32,11 @@ def create_dashed_line_shader() -> gpu.types.GPUShader:
shader_info = gpu.types.GPUShaderCreateInfo()
shader_info.vertex_in(0, "VEC2", "pos")
shader_info.fragment_out(0, "VEC4", "fragColor")
shader_info.push_constant("VEC4", "color")
shader_info.push_constant("MAT4", "viewMatrix")
shader_info.push_constant("FLOAT", "dashSize")
shader_info.push_constant("FLOAT", "gapSize")
shader_info.vertex_source(vertex_shader)
shader_info.fragment_source(fragment_shader)

View File

@ -2,11 +2,11 @@
flat in vec2 startPos;
in vec2 vertPos;
out vec4 fragColor;
// out vec4 fragColor;
uniform vec4 color;
uniform float dashSize;
uniform float gapSize;
// uniform vec4 color;
// uniform float dashSize;
// uniform float gapSize;
void main()
{
@ -16,4 +16,4 @@ void main()
if (fract(dist / (dashSize + gapSize)) > dashSize/(dashSize + gapSize))
discard;
fragColor = color;
}
}

View File

@ -4,7 +4,7 @@
flat out vec2 startPos;
out vec2 vertPos;
uniform mat4 viewMatrix;
// uniform mat4 viewMatrix;
void main()
{