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

  1. render raytraced scene , output 2 textures in pixel shader, 1 depth (using sv_depth) , 1 colour.
  2. apply both of outputs step 1 active colour , depth targets , render rasterized scene.

does know how or have links regarding subject.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -