Moved Shaders src to CodeWalker.Shaders

This commit is contained in:
Carmine Giugliano
2019-11-18 16:25:40 +01:00
Unverified
parent 5eaea931bf
commit 2013535aec
86 changed files with 6 additions and 6 deletions
+16
View File
@@ -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);
}