From e603e18f0eb374fa1f3a9951eb0855ab03cf345f Mon Sep 17 00:00:00 2001 From: Anton Fedchin Date: Wed, 22 Apr 2015 20:07:12 +0300 Subject: [win32] Added DirectX11 GUI shaders. --- system/shaders/guishader_fonts.hlsl | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 system/shaders/guishader_fonts.hlsl (limited to 'system/shaders/guishader_fonts.hlsl') diff --git a/system/shaders/guishader_fonts.hlsl b/system/shaders/guishader_fonts.hlsl new file mode 100644 index 0000000000..27fbf4264f --- /dev/null +++ b/system/shaders/guishader_fonts.hlsl @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2005-2015 Team Kodi + * http://kodi.tv + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with XBMC; see the file COPYING. If not, see + * . + * + */ + +#include "guishader_common.hlsl" + +Texture2D texFont : register(t0); + +float4 PS(PS_INPUT input) : SV_TARGET +{ + input.color.a *= texFont.Sample(LinearSampler, input.tex).a; + return input.color; +} + + -- cgit v1.2.3