stackgl / shader-school

:mortar_board: A workshopper for GLSL shaders and graphics programming
Other
4.28k stars 252 forks source link

Intro 2- Qualifiers and Built-Ins #123

Closed pm0355 closed 9 years ago

pm0355 commented 9 years ago

So I hit a roadblock in coding the second exercise. The variables are not constant so they can update, the math is alright I think, but I am still not getting a clear on Qualifiers and Built-Ins. Here is my code,

screen shot 2015-03-14 at 9 11 40 pm

any help would be super appreciated.

mikolalysenko commented 9 years ago

you need to declare opposite and adjacent as out type

pm0355 commented 9 years ago

thanks, got it now!