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.1.tar.gz
(8.7 kB
view details)
Built Distribution
playsh-0.0.1-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file playsh-0.0.1.tar.gz
.
File metadata
- Download URL: playsh-0.0.1.tar.gz
- Upload date:
- Size: 8.7 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 | acfaf7ecea6df9486f5b38040880f336faa0d563922d6933af208fcca6c96362 |
|
MD5 | ff55d3f56682444a0b05849428e86f64 |
|
BLAKE2b-256 | 596596213548569341e00963a316de81d2b5f3a3e993ea60697a77f002613058 |
File details
Details for the file playsh-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: playsh-0.0.1-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 | 6370c8a6913d8f502be7ac3976fe3d6ca14fc4fc7bd08a022563f55174ddb3de |
|
MD5 | ffd5bd057f1120fccfef3c8f9de49b19 |
|
BLAKE2b-256 | 1ad37938c824c65afc59782eb814201af114f3ad74e0880dd7be44d3d17943f0 |