C
cambalinho
Guest
i have found 1 problem with d3d_draw_block() because the repeats aren't compatible with texture size. so i use the d3d_draw_wall() for fix that compatible.
now i'm trying using the light(on Draw GUI End event):
but i see some problems:
1 - some wall faces still be black;
2 - i must use '1000' for see the floor?
what i'm doing wrong?
now i'm trying using the light(on Draw GUI End event):
Code:
d3d_set_lighting(true);
d3d_light_enable(1,false);
d3d_light_define_point(1, x+cos(direction*pi/180),y-sin(direction*pi/180),rotatez,1000,c_white);
//d3d_light_define_direction(1,x,y,-1,c_white);
d3d_light_enable(1,true);
1 - some wall faces still be black;
2 - i must use '1000' for see the floor?
what i'm doing wrong?