← Back

ofxComposableShader

github.com/nariakiiwatani/ofxComposableShader · @nariakiiwatani
OF 0.11 Shaders Graphics

Addon for composing ofShader objects from JSON settings, with optional ImGui uniform controls.

4 0 Last commit 3y ago Created 5y ago

README

ofxComposableShader



You can compose ofShader by simple settings like this;
{
	"vertex" : [
		"point_sprite.vert"
	],
	"fragment" : [
		"mono_color.frag"
	],
	"uniform" : {
		"point_size" : {
			"type" : "float",
			"value" : 1,
			"imgui" : {
				"type" : "drag",
				"speed" : 1,
				"min" : 0,
				"max" : 100
			}
		},
		"color" : {
			"type" : "color",
			"value" : [1,1,1,1],
			"imgui" : {}
		}
	},
	"gl_state_bool" : {
		"point_size" : true,
		"point_sprite" : true
	}
}


Then you get this result;

screenshot

Get this addon

HTTPS
SSH