Skip to main content

Type Alias: ModelDrawOptions

ModelDrawOptions = object

Defined in: modules/engine/src/model/gpu-vector-model.ts:114

Per-draw overrides shared by Model and GPUVectorModel.

Properties​

parameters?​

optional parameters?: object

Defined in: modules/engine/src/model/gpu-vector-model.ts:116

Dynamic parameters scoped to this draw, including internal vector batches.

blendConstant?​

optional blendConstant?: NumberArray4

Blend color used by constant blend factors.

scissorRect?​

optional scissorRect?: NumberArray4

Scissor rectangle [x, y, width, height].

stencilReference?​

optional stencilReference?: number

Value used for stencil comparison and replacement.

viewport?​

optional viewport?: NumberArray4 | NumberArray6

Viewport [x, y, width, height, minDepth?, maxDepth?].