Ok, I used the wiki's terrain in l3td tutorial and got my terrain working while I was using SED and my .c

Now I am using the engine sdk and am running all fine but I noticed my fx_terraintex3 shader isnt working (im guessing cuz im no longer using my .c file with #include "mtlFX.c" in it)

I tried including mtlfx.c in my C++ project but that didnt work since its written in c-script. so the question is... how do I load the same shader I was using? here is the new code... dh.wmb is the terrain hmp after running it thru wed.

Code:
#define WIN32_LEAN_AND_MEAN		
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include "adll.h" // Include the engine data types, variables, and functions


int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd) // application instance handle, // always zero // application command line // window flags
{
	// The engine_open() function returns a pointer to a struct of 
	// engine variables. We don't want to load a script or level here, so we just pass NULL.
	ENGINE_VARS *ev = engine_open(NULL);
	if (!ev) return 1;	// acknex.dll not found
	//Add Content Folders Paths
	add_folder("terrains");
	add_folder("images");
	add_folder("models");
	level_load("dh.wmb");	
	engine_frame();

	//Initialize The Graphics Environment
	SETV(fps_max,60);
	video_set(1024,768,32,0);

	while (engine_frame()) {
	//Main Loop                     	
	

	}
	engine_close();
	return 0;
}



See more code and crap @ www.neuroticnetworks.com