Open topic with navigation
<node3d:renderNode>.setRenderTexture
Attach a texture to the render node.
<node3d:renderNode>.setRenderTexture( |
|
texture |
buffer = viz.AUTO_COMPUTE |
face = viz.POSITIVE_X |
) |
|
texture
A Vizard texture object or None to detach a render texture.
buffer = viz.AUTO_COMPUTE
The render buffer to attach the texture to. Can be one of the following:
viz.AUTO_COMPUTE | Automatically determine the buffer mode based on the texture format. |
viz.RENDER_COLOR | Copy the color buffer to the texture. |
viz.RENDER_DEPTH | Copy the depth buffer to the texture. The texture format must be viz.TEX_DEPTH |
viz.RENDER_STENCIL | Copy the stencil buffer to the texture. |
viz.RENDER_DEPTH_STENCIL | Copy the depth and stencil buffer to the texture. The texture format must be viz.TEX_DEPTH_STENCIL |
viz.RENDER_COLOR0 + i | Copy the ith color attachment to the texture. |
face = viz.POSITIVE_X
This is an optional argument used only with Cube Mapped or 3D textures.
With Cube Mapped textures it specifies which face of the cube to render the image to. This can be one of the following values:
viz.POSITIVE_X
viz.NEGATIVE_X
viz.POSITIVE_Y
viz.NEGATIVE_Y
viz.POSITIVE_Z
viz.NEGATIVE_Z
With 3D textures it specifies which depth slot to render the image to.
Remarks
This command will attach a texture that will be rendered onto. The texture will usually be a render texture.
Return Value
None
See also