From e529f41507e43e9dc5aac61e20c4121497a328a1 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 28 Jul 2015 12:27:32 -0700 Subject: [PATCH] Updated GeometricPrimitive (markdown) --- GeometricPrimitive.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/GeometricPrimitive.md b/GeometricPrimitive.md index 9796f6f..7853416 100644 --- a/GeometricPrimitive.md +++ b/GeometricPrimitive.md @@ -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 shape( + std::unique_ptr sky( GeometricPrimitive::CreateBox( deviceContext, XMFLOAT3(10,10,10), false, true); + std::unique_ptr sky( + GeometricPrimitive::CreateSphere( deviceContext, 100.f, false, true); + For a left-handed view system: - std::unique_ptr shape( + std::unique_ptr sky( GeometricPrimitive::CreateBox( deviceContext, XMFLOAT3(10,10,10), true, true); + std::unique_ptr 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: