A playground for OpenGL fragment shader
Project description
playsh
A GLSL fragment shader playground, inspired by Shadertoy.
Builtin shader uniforms
-
uniform vec3 iResolution
-
uniform float iTime
-
iuniform float TimeDelta
-
uniform int iFrame
-
uniform vec4 iMouse
-
uniform Texture2D iChannel0
-
uniform Texture2D iChannel1
-
uniform Texture2D iChannel2
-
uniform Texture2D iChannel3
-
uniform vec3 iChannelResolution[4]
Dependencies
-
glfw
-
PyOpenGL
-
PyGLM
-
numpy
-
pillow
-
injector
Example
from playsh import PlaySh, TextureDesc, Filter, Wrap
app = PlaySh(
width=1920,
height=1200,
fragment_shader_path="examples/example.fs",
channel0=TextureDesc(
path="examples/noise.png", filter=Filter.LINEAR, wrap=Wrap.REPEAT
),
)
app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
playsh-0.0.2.tar.gz
(8.8 kB
view details)
Built Distribution
playsh-0.0.2-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file playsh-0.0.2.tar.gz
.
File metadata
- Download URL: playsh-0.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313fe76f975bd1decc86b074ceb31a334422d3a4fdd8a3a9fc41b7b26fab4a6f |
|
MD5 | b5b324a49320dd17ade335f0ff85e15c |
|
BLAKE2b-256 | 4ff34b6496008b15742a8f36d41bad4181c53805fe8d14d59215ac56609bc817 |
File details
Details for the file playsh-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: playsh-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90e3e2683c13e4a3b19b0edb058d6b21e16a02dbee684468df9dd42045c6e9fe |
|
MD5 | 5ef8abe98ede5e3d3e4bd08c1977ae6b |
|
BLAKE2b-256 | b8b4c2cac55c2774b024a1eebbb82b8ca9ecbff52d9a7109f4856bce6254e622 |