Re: GL_ARB_FRAGMENT_PROGRAM vs CG_PROFILE_FP30
Rhadamés Carmona <[email protected]>
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
Wow... Thanks Pat and Stephen... I am gonna test it now. I did not think about constructor... THX RIX ----- Original Message ----- To: "Multiple recipients of list OPENGL-GAMEDEV-L" <[email protected]> Sent: Tuesday, March 15, 2005 4:51 PM > Pat Brown (OpenGL) wrote: >> I think you need to use a constructor to build your vector: >> >> float2 dependcoor = float2(fc,bc); > > That's gotta be it. Without the constructor, (fc,bc) is just > a C-style 'comma operator' which in this context will discard > 'fc' and use 'bc'. Since fc is unused, the compiler optimised > away the texture read that generated it - so the code it created > (just two texture lookups) is correct. > > See the note in my signature below... > > ----------------------------------------------------------------------- > The second law of Frisbee throwing states: "Never precede any maneuver > by a comment more predictive than "Watch this!"...it turns out that > this also applies to writing Fragment Shaders. > ----------------------------------------------------------------------- > Steve Baker (817)619-2657 (Vox/Vox-Mail) > L3Com/Link Simulation & Training (817)619-2466 (Fax) > Work: [email protected] http://www.link.com > Home: [email protected] http://www.sjbaker.org > > ----- > FAQ and OpenGL Resources at: > http://www.geocities.com/SiliconValley/Hills/9956/OpenGL > > -- > Author: Stephen J Baker > INET: [email protected] > > Fat City Hosting, San Diego, California -- http://www.fatcity.com > --------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an E-Mail message > to: [email protected] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). ----- FAQ and OpenGL Resources at: http://www.geocities.com/SiliconValley/Hills/9956/OpenGL -- Author: =?iso-8859-1?Q?Rhadam=E9s_Carmona?= INET: [email protected] Fat City Hosting, San Diego, California -- http://www.fatcity.com --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [email protected] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).