We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This requires a custom reduction (assuming it works). Will be documented once tested as part of PRIMAGE.
The text was updated successfully, but these errors were encountered:
For the time being this on hold, there aren't current plans to add support for it to PythonAPI.
The C version is pretty simple (and hopefully obvious).
FLAMEGPU_CUSTOM_REDUCTION(glm_min, a, b) { return glm::min(a, b); } FLAMEGPU_CUSTOM_REDUCTION(glm_max, a, b) { return glm::max(a, b); } FLAMEGPU_HOST_FUNCTION(host_fn) { const glm::vec3 min_pos = FLAMEGPU->agent("agent").reduce<glm::vec3>("xyz", glm_min, glm::vec3(std::numeric_limits<float>().max())); const glm::vec3 max_pos = FLAMEGPU->agent("agent").reduce<glm::vec3>("xyz", glm_max, glm::vec3(-std::numeric_limits<float>().max())); }
Sorry, something went wrong.
Robadob
No branches or pull requests
This requires a custom reduction (assuming it works). Will be documented once tested as part of PRIMAGE.
The text was updated successfully, but these errors were encountered: