Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ISF Format Export #37

Open
torinmb opened this issue Feb 13, 2020 · 3 comments
Open

Add ISF Format Export #37

torinmb opened this issue Feb 13, 2020 · 3 comments
Assignees

Comments

@torinmb
Copy link
Member

torinmb commented Feb 13, 2020

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 torinmb self-assigned this Feb 13, 2020
@torinmb
Copy link
Member Author

torinmb commented Feb 13, 2020

/*{
	"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 torinmb changed the title Add ISF Format to uniform code Add ISF Format Export Feb 13, 2020
@PWhiddy
Copy link
Member

PWhiddy commented Feb 13, 2020

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

@torinmb
Copy link
Member Author

torinmb commented Feb 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants