Oppodelldog / IconSign

This Valheim mod adds a sign which shows icons instead of text
1 stars 1 forks source link

[FEAT] Glow Effect of IconSigns - turn on/off single/globally #4

Open Oppodelldog opened 1 week ago

Oppodelldog commented 1 week ago

Is your feature request related to a problem? Please describe. Actually the icons in world have some sort of glow.

Describe the solution you'd like I would like to control weather an icon is glowing or not.

Oppodelldog commented 1 week ago

Actually I found out the used shader for the images is UI/Default. This explains why icons on the sign look as they do.

  1. The default shader does not respect any light from the 3D scene.
  2. I guess the glow effect comes from the bloom effect, which is post processing so effects everything.

Here's a list with shaders

[Info   : Unity Log] ToonDeferredShading2017
[Info   : Unity Log] Sprites/Default
[Info   : Unity Log] Sprites/Mask
[Info   : Unity Log] Hidden/InternalErrorShader
[Info   : Unity Log] Skybox/Procedural
Oppodelldog commented 1 day ago

Maybe it makes sense to create a custom mesh for this, which takes two materials, one for the wood and one for the sign. This would have the following advantages:

This needs investigation of which is the standard material and how to apply it at runtime. Shouldn't be too difficult with the in game editor.