#define STRINGIFY(A) #A const char *particleVS = STRINGIFY( uniform float pointRadius; // point size in world space \n uniform float pointScale; // scale to calculate size in pixels \n uniform vec4 eyePos; \n void main() \n { \n vec4 wpos = vec4(gl_Vertex.xyz, 1.0); \n gl_Position = gl_ModelViewProjectionMatrix * wpos; \n // calculate window-space point size \n vec4 eyeSpacePos = gl_ModelViewMatrix * wpos; \n float dist = length(eyeSpacePos.xyz); \n gl_PointSize = pointRadius * (pointScale / dist); \n gl_TexCoord[0] = gl_MultiTexCoord0; // sprite texcoord \n gl_TexCoord[1] = eyeSpacePos; \n gl_FrontColor = gl_Color; \n } \n );
const char* strData = "<all your text here>";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)