Support for Cg's glslX and hlslX profiles added
-
- OGRE Retired Team Member
- Posts: 2903
- Joined: Thu Jan 18, 2007 2:48 pm
- x 58
Re: Support for Cg's glslX and hlslX profiles added
Alright, pushed the changes. It's now back to replacing the parameters in the source output directly, but doing it slightly more cleverly by taking care that all replacement positions are actually full identifiers and not part of a longer identifier. In my limited tests it seems to work, so when you can, please give it a try.
-
- Ogre Magi
- Posts: 1137
- Joined: Mon May 07, 2007 3:43 am
- Location: Ossining, New York
- x 13
Re: Support for Cg's glslX and hlslX profiles added
I think your approach is the least worst thing right now. Maybe a re-architecting of the whole shader framework is overdue? For 2.0 maybe 
I'll try it out when I get home.

I'll try it out when I get home.
-
- Ogre Magi
- Posts: 1137
- Joined: Mon May 07, 2007 3:43 am
- Location: Ossining, New York
- x 13
Re: Support for Cg's glslX and hlslX profiles added
It seems the same for me, I'll have to get you that test case (or try and debug it myself)