https://github.com/tsoding/opengl-haskek
https://github.com/tsoding/opengl-haskek
hacktoberfest hacktoberfest2020
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tsoding/opengl-haskek
- Owner: tsoding
- License: mit
- Created: 2020-07-17T21:18:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T07:59:22.000Z (almost 6 years ago)
- Last Synced: 2025-07-07T08:12:09.591Z (about 1 year ago)
- Topics: hacktoberfest, hacktoberfest2020
- Language: Haskell
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenGL Haskek
## Quick Start
```console
$ cabal v2-run
```
## pipeline.conf
Expected in [CWD]. See the [pipeline.conf](./pipeline.conf) for a usage example.
### Parameters
|Key|Description|
|---|---|
|`vertex`|File path to the vertex shader|
|`fragment`|File path to the fragment shader|
## Shortcuts
|Key|Description|
|---|---|
|r|Hot reload [`pipeline.conf`](#pipelineconf) and the shaders it refers to|
|q|Quit the application|
|t|Reset [`u_time`](#uniforms) uniform to `0`|
## Uniforms
These are [uniforms] that are passed to the shaders specified in
[pipeline.conf](#pipelineconf).
|Name|Description|
|---|---|
|`u_resolution`|Resolution of the window in pixels|
|`u_mouse`|Position of the mouse|
|`u_time`|How much time has passed in seconds|
[uniforms]: https://www.khronos.org/opengl/wiki/Uniform_(GLSL)
[CWD]: https://en.wikipedia.org/wiki/Working_directory