|
|
|
@ -22,99 +22,99 @@ impl Text {
|
|
|
|
|
vec![
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.5, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 0.8, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 0.8, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.25, 0.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.25, 0.0, normalized_depth],
|
|
|
|
|
color: [0.8, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [0.8, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.0, 0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 0.8, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 0.8, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.25, 0.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 0.8, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 0.8, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.0, 0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.5, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.25, 0.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.25, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.5, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.25, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.0, -0.1, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.25, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [0.0, -0.1, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.5, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-1.0, 1.0, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
},
|
|
|
|
|
ColorVertex3D {
|
|
|
|
|
v_position: [-0.25, -0.5, normalized_depth],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0],
|
|
|
|
|
color: [1.0, 1.0, 1.0, 1.0/255.0],
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|