Hello. When I use world displacement, I want the scene texture to be affected as well. But when I use scene texture, I have to choose the screen coordinate for its uv. This time, the texture is not affected by displacement. How do I achieve this? Since my English is not good, I prepared a video to explain the problem better. Thanks in advance.
Where do you sample this Screen Coordinate? Is it for vertex related math (eg. Position Offset or Tess Mul)? because the World Displacement is evaluated in Domain Shader (see docs).
Screen Texture uses SvPosition / ScreenSize to calculate the texcoord for a shaded Pixel.
Yes, it is vertex related. (let’s say position offset) The important point here is to be able to access mul(pos,matWorldViewProj)before vertex manipulation. In this way, the relevant UV can be affected by vertex manipulation. Let me exemplify from directx9:
Edit: I am unfamiliar with new technology. If it’s not possible or very difficult to do this in dx11, it’s fine. I wouldn’t want you to waste your time on just one small feature.