<Sampler/>
's API not clear! ( Sampler's count and instancedMesh's count )
#1139
Labels
bug
Something isn't working
three
version: 0.146.0@react-three/fiber
version: 8.9.1@react-three/drei
version: 9.40.0node
version: 16.16.0yarn
version: 1.22.19Problem description:
count
prop for<Sampler/>
, thenumber of sample
will be equal to:instancedMesh
ifinstancedMeshCount <= 17
instancedMeshCount > 17
count
prop for<Sampler/>
, thenumber of sample
will be equal tomin( samplerCount, instancedMeshCount ) + 1
Relevant code:
Example below will only create 4 samples
codesandbox: https://codesandbox.io/s/sampler-behavior-vc57u6?file=/src/index.jsx
I wanted to update Sampler docs but I noticed this issue.
The text was updated successfully, but these errors were encountered: