Results 1 to 3 of 3

Thread: How o write glsl remark?

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296

    Post How o write glsl remark?

    Does it like c/c++ to remark its statement followed with symbol " // ? or ? /*...*/ "?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,660
    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/...gSpec.4.50.pdf

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

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    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 .

Similar Threads

  1. can i write glsl code in .cg/.cgfx file?
    By yaoyansi in forum OpenGL: GLSL
    Replies: 2
    Last Post: 02-26-2010, 06:54 PM
  2. how to write this in GLSL?
    By fazekaim in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-29-2005, 10:05 AM
  3. VAR: Write sequentially?
    By Jan in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-17-2003, 10:03 AM
  4. had to write that
    By Julien Cayzac in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-25-2002, 10:21 AM
  5. write variables
    By Striker47 in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 05-30-2001, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean