{
  "materials": {
    "version": "1.0.0",

    "particles_base": {
      "vertexShader": "shaders/color_uv.vertex",
      "vrGeometryShader": "shaders/color_uv.geometry",
      "fragmentShader": "shaders/color_texture.fragment",

      "vertexFields": [
        { "field": "Position" },
        { "field": "Color" },
        { "field": "UV0" }
      ],

      "+samplerStates": [
        {
          "samplerIndex": 0,
          "textureFilter": "Point"
        }
      ],

      "msaaSupport": "Both"
    },
            "reversed_color:particles_blend": {
            "depthFunc": "Always",
            "+states": [
                "EnableStencilTest",
                "DisableDepthTest",
                "Blending"
            ],
            "blendSrc": "OneMinusDestColor",
            "blendDst": "OneMinusSrcColor"
        },
		"xray:particles_base": {
			"+defines": [
				"ALPHA_TEST",
				"ENABLE_FOG"
			],
			"+states": [
				"DisableCulling",
				"DisableAlphaWrite"
			],
			"depthFunc": "Always"
		},

    "particles_opaque:particles_base": {
      "+defines": [ "ENABLE_FOG" ],
      "+states": [ "DisableAlphaWrite" ]
    },

    "particles_alpha:particles_base": {

      "+defines": [ "ALPHA_TEST", "ENABLE_FOG" ],
      "+states": [ "DisableAlphaWrite" ]
    },

    "particles_blend:particles_base": {
      "+defines": [ "ALPHA_TEST", "ENABLE_FOG" ],
	  "+states": [
        "Blending",
		"DisableCulling",
		"DisableAlphaWrite"
      ],
      "depthFunc": "LessEqual",
      "vertexFields": [
        { "field": "Position" },
        { "field": "Color" },
        { "field": "UV0" }
      ]
    },

    "particles_effects:particles_alpha": {

      "+defines": [ "EFFECTS_OFFSET" ],
      "msaaSupport": "Both"
    },
    "particles_test": {
      "vertexShader": "shaders/particle_test.vertex",
      "vrGeometryShader": "shaders/particle_test.geometry",
      "fragmentShader": "shaders/particle_test.fragment",
      "vertexFields": [
        {
          "field": "Position"
        },
        {
          "field": "Color"
        },
        {
          "field": "UV0"
        }
      ],
      "states": [
        "Blending",
        "DisableCulling",
        "DisableDepthWrite"
      ],
      "defines": [
        "ENABLE_FOG"
      ],
      "msaaSupport": "MSAA"
    },
    "common_particle": {
      "vertexShader": "shaders/common_particle.vertex",
      "vrGeometryShader": "shaders/common_particle.geometry",
      "fragmentShader": "shaders/common_particle.fragment",
      "vertexFields": [
        {
          "field": "Position"
        },
        {
          "field": "Color"
        },
        {
          "field": "UV0"
        }
      ],
      "states": [
        "Blending",
        "DisableCulling",
        "DisableDepthWrite"
      ],
      "samplerStates": [
        {
          "samplerIndex": 0,
          "textureWrap": "Clamp",
          "textureFilter": "Bilinear"
        }
      ],
      "msaaSupport": "Both"
    },
    "common_particle_add:common_particle": {
      "blendSrc": "SourceAlpha",
      "blendDst": "One"
    },
    "common_particle_add_texture:common_particle_add": {
      "defines": [
        "ENABLE_TEXTURE"
      ]
    },
    "common_particle_blend:common_particle": {},
    "common_particle_blend_texture:common_particle_blend": {
      "defines": [
        "ENABLE_TEXTURE"
      ]
    },

    "particles_random_test": {
      "vertexShader": "shaders/particle_random_test.vertex",
      "vrGeometryShader": "shaders/color_uv.geometry",
      "fragmentShader": "shaders/color_texture.fragment",

      "vertexFields": [
        { "field": "Position" },
        { "field": "Color" },
        { "field": "Normal" },
        { "field": "UV0" }
      ],

      "+samplerStates": [
        {
          "samplerIndex": 0,
          "textureFilter": "Point"
        }
      ],

      "+defines": [ "ALPHA_TEST", "ENABLE_FOG" ],
      "+states": [ "DisableAlphaWrite" ],

      "msaaSupport": "Both"
    }
  }
}