0

The following line in my fragment-shader…

gl_FragColor.r = curPosition.x;

raises warning C7011: implicit cast from "int" to "float" but curPosition is defined as vec3 (so it is a float) and gl_FragColor.r is … well … a float. so… what's the problem?

rhavin
  • 1,512
  • 1
  • 12
  • 33

0 Answers0