Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

CullResults.Cull(Camera,RenderLoop,CullResults)

매뉴얼로 전환

파라미터

camera Camera to cull for.
renderLoop Render loop the culling results will be used with.
results Culling results.

반환

void Flag indicating whether culling succeeded.

설명

Perform culling for a Camera.

This function is the same as calling GetCullingParameters for a camera, followed by a call to Cull that takes these culling parameters. Camera's transform, projection parameters and other flags that might affect culling are used.

Cull returns false if camera is invalid to render (empty viewport rectangle, invalid clip plane setup etc.).

Culling results are bound to a RenderLoop they will be used with; memory used by culling results is released once the render loop is finished.

See Also: CullResults, RenderLoop.


파라미터

parameters Parameters for culling.
renderLoop Render loop the culling results will be used with.

반환

void Culling results.

설명

Perform culling with custom CullingParameters.