This commit is contained in:
2026-05-02 17:13:53 +10:00
parent 1a4c33b9dc
commit fb1bf01fef
19 changed files with 780 additions and 69 deletions

View File

@@ -0,0 +1,8 @@
{
"id": "black-and-white",
"name": "Black and White",
"description": "A minimal monochrome shader that converts the decoded video input to grayscale.",
"category": "Built-in",
"entryPoint": "shadeVideo",
"parameters": []
}

View File

@@ -0,0 +1,5 @@
float4 shadeVideo(ShaderContext context)
{
float luma = dot(context.sourceColor.rgb, float3(0.2126, 0.7152, 0.0722));
return float4(luma, luma, luma, context.sourceColor.a);
}