SunRaysEffect
Renders dynamic rays from the sun.
| Memory category | Instances |
|---|
Member index 2
Description
The SunRaysEffect renders a halo of light around sun. The halo is shaped/blocked by world objects between the Workspace.CurrentCamera and the sun.
Like other post-processing effects, SunRaysEffect will only work while Enabled and when parented to Lighting or Workspace.CurrentCamera. Also, it may not render on low-end devices, and it may render differently depending on your Studio settings (see the Quality Level settings in Rendering → Performance).
For more details on this effect and others, see Post-Processing Effects.
History 9
- 553 Change Default of Spread from to 1
- 553 Change Default of Intensity from to 0.25
- 486 Change ThreadSafety of Spread from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Intensity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Spread from to ReadOnly
- 462 Change ThreadSafety of Intensity from to ReadOnly
- 243 Add Spread
- 243 Add Intensity
- 243 Add SunRaysEffect
Members 2
Intensity
| Type | Default | |
|---|---|---|
| float | 0.25 | |
Intensity determines the opacity of the sun rays. Values closer to 0 are less visible, while values closer to 1 become more visible.
| Thread safety | ReadSafe |
|---|---|
| Category | State |
| Loaded/Saved | true |
Spread
| Type | Default | |
|---|---|---|
| float | 1 | |
Spread determines how wide the sun rays will spread across the sky. Its value should be set between 0 and 1 as values outside that range have undefined behavior.
| Thread safety | ReadSafe |
|---|---|
| Category | State |
| Loaded/Saved | true |