Thanks to Gabor Fekete for helping finding the issue. Was caused by uninitialized variable. Also took the oportunity to use comp swizzling instead of multiple assignment.
Thanks to Gabor Fekete for helping finding the issue. Was caused by uninitialized variable. Also took the oportunity to use comp swizzling instead of multiple assignment.