Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I also noticed that other program texts are getting assigned to variables (example "line_vert_src"). Could someone please describe what's going on?

These are fragments of code in "OpenGL ES Shading Language", passed to WebGL. See for instance [0] for a tutorial.

[0] https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/T...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: