Browse Source

fixed table in readme

Dalton Nell 7 years ago
parent
commit
ebbbb3dab1
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      README.md

+ 2
- 0
README.md View File

67
 ### Shaders
67
 ### Shaders
68
 
68
 
69
 Slop allows for chained post-processing shaders. Shaders are written in a language called GLSL, and have access to the following data from slop:
69
 Slop allows for chained post-processing shaders. Shaders are written in a language called GLSL, and have access to the following data from slop:
70
+
70
 | GLSL Name  | Data Type      | Bound to                                                                                        |
71
 | GLSL Name  | Data Type      | Bound to                                                                                        |
71
 |------------|----------------|-------------------------------------------------------------------------------------------------|
72
 |------------|----------------|-------------------------------------------------------------------------------------------------|
72
 | mouse      | vec2           | The mouse position on the screen.                                                               |
73
 | mouse      | vec2           | The mouse position on the screen.                                                               |
75
 | screenSize | vec2           | The dimensions of the screen, where the x value is the width.                                   |
76
 | screenSize | vec2           | The dimensions of the screen, where the x value is the width.                                   |
76
 | position   | vec2 attribute | This contains the vertex data for the rectangle. Only contains (0,0), (1,0), (1,1), and (0,1).  |
77
 | position   | vec2 attribute | This contains the vertex data for the rectangle. Only contains (0,0), (1,0), (1,1), and (0,1).  |
77
 | uv         | vec2 attribute | Same as the position, this contians the UV information of each vertext.                         |
78
 | uv         | vec2 attribute | Same as the position, this contians the UV information of each vertext.                         |
79
+
78
 The desktop texture is upside-down because flipping it would cost valuable time.
80
 The desktop texture is upside-down because flipping it would cost valuable time.
79
 
81
 
80
 Shaders must be placed in your `${XDG_CONFIG_HOME}/slop` directory, where *XDG_CONFIG_HOME* is typically `~/.config/`. This folder won't exist unless you make it yourself.
82
 Shaders must be placed in your `${XDG_CONFIG_HOME}/slop` directory, where *XDG_CONFIG_HOME* is typically `~/.config/`. This folder won't exist unless you make it yourself.