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
|
|
@ -20,23 +20,25 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "hlslStructs.h"
|
||||
#include "hlslStructs.hlsl"
|
||||
#include "shaderModel.hlsl"
|
||||
|
||||
struct MaterialDecoratorConnectV
|
||||
{
|
||||
float4 hpos : POSITION;
|
||||
float4 hpos : TORQUE_POSITION;
|
||||
float2 uv0 : TEXCOORD0;
|
||||
};
|
||||
|
||||
uniform float4x4 modelview : register(C0);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Main
|
||||
//-----------------------------------------------------------------------------
|
||||
MaterialDecoratorConnectV main( VertexIn_PCT IN,
|
||||
uniform float4x4 modelview : register(C0) )
|
||||
MaterialDecoratorConnectV main( VertexIn_PCT IN )
|
||||
{
|
||||
MaterialDecoratorConnectV OUT;
|
||||
|
||||
OUT.hpos = mul(modelview, IN.pos);
|
||||
OUT.hpos = mul(modelview, float4(IN.pos,1.0));
|
||||
OUT.uv0 = IN.uv0;
|
||||
|
||||
return OUT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue