Files
cell/shaders/common.hlsl
2024-12-18 15:39:43 -06:00

15 lines
306 B
HLSL

// Constant Buffer for Transformation Matrices
cbuffer TransformBuffer : register(b0, space1)
{
float4x4 vp;
float4x4 view;
float time; // time in seconds since app start
}
struct VSInput
{
float3 pos : POSITION;
float2 uv : TEXCOORD0;
float4 color : COLOR0;
float3 normal : NORMAL;
};