three-ts-types icon indicating copy to clipboard operation
three-ts-types copied to clipboard

Allow null in WebGLRenderer's setOpaqueSort & setTransparentSort

Open iv-rid opened this issue 1 year ago • 0 comments

In WebGLRenderer, in both setOpaqueSort and setTransparentSort:

null is a valid value of the method argument. But null is missing in the type information.

/**
 * Sets the custom opaque sort function for the WebGLRenderLists. Pass null to use the default painterSortStable function.
 */
setOpaqueSort(method: (a: any, b: any) => number): void;

/**
 * Sets the custom transparent sort function for the WebGLRenderLists. Pass null to use the default reversePainterSortStable function.
 */
setTransparentSort(method: (a: any, b: any) => number): void;

iv-rid avatar Oct 23 '24 14:10 iv-rid