Such as gl_FragColor = v1 * v2, i can’t really get how does it multiplies and it seems that the reference give the explanation of vector multiply matrix.
ps: The type of v1 and v2 are both vec4.
Such as gl_FragColor = v1 * v2 , i can’t really get how does
Share
The
*operator works component-wise for vectors likevec4.The GLSL Language Specification says under section 5.10 Vector and Matrix Operations: