immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
1k stars 483 forks source link

Modifying attributes #136

Open luciedefraiteur opened 2 years ago

luciedefraiteur commented 2 years ago

Hey, i try to create a custom shader and a custom primitivestream, what i want is to add attributes and to modify size of POSITION, to be a vector2,

the problem is simply modifying the size of POSITION, it render the wrong ammount of triangles, attributes seems messed up,
steps:

but it fails to render all the triangles i want to render, and i looked almost everywhere but i dont find why it doesnt work and how to fix it, do you have any clue?

Also, do you think simply adding custom attributes here and in the shader will work? Or how to do it correctly?