The .fx commands don´t seem to work. I was trying out cel shading and nothing came up...
#include "DarkSDK.h"
#include "stdio.h"
#include "stdlib.h"
void ShowFPS(void);
void DarkSDK (void)
{
// TODO: Place init code here
dbLoadObject("pelican",1);
dbPositionObject(1,0,0,0);
dbScaleObject(1,1000,1000,1000);
dbLoadEffect("cartoon2.fx",1,1);
dbSetObjectEffect(1,1);
dbPositionCamera(0,100,-250);
dbSyncOn();
dbSyncRate(0);
// loop until the escape key is pressed
while (LoopSDK())
{
dbCLS();
if (dbEscapeKey())
{
break;
}
dbSetPointLight(0,dbMouseX()-320,240-dbMouseY(),-250);
ShowFPS();
dbSync();
}
}
void ShowFPS ( )
{
char czFPS[10];
sprintf ( czFPS , "%d FPS " , dbScreenFPS ( ) );
dbText ( 0 , 0 , czFPS );
}
Me want cel shading
¿Como estas you el dia de today?