ViewportFrame
A GUI frame that renders an isolated Filament 3D scene.
Properties
| Property | Type | Default |
|---|---|---|
Camera | any | nil |
AmbientColor | any | Color3.fromRGB(48, 52, 61) |
LightColor | Color3 | Color3.new(1, 1, 1) |
LightDirection | Vector3 | Vector3.new(-0.45, -0.7, -0.55) |
ManualRender | boolean | false |
ResolutionScale | number | 1 |
MaterialShader | any | nil |
PostProcessShader | any | nil |
Name | string | "ViewportFrame" |
ClipsDescendants | boolean | true |
Functions
`isBasePart`
`materialKind`
`destroyState`
`cloneShader`
`syncShader`
`syncShaders`
`ensureViewport`
`meshForPart`
`renderFilament`
`instance:Render`
`instance:GetShaderError`
`propTable.render`
isBasePart
Arguments
objectReturns
This function returns nothing.
materialKind
Arguments
materialReturns
This function returns nothing.
destroyState
Arguments
stateReturns
This function returns nothing.
cloneShader
Arguments
value, shaderTypeReturns
This function returns nothing.
syncShader
Arguments
state, value, shaderTypeReturns
This function returns nothing.
syncShaders
Arguments
state, objectReturns
This function returns nothing.
ensureViewport
Arguments
state, width, heightReturns
This function returns nothing.
meshForPart
Arguments
state, propsReturns
This function returns nothing.
renderFilament
Arguments
state, object, dtReturns
This function returns nothing.
instance:Render
Arguments
This function takes no arguments.
Returns
This function returns nothing.
instance:GetShaderError
Arguments
This function takes no arguments.
Returns
This function returns nothing.
propTable.render
Arguments
window, object, dt, rendererReturns
This function returns nothing.
API
instance:isBasePart(object)
instance:materialKind(material)
instance:destroyState(state)
instance:cloneShader(value, shaderType)
instance:syncShader(state, value, shaderType)
instance:syncShaders(state, object)
instance:ensureViewport(state, width, height)
instance:meshForPart(state, props)
instance:renderFilament(state, object, dt)
instance:Render()
instance:GetShaderError()
instance:render(window, object, dt, renderer)