gpujs / gpujs/gpu.js

using GLSL vec2 and vec3 types and their accelerated functions

Open
#657 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.5k
Forks
663
PR merge metrics
No merged PRs in 30d

Description

Is there a way to use vector types, accelerated functions and basic operators that are usually provided by GLSL ?

Right now I'm recoding my own functions to calculate distances between points, to calculate vector magnitudes, and each time I want to divide a vector by a scalar, I have to divide the x, y and z component individually.

Is there something that I'm missing ?

Some issues mention that this support has been added but I can not find anything about it in the doc, are there any examples ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.