Jump to content
Leadwerks Community

Recommended Posts

Posted

I use GetFirstEntityByKey("name","sun"); after I have set the name of the directional light to "sun". This is a function in gamelib, which you can copy into your own library, or use gamelib as it is.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

another question...

how can i pass a Vec3 to my shader from lua?

SetShaderVec3 doesn't work, but SetShaderFloat does.. that's a bit strange..

Posted

another question...

how can i pass a Vec3 to my shader from lua?

SetShaderVec3 doesn't work, but SetShaderFloat does.. that's a bit strange..

Why don't you pass 3 floats and make the shader create a Vec3 from it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...