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 hashes)
Built Distribution
playsh-0.0.1-py3-none-any.whl
(10.5 kB
view hashes)