PDA

View Full Version : How o write glsl remark?



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

Dark Photon
03-14-2015, 08: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.

reader1
03-14-2015, 11: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 .