I've not set up a repo so I'll put it on drive and dm you on bluesky (just added you - I'm this guy https://bsky.app/profile/flashmoth.bsky.social )
Triplevision Games
Creator of
Recent community posts
I also noticed that I get this error repeating over and over:
Draw failed due to invalid input layout
I realise that this is due to the use of in_Normal in the fragment shader, but have I missed a step somewhere that prevents this error from happening? Unsure if it's related to the other issues I had.
I'm having issues with getting this working in my project, and wondered if there was something obvious that I missed?
When using any of the lighting options, it also draws light in the distance:

If I use fog, it stops drawing the floor:

It doesn't matter how close or far I draw the fog. This is the code I'm using in the draw event:
draw_clear(c_black);
var _ztilt = lengthdir_y(1, tilt);
var _lookz = z + _ztilt;
var _zmult = 1 - abs(_ztilt);
var _lookx = x + lengthdir_x(1, direction) * _zmult;
var _looky = y + lengthdir_y(1, direction) * _zmult;
view_mat = matrix_build_lookat(x, y, z, _lookx, _looky, _lookz, 0, 0, -1);
camera_set_view_mat(cam, view_mat);
gpu_set_ztestenable(true);
gpu_set_zwriteenable(true);
cluck_set_fog(true, #000000, 1, 320, 640);
cluck_set_light_ambient(c_black);
cluck_set_light_point(1, #EEAAFF, x, y, 160, 640);
cluck_apply(shd_cluck_fragment);
draw_3d_objects();
gpu_set_ztestenable(false);
gpu_set_zwriteenable(false);
gpu_set_cullmode(cull_noculling);
shader_reset();
Ah that's because it's been downloaded from the internet, so isn't signed by the apple store. There's a solution here: http://www.tech-recipes.com/rx/45404/mac-downloaded-app-is-damaged-and-cant-be-opened-error-solved/


