[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] frac or fract?
- To: public webgl <public_webgl@khronos.org>
- Subject: [Public WebGL] frac or fract?
- From: Steve Baker <steve@sjbaker.org>
- Date: Fri, 29 Oct 2010 06:34:13 -0500
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=sjbaker.org; h=message-id :date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=sjbaker.org; bh=C48K2BRa5NyFTHXaf8g SBCrAN7Q=; b=FfdNWeVXxVHpnG3XbCV2EZ3jN3YaIwb9Cg0LdLsY5r0jyvYCMcT BBY+svfjk9C9PEew7yL/ziiz4ELu3WvHK2UTwcZX+6q7AfzVXXCDAM6aDtx4EQHz 2Y+WXO4DuqDNBRUxTtk2xYN9mmeZq94zAORm2TVioD74We3ThCIuf860=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=sjbaker.org; h=message-id:date :from:mime-version:to:subject:content-type: content-transfer-encoding; q=dns; s=sjbaker.org; b=OrBBpmTR/Bgfs nZiVuXplBMxC6yD3aPbVny4kHbS+jNBBODvc+dXvoft0x5he84aRV95mWQLQCw8M PexlZo2XXQpOysPwMC8GM9ScKA50REuQDyrL82vuDSyOHQQeawqWr9KO1dkzbZgE 7UalxOLj1JlwV0jew8Pdnnsf2CZimA=
- Sender: owner-public_webgl@khronos.org
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5
Under Minefield/Linux 64bit with nVidia hardware, GLSL happily accepts
"frac(...)" instead of "fract(...)" for returning the fractional part of
a number. I guess that's because nVidia's GLSL compiler is really its
Cg compiler with a different front-end or something. ("frac(...)" is
the correct name for this function in Cg).
It's kinda annoying because (having spent far too long programming in
Cg) I find it hard to break the habit of typing "frac" - and since I
habitually develop under Linux, I keep finding that my code breaks when
I run it under Windows.
Shouldn't the validator (which I have turned on BTW) have rejected
"frac" as an undefined function?
Meanwhile I'm resorting to:
#define frac fract
:-)
-- Steve
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: