graphics - Combining a raytraced scene with a rasterized scene in DirectX11 -
i have 2 scenes in directx11, 1 using rasterization , other uses raytracing via full screen quad in pixel shader. i'm trying combine 2 while preserving correct depth information i'm not sure how go it.
i suspect process like
- render raytraced scene , output 2 textures in pixel shader, 1 depth (using sv_depth) , 1 colour.
- apply both of outputs step 1 active colour , depth targets , render rasterized scene.
does know how or have links regarding subject.
Comments
Post a Comment