From b96e370881b538b72c5af0a45d0619f02a799530 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 27 Feb 2016 22:27:09 +0100 Subject: [PATCH] Renamed shadow map example --- README.md | 4 ++-- base/vulkanexamplebase.cpp | 2 +- .../shadowmap.cpp => shadowmappingomni/shadowmappingomni.cpp | 0 .../shadowmappingomni.vcxproj | 2 +- .../shadowmappingomni.vcxproj.filters | 0 vulkanExamples.sln | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename shadowmap/shadowmap.cpp => shadowmappingomni/shadowmappingomni.cpp (100%) rename shadowmap/shadowmap.vcxproj => shadowmappingomni/shadowmappingomni.vcxproj (99%) rename shadowmap/shadowmap.vcxproj.filters => shadowmappingomni/shadowmappingomni.vcxproj.filters (100%) diff --git a/README.md b/README.md index 1f8da384..a5bc4b64 100644 --- a/README.md +++ b/README.md @@ -147,11 +147,11 @@ Demonstrates the use of multiple render targets to fill a G-Buffer for deferred Deferred shading collects all values (color, normal, position) into different render targets in one pass thanks to multiple render targets, and then does all shading and lighting calculations based on these in scree space, thus allowing for much more light sources than traditional forward renderers.

-## [Omnidirectional shadow mapping](shadowmap/) +## [Omnidirectional shadow mapping](shadowmappingomni/) Uses a dynamic 32 bit floating point cube map for a point light source that casts shadows in all directions (unlike projective shadow mapping). -The cube map faces contain thee distances from the light sources, which are then used in the scene rendering pass to determine if the fragment is shadowed or not. +The cube map faces contain the distances from the light sources, which are then used in the scene rendering pass to determine if the fragment is shadowed or not.

## [Spherical environment mapping](sphericalenvmapping/) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index cbf63041..7a170a65 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -568,7 +568,7 @@ HWND VulkanExampleBase::setupWindow(HINSTANCE hinstance, WNDPROC wndproc) wndClass.hInstance = hinstance; wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION); wndClass.hCursor = LoadCursor(NULL, IDC_ARROW); - wndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); + wndClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wndClass.lpszMenuName = NULL; wndClass.lpszClassName = name.c_str(); wndClass.hIconSm = LoadIcon(NULL, IDI_WINLOGO); diff --git a/shadowmap/shadowmap.cpp b/shadowmappingomni/shadowmappingomni.cpp similarity index 100% rename from shadowmap/shadowmap.cpp rename to shadowmappingomni/shadowmappingomni.cpp diff --git a/shadowmap/shadowmap.vcxproj b/shadowmappingomni/shadowmappingomni.vcxproj similarity index 99% rename from shadowmap/shadowmap.vcxproj rename to shadowmappingomni/shadowmappingomni.vcxproj index e4cb3785..3af3dfbe 100644 --- a/shadowmap/shadowmap.vcxproj +++ b/shadowmappingomni/shadowmappingomni.vcxproj @@ -82,7 +82,7 @@ - + diff --git a/shadowmap/shadowmap.vcxproj.filters b/shadowmappingomni/shadowmappingomni.vcxproj.filters similarity index 100% rename from shadowmap/shadowmap.vcxproj.filters rename to shadowmappingomni/shadowmappingomni.vcxproj.filters diff --git a/vulkanExamples.sln b/vulkanExamples.sln index b73fff5b..ad8cc31a 100644 --- a/vulkanExamples.sln +++ b/vulkanExamples.sln @@ -43,7 +43,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "texturecubemap", "texturecu EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "texturearray", "texturearray\texturearray.vcxproj", "{5E512F97-14DB-4CEE-A495-BD8AED789521}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shadowmap", "shadowmap\shadowmap.vcxproj", "{7B36E42B-5A35-429D-BCD6-C762BD43B2F5}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shadowmappingomni", "shadowmappingomni\shadowmappingomni.vcxproj", "{7B36E42B-5A35-429D-BCD6-C762BD43B2F5}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "deferred", "deferred\deferred.vcxproj", "{AF2911F4-33BF-465E-9298-E46D58B929EF}" EndProject