mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 00:35:23 +08:00
Moved Shaders src to CodeWalker.Shaders
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
StructuredBuffer<float> Target : register( t0 );
|
||||
RWStructuredBuffer<float> Current : register( u0 );
|
||||
|
||||
cbuffer cb0
|
||||
{
|
||||
float BlendFactor;
|
||||
float3 pad;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main( uint3 DTid : SV_DispatchThreadID )
|
||||
{
|
||||
float t = max(Target[0],0);
|
||||
float c = max(Current[0],0);
|
||||
Current[0] = c + ((t - c) * BlendFactor);
|
||||
}
|
||||
Reference in New Issue
Block a user