-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Improve WebGLRenderLists.d.ts #16083
Conversation
): void; | ||
unshift( | ||
object: Object3D, | ||
geometry: Geometry | BufferGeometry, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type of the geometry is always BufferGeometry
. This is ensures by WebGLObjects
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also whoa
three.js/src/renderers/WebGLRenderer.js
Line 1294 in 0d18a75
currentRenderList.push( object, null, object.material, groupOrder, _vector3.z, null ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I addressed both, thank you to point out this 🙏
Thanks! |
related to #16062
groupOrder
parameter ofWebGLRenderLists.push
WebGLRenderLists.transparent
WebGLRenderLists.unshift
geometry
now only acceptsBufferGeometry
geometry
andgroup
as nullable