ShadowDepthShader class final

shadow_depth.frag: window depth into a colour target.

A colour target rather than the depth buffer because flutter_gpu gives no way to sample a depth texture, and the workaround is in the engine rather than in any one backend. gl_FragCoord.z is the right value because the shadow camera is orthographic — under perspective it would be hyperbolic, all its precision near the near plane, and comparing two of them would mean nothing.

Inheritance

Constructors

ShadowDepthShader()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Float32List v, ShaderBindings bindings, FragmentContext c) → Vector4?
Returns linear RGBA for attachment zero. Null discards the fragment.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited