Preparing search index...
The search index is not available
kokomi.js
kokomi.js
RenderTexture
Class RenderTexture
You can render a scene into this texture.
Demo:
https://kokomi-js.vercel.app/examples/#renderTexture
Hierarchy (
view full
)
Component
RenderTexture
Index
Constructors
constructor
Properties
base
container
emitter
fbo
rt
Camera
rt
Scene
texture
Methods
add
add
Existing
emit
off
on
update
Constructors
constructor
new
Render
Texture
(
base
,
config
?
)
:
RenderTexture
Parameters
base
:
Base
config
:
Partial
<
RenderTextureConfig
>
= {}
Returns
RenderTexture
Properties
base
base
:
Base
container
container
:
Scene
emitter
emitter
:
Emitter
<
any
>
fbo
fbo
:
FBO
rt
Camera
rt
Camera
:
Camera
rt
Scene
rt
Scene
:
Scene
texture
texture
:
Texture
Methods
add
add
(
obj
)
:
void
Parameters
obj
:
any
Returns
void
add
Existing
add
Existing
(
)
:
void
Returns
void
emit
emit
(
type
,
event
?
)
:
void
Parameters
type
:
string
event
:
any
= {}
Returns
void
off
off
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
on
on
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
update
update
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
container
emitter
fbo
rt
Camera
rt
Scene
texture
Methods
add
add
Existing
emit
off
on
update
kokomi.js
Loading...
You can render a scene into this texture.
Demo: https://kokomi-js.vercel.app/examples/#renderTexture