Interface IEffectFallbacks
interface IEffectFallbacks {
hasMoreFallbacks: boolean;
reduce(currentDefines: string, effect: Effect): string;
unBindMesh(): void;
}
hasMoreFallbacks: boolean;
reduce(currentDefines: string, effect: Effect): string;
unBindMesh(): void;
}
Implemented by
Properties
has More Fallbacks
hasMoreFallbacks: boolean
Checks to see if more fallbacks are still available.
Methods
reduce
-
Removes the defines that should be removed when falling back.
Parameters
- currentDefines: string
defines the current define statements for the shader.
- effect: Effect
defines the current effect we try to compile
Returns string
The resulting defines with defines of the current rank removed.
- currentDefines: string
un Bind Mesh
-
Removes the fallback from the bound mesh.
Returns void
Interface used to define common properties for effect fallbacks