Advertisement
DEKTEN

SDF-018-IMAGE

Dec 2nd, 2020 (edited)
1,508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //[ THIS_FILE_IS[ SDF_018.IMAGE._ ]                  ]//
  2. /** ************************************************ ***
  3. ***                                                  ***
  4. ***     Live Stream Of Me Working On This Code:      ***
  5. ***                                                  ***
  6. *** ************************************************ ***
  7.  
  8.                 twitch.com/kanjicoder    
  9.  
  10. *** ************************************************ ***
  11. ***                                                  ***
  12. *** SELF___________URL:  tinyurl.com/SDF-018-IMAGE   ***
  13. *** DOCUMENTATION__URL:  tinyurl.com/SDF-018         ***
  14. *** SOURCE_CODE_BUFFER:  tinyurl.com/SDF-018-BUFFER  ***
  15. *** SOURCE_CODE__IMAGE:  tinyurl.com/SDF-018-IMAGE   ***
  16. *** LIVE__________DEMO:  tinyurl.com/SDF-018-DEMO    ***
  17. *** SETUP________VIDEO:  tinyurl.com/SDF-018-SETUP   ***
  18. ***                                                  ***
  19. *** ************************************************ **/
  20. //:INSTRUCTIONS:IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII://
  21. /** ************************************************ ***
  22.  
  23.     Click And Drag on the canvas to set pixels.
  24.  
  25. *** ************************************************ **/
  26. //:IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII:INSTRUCTIONS://
  27. //:MACROS:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM://
  28.  
  29.     #define IV2 ivec2
  30.     #define V_4  vec4
  31.     #define V_3  vec3
  32.     #define V_2  vec2
  33.     #define F32 float
  34.     #define I32   int
  35.     #define U32  uint
  36.  
  37. //:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:MACROS://
  38. //:DATA:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD://
  39.  
  40.     //:NO DATA
  41.  
  42. //:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD:DATA://
  43. //:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF://
  44. //:FUNCTIONS:BELOW:____DO_NOT_INDENT____OUTER_SCOPE!!://
  45. //:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF://
  46.  
  47. void mainImage( out vec4 fragColor, in vec2 fragCoord )
  48. {
  49.     IV2 f_c = IV2( I32(fragCoord.x - 0.5 ) ,
  50.                    I32(fragCoord.y - 0.5 ) );;
  51.  
  52.     V_4 c4d = texelFetch( iChannel0 , f_c , 0 );
  53.  
  54.  
  55.      fragColor = c4d;
  56. }
  57.  
  58. //:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF://
  59. //:FUNCTIONS:ABOVE:____DO_NOT_INDENT____OUTER_SCOPE!!://
  60. //:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF://
  61. //:MACROS:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM://
  62.  
  63.     #undef  IV2  
  64.     #undef  V_4  
  65.     #undef  V_3  
  66.     #undef  V_2  
  67.     #undef  F32  
  68.     #undef  I32  
  69.     #undef  U32  
  70.  
  71. //:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:MACROS://
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement