Repository navigation
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: result = 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 sky's state.
local bool: result = assetify.renderer.isDynamicSky()
-
✨ Sets dynamic sky's state.
local bool: result = assetify.renderer.setDynamicSky( bool: state )
-
✨ Retrieves dynamic star's intensity.
local bool: result = assetify.renderer.getDynamicStarIntensity()
-
✨ Sets dynamic star's intensity.
local bool: result = assetify.renderer.setDynamicStarIntensity( float: intensity )
-
✨ Retrieves dynamic sun's color.
local float: r, float: g, float: b = assetify.renderer.getDynamicSunColor()
-
✨ Sets dynamic sun's color.
local bool: result = assetify.renderer.setDynamicSunColor( float: r, float: g, float: b )
-
✨ Retrieves dynamic cloud's density.
local float: result = assetify.renderer.getDynamicCloudDensity()
-
✨ Sets dynamic cloud's density.
local bool: result = assetify.renderer.setDynamicCloudDensity( float: density )
-
✨ Retrieves dynamic cloud's scale.
local float: result = assetify.renderer.getDynamicCloudScale()
-
✨ Sets dynamic cloud's scale.
local bool: result = assetify.renderer.setDynamicCloudScale( float: scale )
-
✨ Retrieves dynamic cloud's color.
local float: r, float: g, float: b = assetify.renderer.getDynamicCloudColor()
-
✨ Sets dynamic cloud's color.
local bool: result = assetify.renderer.setDynamicCloudColor( float: r, float: g, float: b )
-
✨ Retrieves dynamic sky's timecycle.
local table: timecycle = assetify.renderer.getTimeCycle()
-
✨ Sets dynamic sky's timecycle.
🚨 Refer timecycle.rw to know more abouttimecycleformat!local bool: result = assetify.renderer.setTimeCycle( table: timecycle )