depthOnlyVertex property

  1. @override
({VertexLayoutDescriptor layout, Shader shader})? get depthOnlyVertex
override

On the GPU path the depth-style passes must run the full morphed vertex shader (a position-only fetch would draw the unmorphed base); the CPU path keeps the position-only fast path since its buffer already holds the blended positions.

Implementation

@override
({gpu.Shader shader, VertexLayoutDescriptor layout})? get depthOnlyVertex =>
    usesGpuMorphing ? null : super.depthOnlyVertex;