Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct PSInput
- {
- float4 Pos : SV_POSITION;
- };
- // Vertex shader takes two inputs: vertex position and color.
- // By convention, Diligent Engine expects vertex shader inputs to
- // be labeled as ATTRIBn, where n is the attribute number
- PSInput main(float dummy : ATTRIB0)
- {
- /*CONST FLOAT f = 1.0f / 255.0f;
- r = f * (FLOAT)(unsigned char) (dw >> 16);
- g = f * (FLOAT)(unsigned char) (dw >> 8);
- b = f * (FLOAT)(unsigned char) (dw >> 0);
- a = f * (FLOAT)(unsigned char) (dw >> 24);*/
- PSInput ps;
- ps.Pos = float4(dummy, dummy, dummy, dummy);
- return ps;
- }
Add Comment
Please, Sign In to add comment