Updated GeometricPrimitive (markdown)

Chuck Walbourn 2015-07-28 12:27:32 -07:00
Родитель f08a2ff841
Коммит e529f41507
1 изменённых файлов: 8 добавлений и 2 удалений

@ -101,14 +101,20 @@ These geometric primitives are intended for view from the 'outside' for efficien
For a right-handed view system:
std::unique_ptr<GeometricPrimitive> shape(
std::unique_ptr<GeometricPrimitive> sky(
GeometricPrimitive::CreateBox( deviceContext, XMFLOAT3(10,10,10), false, true);
std::unique_ptr<GeometricPrimitive> sky(
GeometricPrimitive::CreateSphere( deviceContext, 100.f, false, true);
For a left-handed view system:
std::unique_ptr<GeometricPrimitive> shape(
std::unique_ptr<GeometricPrimitive> sky(
GeometricPrimitive::CreateBox( deviceContext, XMFLOAT3(10,10,10), true, true);
std::unique_ptr<GeometricPrimitive> sky(
GeometricPrimitive::CreateSphere( deviceContext, 100.f, true, true);
# Alpha blending
Alpha blending defaults to using premultiplied alpha. To make use of 'straight' alpha textures, override the blending mode via the optional callback: