Example #1
0
 string Str(vec3 v) => String.Format("{0:0.00}, {1:0.00}, {2:0.00}", v.x, v.y, v.z);
Example #2
0
 public Line3D(vec3 point1, vec3 point2) : base(new vec3(0.5f))
 {
     Points = new List <vec3> {
         point1, point2
     };
 }
Example #3
0
 public Shape3D(List <vec3> points, vec3 color) : base(color)
 {
     Points = points;
 }
Example #4
0
 public void Translate(vec3 where)
 {
     Shaders.shader.Set("model", glm.translate(mat4.identity(), where));
 }
Example #5
0
 public PointShape(vec2 point, vec3 color) : base(new List <vec2>(new vec2[] { point }), color)
 {
     primitiveType = PrimitiveType.Points;
 }