working on additive blending for determination of winding order. Saving here because this bug is very pretty

This commit is contained in:
2020-02-22 01:37:47 -08:00
parent b3e092e25a
commit 5dde94cdf9
7 changed files with 97 additions and 35 deletions

View File

@@ -26,7 +26,7 @@ impl Text {
},
ColorVertex3D {
v_position: [-1.0, 1.0, normalized_depth],
color: [1.0, 1.0, 1.0, 1.0],
color: [1.0, 0.8, 1.0, 1.0],
},
ColorVertex3D {
v_position: [-0.25, 0.0, normalized_depth],
@@ -34,7 +34,7 @@ impl Text {
},
ColorVertex3D {
v_position: [-0.25, 0.0, normalized_depth],
color: [1.0, 1.0, 1.0, 1.0],
color: [0.8, 1.0, 1.0, 1.0],
},
ColorVertex3D {
v_position: [-1.0, 1.0, normalized_depth],
@@ -42,7 +42,7 @@ impl Text {
},
ColorVertex3D {
v_position: [0.0, 0.5, normalized_depth],
color: [1.0, 1.0, 1.0, 1.0],
color: [1.0, 1.0, 0.8, 1.0],
},
ColorVertex3D {
v_position: [0.25, 0.0, normalized_depth],
@@ -50,7 +50,7 @@ impl Text {
},
ColorVertex3D {
v_position: [-1.0, 1.0, normalized_depth],
color: [1.0, 1.0, 1.0, 1.0],
color: [1.0, 0.8, 1.0, 1.0],
},
ColorVertex3D {
v_position: [0.0, 0.5, normalized_depth],
@@ -119,7 +119,7 @@ impl Text {
};
Text {
verts: VertexTypes::ColorType(verts),
verts: VertexTypes::TextType(verts),
position: position,
size: size,
}