An open API service indexing awesome lists of open source software.

https://github.com/tsoding/opengl-haskek


https://github.com/tsoding/opengl-haskek

hacktoberfest hacktoberfest2020

Last synced: about 1 year ago
JSON representation

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