Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float4x4 worldViewProj;
- Texture2D Textures[4];
- struct VS_IN
- {
- float4 pos : POSITION;
- float2 tex : TEXCOORD;
- float4 color : COLOR;
- };
- struct PS_IN
- {
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD;
- float4 color : COLOR;
- };
- ////////////////////////////////////////////////////////////////////////////
- // Vertex Shader
- ////////////////////////////////////////////////////////////////////////////
- PS_IN MainVS_9(VS_IN input){
- PS_IN output = (PS_IN)0;
- output.pos = input.pos;
- output.tex = input.tex;
- output.color = input.color;
- return output;
- }
- /////////////////////////////////////////////////////////////////////
- // Pixel Shader
- /////////////////////////////////////////////////////////////////////
- float4 ColorPS(PS_IN input) : SV_TARGET
- {
- return float4(1, 0, 0, 1);
- }
- /////////////////////////////////////////////////////////////////////
- // Techniques
- /////////////////////////////////////////////////////////////////////
- technique main_9{
- pass p0
- {
- VertexShader = compile vs_2_0 MainVS_9();
- ZEnable = true;
- ZWriteEnable = true;
- ZFunc = LessEqual;
- AlphaBlendEnable = false;
- CullMode = None;
- PixelShader = compile ps_2_a ColorPS();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement