Direct3D11 common shader changes.

This commit is contained in:
rextimmy 2016-03-20 21:50:21 +10:00
parent 1ff6f221fb
commit 3a9b50f702
283 changed files with 3547 additions and 1834 deletions

View file

@ -1,15 +1,16 @@
#define IN_HLSL
#include "../shdrConsts.h"
#include "../shaderModel.hlsl"
struct v2f
{
float4 hpos : TORQUE_POSITION;
float4 color : COLOR0;
float2 texCoord : TEXCOORD0;
float2 shiftdata : TEXCOORD1;
float4 color : COLOR0;
};
float4 main(v2f IN) : COLOR0
float4 main(v2f IN) : TORQUE_TARGET0
{
float fade = 1.0 - abs(IN.shiftdata.y - 0.5) * 2.0;
IN.color.xyz = IN.color.xyz + pow(fade, 4) / 10;