Comments (5)
See the ray tracing specification.
The definition about gl_InstanceCustomIndexEXT can be found at line 728 and gl_InstanceID at line 745
from vk_raytracing_tutorial_khr.
Thanks! (๑•̀ㅂ•́)و✧
from vk_raytracing_tutorial_khr.
as gl_InstanceId
specifies the index of the instance that intersects the current ray, which is in this case the same value as i
.
What is the i
? (=′∇`=)
Is the i
means the instances index in shader? such like:
layout(set = 1, binding = eObjDescs, scalar) buffer objDesc_ {ObjDesc i[];} objDesc;
from vk_raytracing_tutorial_khr.
I believe i
here is intended to be ObjInstance::objIndex
(i.e. the index of the object in the scene); instanceCustomIndex
is set to this in the code block below the text. I'll add an edit to make this clearer. Thanks!
from vk_raytracing_tutorial_khr.
Fixed in 9b84682.
from vk_raytracing_tutorial_khr.
Related Issues (20)
- Error in hello-vulkan during compilation HOT 4
- Why did the QUADRO P620 support raytrace? HOT 2
- ray_tracing_motionblur: Validation error HOT 2
- ray_tracing_ao crashes when Nsight is used HOT 2
- Fix raytrace.rgen in ray_tracing__advance HOT 1
- Incorrect srcStageMask in vkCmdPipelineBarrier in ray_tracing_ao HOT 2
- Second rmiss shader defined too early in the tutorial HOT 1
- add new simple sample showing usage of Ada SER functionality (via new VK NV SER ext) HOT 1
- add new simple sample showing new Ada OMM functionality (via new VK NV OMM ext) HOT 1
- What does Nb mean? HOT 2
- confusion about Path_tracing cosine distributed Pdf HOT 7
- VK_BUFFER_USAGE_STORAGE_BUFFER_BIT for vertices and indices buffer HOT 2
- gl_LaunchSizeEXT corresponds to the image size provided when calling traceRayEXT HOT 2
- Could NOT find VulkanSDK (missing: VULKAN_LIB VULKANSDK_SHADERC_LIB) HOT 3
- Runtime error in creating swapchain on Tesla T4
- The tutorial page is blank HOT 2
- Link is broken HOT 4
- issue on win10 when cmake HOT 2
- Framebuffer becomes invalid (ray_tracing_gltf) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vk_raytracing_tutorial_khr.