mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-20 01:32:02 +08:00
R26_dev8 - First public commit
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