Add support for main view information in Surface materials during subpass rendering (eg. shadow depth)

This commit is contained in:
Wojtek Figat
2022-07-29 16:57:57 +02:00
parent 22209108c9
commit 6cf91b1da4
9 changed files with 72 additions and 15 deletions

View File

@@ -14,6 +14,8 @@ float4x4 WorldMatrix;
float4x4 ViewMatrix;
float4x4 PrevViewProjectionMatrix;
float4x4 PrevWorldMatrix;
float4x4 MainViewProjectionMatrix;
float4 MainScreenSize;
float3 ViewPos;
float ViewFar;
float3 ViewDir;