This commit is contained in:
Sascha Willems 2025-05-31 16:33:19 +02:00
parent aca9771866
commit 5833d766a7
5 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@ VSOutput vertexMain(VSInput input)
}
[shader("fragment")]
float4 fragmentMain(VSOutput input, float2 pointCoord: SV_PointCoord) : SV_TARGET
float4 fragmentMain(VSOutput input, float2 pointCoord: SV_PointCoord)
{
float3 color = samplerGradientRamp.Sample(float2(input.GradientPos, 0.0)).rgb;
return float4(samplerColorMap.Sample(pointCoord).rgb * color, 1.0);