pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.45k stars 710 forks source link

Added extra types for instanced Attribute arrays. #2182

Open Archimagus opened 2 weeks ago

Archimagus commented 2 weeks ago

Added extra types for instanced attribute arrays. 'float' | 'int' | 'uint' | 'short' | 'ushort' | 'byte'

Why

resolves #2181

What

Adds an optional 'type' parameter to InstancedAttributeProps to allow specifying the data type, defaults to float to preserve backwards compatibility.

Checklist

vercel[bot] commented 2 weeks ago

@Archimagus is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

codesandbox-ci[bot] commented 2 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.