Skip to content

Instantly share code, notes, and snippets.

@kusma
Created November 20, 2017 21:57
Show Gist options
  • Save kusma/ec4510d62ed37ae21ae9f77f48372174 to your computer and use it in GitHub Desktop.
Save kusma/ec4510d62ed37ae21ae9f77f48372174 to your computer and use it in GitHub Desktop.
FRAG
PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1
DCL IN[0].xy, GENERIC[9], PERSPECTIVE
DCL OUT[0], COLOR
DCL SAMP[0]
DCL SVIEW[0], 2D, FLOAT
DCL TEMP[0], LOCAL
0: MOV TEMP[0].xy, IN[0].xyyy
1: TEX TEMP[0], TEMP[0], SAMP[0], 2D
2: MOV OUT[0], TEMP[0]
3: END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment