DaoNiaoShu_Dog/Assets/Art/Shader/clearDraw.compute

15 lines
345 B
Plaintext
Raw Permalink Normal View History

2025-09-08 14:51:28 +08:00
// Each #kernel tells which function to compile; you can have many kernels
#pragma kernel CSMain
// Create a RenderTexture with enableRandomWrite flag and set it
// with cs.SetTexture
RWTexture2D<float4> Result;
[numthreads(8,8,1)]
void CSMain (uint3 id : SV_DispatchThreadID)
{
// TODO: insert actual code here!
Result[id.xy] = 0;
}