Created
January 21, 2021 13:51
-
-
Save PumpkinPaul/df7fde63a5d5345f62356c5bb0fddcea to your computer and use it in GitHub Desktop.
Simple sprite shader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Macros.fxh" | |
#include "Structures.fxh" | |
DECLARE_TEXTURE(UserTexture, 0); | |
BEGIN_CONSTANTS | |
MATRIX_CONSTANTS | |
float4x4 MatrixTransform _vs(c0) _cb(c0); | |
END_CONSTANTS | |
#include "Vertex.fxh" | |
float4 PixelShaderMain(PSInput input) : SV_Target0 | |
{ | |
return SAMPLE_TEXTURE(UserTexture, input.texCoord) * input.color; | |
} | |
TECHNIQUE(SpriteEffect, CommmonVertexShader, PixelShaderMain); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment