RodenLuo / cpp_questions

0 stars 0 forks source link

GL: is it true that we cannot use `layout (location = 2) in vec2 circle_radii_;` in fragment shader? #11

Open RodenLuo opened 3 years ago

RodenLuo commented 3 years ago

I know we can pass the layout (location = 2) in vec2 circle_radii_; from the vertex shader to fragment shader using an intermediate variable. But I have not succeeded in passing the layout variable directly to fragment shader.