Clean up
This commit is contained in:
parent
aca9771866
commit
5833d766a7
5 changed files with 5 additions and 5 deletions
|
|
@ -73,7 +73,7 @@ VSOutput vertexMain(VSInput input)
|
||||||
}
|
}
|
||||||
|
|
||||||
[shader("fragment")]
|
[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;
|
float3 color = samplerGradientRamp.Sample(float2(input.GradientPos, 0.0)).rgb;
|
||||||
return float4(samplerColorMap.Sample(pointCoord).rgb * color, 1.0);
|
return float4(samplerColorMap.Sample(pointCoord).rgb * color, 1.0);
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ VSOutput vertexMain(VSInput input)
|
||||||
}
|
}
|
||||||
|
|
||||||
[shader("fragment")]
|
[shader("fragment")]
|
||||||
float4 fragmentMain(VSOutput input) : SV_TARGET
|
float4 fragmentMain(VSOutput input)
|
||||||
{
|
{
|
||||||
return textures[NonUniformResourceIndex(input.TextureIndex)].Sample(input.UV);
|
return textures[NonUniformResourceIndex(input.TextureIndex)].Sample(input.UV);
|
||||||
}
|
}
|
||||||
|
|
@ -38,7 +38,7 @@ VSOutput vertexMain(VSInput input, uniform float4 pushColor, uniform float4 push
|
||||||
}
|
}
|
||||||
|
|
||||||
[shader("fragment")]
|
[shader("fragment")]
|
||||||
float4 fragmentMain(VSOutput input) : SV_TARGET
|
float4 fragmentMain(VSOutput input)
|
||||||
{
|
{
|
||||||
return float4(input.Color, 1.0);
|
return float4(input.Color, 1.0);
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +57,7 @@ VSOutput vertexMain(VSInput input)
|
||||||
}
|
}
|
||||||
|
|
||||||
[shader("fragment")]
|
[shader("fragment")]
|
||||||
float4 fragmentMain(VSOutput input) : SV_TARGET
|
float4 fragmentMain(VSOutput input)
|
||||||
{
|
{
|
||||||
switch (LIGHTING_MODEL) {
|
switch (LIGHTING_MODEL) {
|
||||||
case 0: // Phong
|
case 0: // Phong
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ VSOutput vertexMain(VSInput input)
|
||||||
}
|
}
|
||||||
|
|
||||||
[shader("fragment")]
|
[shader("fragment")]
|
||||||
float4 fragmentMain(VSOutput input) : SV_TARGET
|
float4 fragmentMain(VSOutput input)
|
||||||
{
|
{
|
||||||
float3 cI = normalize (input.ViewVec);
|
float3 cI = normalize (input.ViewVec);
|
||||||
float3 cR = reflect (cI, normalize(input.Normal));
|
float3 cR = reflect (cI, normalize(input.Normal));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue