From ecef2a8d72d2fb00707b4860f779ee8394bc386e Mon Sep 17 00:00:00 2001 From: turanszkij Date: Sat, 8 Oct 2016 02:22:20 +0200 Subject: [PATCH] removed unnecessary shaders --- WickedEngine/objectVS_reflection.hlsl | 48 --------------------------- WickedEngine/skyPS_reflection.hlsl | 11 ------ WickedEngine/skyVS_reflection.hlsl | 15 --------- 3 files changed, 74 deletions(-) delete mode 100644 WickedEngine/objectVS_reflection.hlsl delete mode 100644 WickedEngine/skyPS_reflection.hlsl delete mode 100644 WickedEngine/skyVS_reflection.hlsl diff --git a/WickedEngine/objectVS_reflection.hlsl b/WickedEngine/objectVS_reflection.hlsl deleted file mode 100644 index 2cff68a4f..000000000 --- a/WickedEngine/objectVS_reflection.hlsl +++ /dev/null @@ -1,48 +0,0 @@ -#include "objectHF.hlsli" - - - -PixelInputType main(Input input) -{ - PixelInputType Out = (PixelInputType)0; - - float4x4 WORLD = MakeWorldMatrixFromInstance(input); - - Out.instanceColor = input.color_dither.rgb; - Out.dither = input.color_dither.a; - - float4 pos = input.pos; - float4 posPrev = input.pre; - - - pos = mul(pos, WORLD); - - - Out.clip = dot(pos, g_xClipPlane); - - float3 normal = mul(normalize(input.nor.xyz), (float3x3)WORLD); - affectWind(pos.xyz, input.tex.w, input.id); - - - [branch] - if (posPrev.w) { - posPrev = mul(posPrev, WORLD); - } - else - posPrev = pos; - - Out.pos = Out.pos2D = mul(pos, g_xCamera_ReflVP); - Out.pos2DPrev = float4(0,0,0,0); - Out.pos3D = pos.xyz; - Out.tex = input.tex.xy; - Out.nor = normalize(normal); - Out.nor2D = float2(0,0); - - - Out.ReflectionMapSamplingPos = float4(0,0,0,0); - - Out.ao = input.nor.w; - - - return Out; -} \ No newline at end of file diff --git a/WickedEngine/skyPS_reflection.hlsl b/WickedEngine/skyPS_reflection.hlsl deleted file mode 100644 index 685b30578..000000000 --- a/WickedEngine/skyPS_reflection.hlsl +++ /dev/null @@ -1,11 +0,0 @@ -#include "skyHF.hlsli" - -struct VSOut { - float4 pos : SV_POSITION; - float3 nor : TEXCOORD0; -}; - -float4 main(VSOut PSIn) : SV_TARGET -{ - return float4(GetSkyColor(PSIn.nor), 0); -} \ No newline at end of file diff --git a/WickedEngine/skyVS_reflection.hlsl b/WickedEngine/skyVS_reflection.hlsl deleted file mode 100644 index d5fcc93c3..000000000 --- a/WickedEngine/skyVS_reflection.hlsl +++ /dev/null @@ -1,15 +0,0 @@ -#include "globals.hlsli" -#include "icosphere.hlsli" - -struct VSOut { - float4 pos : SV_POSITION; - float3 nor : TEXCOORD0; -}; - -VSOut main(uint vid : SV_VERTEXID) -{ - VSOut Out = (VSOut)0; - Out.pos = mul(float4(ICOSPHERE[vid], 0), g_xCamera_ReflVP); - Out.nor = ICOSPHERE[vid]; - return Out; -} \ No newline at end of file