Changeset 31282 in project


Ignore:
Timestamp:
08/24/14 18:49:43 (7 years ago)
Author:
acharlton
Message:

glls wiki: Update to 0.5.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/glls

    r31213 r31282  
    123123
    124124====== Variables and naming
    125 Symbols in glls are transformed from a Scheme style into the C style used in the GLSL. Letters after dashes are uppercased (i.e., symbols become camelCased). Symbols prefixed by {{gl:}} in glls become prefixed by {{gl_}} in GLSL.
     125Symbols in glls are transformed from a Scheme style into the C style used in the GLSL. Letters after dashes are uppercased (i.e., symbols become camelCased). Symbols prefixed by {{gl:}} in glls become prefixed by {{gl_}} in GLSL. {{#f}} and {{#t}} may be used instead of {{false}} and {{true}}.
    126126
    127127For programmer-defined variables this has little consequence. The importance of learning the renaming conventions comes when you want to call GLSL functions or variables. Examples of mappings between glls and GLSL names are: {{gl:position}} → {{gl_Position}}, {{float-bits-to-uint}} → {{floatBitsToUint}}, {{shadow-2d-proj-lod}} → {{shadow2DProjLod}}, and {{sampler-2d-ms-array}} → {{sampler2DMSArray}}. Two special cases are {{emit-vertex}} and {{end-primitive}} which are translated into the functions {{EmitVertex}} and {{EndPrimitive}} respectively (which, for some reason, go against the usual GLSL naming conventions).
     
    367367=== Version history
    368368
    369 ==== Version 0.5.0
     369==== Version 0.5.1
     37024 August 2014
     371
     372* Allow {{#t}}, {{#f}}
     373* Fix swizzle
     374
     375'''Version 0.5.0'''
     376
    37037714 August 2014
    371378
Note: See TracChangeset for help on using the changeset viewer.