NormalsShader class final

normals.frag: the world normal as colour.

A debug view, and the fastest way to tell a geometry bug from a lighting one: hard edges show as flat blocks, smooth ones as gradients, and inverted winding as the complement of the expected colour.

Written through the display-colour path — the value is not a light quantity, so it is converted to linear here and the composite's encode hands the original back, provided tone mapping and exposure are off.

Inheritance

Constructors

NormalsShader()
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 b, 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