mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Direct3D11 common shader changes.
This commit is contained in:
parent
1ff6f221fb
commit
3a9b50f702
283 changed files with 3547 additions and 1834 deletions
|
|
@ -23,27 +23,31 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Structures
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "shaderModel.hlsl"
|
||||
|
||||
struct Conn
|
||||
{
|
||||
float2 texCoord : TEXCOORD0;
|
||||
float4 position : TORQUE_POSITION;
|
||||
float4 texCoord : TEXCOORD0;
|
||||
float4 color : COLOR0;
|
||||
};
|
||||
|
||||
struct Frag
|
||||
{
|
||||
float4 col : COLOR0;
|
||||
float4 col : TORQUE_TARGET0;
|
||||
};
|
||||
|
||||
TORQUE_UNIFORM_SAMPLER2D(diffuseMap, 0);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Main
|
||||
//-----------------------------------------------------------------------------
|
||||
Frag main( Conn In,
|
||||
uniform sampler2D diffuseMap : register(S0)
|
||||
)
|
||||
Frag main( Conn In)
|
||||
{
|
||||
Frag Out;
|
||||
|
||||
Out.col = tex2D(diffuseMap, In.texCoord) * In.color;
|
||||
Out.col = TORQUE_TEX2D(diffuseMap, In.texCoord) * In.color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue