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?
Declare shader in .material [solved]
-
- Gnome
- Posts: 397
- Joined: Sat Nov 08, 2008 1:59 pm
- x 2
Declare shader in .material [solved]
Last edited by JDX_John on Mon Dec 03, 2012 6:09 pm, edited 1 time in total.
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
-
- Gnome
- Posts: 397
- Joined: Sat Nov 08, 2008 1:59 pm
- x 2
Re: Declare shader in .material [solved]
Thanks for clearing that up!