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

Improve WebGLRenderLists.d.ts #16083

Merged
merged 7 commits into from
Mar 29, 2019
Merged

Improve WebGLRenderLists.d.ts #16083

merged 7 commits into from
Mar 29, 2019

Conversation

0b5vr
Copy link
Collaborator

@0b5vr 0b5vr commented Mar 28, 2019

related to #16062

  • Add definition of groupOrder parameter of WebGLRenderLists.push
  • Fix type definition of WebGLRenderLists.transparent
  • Add definition of WebGLRenderLists.unshift
  • geometry now only accepts BufferGeometry
  • Mark geometry and group as nullable

@0b5vr 0b5vr changed the title WebGLRenderLists.d.ts: WebGLRenderLists.push forgot groupOrder Improve WebGLRenderLists.d.ts Mar 28, 2019
): void;
unshift(
object: Object3D,
geometry: Geometry | BufferGeometry,
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also whoa

currentRenderList.push( object, null, object.material, groupOrder, _vector3.z, null );

Copy link
Collaborator Author

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 🙏

@mrdoob mrdoob added this to the r104 milestone Mar 29, 2019
@mrdoob mrdoob merged commit 072cf7b into mrdoob:dev Mar 29, 2019
@mrdoob
Copy link
Owner

mrdoob commented Mar 29, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants