Introduction
Light reflector is a light reflector system that simulates long-range reflections of Decals and BaseParts.
Issues
- Broken Wally and Pesde packages, with mismatched versioning
- The Pesde package has version issues as well due to my custom pre-release tag
infdev
- The Pesde package has version issues as well due to my custom pre-release tag
- Rojo may not work correctly?
- Possible BasePart memory leak on games with Instance Streaming
- Many
:GetAttributecalls popping up in the Microprofiler - No external documentation
- Some signs and reflectors may not work at all in very rare occasions
Global features
- Adaptive waiting on performance-critical functions
- Distance fall-off
- Angle-based brightness
- Multi-vehicle support
- Non-tweened fading/transitions for gradual brightness
- Option to use
TagswithCollectionService
Sign/Gantry System Features
- Utilizes
SurfaceGuisandImageLabelfor reflectivity - Uses
.ImageTransparency,.Brightness, and.LightInfluence - SurfaceGui pooling to increase performance
- Automatic sign
:Dotsupport- This determines if the vehicle is facing the sign or not to determine reflectiveness
- Automatic part rotation for
Topfaces- Part rotation is needed since the orientation of images in
DecalsandSurfaceGuisare NOT the same - This may break the visuals of actual non-square parts due to rotations
- Part rotation is needed since the orientation of images in
- Best for large reflective highway signs on gantries
Reflector System Features
- Utilizes
BasePartsfor reflectivity - Uses
.Colorand.Material - Wedge
:Dotsupport, with face (Enum.NormalId) selection on non-wedges- This determines if the vehicle is facing the part or not to determine reflectiveness
- Best for pavement reflectors on the road
Hybrid System Features
- Works alongside the Reflector System with no separate loop needed
- Uses
.Color,.Material, AND.Transparencywith similar equations to the Sign/Gantry System - Face (
Enum.NormalId) selection - Best for reflective traffic light shields, non-decal signs, etc.
License
MPL-2.0