Skip to content
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

Example index.html is using deprecated THREE js commands #6

Open
obecerra3 opened this issue Jul 19, 2020 · 0 comments
Open

Example index.html is using deprecated THREE js commands #6

obecerra3 opened this issue Jul 19, 2020 · 0 comments

Comments

@obecerra3
Copy link

        var verts_ba = new THREE.BufferAttribute(debugVertices, 3).setUsage(THREE.DynamicDrawUsage);
        var colors_ba = new THREE.BufferAttribute(debugColors, 3).setUsage(THREE.DynamicDrawUsage);
        Debug.debug_geometry.setAttribute("position", verts_ba);
        Debug.debug_geometry.setAttribute("color", colors_ba);

Hey thanks a lot for implementing this debug drawer I think its amazing! For the example over how to implement the drawer the current implementation uses addAttribute and setDynamic(true) which has been deprecated by threejs. This is a potential update/ fix that uses setAttribute and setUsage(THREE.DynamicDrawUsage) instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant