Alienhead Posted March 20, 2022 Share Posted March 20, 2022 Last question for awhile ( i swear ). I could not find much information regarding importing a mesh with 2 uv sets, or how I would go about applying a ready made lightmap texture to a model imported into LE 4.6. I found this in the forums - But its mainly how to make light maps in Blender, i have the lightmapps and odel with uv's already . just cant figure out how to apply them in LE. Thanks for any help provided. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Thirsty Panther Posted March 20, 2022 Share Posted March 20, 2022 Try https://www.leadwerks.com/learn?page=API-Reference_Object_Asset_Material_SetTexture and https://www.leadwerks.com/learn?page=API-Reference_Object_Surface_SetMaterial Quote Link to comment Share on other sites More sharing options...
Genebris Posted March 20, 2022 Share Posted March 20, 2022 Does latest version of Leadwerks even have lightmapping support at all? I'm only aware of shadow masks. Quote Link to comment Share on other sites More sharing options...
Alienhead Posted March 20, 2022 Author Share Posted March 20, 2022 No LE doesn't speak of lightmapping. My hope was to bring in external pre-lightmapped mesh and treat it as a normal map object.. No luck so far. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Genebris Posted March 20, 2022 Share Posted March 20, 2022 I guess you need to implement a shader that multiplies diffuse texture by uv1 texture. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.