setDepth method
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);
}
}
}