rendering: remove builtin authoring register annotations

This commit is contained in:
2026-04-07 10:34:20 +08:00
parent ec06340f58
commit f31fece2ce
11 changed files with 565 additions and 80 deletions

View File

@@ -18,7 +18,7 @@ Shader "Builtin Unlit"
#pragma target 4.5
#pragma vertex MainVS
#pragma fragment MainPS
cbuffer PerObjectConstants : register(b0)
cbuffer PerObjectConstants
{
float4x4 gProjectionMatrix;
float4x4 gViewMatrix;
@@ -26,13 +26,13 @@ Shader "Builtin Unlit"
float4x4 gNormalMatrix;
};
cbuffer MaterialConstants : register(b1)
cbuffer MaterialConstants
{
float4 gBaseColorFactor;
};
Texture2D BaseColorTexture : register(t0);
SamplerState LinearClampSampler : register(s0);
Texture2D BaseColorTexture;
SamplerState LinearClampSampler;
struct VSInput
{