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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue