View Full Version : How o write glsl remark?

03-14-2015, 07:13 PM
Does it like c/c++ to remark its statement followed with symbol " // ? or ? /*...*/ "?

Dark Photon
03-14-2015, 07:35 PM
Rather than give you a fish, I'll teach you.

Go here:

* http://www.opengl.org/registry

Specifically, look at the "GLSL Specification":

* https://www.opengl.org/registry/doc/GLSLangSpec.4.50.pdf

Search for "Comment". Then click on the hot section link with that name that comes up in the Table of Contents.

03-14-2015, 10:51 PM
omments are delimited by /* and */, or by // and a new line. Totlally same as that in C. just a word." same".
Fishing is good than giving a fish, but need too much time.
thank u .