Back to Filament

setRenderTarget

docs/android/dokka/filament-android/com.google.android.filament/-view/set-render-target.md

1.75.0711 B
Original Source

//filament-android/com.google.android.filament/View/setRenderTarget

setRenderTarget

[main]
open fun setRenderTarget(target: RenderTarget)

Specifies an offscreen render target to render into.

By default, the view's associated render target is null, which corresponds to the SwapChain associated with the engine.

A view with a custom render target cannot rely on Renderer.ClearOptions, which only applies to the SwapChain. Such view can use a Skybox instead.

Parameters

main

targetrender target associated with view, or null for the swap chain