Maybe you could replace this
Code:

function load_shaders2(){
effect_load(mat_normalmap,"normalmap.fx");
mat_normalmap.skill1=float(sun_pos.x);
mat_normalmap.skill2=float(sun_pos.z);
mat_normalmap.skill3=float(sun_pos.y);}



with this:
Code:

function load_shaders2(){
effect_load(mat_normalmap,"normalmap.fx");
while(1){
mat_normalmap.skill1=float(sun_pos.x);
mat_normalmap.skill2=float(sun_pos.z);
mat_normalmap.skill3=float(sun_pos.y);
wait(1);}
}



Just in case the sun_pos is modified during runtime, that'd probably already do the trick

Last edited by The Matrix; 01/11/06 14:56.

Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?