Effect Files to be auto-loaded
by Andy Hawkins · in Technical Issues · 03/01/2007 (11:25 pm) · 2 replies
I'm trying to make an export / import function where I world build my scene in Max / Lightwave, export the world building scene to a text file and any objects I want a shader applied to are designated in the text file.
Then my dx9 app parses the text file and recreates the scene in a dx9 environment.
However from what I have learnt from effect files, is sometimes you have to set global vars such as the camera transform and external textures from the application.
Is it possible to have directx load any effect file regardless of whether it needs global vars set or not? I'm writing it from the artists point of view where they can view their max / lightwave scene in dx9 and check that shaders look like they planned.
Then my dx9 app parses the text file and recreates the scene in a dx9 environment.
However from what I have learnt from effect files, is sometimes you have to set global vars such as the camera transform and external textures from the application.
Is it possible to have directx load any effect file regardless of whether it needs global vars set or not? I'm writing it from the artists point of view where they can view their max / lightwave scene in dx9 and check that shaders look like they planned.
Associate Andy Hawkins
DrewFX
SAS For Shaders