Dalton Nell 7 lat temu
rodzic
commit
9529fa3674
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      README.md

+ 2
- 2
README.md Wyświetl plik

75
 | texture    | sampler2D      | The current pixel values of slop's frame buffer. Usually just contains the selection rectangle. |
75
 | texture    | sampler2D      | The current pixel values of slop's frame buffer. Usually just contains the selection rectangle. |
76
 | 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.                                   |
77
 | 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).  |
78
-| 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 vertex.                          |
79
 
79
 
80
 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.
81
 
81
 
83
 
83
 
84
 Shaders are loaded from the `--shader` flag in slop. They are delimited by commas, and rendered in order from left to right. This way you can combine multiple shaders for interesting effects! For example, `slop -rblur1,wiggle` would load `~/.config/slop/blur1{.frag,.vert}` and `~/.config/slop/wiggle{.frag,.vert}`. Then render the selection rectangle twice, each time accumulating the changes from the different shaders.
84
 Shaders are loaded from the `--shader` flag in slop. They are delimited by commas, and rendered in order from left to right. This way you can combine multiple shaders for interesting effects! For example, `slop -rblur1,wiggle` would load `~/.config/slop/blur1{.frag,.vert}` and `~/.config/slop/wiggle{.frag,.vert}`. Then render the selection rectangle twice, each time accumulating the changes from the different shaders.
85
 
85
 
86
-Enough chatting about it though, here's some example shaders you can copy to `~/.config/slop` to try out!
86
+Enough chatting about it though, here's some example shaders you can from [shaderexamples](https://github.com/naelstrof/slop/tree/master/shaderexamples) to `~/.config/slop` to try out!
87
 
87
 
88
 * `slop -rblur1,blur2 -b100` | `~/.config/slop/{blur1,blur2}{.frag,.vert}`
88
 * `slop -rblur1,blur2 -b100` | `~/.config/slop/{blur1,blur2}{.frag,.vert}`
89
 ![slop blur](https://my.mixtape.moe/bvsrzr.png)
89
 ![slop blur](https://my.mixtape.moe/bvsrzr.png)