-
-
Notifications
You must be signed in to change notification settings - Fork 2
Library: Renderer
Aviril edited this page Nov 29, 2024
·
2 revisions
Assetify offers virtual rendering pipeline alongside default to enhance graphics (Optional). Some shared rendering functions are bundled within the same module as well to make migrating easier.
Add the below code once in either of the shared .lua
script of the resource you want to use within:
--Declare it globally only once
loadstring(exports.assetify_library:import("renderer"))()
local bool: result = assetify.renderer.isVirtualRendering()
local bool: result = assetify.renderer.setVirtualRendering(
bool: state,
table: rtModes
)
local element: cSource = assetify.renderer.getVirtualSource()
local table: cVRTs = assetify.renderer.getVirtualRTs()
local bool: result = assetify.renderer.isTimeSynced()
local bool: result = assetify.renderer.setTimeSync(
bool: state
)
local bool: result = assetify.renderer.setServerTick(
float: tick
)
local bool: result = assetify.renderer.setMinuteDuration(
float: duration
)
local float: result = assetify.renderer.getAntiAliasing()
local bool: result = assetify.renderer.setAntiAliasing(
float: intensity
)
local bool: result = assetify.renderer.isEmissiveMode()
local bool: result = assetify.renderer.setEmissiveMode(
bool: state
)
local bool: result = assetify.renderer.isDynamicSky()
local bool: result = assetify.renderer.setDynamicSky(
bool: state
)
local bool: result = assetify.renderer.isDynamicPrelights()
local bool: result = assetify.renderer.setDynamicPrelights(
bool: state
)
local float: r, float: g, float: b = assetify.renderer.getDynamicSunColor()
local bool: result = assetify.renderer.setDynamicSunColor(
float: r,
float: g,
float: b
)
local bool: result = assetify.renderer.isDynamicStars()
local bool: result = assetify.renderer.setDynamicStars(
bool: state
)
local float: result = assetify.renderer.getDynamicCloudDensity()
local bool: result = assetify.renderer.setDynamicCloudDensity(
float: density
)
local float: result = assetify.renderer.getDynamicCloudScale()
local bool: result = assetify.renderer.setDynamicCloudScale(
float: scale
)
local float: r, float: g, float: b = assetify.renderer.getDynamicCloudColor()
local bool: result = assetify.renderer.setDynamicCloudColor(
float: r,
float: g,
float: b
)
local table: timecyc = assetify.renderer.getTimeCycle()
ℹ️ Refer 🔗 to know more about
timecyc
format!
local bool: result = assetify.renderer.setTimeCycle(
table: timecyc
)