Page 1 of 1

[REQ] Ability to include external shader code

Posted: Thu Nov 06, 2008 4:30 am
by MSUdom5
I'm sure we'll start to see shader libraries emerge. Might want to allow users to include external shader libraries in the IGS. Something like:

Code: Select all

<shader>
              <include>
                  <pathname>/path/to/external/isl/code.isl</pathname>
              </include>
              <shader>
                  <![CDATA[def eval(vec3 pos) vec3 : externalFunc(pos)]]>
               </shader>
 </shader>

Posted: Thu Nov 06, 2008 5:12 am
by SmartDen
you can include external material with shader

Re: [REQ] Ability to include external shader code

Posted: Thu Nov 06, 2008 5:17 am
by fused
MSUdom5 wrote:I'm sure we'll start to see shader libraries emerge. Might want to allow users to include external shader libraries in the IGS. Something like:

Code: Select all

<shader>
              <include>
                  <pathname>/path/to/external/isl/code.isl</pathname>
              </include>
              <shader>
                  <![CDATA[def eval(vec3 pos) vec3 : externalFunc(pos)]]>
               </shader>
 </shader>
+1

would be very useful!!!

Posted: Thu Nov 06, 2008 7:43 pm
by Hellstorm
Yep. Should be a musthave feature!
There could also be a shader-section in the MatDB :D