Schemas / Geometry / paint

rig.paint.filter_step

v1.0.0 · stable maturity: stable 10 fields 1 required

Fields

FieldTypeMeaning
kind enumblend · color-matrix · component-transfer · composite · convolve · diffuse-light · displacement · drop-shadow · flood · blur · image · merge · morphology · offset · specular-light · tile · turbulence required blend, color-matrix, component-transfer, composite, convolve, diffuse-light, displacement, drop-shadow, flood, blur, image, merge, morphology, offset, specular-light, tile, turbulence
in string optional Optional. source-graphic, source-alpha, or a step rig.meta.named stableId
in2 string optional Optional. Second input, same tokens
stdDeviation float optional Optional. Blur / drop-shadow
offset vec2 optional Optional. Offset / drop-shadow
values array<float> optional Optional. Color-matrix / convolve kernel / component curve
operator enumover · in · out · atop · xor · arithmetic · erode · dilate optional Optional. Composite over / in / out / atop / xor / arithmetic; morphology erode / dilate
radius float optional Optional. Morphology
rgba rgba optional Optional. Flood
asset entity optional Optional. Image primitive

One primitive in a rig.paint.filter graph. Format when present.

Blend modes compose rig.render.blend on this step when kind is blend. Lighting vectors and kernel extras a host does not author stay off this schema. Unknown or unimplemented kind is skipped.

JSON Schema

Resolves at https://rig.works/schemas/rig.paint.filter_step.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.paint.filter_step.schema.json",
  "title": "rig.paint.filter_step",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "blend",
        "color-matrix",
        "component-transfer",
        "composite",
        "convolve",
        "diffuse-light",
        "displacement",
        "drop-shadow",
        "flood",
        "blur",
        "image",
        "merge",
        "morphology",
        "offset",
        "specular-light",
        "tile",
        "turbulence"
      ]
    },
    "in": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "in2": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "stdDeviation": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "offset": {
      "$ref": "./_defs.schema.json#/$defs/vec2"
    },
    "values": {
      "type": "array",
      "items": {
        "$ref": "./_defs.schema.json#/$defs/float"
      }
    },
    "operator": {
      "type": "string",
      "enum": [
        "over",
        "in",
        "out",
        "atop",
        "xor",
        "arithmetic",
        "erode",
        "dilate"
      ]
    },
    "radius": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "rgba": {
      "$ref": "./_defs.schema.json#/$defs/rgba"
    },
    "asset": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "required": [
    "kind"
  ],
  "x-rig-maturity": "stable"
}