Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow null in WebGLRenderer's setOpaqueSort & setTransparentSort #1302

Open
iv-rid opened this issue Oct 23, 2024 · 0 comments
Open

Allow null in WebGLRenderer's setOpaqueSort & setTransparentSort #1302

iv-rid opened this issue Oct 23, 2024 · 0 comments

Comments

@iv-rid
Copy link

iv-rid commented Oct 23, 2024

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant