You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a shader that benefits from being able to pass values as an integer rather than a float.
I would like to be able to use Drei's Instances along with its InstancedAttribute to pass the data to the shader. however InstancedAttribute only creates a Float32Array which prevents the attribute from coming across properly.
Suggested implementation:
Add an optional parameter to the InstancedAttributeProps to specify an array type.
PR: #2182
The text was updated successfully, but these errors were encountered:
I have a shader that benefits from being able to pass values as an integer rather than a float.
I would like to be able to use Drei's
Instances
along with itsInstancedAttribute
to pass the data to the shader. howeverInstancedAttribute
only creates aFloat32Array
which prevents the attribute from coming across properly.Suggested implementation:
Add an optional parameter to the
InstancedAttributeProps
to specify an array type.PR: #2182
The text was updated successfully, but these errors were encountered: