GitHub - h3r2tic/cornell-mcray: 🕹 A quick'n'dirty game sample using kajiya, phys...
source link: https://github.com/h3r2tic/cornell-mcray
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
System requirements
See the kajiya
readme.
Building
Clone this repo to the same parent directory that kajiya
is in:
kajiya/ <- root of the `kajiya` repository
cornell-mcray/ <- this repository
Make sure the bake
bin in the kajiya
folder is built:
cd kajiya
cargo build --release -p bake
Bake the meshes for cornell-mcray
:
cd cornell-mcray
bake.cmd
^ replace bake.cmd
with ./bake.sh
on Linux.
Running
Make sure dxcompiler.dll
/ libdxcompiler.so
is in the executable environment.
(You can grab it from kajiya
and copy into cornell-mcray
, or stash it somewhere in the system PATH
)
Then run:
cargo run --release
Controls
- WSAD - driving
- Shift - nitro
- B - spawn a box
- Q - party mode
License
This contribution is dual licensed under EITHER OF
at your option.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK