[X3D-Public] Shader programming and URLs in X3D

John A. Stewart alex.stewart at crc.ca
Thu May 14 10:28:25 PDT 2009


Hi Johannes;


> The rule and code is very simple: Single line is URL and external.  
> (What a "single line"
> is depends on the encoding) and multiple lines are shader code in  
> the x3d file.

So, is the following code "valid" or not?

ShaderProgram {
      type "VERTEX"
      url "void main() {   gl_Position = ftransform(); }"
      .....


-----------------------------------------------------------
John A. Stewart
Team Leader: Networked Virtual Reality
alex.stewart at crc.ca

Network Systems and Technologies -
         Systemes et technologies des reseaux
Communications Research Centre Canada  |
          Centre de recherches sur les communications Canada

3701 Carling Ave.  |  3701, avenue Carling
PO Box 11490, Station H  |  CP 11490, succursale H
          Ottawa ON K2H 8S2   |  Ottawa (Ontario) K2H 8S2

http://www.crc.ca








More information about the X3D-Public mailing list