mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
More window chrome improvements
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "DrawQuad.h"
|
||||
#include "DrawQuadPixelConstants.h"
|
||||
|
||||
SamplerState nearestNeighborSampler : register(s0);
|
||||
Texture2D<uint> surfaceTexture : register(t0);
|
||||
@@ -18,7 +19,7 @@ float3 SamplePixel(int2 texCoord)
|
||||
SDrawQuadPixelOutput PSMain(SDrawQuadPixelInput input)
|
||||
{
|
||||
SDrawQuadPixelOutput result;
|
||||
result.color = float4(SamplePixel(int2(floor(input.texCoord.xy))), 1.0);
|
||||
result.color = float4(SamplePixel(int2(floor(input.texCoord.xy))), 1.0) * constants_Modulation;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
4
ShaderSrc/DrawQuadPixelConstants.h
Normal file
4
ShaderSrc/DrawQuadPixelConstants.h
Normal file
@@ -0,0 +1,4 @@
|
||||
cbuffer SDrawQuadPixelConstants : register(b0)
|
||||
{
|
||||
float4 constants_Modulation;
|
||||
};
|
Reference in New Issue
Block a user