README.txt
author Ryan C. Gordon <icculus@icculus.org>
Wed, 18 Apr 2012 00:19:32 -0400
changeset 1095 bc3d2c6e06cf
parent 471 61f87c72e447
child 1189 9aaae21251bc
permissions -rw-r--r--
glsl: Implemented most of the missing srcmods. Reread the GLSL spec, and it turns out that "vec3(x,y,z) - 3.0" is legal syntactic sugar: the compiler knows to subtract 3.0 from each of the three components in that vec3. This made this simpler than having to tapdance to generate correct constant vectors ourselves, and it's easier to read.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
471
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
To use this in your project:
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
- Add mojoshader*.c and mojoshader*.h to your project.
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
- Compile mojoshader*.c
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
- If you don't have a C99-compliant compiler, like Microsoft Visual Studio,
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
  you'll need to compile the .c files as C++ to get them to build.
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
- If you don't have cmake to generate mojoshader_version.h, you can either
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
  add a blank file with that name, or add MOJOSHADER_NO_VERSION_INCLUDE to
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
  your preprocessor definitions.
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
// end of README.txt ...
61f87c72e447 Added a really basic README.txt ...
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12