Skip to content

Commit b38ef3a

Browse files
authored
Update tips-and-tricks.md
1 parent 0912b1c commit b38ef3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tips-and-tricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ unity_LightColor[i].a
2222

2323
It is important to set the 'Render Mode' of the point light to 'Not Important' to force the light to be a vertex light.
2424

25-
If possible, you should also put the lights 'Culling Mask' to only 'UiMenu' and put whatever you want to interact with the light on that same layer. That way, you don't add passes to everybodies avatar, causing lag. The UiMenu layer, unlike most other layers, is usable even on avatars.
25+
If possible, you should also put the lights 'Culling Mask' to only 'UiMenu' and put whatever you want to interact with the light on that same layer. That way, you don't interfere with other scene objects or avatars. The UiMenu layer, unlike most other layers, is usable even on avatars.
2626

2727
The `unity_4LightPos` arrays will contain positions of vertex lights, but may also contain positions of pixel lights (Render Mode = Important or Auto) if the shader doesn't contain an add pass. To prevent these arrays from being polluted with random pixel lights, you can add an additional pass to the shader with the tag `Tags { "LightMode"="ForwardAdd" }`, which does nothing:
2828
```glsl

0 commit comments

Comments
 (0)