Defines the effects that can be applied to WebGL2ShapeNodeStyle, WebGL2IconNodeStyle, WebGL2GroupNodeStyle, WebGL2PolylineEdgeStyle, WebGL2DefaultLabelStyle, and WebGL2IconLabelStyle.
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2Effect
See Also
WebGL2ShapeNodeStyle.effect,
WebGL2IconNodeStyle.effect,
WebGL2GroupNodeStyle.effect,
WebGL2PolylineEdgeStyle.effect,
WebGL2DefaultLabelStyle.effect,
WebGL2IconLabelStyle.effect
Constants
Applies a soft ambient light to the node using the fill from the node.
Remarks
For edges, this is equivalent to AMBIENT_STROKE_COLOR.
Applies a soft ambient light to the node using the stroke from the node.
Additional modifier that will make the ambient light effects be rendered in view coordinates instead of world coordinates.
Remarks
This will render the ambient light independently of the zoom level. Use this effect sparingly, as it will result in many overlapping ambient lights for zoomed out diagrams with many nodes that use this effect.
Static Methods
Converts the argument to WebGL2Effect.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - WebGL2Effect
- The value to convert to WebGL2Effect.
Returns
- ↪WebGL2Effect
- Either
value
if it is already a WebGL2Effect or an appropriate converted value.