- // back
- { Vector3( -1.0f, 1.0f, -1.0f ) },
- { Vector3( -1.0f, -1.0f, -1.0f ) },
- { Vector3( 1.0f, -1.0f, -1.0f ) },
- { Vector3( 1.0f, -1.0f, -1.0f ) },
- { Vector3( 1.0f, 1.0f, -1.0f ) },
- { Vector3( -1.0f, 1.0f, -1.0f ) },
-
- // left
- { Vector3( -1.0f, -1.0f, 1.0f ) },
- { Vector3( -1.0f, -1.0f, -1.0f ) },
- { Vector3( -1.0f, 1.0f, -1.0f ) },
- { Vector3( -1.0f, 1.0f, -1.0f ) },
- { Vector3( -1.0f, 1.0f, 1.0f ) },
- { Vector3( -1.0f, -1.0f, 1.0f ) },
-
- // right
- { Vector3( 1.0f, -1.0f, -1.0f ) },
- { Vector3( 1.0f, -1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, -1.0f ) },
- { Vector3( 1.0f, -1.0f, -1.0f ) },
-
- // front
- { Vector3( -1.0f, -1.0f, 1.0f ) },
- { Vector3( -1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, -1.0f, 1.0f ) },
- { Vector3( -1.0f, -1.0f, 1.0f ) },
-
- // botton
- { Vector3( -1.0f, 1.0f, -1.0f ) },
- { Vector3( 1.0f, 1.0f, -1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( 1.0f, 1.0f, 1.0f ) },
- { Vector3( -1.0f, 1.0f, 1.0f ) },
- { Vector3( -1.0f, 1.0f, -1.0f ) },
-
- // top
- { Vector3( -1.0f, -1.0f, -1.0f ) },
- { Vector3( -1.0f, -1.0f, 1.0f ) },
- { Vector3( 1.0f, -1.0f, -1.0f ) },
- { Vector3( 1.0f, -1.0f, -1.0f ) },
- { Vector3( -1.0f, -1.0f, 1.0f ) },
- { Vector3( 1.0f, -1.0f, 1.0f ) }
- };
-
- VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
- .Add( "aPosition", Property::VECTOR3 ) );
- vertexBuffer.SetData( skyboxVertices, sizeof(skyboxVertices) / sizeof(Vertex) );
+ // back
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+ {Vector3(-1.0f, -1.0f, -1.0f)},
+ {Vector3(1.0f, -1.0f, -1.0f)},
+ {Vector3(1.0f, -1.0f, -1.0f)},
+ {Vector3(1.0f, 1.0f, -1.0f)},
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+
+ // left
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+ {Vector3(-1.0f, -1.0f, -1.0f)},
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+ {Vector3(-1.0f, 1.0f, 1.0f)},
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+
+ // right
+ {Vector3(1.0f, -1.0f, -1.0f)},
+ {Vector3(1.0f, -1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, -1.0f)},
+ {Vector3(1.0f, -1.0f, -1.0f)},
+
+ // front
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+ {Vector3(-1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, -1.0f, 1.0f)},
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+
+ // botton
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+ {Vector3(1.0f, 1.0f, -1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(1.0f, 1.0f, 1.0f)},
+ {Vector3(-1.0f, 1.0f, 1.0f)},
+ {Vector3(-1.0f, 1.0f, -1.0f)},
+
+ // top
+ {Vector3(-1.0f, -1.0f, -1.0f)},
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+ {Vector3(1.0f, -1.0f, -1.0f)},
+ {Vector3(1.0f, -1.0f, -1.0f)},
+ {Vector3(-1.0f, -1.0f, 1.0f)},
+ {Vector3(1.0f, -1.0f, 1.0f)}};
+
+ VertexBuffer vertexBuffer = VertexBuffer::New(Property::Map()
+ .Add("aPosition", Property::VECTOR3));
+ vertexBuffer.SetData(skyboxVertices, sizeof(skyboxVertices) / sizeof(Vertex));