Skip to content

Commit

Permalink
Replaced the deprecated glTF-Sample-Models submodule with glTF-Sample…
Browse files Browse the repository at this point in the history
…-Assets.
  • Loading branch information
apanteleev committed Feb 10, 2024
1 parent 6a8a03f commit c0d8d9f
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "donut"]
path = donut
url = https://github.com/NVIDIAGameWorks/donut.git
[submodule "media/glTF-Sample-Models"]
path = media/glTF-Sample-Models
url = https://github.com/KhronosGroup/glTF-Sample-Models.git
[submodule "media/glTF-Sample-Assets"]
path = media/glTF-Sample-Assets
url = https://github.com/KhronosGroup/glTF-Sample-Assets.git
2 changes: 1 addition & 1 deletion examples/bindless_rendering/bindless_rendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class BindlessRendering : public app::ApplicationBase

bool Init()
{
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf";
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf";
std::filesystem::path frameworkShaderPath = app::GetDirectoryWithExecutable() / "shaders/framework" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());
std::filesystem::path appShaderPath = app::GetDirectoryWithExecutable() / "shaders/bindless_rendering" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());

Expand Down
2 changes: 1 addition & 1 deletion examples/rt_reflections/rt_reflections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class VariableRateShading : public app::ApplicationBase

bool Init()
{
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf";
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf";
std::filesystem::path frameworkShaderPath = app::GetDirectoryWithExecutable() / "shaders/framework" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());
std::filesystem::path appShaderPath = app::GetDirectoryWithExecutable() / "shaders/rt_reflections" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());

Expand Down
2 changes: 1 addition & 1 deletion examples/rt_shadows/rt_shadows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class RayTracedShadows : public app::ApplicationBase

bool Init()
{
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf";
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf";
std::filesystem::path frameworkShaderPath = app::GetDirectoryWithExecutable() / "shaders/framework" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());
std::filesystem::path appShaderPath = app::GetDirectoryWithExecutable() / "shaders/rt_shadows" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());

Expand Down
2 changes: 1 addition & 1 deletion examples/threaded_rendering/threaded_rendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ThreadedRendering : public app::ApplicationBase

bool Init()
{
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf";
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf";
std::filesystem::path frameworkShaderPath = app::GetDirectoryWithExecutable() / "shaders/framework" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());

m_RootFS = std::make_shared<vfs::RootFileSystem>();
Expand Down
2 changes: 1 addition & 1 deletion examples/variable_shading/variable_shading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class VariableRateShading : public app::ApplicationBase
{
m_UseRawD3D12 = useRawD3D12;

std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf";
std::filesystem::path sceneFileName = app::GetDirectoryWithExecutable().parent_path() / "media/glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf";
std::filesystem::path frameworkShaderPath = app::GetDirectoryWithExecutable() / "shaders/framework" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());
std::filesystem::path appShaderPath = app::GetDirectoryWithExecutable() / "shaders/variable_shading" / app::GetShaderTypeName(GetDevice()->getGraphicsAPI());

Expand Down
2 changes: 1 addition & 1 deletion feature_demo/FeatureDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class FeatureDemo : public ApplicationBase
m_RootFs->mount("/shaders/donut", frameworkShaderPath);
m_RootFs->mount("/native", nativeFS);

std::filesystem::path scenePath = "/media/glTF-Sample-Models/2.0";
std::filesystem::path scenePath = "/media/glTF-Sample-Assets/Models";
m_SceneFilesAvailable = FindScenes(*m_RootFs, scenePath);

if (sceneName.empty() && m_SceneFilesAvailable.empty())
Expand Down
1 change: 1 addition & 0 deletions media/glTF-Sample-Assets
Submodule glTF-Sample-Assets added at d1ba92
1 change: 0 additions & 1 deletion media/glTF-Sample-Models
Submodule glTF-Sample-Models deleted from 63f026
4 changes: 2 additions & 2 deletions media/sponza-plus.scene.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"models": [
"glTF-Sample-Models/2.0/Sponza/glTF/Sponza.gltf",
"glTF-Sample-Models/2.0/BrainStem/glTF/BrainStem.gltf"
"glTF-Sample-Assets/Models/Sponza/glTF/Sponza.gltf",
"glTF-Sample-Assets/Models/BrainStem/glTF/BrainStem.gltf"
],
"graph": [
{
Expand Down

0 comments on commit c0d8d9f

Please sign in to comment.