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