[SOLVED] *.hlsl and *.fx files?

bennyx

24-03-2006 18:57:49

How do I use these in oFusion, besides dropping them in the directory?

Is there a special naming convention? Is there a spefication for the *.program *.source files somewhere?

I'm new :roll:

edit: still a newbie, but I getting there...

Lioric

25-03-2006 16:05:56

The shaders must be added to the "ogre_azathoth\media\shaders" folder of your max installation

The ".program" files contains the declaration of the shader, so the engine knows what the shader does (pixel or vertex program) and what target architecture is this shader for (vs1_1, ps_2_0)

Here you will find more information on the ".program" declaration files

Declaring Vertex and Fragment Programs

But with just a review of the existing files you will know how to use them

The ".source" files contains the actual shader code, no additional requisites here, this files are referenced in its specific program declaration (".program") in the "source" attribute

You can use CG or HLSL shader programs only, no need for .fx files

bennyx

26-03-2006 09:27:05

Thanks, I figured the *.program part out in the end.

Thanks for clarifying :)