Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cbuffer MatrixBuffer {
- matrix matt;
- };
- Texture2D tex;
- Texture2D tex2;
- SamplerState sampState;
- struct VOut {
- float4 position : SV_POSITION;
- float4 color : COLOR;
- float2 TexCoord : TEXCOORD;
- };
- VOut VShader(float4 position : POSITION, float4 color : COLOR, float2 inTexCoord : TEXCOORD) {
- VOut output;
- output.position = mul(position, matt);
- output.color = color;
- output.TexCoord = inTexCoord;
- return output;
- }
- float4 PShader(float4 position : SV_POSITION, float4 color : COLOR, float2 TexCoord : TEXCOORD) : SV_TARGET {
- return color * tex.Sample(sampState, TexCoord);// * tex2.Sample(sampState, TexCoord);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement