nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.34k stars 142 forks source link

(fix)fix cos_weight pdf #56

Closed MouseChannel closed 1 year ago

MouseChannel commented 1 year ago

Signed-off-by:mousechannel MoCheng mochenghh@gmail.com fix cos_weight importance sampling pdf https://github.com/nvpro-samples/vk_raytracing_tutorial_KHR/blob/8d4ba64b1816ef020bebe33298d496b305df2aca/ray_tracing_gltf/shaders/pathtrace.rchit#LL114C8-L114C9

NBickford-NV commented 1 year ago

Thanks! I'll merge this in, and then apply some additional changes to the documentation to make the code match.