Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

bonizz/bz-rtx

Repository files navigation

Vulkan RTX samples

Update 12/21/20

I plan to update these samples, migrating to the official extensions and cleaning up the code.

For now I'm archiving this repo until I get to it.

Sample Screenshot
01-sample-triangle

Simple triangle sample

Refs:
* https://github.com/iOrange/rtxON/tree/Version_2_2
* https://github.com/SaschaWillems/Vulkan
* https://developer.nvidia.com/rtx/raytracing/vkray
image
02-sample-gltf

Loads single-mesh gltf file.

image
03-sample-shadows

Adds another traceNV call to check if object is in shadow.
Also loads multi-mesh gltf.

Refs:
* GLSL_NV_ray_tracing.txt
* gtc 2018 s8521
image
04-sample-materials

Loads baseColorFactor from gltf.

Refs:
* https://github.com/nvpro-samples/vk_raytrace
* https://github.com/maierfelix/tiny-rtx
image
05-sample-texture

Loads baseColor texture from gltf.

Refs:
General (and separate samplers/textures)
GL_KHR_vulkan_glsl.txt
Vulkan spec chap12
Image view/sampler

Understanding alignment
GLSL spec variables-and-types
GLSL spec

Textures
https://cc0textures.com
image
06-sample-reflection

Adds a trace call from hit shader for non-red materials.
image
07-sample-refraction

Refraction.
Spheres in image are glass balls.
Uses recursive traceNV calls which should go away in next sample.

Refs:
SO Refract
Ray Tracing Weekend
Reboot Red Vulkan RTX
image

About

experimenting with Vulkan RTX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages