Results 1 to 2 of 2

Thread: Reference for script-type: x-shader

  1. #1
    Junior Member
    Join Date
    Aug 2011

    Reference for script-type: x-shader

    I am seraching for a reference or specification for the type of a shader. Many examples, like Learning WebGL or Mozilla's "Getting started with WebGL" are useing shaders likte this:
    Code :
    <script id="shader-fs" type="x-shader/x-fragment">  
    But I cant find a declaration of the type-attribute. Don't understand me wrong, I do know the difference between a fragment- and a vertex-shader, but I dont understand why I should define the type in the script-tag. I can not find anything about that in the HTML-Sec nor the WebGL-Spec. Since I am writing my diploma thesis about the topic "WebGL", I have to declare what is going on there.. Can anybody help me?
    (excuse my english skills)

  2. #2
    Junior Member
    Join Date
    Sep 2011

    Re: Reference for script-type: x-shader

    It isn't specified anywhere; it's just convention and you can put it your own type.
    But I suggest you to load shaders from external files.

Similar Threads

  1. Should clGet*Info increment the reference to the cl_* type?
    By coleb in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 6
    Last Post: 12-03-2009, 02:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts