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);

View file

@ -37,7 +37,7 @@ VSOutput vertexMain(VSInput input)
}
[shader("fragment")]
float4 fragmentMain(VSOutput input) : SV_TARGET
float4 fragmentMain(VSOutput input)
{
return textures[NonUniformResourceIndex(input.TextureIndex)].Sample(input.UV);
}

View file

@ -38,7 +38,7 @@ VSOutput vertexMain(VSInput input, uniform float4 pushColor, uniform float4 push
}
[shader("fragment")]
float4 fragmentMain(VSOutput input) : SV_TARGET
float4 fragmentMain(VSOutput input)
{
return float4(input.Color, 1.0);
}

View file

@ -57,7 +57,7 @@ VSOutput vertexMain(VSInput input)
}
[shader("fragment")]
float4 fragmentMain(VSOutput input) : SV_TARGET
float4 fragmentMain(VSOutput input)
{
switch (LIGHTING_MODEL) {
case 0: // Phong

View file

@ -48,7 +48,7 @@ VSOutput vertexMain(VSInput input)
}
[shader("fragment")]
float4 fragmentMain(VSOutput input) : SV_TARGET
float4 fragmentMain(VSOutput input)
{
float3 cI = normalize (input.ViewVec);
float3 cR = reflect (cI, normalize(input.Normal));