-
-
Notifications
You must be signed in to change notification settings - Fork 2
API: Renderer
Assetify provides a comprehensive suite of APIs designed to enhance the visual fidelity and performance of assets. This module includes a custom rendering pipeline that optimizes the rendering process, allowing developers to achieve high-quality graphics with efficient resource management.
Features such as dynamic sky rendering enable immersive environmental experiences, adapting seamlessly to changes in lighting and atmospheric conditions. Overall, the renderer module empowers creators with the tools needed to build visually stunning systems, ensuring robust and flexible asset management capabilities within the Assetify framework.
Add the below code globally once in either of the shared .lua
script of the resource you want to use within:
loadstring(exports.assetify_library:import("renderer"))()
-
✨ Retrieves renderer's state.
local bool: state = assetify.renderer.isRendering()
-
✨ Sets renderer's state.
local bool: result = assetify.renderer.setRendering( bool: state, table: modes )
-
✨ Fetches virtual source.
local element: cSource = assetify.renderer.getVirtualSource()
-
✨ Fetches virtual RTs.
local table: cVRTs = assetify.renderer.getVirtualRTs()
-
✨ Retrieves emissive mode's state.
local bool: result = assetify.renderer.isEmissiveMode()
-
✨ *Sets emissive mode's state.
local bool: result = assetify.renderer.setEmissiveMode( bool: state )
-
✨ Retrieves dynamic timecycle.
local table: timecycle = assetify.renderer.getTimeCycle()
-
✨ Sets dynamic timecycle.
🚨 Refer timecycle.vcl to know more abouttimecycle
's format!local bool: result = assetify.renderer.setTimeCycle( table: timecycle )
-
✨ Retrieves dynamic sky's state.
local bool: state = assetify.renderer.isDynamicSky()
-
✨ Sets dynamic sky's state.
local bool: result = assetify.renderer.setDynamicSky( bool: state )
-
✨ Retrieves dynamic cloud's speed.
local float: speed = assetify.renderer.getDynamicCloudSpeed()
-
✨ Sets dynamic cloud's speed.
local bool: result = assetify.renderer.setDynamicCloudSpeed( float: speed )
-
✨ Retrieves dynamic cloud's scale.
local float: scale = assetify.renderer.getDynamicCloudScale()
-
✨ Sets dynamic cloud's scale.
local bool: result = assetify.renderer.setDynamicCloudScale( float: scale )
-
✨ Retrieves dynamic cloud's direction.
local table: direction = assetify.renderer.getDynamicCloudDirection()
-
✨ Sets dynamic cloud's direction.
local bool: result = assetify.renderer.setDynamicCloudDirection( table: direction )
-
✨ Retrieves dynamic cloud's color.
local table: color = assetify.renderer.getDynamicCloudColor()
-
✨ Sets dynamic cloud's color.
local bool: result = assetify.renderer.setDynamicCloudColor( table: color )
-
✨ Retrieves dynamic star's speed.
local bool: speed = assetify.renderer.getDynamicStarSpeed()
-
✨ Sets dynamic star's speed.
local bool: result = assetify.renderer.setDynamicStarSpeed( float: speed )
-
✨ Retrieves dynamic star's scale.
local bool: scale = assetify.renderer.getDynamicStarScale()
-
✨ Sets dynamic star's scale.
local bool: result = assetify.renderer.setDynamicStarScale( float: scale )
-
✨ Retrieves dynamic star's intensity.
local bool: intensity = assetify.renderer.getDynamicStarIntensity()
-
✨ Sets dynamic star's intensity.
local bool: result = assetify.renderer.setDynamicStarIntensity( float: intensity )
-
✨ Retrieves dynamic moon's scale.
local bool: scale = assetify.renderer.getDynamicMoonScale()
-
✨ Sets dynamic moon's scale.
local bool: result = assetify.renderer.setDynamicMoonScale( float: scale )
-
✨ Retrieves dynamic moon's emissive scale.
local bool: scale = assetify.renderer.getDynamicMoonEmissiveScale()
-
✨ Sets dynamic moon's emissive scale.
local bool: result = assetify.renderer.setDynamicMoonEmissiveScale( float: scale )
-
✨ Retrieves dynamic moon's emissive intensity.
local bool: intensity = assetify.renderer.getDynamicMoonEmissiveIntensity()
-
✨ Sets dynamic moon's emissive intensity.
local bool: result = assetify.renderer.setDynamicMoonEmissiveIntensity( float: intensity )