setDepth method

void setDepth(
  1. int x,
  2. int y,
  3. num c
)

Set the value of the depth channel at the given pixel coordinates x, y.

Implementation

void setDepth(int x, int y, num c) {
  if (depth != null) {
    if (depth!.isFloat) {
      depth!.setFloat(x, y, c);
    } else {
      depth!.setInt(x, y, c as int);
    }
  }
}