123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- import Color from "../Core/Color.js";
- import defaultValue from "../Core/defaultValue.js";
- function ClearCommand(options) {
- options = defaultValue(options, defaultValue.EMPTY_OBJECT);
-
- this.color = options.color;
-
- this.depth = options.depth;
-
- this.stencil = options.stencil;
-
- this.renderState = options.renderState;
-
- this.framebuffer = options.framebuffer;
-
- this.owner = options.owner;
-
- this.pass = options.pass;
- }
- ClearCommand.ALL = Object.freeze(
- new ClearCommand({
- color: new Color(0.0, 0.0, 0.0, 0.0),
- depth: 1.0,
- stencil: 0.0,
- })
- );
- ClearCommand.prototype.execute = function (context, passState) {
- context.clear(this, passState);
- };
- export default ClearCommand;
|