Support for Cg's glslX and hlslX profiles added

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
CABAListic
OGRE Retired Team Member
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

Post by CABAListic »

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.
User avatar
sparkprime
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

Post by sparkprime »

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.
User avatar
sparkprime
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

Post by sparkprime »

It seems the same for me, I'll have to get you that test case (or try and debug it myself)