0

When switching to GLSL 300, met the following error

The answers that were provided in the linked post above makes sense. My question here is how do you go about having the user choose a color (from an HTML list) to change the objects color? I am looking for tips on how to pass the vec4(1.0,0.0,0.0,1.0) from my .js switch statement (just example) to the fragment-shader in the HTML to update the color. Any tips would be great.

I have resolved my issue of passing the color from my .js to the HTML shader section. I found this post which was useful: How can I fix this attribute error in WebGL?

Thanks

s73c
  • 3
  • 4

0 Answers0