Skip to content

Commit 40c9857

Browse files
committed
Add a usage note to clone the assets.
1 parent 791f767 commit 40c9857

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
Prototypes developed while reading RTR 4th edition.
44

5+
## Usage
6+
7+
Clone [`realtime_rendering_assets`](https://github.com/Adnn/realtime_rendering_assets) **next** to this repository:
8+
9+
```bash
10+
git clone git@github.com:Adnn/realtime_rendering_assets.git assets
11+
```
12+
513
## Content
614

715
The repository contains several standalone applications demonstrating real-time rendering techniques.

src/apps/ch11_ssao/ch11_ssao/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ get_target_property(RENDERER_SOURCE_DIR ad::engine SOURCE_DIR)
7777
set(REPO_FOLDER ${PROJECT_SOURCE_DIR})
7878
file(GENERATE
7979
OUTPUT $<TARGET_FILE_DIR:${TARGET_NAME}>/assets.json
80-
# TODO: should we remove the snacman local V2_resources folder?
81-
# for the moment we cannot, we have dedicated custom shaders for snacman (not the base renderer versions)
80+
# Note: we try to locate the assets next to the repository
81+
# Locally, developers we can use a symlink if the assets are located elsewhere
8282
CONTENT "{\"prefixes\": [
8383
\"${CMAKE_CURRENT_SOURCE_DIR}/resources\",
84-
\"${RENDERER_SOURCE_DIR}/resources/\",
85-
\"${REPO_FOLDER}/../../assets/\"
84+
\"${RENDERER_SOURCE_DIR}/resources/\",
85+
\"${REPO_FOLDER}/../assets/\"
8686
]}")
8787

8888

0 commit comments

Comments
 (0)