Esempio n. 1
0
 public VertexInfoSimple(Vec3 pos, Vec2 tex, Vec3 normal, Vec4 color)
 {
     this.m_position   = pos.Simple();
     this.m_textureUV  = tex.Simple();
     this.m_textureUV2 = new Vec2Simple(0, 0);
     this.m_normal     = normal.Simple();
     this.m_color      = color.Simple();
 }
Esempio n. 2
0
 public VertexInfoSimple(Vec3Simple pos, Vec2Simple tex, Vec2Simple tex2, Vec3Simple normal, Vec4Simple color)
 {
     this.m_position   = pos;
     this.m_textureUV  = tex;
     this.m_textureUV2 = tex2;
     this.m_normal     = normal;
     this.m_color      = color;
 }
Esempio n. 3
0
 public VertexInfoSimple(BinaryReader r)
 {
     this.m_color      = new Vec4Simple(r);
     this.m_normal     = new Vec3Simple(r);
     this.m_position   = new Vec3Simple(r);
     this.m_textureUV  = new Vec2Simple(r);
     this.m_textureUV2 = new Vec2Simple(r);
 }
Esempio n. 4
0
 public VertexInfoSimple(VertexInfo v)
 {
     this.m_color      = new Vec4Simple(v.m_color);
     this.m_normal     = new Vec3Simple(v.m_normal);
     this.m_position   = new Vec3Simple(v.m_position);
     this.m_textureUV  = new Vec2Simple(v.m_textureUV);
     this.m_textureUV2 = new Vec2Simple(v.m_textureUV2);
 }
Esempio n. 5
0
 public VertexInfoSimple(VertexInfoSimple copy)
 {
     this.m_position   = copy.m_position;
     this.m_textureUV  = copy.m_textureUV;
     this.m_textureUV2 = copy.m_textureUV2;
     this.m_normal     = copy.m_normal;
     this.m_color      = copy.m_color;
 }