Ignore:
Timestamp:
Sep 20, 2012, 12:23:59 AM (8 years ago)
Author:
sam
Message:

lolfx: use square brackets to indicate shader sections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/01_triangle.lolfx

    r1518 r1928  
    1 -- GLSL.Vert --
     1/*
     2 * Awesome triangle shader
     3 */
    24
     5technique Triangle
     6{
     7    pass FirstPass
     8    {
     9        vertexshader = vert;
     10        pixelshader = frag;
     11    }
     12}
     13
     14[vert.glsl]
    315#version 120
    416
     
    1022}
    1123
    12 -- GLSL.Frag --
    13 
     24[frag.glsl]
    1425#version 120
    1526
     
    1930}
    2031
    21 -- HLSL.Vert --
    22 
     32[vert.hlsl]
    2333void main(float2 in_Position : POSITION,
    2434          out float4 out_Position : POSITION)
     
    2737}
    2838
    29 -- HLSL.Frag --
    30 
     39[frag.hlsl]
    3140void main(out float4 out_FragColor : COLOR)
    3241{
Note: See TracChangeset for help on using the changeset viewer.