(5a377a8ee) Unstable v0.9.1000.0
This commit is contained in:
@@ -18,14 +18,14 @@ float4 solidColor;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Position : POSITION0;
|
||||
float4 Color : COLOR0;
|
||||
float2 TexCoords: TEXCOORD0;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Position : POSITION0;
|
||||
float4 Color : COLOR0;
|
||||
float2 TexCoords: TEXCOORD0;
|
||||
};
|
||||
@@ -75,6 +75,11 @@ float4 mainPS(VertexShaderOutput input) : COLOR
|
||||
return xTexture.Sample(TextureSampler, input.TexCoords) * input.Color;
|
||||
}
|
||||
|
||||
float4 solidVertexColorPS(VertexShaderOutput input) : COLOR
|
||||
{
|
||||
return input.Color * xTexture.Sample(TextureSampler, input.TexCoords).a;
|
||||
}
|
||||
|
||||
float4 solidColorPS(VertexShaderOutput input) : COLOR
|
||||
{
|
||||
return solidColor * xTexture.Sample(TextureSampler, input.TexCoords).a;
|
||||
@@ -96,4 +101,13 @@ technique DeformShaderSolidColor
|
||||
VertexShader = compile vs_4_0_level_9_1 mainVS();
|
||||
PixelShader = compile ps_4_0_level_9_1 solidColorPS();
|
||||
}
|
||||
}
|
||||
|
||||
technique DeformShaderSolidVertexColor
|
||||
{
|
||||
pass Pass1
|
||||
{
|
||||
VertexShader = compile vs_4_0_level_9_1 mainVS();
|
||||
PixelShader = compile ps_4_0_level_9_1 solidVertexColorPS();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user