-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Support inline method in geometries ( EJ: toNonIndexed , setFromPoints) #230
Comments
@JaimeTorrealba the core is different than <BufferGeometry :to-non-indexed="callback" /> Another solution would be to pass a template ref to the buffer geometry <script lang="ts">
const bufferRef = shallowRef()
watchEffect(() => bufferRef.value.toNonIndexed())
</script>
<BufferGeometry ref="bufferRef" /> |
I left you the difference with and without using toNonIndexed() method, this is using for creating some interesting effect like If the geometries are indexed, the effect just don't work properly (also particles effects to) The main thing is that if I try to accomplish this with tresJs prop toNonIndexed, the geometry is still indexed |
@JaimeTorrealba should this be optional or mandator? And couldn't this method be called using templateRefs? |
As we discuss methods inline like
So we have to create on the script tag. Which is not ideal |
Is your feature request related to a problem? Please describe.
Currently, the toNonIndexed method
doesn't work
Describe the solution you'd like
I would like to manipulate the vertex by nonIndexed geometries
Suggested solution
add a new prop to all geometries
Ej:
Additional context
This is useful is you want to manipulate the vertex individually, in the vertex shader
The text was updated successfully, but these errors were encountered: