|
@@ -12,19 +12,11 @@ Just a simple OpenGL template that I use on my streams.
|
|
|
| <kbd>SPACE</kbd> | Pause/unpause the time uniform variable in shaders |
|
|
|
| <kbd>←</kbd><kbd>→</kbd> | In pause mode step back/forth in time. |
|
|
|
|
|
|
-## [render.conf](./render.conf) keys
|
|
|
-
|
|
|
-| Key | Description |
|
|
|
-|---------|-----------------------------|
|
|
|
-| vert | Path to the vertex shader |
|
|
|
-| frag | Path to the fragment shader |
|
|
|
-| texture | Path to the texture |
|
|
|
-
|
|
|
## Shader Uniforms
|
|
|
|
|
|
-| Name | Type | Description |
|
|
|
-|--------------|---------|--------------------------------------------------------------------------------------|
|
|
|
-| `resolution` | `vec2` | Current resolution of the screen in pixels |
|
|
|
-| `time` | `float` | Amount of time passed since the beginning of the application when it was not paused. |
|
|
|
-| `mouse` | `vec2` | Position of the mouse on the screen in pixels |
|
|
|
-
|
|
|
+| Name | Type | Description |
|
|
|
+|--------------|-------------|--------------------------------------------------------------------------------------|
|
|
|
+| `resolution` | `vec2` | Current resolution of the screen in pixels |
|
|
|
+| `time` | `float` | Amount of time passed since the beginning of the application when it was not paused. |
|
|
|
+| `mouse` | `vec2` | Position of the mouse on the screen in pixels |
|
|
|
+| `tex` | `sampler2D` | Current texture |
|