Files
cell/shaders/common/common.hlsl
2024-12-24 09:48:52 -06:00

17 lines
470 B
HLSL

// Constant Buffer for Transformation Matrices
cbuffer TransformBuffer : register(b0, space1)
{
float4x4 world_to_projection;
float4x4 projection_to_world;
float4x4 world_to_view;
float4x4 view_to_projection;
float3 camera_pos_world;
float viewport_min_z;
float3 camera_dir_world;
float viewport_max_z;
float2 viewport_size;
float2 viewport_offset;
float2 render_size;
float time; // time in seconds since app start
}