| 1 | class RenderLayer |
| 2 | { |
| 3 | static DEFAULT_NAME = "default"; |
| 4 | |
| 5 | constructor (name, options) |
| 6 | { |
| 7 | options = options || {}; |
| 8 | this.name = name || RenderLayer.DEFAULT_NAME; |
| 9 | this.postShaders = options.postShaders || []; |
| 10 | // "alpha" (source-over) or "add" (additive) |
| 11 | this.composite = options.composite || "alpha"; |
| 12 | } |
| 13 | } |