BunyaPineTree / LethalCompany_ModelReplacementAPI

MIT License
55 stars 17 forks source link

Can't figure out how to add glow or maps to models #102

Closed MajorSanguine closed 6 months ago

MajorSanguine commented 6 months ago

I'm fairly new to unity and all this, I can't figure out how to get a glow texture or map textures on my models. I tried emission for the glow which didn't work, using a normal map for my map didn't work either, nothing works except for albedo on standard shader. I know it's possible as I've seen models with glowing textures (like V1 and V2 models), not sure if the maps are possible though. Any pointers will be greatly appreciated a aa Example of the V1 model glowing. I want the eyes of the Dry Bones model to glow but can't figure it out

BunyaPineTree commented 6 months ago

Everything you can achieve in HDRP is possible. Perhaps you're missing a setting, or your emission texture isn't correct, but populating the emission map is the correct avenue.

Regardless, this isn't really the place to ask about unity material mechanics. I would like to keep these issues exclusive to problems with the API.

BunyaPineTree commented 6 months ago

Actually, on second thought I can provide a pointer regarding how the API handles materials.

Make sure your materials utilize the HDRP Lit shader, or any other shader in the HDRP tree. If you are using the Standard shader, it will be converted to the base game shader automatically, and due to how shaders are written, it is only possible to convert the albedo map.

The correct way to do this is to install High Definition RP in the package manager, or whatever it's called, in your unity project, if it isn't already HDRP enabled. To convert your Standard shader materials to HDRP, you need to use the HDRP wizard, which I cannot recall where in the menus it is right now.

Anyways best of luck.

MajorSanguine commented 6 months ago

Actually, on second thought I can provide a pointer regarding how the API handles materials.

Make sure your materials utilize the HDRP Lit shader, or any other shader in the HDRP tree. If you are using the Standard shader, it will be converted to the base game shader automatically, and due to how shaders are written, it is only possible to convert the albedo map.

The correct way to do this is to install High Definition RP in the package manager, or whatever it's called, in your unity project, if it isn't already HDRP enabled. To convert your Standard shader materials to HDRP, you need to use the HDRP wizard, which I cannot recall where in the menus it is right now.

Anyways best of luck.

I'm very sorry for the bother, I didn't know where else to ask. I finally figured it out though, it ended up being an unlit shader, the hdrp unlit just made my model black. Thank you for the response though, this has been fun to experiment with!