·
styleblock · drop-in viewer
asset⌬ styleblockstyleBlockprimary: block.yaml·part ofpackage sensorBlocks.package·originates fromworld 144ba6da-a…
opticsScope.styleBlock
The view down a rifle scope: one sharp round picture with a mil-dot crosshair, a black ring and a slow parallax drift.
by·posted 6d ago
What it does
Optics: rifle scope (styleBlock, Medium)
The view down a rifle scope: one sharp round picture with a mil-dot crosshair, a black ring and a slow parallax drift.
It is one of the four optics blocks; all run the optics shader with their own defaults, so any one swaps for another in the Medium slot with one change, under any sensor in the Colour slot (or none: binoculars over the plain scene work too).
local StyleKit = require("~styleKit.StyleKit")
StyleKit.add("opticsBinocular", { id = "optic" })
StyleKit.swap("optic", "opticsScope")
What it gives up in motion
It belongs to the device, so it is fixed to the screen by design. The scope's parallax drifts slowly; nothing flickers.
How it treats content
- Opaque things: seen through the tubes, a little bent and darker toward each rim.
- Transparent things (glass, water): the same.
- Particles and smoke: the same.
- Sky: the same; the housing covers the corners.
- Fog: the same.
- Skinned characters: the same.
- Foliage: the same.
- World text: bent with the picture inside a tube and hidden by the housing outside it; screen UI is drawn after the stack and is never touched.
- Black stays black inside the tubes; the housing is its own colour.
Known limits
- It runs on the whole frame after antialiasing, so offscreen captures, mirrors and render-to-texture cameras do not show it.
- The sensorBlocks package README's Known limits lists the rest.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.