docs
This commit is contained in:
parent
9d506d688b
commit
847f26b2a1
2 changed files with 21 additions and 1 deletions
4
examples/simple.glsl
Normal file
4
examples/simple.glsl
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
||||||
|
fragColor = vec4(fragCoord / iResolution.xy, 1.0, 1.0);
|
||||||
|
}
|
||||||
|
|
||||||
18
glonkers.1
18
glonkers.1
|
|
@ -1,8 +1,24 @@
|
||||||
.TH glonkers 1 "February 2026" "1.0" "glonkers man page"
|
.TH glonkers 1 "February 2026" "1.0" "glonkers man page"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
glonkers \- Create windows and wallpapers with glsl fragment shaders.
|
glonkers \- Create windows and wallpapers with glsl fragment shaders.
|
||||||
|
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
glonkers [OPTIONS]... [FILE]
|
glonkers [OPTIONS]... [FILE]
|
||||||
|
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The wallpaper feature only works on wayland compositors that implement the
|
||||||
|
wlr-layer-shell protocol.
|
||||||
|
A simple shader file looks something like this:
|
||||||
|
|
||||||
|
.EX
|
||||||
|
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
||||||
|
fragColor = vec4(fragCoord / iResolution.xy, 1.0, 1.0);
|
||||||
|
}
|
||||||
|
.EE
|
||||||
|
|
||||||
|
The iResolution is one of the built in shader inputs.
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
|
|
@ -38,7 +54,7 @@ shader with iChannel0, iChannel1, iChannel2, iChannel3.
|
||||||
Stop listing outputs/textures.
|
Stop listing outputs/textures.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.SH SHADER BUILTINS
|
.SH SHADER INPUTS
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fBiTime\fR : float
|
\fBiTime\fR : float
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue