search
/
·
Intro
expand_more
Guides
·
Getting started
·
WebGPU canvas
·
Drawing and animation
·
Scene geometry
·
2D and 3D plot
·
Data-driven geometry
·
Live vs React
·
Memoization
·
WGSL Shaders
·
Renderers and Passes
·
Layout and UI
·
Background
·
Roadmap
·
Contributing
Reference
expand_more
Components
chevron_right
@use-gpu/gltf
chevron_right
@use-gpu/inspect
chevron_right
@use-gpu/inspect-gpu
chevron_right
@use-gpu/layout
chevron_right
@use-gpu/map
chevron_right
@use-gpu/plot
chevron_right
@use-gpu/present
chevron_right
@use-gpu/react
chevron_right
@use-gpu/scene
chevron_right
@use-gpu/voxel
chevron_right
@use-gpu/webgpu
expand_more
@use-gpu/workbench
widgets
AABBHelper
widgets
Animate
widgets
ArrayData
widgets
ArrowLayer
widgets
ArrowSegments
widgets
Await
widgets
AxisHelper
widgets
BasicMaterial
widgets
ColorPass
widgets
CompositeData
widgets
CompositeGeometryData
widgets
Compute
widgets
ComputeBuffer
widgets
ComputePass
widgets
Cursor
widgets
CursorProvider
widgets
Data
widgets
DataShader
widgets
DebugAtlas
widgets
DebugAtlasShape
widgets
DebugLineHelper
widgets
DebugProvider
widgets
DebugRender
widgets
DeferredPass
widgets
DeferredRenderer
widgets
DeferredShadedRender
widgets
DeferredSolidRender
widgets
DeferredUIRender
widgets
DirectionalLight
widgets
DispatchPass
widgets
DualContourLayer
widgets
Environment
widgets
EventProvider
widgets
FaceLayer
widgets
FaceSegments
widgets
Fetch
widgets
Flat
widgets
FontLoader
widgets
FontProvider
widgets
ForwardRenderer
widgets
FPSControls
widgets
FullScreen
widgets
GBuffer
widgets
GeometryData
widgets
GlyphSource
widgets
ImageCubeTexture
widgets
ImageTexture
widgets
InstanceData
widgets
InterleavedData
widgets
Iterate
widgets
Kernel
widgets
LabelLayer
widgets
LightData
widgets
LightMaterial
widgets
LightRender
widgets
LinearRGB
widgets
LineLayer
widgets
LineSegments
widgets
Loop
widgets
Memo2
widgets
OrbitCamera
widgets
OrbitControls
widgets
PanControls
widgets
PanoramaMap
widgets
Pass
widgets
PBRMaterial
widgets
Pick
widgets
PickingBuffer
widgets
PickingPass
widgets
PickingRender
widgets
PickingTarget
widgets
PointHelper
widgets
PointLayer
widgets
PointLight
widgets
PrefilteredEnvMap
widgets
Queue
widgets
RawArrows
widgets
RawData
widgets
RawFaces
widgets
RawFullScreen
widgets
RawLabels
widgets
RawLines
widgets
RawQuads
widgets
RawTexture
widgets
Readback
widgets
ReadbackPass
widgets
RenderTarget
widgets
RenderToTexture
widgets
Router
widgets
Routes
widgets
SampledData
widgets
Scissor
widgets
SDFFontProvider
widgets
ShadedRender
widgets
ShaderFlatMaterial
widgets
ShaderLitMaterial
widgets
ShadowBuffer
widgets
ShadowPass
widgets
ShadowRender
widgets
SolidRender
widgets
Stage
widgets
StructData
widgets
SurfaceLayer
widgets
Suspense
widgets
TextureBuffer
widgets
TextureShader
widgets
TickLayer
widgets
UIRectangles
widgets
UIRender
widgets
VectorHelper
widgets
ViewProvider
widgets
Virtual
widgets
VirtualLayers
phishing
useAnimationFrame
phishing
useApplyTransform
phishing
useArrowSegments
phishing
useBoundShader
phishing
useBoundSource
phishing
useBufferedSize
phishing
useCombinedTransform
phishing
useComputeContext
phishing
useComputePipeline
phishing
useComputePipelineAsync
phishing
useDataBinding
phishing
useDataLength
phishing
useDataSize
phishing
useDebugContext
phishing
useDerivedSource
phishing
useDerivedState
phishing
useDeviceContext
phishing
useEnvironmentContext
phishing
useFeedbackContext
phishing
useFontContext
phishing
useFontFamily
phishing
useFontHeight
phishing
useFontText
phishing
useForceUpdate
phishing
useFrustumCuller
phishing
useInspectable
phishing
useInspectHoverable
phishing
useInspectorSelect
phishing
useLambdaSource
phishing
useLayoutContext
phishing
useLightContext
phishing
useLightDraw
phishing
useLinkedShader
phishing
useMaskContext
phishing
useMaterialContext
phishing
useMatrixContext
phishing
useMemoKey
phishing
useNativeColor
phishing
useNativeColorTexture
phishing
useNoAnimationFrame
phishing
useNoApplyTransform
phishing
useNoBoundShader
phishing
useNoBoundSource
phishing
useNoBufferedSize
phishing
useNoComputeContext
phishing
useNoDerivedSource
phishing
useNoDeviceContext
phishing
useNoFeedbackContext
phishing
useNoFrustumCuller
phishing
useNoMatrixContext
phishing
useNoPassContext
phishing
useNoPerFrame
phishing
useNoPickingContext
phishing
useNoPipelineLayout
phishing
useNoRawSource
phishing
useNoRenderContext
phishing
useNoRenderPipeline
phishing
useNoRenderPipelineAsync
phishing
useNoScissorContext
phishing
useNoShaderRef
phishing
useNoSuspenseContext
phishing
useNoTimeContext
phishing
useNoTransformContext
phishing
useNoViewContext
phishing
usePassContext
phishing
usePerFrame
phishing
usePickingContext
phishing
usePickingShader
phishing
usePipelineLayout
phishing
usePipelineOptions
phishing
useRawSource
phishing
useRenderContext
phishing
useRenderPipeline
phishing
useRenderPipelineAsync
phishing
useRouterContext
phishing
useScissorContext
phishing
useScratchSource
phishing
useSDFFontContext
phishing
useSDFGlyphData
phishing
useShaderRef
phishing
useShaderRefs
phishing
useSuspenseContext
phishing
useTimeContext
phishing
useTransformContext
phishing
useViewContext
east
adjustSize
east
AmbientLight
east
dispatch
east
Dispatch
east
DomeLight
east
drawCall
east
DrawCall
east
drawToPass
east
emitGlyphSpans
east
forMeshTriangles
east
getAlignmentAnchor
east
getAlignmentSpacing
east
getBoundShader
east
getBoundSource
east
getDerivedSource
east
getDrawOrder
east
getLambdaSource
east
getLine
east
getNativeColor
east
getRenderPassDescriptor
east
getShaderLog
east
getUint16
east
getUint8
east
getWireframe
east
getWireframeIndirect
east
LightDraw
east
makeAABBGeometry
east
makeArrowGeometry
east
makeBasedURL
east
makeBoxGeometry
east
makeBrowserHistory
east
makeInlineCursor
east
makePlaneGeometry
east
makeRelativeURL
east
makeSphereGeometry
east
parseHDR
east
parsePointShape
east
parseRGBM16
east
pathSpecToRegexp
east
Raw
east
reverseZ
east
setShaderLog
east
transformNormals
east
transformPositions
input
ComputeContext
input
DebugContext
input
DeviceContext
input
EnvironmentContext
input
EventContext
input
FeedbackContext
input
FontContext
input
FrameContext
input
KeyboardContext
input
LayoutContext
input
LightContext
input
LoopContext
input
MaskContext
input
MaterialContext
input
MatrixContext
input
MouseContext
input
PassContext
input
PickingContext
input
RenderContext
input
RouteContext
input
RouterContext
input
ScissorContext
input
SDFFontContext
input
SuspenseContext
input
TimeContext
input
TransformContext
input
ViewContext
input
WheelContext
data_object
AMBIENT_LIGHT
data_object
CursorState
data_object
DEBUG_DEFAULTS
data_object
DEFAULT_LIGHT_CONTEXT
data_object
DEFAULT_MATERIAL_CONTEXT
data_object
DEFAULT_TRANSFORM
data_object
DIRECTIONAL_LIGHT
data_object
DOME_LIGHT
data_object
FULLSCREEN_DEFS
data_object
FULLSCREEN_PIPELINE
data_object
FULLSCREEN_STENCIL_PIPELINE
data_object
GEOMETRY_DEFS
data_object
GEOMETRY_PIPELINE
data_object
GEOMETRY_STENCIL_PIPELINE
data_object
LightCapture
data_object
POINT_LIGHT
data_object
SHADOW_FORMAT
data_object
SHADOW_PAGE
data_object
STENCIL_PIPELINE
title
AggregatedCalls
title
Alignment
title
AmbientLightProps
title
BoundLight
title
CommandToBuffer
title
ComputeContextProps
title
ComputeCounter
title
ComputeToPass
title
Culler
title
DebugContextProps
title
DebugHelper
title
DispatchProps
title
DomeLightProps
title
DrawCallProps
title
Ease
title
EnvironmentContextProps
title
EventContextProps
title
FaceAggregate
title
FetchAPIOptions
title
FontSource
title
FrameContextProps
title
Inspector
title
KeyboardContextProps
title
KeyboardEventState
title
KeyboardState
title
Keyframe
title
LayerAggregate
title
LayerAggregator
title
LayerType
title
Light
title
LightContextProps
title
LightEnv
title
LightKindProps
title
LineAggregate
title
LiveReturner
title
LoopRef
title
MaskContextProps
title
MaterialContextProps
title
MatrixContextProps
title
MouseContextProps
title
MouseEventState
title
MouseState
title
PassContextProps
title
PickingContextProps
title
PickingProps
title
PickingSource
title
PickState
title
PipelineOptions
title
PointAggregate
title
PointerLockAPI
title
PointShape
title
QueryParams
title
Renderable
title
RenderComponents
title
RenderCounter
title
RenderToPass
title
Route
title
RouterAPI
title
RouterLink
title
RouterState
title
RouteState
title
ScissorContextProps
title
SDFFontContextProps
title
SDFGlyphData
title
ShadowMapLike
title
ShadowMapProps
title
SphereGeometryProps
title
TimeContextProps
title
Tracks
title
TransformContextProps
title
UseLight
title
ViewContextProps
title
VirtualDraw
title
WheelContextProps
title
WheelEventState
title
WheelState
chevron_right
Libraries
chevron_right
Live
chevron_right
Loaders
chevron_right
Development

phishing Hook – useFrustumCuller

const useFrustumCuller: (
  positionRef: Ref< | Float32Array | number[] | [number, number, number] | [number, number, number, number]>,
  frustumRef: Ref<vec4[]>,
) => (center: vec3, radius: number) => number | false

Source

packages / workbench / src / hooks / useFrustumCuller.ts

Sections
Source  
menu
format_list_numbered