Exemplo n.º 1
0
Plane::Plane(string textureName, vec3 dimensions, vec3 loc) : Mesh("Plane", textureName) {
    m_dimensions = dimensions;
    m_location = loc;
    meshMtx = mat4::Translate(loc.x, loc.y, loc.z);
    meshRef = MeshRef();
    meshMtx = mat4::Identity();
    textureMtx =  mat4::Identity();
    color = vec4(0.8, 0.8, 0.8, 1.0);
    normalType = LOAD_NORMAL_FACE;
    display = true;
}
Exemplo n.º 2
0
MeshRef MeshMgr::get_ref() { return MeshRef(); }