diff options
author | James Canete <use.less01@gmail.com> | 2012-10-30 03:00:46 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:23:54 +0000 |
commit | 9082550b670555cf8b4725c8f4f2cba09f5aa449 (patch) | |
tree | a0e82b3095f0bfcc5d1a684ac3a6c23c351fcef6 /src/rend2/tr_glsl.c | |
parent | 3d7f20cee1d1470b3e5981507f4d3fbcc0295283 (diff) |
Fix some non-ASCII characters. Patch originally by /dev/humancontroller, modified by me.
Diffstat (limited to 'src/rend2/tr_glsl.c')
-rw-r--r-- | src/rend2/tr_glsl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rend2/tr_glsl.c b/src/rend2/tr_glsl.c index 823fce39..f9d4c3ed 100644 --- a/src/rend2/tr_glsl.c +++ b/src/rend2/tr_glsl.c @@ -731,7 +731,7 @@ static const char *fallbackShadowmaskShader_fp = "\r\n\r\nfloat random( const vec2 p )\r\n{\r\n // We need irrationals for p" "seudo randomness.\r\n // Most (all?) known transcendental numbers will (ge" "nerally) work.\r\n const vec2 r = vec2(\r\n 23.1406926327792690, // e^" -"pi (Gelfond's constant)\r\n 2.6651441426902251); // 2^sqrt(2) (Gelfond–" +"pi (Gelfond's constant)\r\n 2.6651441426902251); // 2^sqrt(2) (Gelfond-" "Schneider constant)\r\n //return fract( cos( mod( 123456789., 1e-7 + 256. " "* dot(p,r) ) ) );\r\n return mod( 123456789., 1e-7 + 256. * dot(p,r) ); " "\r\n}\r\n\r\nfloat PCF(const sampler2D shadowmap, const vec2 st, const floa" @@ -798,7 +798,7 @@ static const char *fallbackSsaoShader_fp = "\r\n // We need irrationals for pseudo randomness.\r\n // Most (all?) kno" "wn transcendental numbers will (generally) work.\r\n const vec2 r = vec2(" "\r\n 23.1406926327792690, // e^pi (Gelfond's constant)\r\n 2.665144" -"1426902251); // 2^sqrt(2) (Gelfond–Schneider constant)\r\n //return fract(" +"1426902251); // 2^sqrt(2) (Gelfond-Schneider constant)\r\n //return fract(" " cos( mod( 123456789., 1e-7 + 256. * dot(p,r) ) ) );\r\n return mod( 12345" "6789., 1e-7 + 256. * dot(p,r) ); \r\n}\r\n\r\nmat2 randomRotation( const v" "ec2 p )\r\n{\r\n\tfloat r = random(p);\r\n\tfloat sinr = sin(r);\r\n\tfloat" |