vec3 i = floor(v + dot(v, C.yyy));
v is a vector and add to a dot product of v and some other vector with y,y,y
the right part results in a scalar, how can a vector add to a scalar gives another vector?
"vec4 permute(vec4 x) {",
"return mod289(((x * 34.0) + 1.0) * x);",
"}",
Also this, x of type vector4 is expanded 34 times should result in another vector4, how on earth can you add one to a vector4?
Update:
Does he mean to add one to a vector piecewise?
Thanks
Jack
↧