haxiomic / vector-math

Shader-math in haxe: library for GLSL vector operations, complete with swizzles and all
MIT License
39 stars 7 forks source link

Uncaught exception Unsupported swizzle read ".a" #13

Closed rainyt closed 3 years ago

rainyt commented 3 years ago
image

Hi, This access is allowed in GLSL, but it is not.

rainyt commented 3 years ago
color.r += 0.3;
color.b += sin(time / 60);        

There is also a problem with this.

haxiomic commented 3 years ago

Merged your PR, thank you :)