Skip to content

Commit

Permalink
Merge pull request #132 from vilbeyli/staging
Browse files Browse the repository at this point in the history
Release 0.6.0 - PBR + IBL + AMD FidelityFX CAS
  • Loading branch information
vilbeyli authored Jan 9, 2021
2 parents 005f15f + b07f994 commit b68ff89
Show file tree
Hide file tree
Showing 78 changed files with 12,879 additions and 1,869 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ bld/
[Oo]bj/
[Ll]og/
Build/_artifacts/

ShaderCache/
PSOCache/
Data/Textures/PBR/*/*.png

# Visual Studio 2015 cache/options directory
.vs/
Expand Down
6 changes: 4 additions & 2 deletions Build/GenerateProjectFiles.bat
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ if !NEED_TO_INIT_SUBMODULES! neq 0 (
:: attempt to initialize submodule
cd ..
echo.
git submodule init
git submodule update
git submodule update --init Libs/D3D12MA
git submodule update --init Libs/VQUtils
git submodule update --init Libs/assimp
git submodule update --init Source/Renderer/Libs/D3DX12
cd Build

:: check if submodule initialized properly
Expand Down
15 changes: 12 additions & 3 deletions Build/PackageEngine.bat
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,24 @@ set ASSETS_DIR__HDRI=
pushd %cd%
cd !DATA_DIRECTORY!/Textures/HDRI
set ASSETS_DIR__HDRI=%cd%

cd ../PBR
set ASSETS_DIR__PBR=%cd%
popd


echo [VQPackage] Checking Assets...
if exist !ASSETS_DIR__HDRI!/*.hdr (
echo [VQPackage] Found .hdr files in Data/Textures/HDRI/ directory, skipping download.
echo [VQPackage] Found .hdr files in Data/Textures/HDRI/ directory, skipping HDRI download.
) else (
echo [VQPackage] HDRI Textures are missing, starting download...
call %~dp0/../Scripts/DownloadAssets.bat
)

if exist !ASSETS_DIR__PBR!/*/*.png (
echo [VQPackage] Found PBR files in Data/Textures/PBR/ subdirectory, skipping PBR download.
) else (
echo [VQPackage] Textures are missing, starting download...
echo [VQPackage] PBR Textures are missing, starting download...
echo.
call %~dp0/../Scripts/DownloadAssets.bat
)

Expand Down
32 changes: 31 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,31 @@ set (Config
"Data/Scenes.ini"
)

set (Materials
"Data/Materials/RoughMaterials.xml"
"Data/Materials/PBRMaterials.xml"
"Data/Materials/MetallicMaterials.xml"
"Data/Materials/DefaultMaterials.xml"
)

set (Shaders
"Shaders/hello-triangle.hlsl"
"Shaders/hello-cube.hlsl"
"Shaders/FullscreenTriangle.hlsl"
"Shaders/Tonemapper.hlsl"
"Shaders/Skydome.hlsl"
"Shaders/Object.hlsl"
"Shaders/ForwardLighting.hlsl"
"Shaders/BRDF.hlsl"
"Shaders/Common.hlsl"
"Shaders/ShadingMath.hlsl"
"Shaders/Lighting.hlsl"
"Shaders/LightingConstantBufferData.h"
"Shaders/Unlit.hlsl"
"Shaders/DepthPass.hlsl"
"Shaders/CubemapConvolution.hlsl"
"Shaders/GaussianBlur.hlsl"
"Shaders/AMDFidelityFX.hlsl"
)

set (HeaderVQE
Expand All @@ -68,6 +86,7 @@ set (HeaderVQE
"Source/Application/GameObject.h"
"Source/Application/Memory.h"
"Source/Application/GPUMarker.h"
"Shaders/LightingConstantBufferData.h"
)

set (SourceVQE
Expand All @@ -79,6 +98,7 @@ set (SourceVQE
"Source/Application/VQEngine_Update.cpp"
"Source/Application/VQEngine_WindowEvents.cpp"
"Source/Application/VQEngine_EventHandlers.cpp"
"Source/Application/EnvironmentMap.cpp"
"Source/Application/FileParser.cpp"
"Source/Application/Events.cpp"
"Source/Application/Mesh.cpp"
Expand All @@ -98,6 +118,12 @@ set (SourceVQE
"Source/Application/GPUMarker.cpp"
)

set (FidelityFX
"Shaders/FidelityFX/ffx_a.h"
"Shaders/FidelityFX/CAS/ffx_cas.h"
# "Shaders/FidelityFX/SPD/ffx_spd.h"
)

set (PIXIncl
"Libs/WinPixEventRuntime/Include"
)
Expand Down Expand Up @@ -128,19 +154,23 @@ source_group("Config" FILES ${Config})
source_group("Resource" FILES ${Resource})
source_group("Icons" FILES ${Icons})
source_group("Shaders" FILES ${Shaders})
source_group("Shaders\\AMD-FidelityFX" FILES ${FidelityFX})
source_group("Scenes" FILES ${Scenes})
source_group("Materials" FILES ${Materials})

set_source_files_properties(${Config} PROPERTIES VS_TOOL_OVERRIDE "Text")
set_source_files_properties(${Materials} PROPERTIES VS_TOOL_OVERRIDE "Text")
set_source_files_properties(${Scenes} PROPERTIES VS_TOOL_OVERRIDE "Text")
set_source_files_properties(${Shaders} PROPERTIES VS_TOOL_OVERRIDE "Text")
set_source_files_properties(${FidelityFX} PROPERTIES VS_TOOL_OVERRIDE "Text")
set_source_files_properties(Data/Resources/VQE.rc PROPERTIES VS_TOOL_OVERRIDE "Resource compiler")
set_source_files_properties(Data/Icons/VQE32.ico PROPERTIES VS_TOOL_OVERRIDE "Image")

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/Libs/VQUtils/Bin/)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/Libs/WinPixEventRuntime/bin/x64)

# Create a library with the project name that is build with the Headers and Source files
add_executable( ${PROJECT_NAME} ${HeaderVQE} ${SourceVQE} ${Config} ${Scenes} ${Resource} ${Shaders} )
add_executable( ${PROJECT_NAME} ${HeaderVQE} ${SourceVQE} ${Config} ${Scenes} ${Resource} ${Shaders} ${Materials} ${FidelityFX})

set_target_properties(${PROJECT_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY} )

Expand Down
10 changes: 5 additions & 5 deletions Data/EngineSettings.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
; TODO: seperate graphics vs display settings

[Graphics]
VSync=true
VSync=false
RenderScale=1.0
TripleBuffer=true
AntiAliasing=true
MaxFrameRate=Auto
MaxFrameRate=0
HDR=false

[Engine]
Width=768
Height=432
Width=1600
Height=900
DisplayMode=Windowed
PreferredDisplay=0
Scene=StressTest
Scene=GeometryUnitTest

DebugWindow=false
DebugWindowWidth=450
Expand Down
Binary file added Data/Icons/VQEngine-icon-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b68ff89

Please sign in to comment.