TextureState on SetCustomParameter for Shader

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
xabila
Goblin
Posts: 225
Joined: Mon Jun 05, 2006 9:40 am
Location: rennes [FR]

TextureState on SetCustomParameter for Shader

Post by xabila »

I know, allready two posts on this point, but i don't understand why we can't use TextureState (wich is a sampler2d) on the "SetCustomParameter" for fragment shader.

For example, i made a glow effect ( inspiring from the Stencil glow demo) for the ninja, in 2 pass and without copying the entity and witout using the stencil.

I'm sure we can make lots of cool shader effects with this feature ;)
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Not sure exactly what you're proposing. If it's the ability to switch textures per renderable, I don't support it. Switching textures is expensive, that's why we sort on them when grouping passes together.
User avatar
xabila
Goblin
Posts: 225
Joined: Mon Jun 05, 2006 9:40 am
Location: rennes [FR]

Post by xabila »

hum, yes, so i'm gonna try something else ...
thanks
Post Reply