shader-park-core icon indicating copy to clipboard operation
shader-park-core copied to clipboard

Add ISF Format Export

Open torinmb opened this issue 4 years ago • 3 comments

Replace all uniforms with the ISF standard, so our SDFs can be dropped into other platforms like VDMX and Max MSP and have sliders / UI auto-generated.

https://www.interactiveshaderformat.com/

torinmb avatar Feb 13 '20 18:02 torinmb

/*{
	"CREDIT": "by username",
	"DESCRIPTION": "",
	"CATEGORIES": [
		"XXX"
	],
	"INPUTS": [
		{
			"NAME": "inputImage",
			"TYPE": "image"
		},
		{
			"NAME": "floatInput1",
			"TYPE": "float",
			"DEFAULT": 0.5,
			"MIN": 0.0,
			"MAX": 1.0
		},
		{
			"NAME": "floatInput2",
			"TYPE": "float",
			"DEFAULT": 0.5,
			"MIN": 0.0,
			"MAX": 1.0
		},
		{
			"NAME": "floatInput3",
			"TYPE": "float",
			"DEFAULT": 0.5,
			"MIN": 0.0,
			"MAX": 1.0
		},
		{
			"NAME": "floatInput4",
			"TYPE": "float",
			"DEFAULT": 0.5,
			"MIN": 0.0,
			"MAX": 1.0
		},
		{
			"NAME": "floatInput5",
			"TYPE": "float",
			"DEFAULT": 0.5,
			"MIN": 0.0,
			"MAX": 1.0
		}
	]
}*/

torinmb avatar Feb 13 '20 18:02 torinmb

Is there a js library for parsing this format? If so we could just replace our current method of passing a uniforms dictionary

PWhiddy avatar Feb 13 '20 18:02 PWhiddy

Yeah, I'm basically using my own version of ISF to store the uniforms right now, so I should just switch to ISF. Looks like there's a helper library: https://github.com/msfeldstein/interactive-shader-format-js

torinmb avatar Feb 13 '20 19:02 torinmb