monogame port
This commit is contained in:
38
packages/GeonBit.UI.3.1.0.4/content/Content/GeonBit.UI/themes/hd/effects/disabled.fx
vendored
Normal file
38
packages/GeonBit.UI.3.1.0.4/content/Content/GeonBit.UI/themes/hd/effects/disabled.fx
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
#if OPENGL
|
||||
#define SV_POSITION POSITION
|
||||
#define VS_SHADERMODEL vs_3_0
|
||||
#define PS_SHADERMODEL ps_3_0
|
||||
#else
|
||||
#define VS_SHADERMODEL vs_4_0_level_9_1
|
||||
#define PS_SHADERMODEL ps_4_0_level_9_1
|
||||
#endif
|
||||
|
||||
Texture2D SpriteTexture;
|
||||
|
||||
sampler2D SpriteTextureSampler = sampler_state
|
||||
{
|
||||
Texture = <SpriteTexture>;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 MainPS(VertexShaderOutput input) : COLOR
|
||||
{
|
||||
float4 color = tex2D(SpriteTextureSampler,input.TextureCoordinates) * input.Color;
|
||||
float value = (color.r + color.g + color.b) / 3;
|
||||
color.r = color.g = color.b = value;
|
||||
return color;
|
||||
}
|
||||
|
||||
technique SpriteDrawing
|
||||
{
|
||||
pass P0
|
||||
{
|
||||
PixelShader = compile PS_SHADERMODEL MainPS();
|
||||
}
|
||||
};
|
39
packages/GeonBit.UI.3.1.0.4/content/Content/GeonBit.UI/themes/hd/effects/silhouette.fx
vendored
Normal file
39
packages/GeonBit.UI.3.1.0.4/content/Content/GeonBit.UI/themes/hd/effects/silhouette.fx
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
#if OPENGL
|
||||
#define SV_POSITION POSITION
|
||||
#define VS_SHADERMODEL vs_3_0
|
||||
#define PS_SHADERMODEL ps_3_0
|
||||
#else
|
||||
#define VS_SHADERMODEL vs_4_0_level_9_1
|
||||
#define PS_SHADERMODEL ps_4_0_level_9_1
|
||||
#endif
|
||||
|
||||
Texture2D SpriteTexture;
|
||||
|
||||
sampler2D SpriteTextureSampler = sampler_state
|
||||
{
|
||||
Texture = <SpriteTexture>;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 MainPS(VertexShaderOutput input) : COLOR
|
||||
{
|
||||
float4 color = tex2D(SpriteTextureSampler,input.TextureCoordinates) * input.Color;
|
||||
color.r = 1 * color.a * input.Color.r;
|
||||
color.g = 1 * color.a * input.Color.g;
|
||||
color.b = 1 * color.a * input.Color.b;
|
||||
return color;
|
||||
}
|
||||
|
||||
technique SpriteDrawing
|
||||
{
|
||||
pass P0
|
||||
{
|
||||
PixelShader = compile PS_SHADERMODEL MainPS();
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user