Declare shader in .material [solved]

Problems building or running the engine, queries about how to use features etc.
Post Reply
JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

Declare shader in .material [solved]

Post by JDX_John »

I have a very simple shader and I wondered if it's possible to declare it totally inside a pass{} without using a .program or .cg/hlsl/etc file at all?
I think I can declare the vertex_program inside the pass rather than use vertex_program_ref, but can I put the source in directly too?
Last edited by JDX_John on Mon Dec 03, 2012 6:09 pm, edited 1 time in total.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: Declare shader in .material

Post by Wolfmanfx »

No.
JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

Re: Declare shader in .material [solved]

Post by JDX_John »

Thanks for clearing that up!
Post Reply