A PluggableShader can be used together with a primitive. It is aware of its location and its surface normal to return the proper radiance.

Inheritance
  • Object
  • Shader
  • PluggableShader
Implemented by

Constructors

PluggableShader()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
normal → dynamic

The normal vector at the hit point. Must be stored in normalized form.

read / write
position → Point3

The position of the hit point.

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

clone() Shader

Returns a hard copy (clone) of the current shader.

inherited
getAmbientCoeff() → Vector4

Returns the ambient coefficient of the primitive at the hit point. Returns the zero vector, if shader does not support ambient lighting.

inherited
getIndirectRadiance() → Vector4

Returns the radiance which comes from indirect illumination. This is the case for a reflected ray on a mirror. Returns the zero vector, if shader does not support indirect radiance.

inherited
getReflectance(Vector3 outDir, Vector3 inDir) → Vector4

Returns the reflectance for the associated Primitive at the associated hitpoint and and for the given direction vectors.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited