Class FragmentClippingExtensionPlugin

FragmentClipping Materials Extension Adds a material extension to PhysicalMaterial to add support for fragment clipping. Fragment clipping allows to clip fragments of the material in screen space or world space based on a circle, rectangle, plane, sphere, etc. It uses fixed SDFs with params defined by the user for clipping. It also adds a UI to the material to edit the settings. It uses WEBGI_materials_fragment_clipping_extension glTF extension to save the settings in glTF files.

Hierarchy (view full)



_defines: any = ...
_dirty: boolean = false
_plane: Plane = ...
_uniforms: any = ...
_v4: Vector4 = ...
_viewNormalMatrix: Matrix3 = ...
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean = true
materialExtension: MaterialExtension = ...
uiConfig?: UiObjectConfig<any, string, any> = undefined
FRAGMENT_CLIPPING_EXTENSION_GLTF_EXTENSION: "WEBGI_materials_fragment_clipping_extension" = 'WEBGI_materials_fragment_clipping_extension'
PluginType: "FragmentClippingExtensionPlugin1" = 'FragmentClippingExtensionPlugin1'



Generated using TypeDoc