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

no length2 function in glsl #19

Open
quyse opened this issue Mar 26, 2016 · 0 comments
Open

no length2 function in glsl #19

quyse opened this issue Mar 26, 2016 · 0 comments
Assignees

Comments

@quyse
Copy link
Owner

quyse commented Mar 26, 2016

It's not great to just replace length2(x) with dot(x, x), as it would repeat the expression for x twice. Ideally it requires full-blown support for rewrite passes, in order to correctly define temporary variable for x.

@quyse quyse self-assigned this Mar 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant