patriciogonzalezvivo / thebookofshaders

Step-by-step guide through the abstract and complex universe of Fragment Shaders.
http://TheBookOfShaders.com
Other
5.96k stars 677 forks source link

fragColor is deprecated in favor of outColor #373

Closed aaronzshey closed 2 years ago

aaronzshey commented 2 years ago

https://stackoverflow.com/questions/51459596/using-gl-fragcolor-vs-out-vec4-color

Because of this, pasting code from this book into SHADERed results in an error. Should this be considered a high or low priority problem?

patriciogonzalezvivo commented 2 years ago

It's not this book fault. Seams shadered is using glsl 400 or higher.

aaronzshey commented 2 years ago

Hm...... is there a particular reason for the book using glsl <400?

patriciogonzalezvivo commented 2 years ago

WebGL 1.0 don't support it