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 #55

Closed MouseChannel closed 1 year ago

MouseChannel commented 1 year ago

fix cos_weight pdf const float p = cos_theta / M_PI; https://github.com/nvpro-samples/vk_raytracing_tutorial_KHR/blob/8d4ba64b1816ef020bebe33298d496b305df2aca/ray_tracing_gltf/shaders/pathtrace.rchit#LL114C8-L114C9