Init commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef INCLUDE_SHADOW_COMMON
|
||||
#define INCLUDE_SHADOW_COMMON
|
||||
|
||||
cbuffer CBScene : register(b0)
|
||||
{
|
||||
row_major float4x4 cbView;
|
||||
row_major float4x4 cbProj;
|
||||
float4 cbCameraPos;
|
||||
float4 cbMainLightDirection;
|
||||
float4 cbCameraColor;
|
||||
}
|
||||
|
||||
cbuffer CBPerObj : register(b2) {
|
||||
row_major float4x4 cbWorld;
|
||||
};
|
||||
|
||||
cbuffer CBShadow : register(b3) {
|
||||
row_major float4x4 cbLightViewProjection;
|
||||
|
||||
// xy:阴影贴图 texel UV 尺寸
|
||||
// z :最小深度偏移 w :斜率深度偏移
|
||||
float4 cbShadowParams;
|
||||
};
|
||||
|
||||
|
||||
#endif //INCLUDE_SHADOW_COMMON
|
||||
Reference in New Issue
Block a user