Skip to content

Instantly share code, notes, and snippets.

@PumpkinPaul
Created January 21, 2021 15:10
Show Gist options
  • Save PumpkinPaul/812ad66078367ca2e103fbff7594e6cd to your computer and use it in GitHub Desktop.
Save PumpkinPaul/812ad66078367ca2e103fbff7594e6cd to your computer and use it in GitHub Desktop.
Vertex Shader
#ifndef VERTEX_FXH
#define VERTEX_FXH
#include "Structures.fxh"
PSInput CommmonVertexShader(
float4 position : POSITION0,
float4 color : COLOR0,
float2 texCoord : TEXCOORD0)
{
PSInput output;
output.position = mul(position, MatrixTransform);
output.color = color;
output.texCoord = texCoord;
return output;
}
#endif /* VERTEX_FXH */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment