mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Direct3D11 common shader changes.
This commit is contained in:
parent
1ff6f221fb
commit
3a9b50f702
283 changed files with 3547 additions and 1834 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue