Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.42 KB

ISF Shader Library for HeavyM

Preview

Shader library for HeavyM, ISF format, mostly from https://Shadertoy.com Needs HeavyM version 1.10 and later.

Usage:

Git clone in Documents\HeavyM\ShadersLibrary to use them. For example, in the terminal/cmd/ps (needs git installed) : git clone https://github.com/sophiadigitalart/ShadersLibrary.git then copy the folder contents in YourDocumentsFolder/HeavyM/ShadersLibrary

Contributing:

In case you want to contribute, instead of cloning this repo, fork it and : Add shaders by copying Template.fs, edit, test, then share by doing a pull request!

Thumbnails:

png / jpg / gif size 120 x 68px

Standard uniforms:

HeavyM expect standard uniform variables named RENDERSIZE, TIME... To ease the shader editing process, I propose to use defines to match shadertoy uniform variable names:

#define iResolution RENDERSIZE
#define iTime TIME 
Other unicorns:

iMouse, IDate and some other uniform variables are not currently supported, so I add them in the INPUTS section:

"INPUTS": [
    {
			"NAME" :	"iMouse",
			"TYPE" :	"point2D",
			"DEFAULT" :	[ 0.0, 0.0 ],
			"MAX" : 	[ 640.0, 480.0 ],
			"MIN" :  	[ 0.0, 0.0 ]
		}
    ]    

Result:

Check this shader for more input types.

Debug:

When you have an error on line x, substract 52(was 65) to have the real line in your shader file.