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

@ -21,7 +21,8 @@
//-----------------------------------------------------------------------------
#define IN_HLSL
#include "hlslStructs.h"
#include "hlslStructs.hlsl"
#include "shaderModel.hlsl"
//-----------------------------------------------------------------------------
// Structures
@ -29,20 +30,20 @@
struct ConnectData
{
float4 hpos : POSITION;
float4 hpos : TORQUE_POSITION;
float2 texCoord : TEXCOORD0;
float4 tex2 : TEXCOORD1;
};
uniform float4x4 modelview;
//-----------------------------------------------------------------------------
// Main
//-----------------------------------------------------------------------------
ConnectData main( VertexIn_PNTTTB IN,
uniform float4x4 modelview : register(C0)
)
ConnectData main( VertexIn_PNTTTB IN )
{
ConnectData OUT;
OUT.hpos = mul(modelview, IN.pos);
OUT.hpos = mul(modelview, float4(IN.pos,1.0));
float4x4 texGenTest = { 0.5, 0.0, 0.0, 0.5,
0.0, -0.5, 0.0, 0.5,