{ "metadata" : { "version" : 1, "type" : "material" }, "name" : "simple effects", "techniques" : [ { "name": "blur", "passes": [ { "renderState": { "blend": "true", "blendSrc": "ONE", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "THIS_IS_AN_EXAMPLE 1;TOMORROW_IS_HOLIDAY 2", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_Blur.fsh", "blurRadius": 10, "sampleNum": 5, "resolution": [100,100] }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] } ] }, { "name": "outline", "passes": [ { "renderState": { "blend": "true", "blendSrc": "ONE", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_outline.fsh", "u_outlineColor": [0.1, 0.2, 0.3], "u_radius": 0.01, "u_threshold": 1.75 }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] } ] }, { "name": "noise", "passes": [ { "renderState": { "blend": "true", "blendSrc": "ONE", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_Noisy.fsh", "resolution": [100,100] }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] } ] }, { "name": "edge detect", "passes": [ { "renderState": { "blend": "true", "blendSrc": "ONE", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_edgeDetection.fsh", "resolution": [100,100] }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] } ] }, { "name": "gray+blur", "passes": [ { "renderState": { "blend": "true", "blendSrc": "ONE", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "TEXTURE_REPEAT", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_Blur.fsh", "blurRadius": 10, "sampleNum": 5, "resolution": [100,100] }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] }, { "renderState": { "blend": "true", "blendSrc": "ONE_MINUS_SRC_ALPHA", "blendDst": "ONE_MINUS_SRC_ALPHA" }, "shader" : { "defines": "", "vertexShader": "Shaders/example_simple.vsh", "fragmentShader": "Shaders/example_greyScale.fsh" }, "textures": [ { "path": "Images/grossinis_sister1.png", "wrapS": "CLAMP_TO_EDGE", "wrapT": "CLAMP_TO_EDGE", "minFilter": "LINEAR", "magFilter": "LINEAR", "mipmap": "false" } ] } ] } ] }