From 7c0f56f4977c9a436255f84cab7a5fc28e4c50d2 Mon Sep 17 00:00:00 2001 From: Rakarake Date: Thu, 12 Mar 2026 14:21:46 +0100 Subject: [PATCH] big docs --- glonkers.1 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/glonkers.1 b/glonkers.1 index 0cf7bb7..061f9a6 100644 --- a/glonkers.1 +++ b/glonkers.1 @@ -4,16 +4,19 @@ glonkers \- Create windows and wallpapers with glsl fragment shaders. .SH SYNOPSIS glonkers [OPTIONS]... [FILE] .SH OPTIONS + .PP --window .RS 4 Create a window. .RE + .PP --layer .RS 4 Create wallpaper. .RE + .PP --output .RS 4 @@ -21,6 +24,46 @@ Specify in the following arguments which outputs (monitors) that should be rendered to. \fB--\fR can be used to end selection. Use something like \fBwlr-randr\fR(1) to find out monitor names. .RE + +.PP +--texture +.RS 4 +Supply a list of paths to textures (max 4) that can be referenced in the +shader with iChannel0, iChannel1, iChannel2, iChannel3. +.RE + +.PP +-- +.RS 4 +Stop listing outputs/textures. +.RE + +.SH SHADER BUILTINS + +.PP +\fBiTime\fR : float +.RS 4 +Time since program start. +.RE + +.PP +\fBiResolution\fR : vec2 +.RS 4 +Resolution in (number of pixels) x & y. +.RE + +.PP +\fBiFrame\fR : int +.RS 4 +The currently rendered frame. +.RE + +.PP +\fBiChannel\fR{\fB0\fR..\fB3\fR} : int +.RS 4 +Samplers for provided textures. +.RE + .SH SEE ALSO \fBwlr-randr\fR(1) .PP