s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Graphics
ViewHandle
chevron_left Graphics
struct
ViewHandle

Properties

data_objectDepthRangedata_objectDepthUvScaleBiasdata_objectIsValiddata_objectProjectionToViewdata_objectViewport
ViewHandle
Deferred metadata for a view recorded into a command list. Bind these references after its draw command in the same command-list execution. Values are resolved anew on each playback, not while recording. Keep the target textures alive and unchanged until their consumers have drawn.
struct Sandbox.Rendering .
sealedSandbox.Engine

data_object Properties 5

DepthRange
DepthRangeRef
Minimum and maximum main-world depth values. Normalize sampled depth to this range before unprojection.
DepthUvScaleBias
DepthUvScaleBiasRef
Scale (xy) and bias (zw) mapping final colour UVs to the unflipped depth texture.
IsValid
IsValidRef
Whether this command submitted a view during the current playback. False for skipped views; this does not indicate whether a depth target was supplied.
ProjectionToView
ProjectionToViewRef
Inverse reverse-Z projection of the rendered view. Unproject normalized reverse-Z depth without applying 1 - depth.
Viewport
ViewportRef
Main-world viewport origin (xy) and size (zw) in unflipped depth texture UVs.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter