View Full Version : How this was supposed to work?

09-14-2016, 10:51 PM
float sum = 0;
float squiggly = clamp(sum * (vec3(1, 1, 1) - vec3(0, 0.2, 0.6)), 0, 1);

How this was supposed to work?
Author of this code claims that he can run it successfully, but when I trying to run this code, I get this:

error C7623: implicit narrowing of type from "vec3" to "float"

Please, help me understand what author was having in mind or maybe this will work in earlier version of something?