copyCurrentColorRenderTarget(string) -> MRenderTarget
Get a copy of the current color render target.
When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called
to notify the target manager that the caller is done with the render target.
copyCurrentColorRenderTargetToTexture() -> MTexture
Get a copy of the current color render target as a texture.
When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
copyCurrentDepthRenderTarget(string) -> MRenderTarget
Get a copy of the current depth render target.
When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called
to notify the target manager that the caller is done with the render target.
copyCurrentDepthRenderTargetToTexture() -> MTexture
Get a copy of the current depth render target as a texture.
When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
OpenMayaRender.MDrawContext.getDepthRange
(
)
getDepthRange() -> [float, float]
Get the depth range which specifies the mapping of depth values from normalized device coordinates to window coordinates.
The depth range values are normally 0.0 and 1.0.
OpenMayaRender.MDrawContext.getFrameStamp
(
)
getFrameStamp() -> long
Returns the current frame stamp.
OpenMayaRender.MDrawContext.getFrustumBox
(
)
getFrustumBox() -> MBoundingBox
Get the bounding box of the current view frustum in world space.
OpenMayaRender.MDrawContext.getLightInformation
(
)
getLightInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> [positions, direction, intensity, color, hasDirection, hasPosition]
Return common lighting information for a given active light.
getLightParameterInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> MLightParameterInformation
Return parameter information for a given active light.
OpenMayaRender.MDrawContext.getPassContext
(
)
getPassContext() -> MPassContext
Access the current pass context.
OpenMayaRender.MDrawContext.getRenderTargetSize
(
)
getRenderTargetSize() -> [int, int]
Get the size of the render target (output buffer) being rendered into.
The dimensions of the target are in pixels
OpenMayaRender.MDrawContext.getSceneBox
(
)
getSceneBox() -> MBoundingBox
Get a bounding box of the scene in world space.
OpenMayaRender.MDrawContext.getStateManager
(
)
getStateManager() -> MStateManager
Access the GPU state manager for the current draw context.
OpenMayaRender.MDrawContext.numberOfActiveLights
(
)
numberOfActiveLights(lightFilter=kFilteredToLightLimit) -> int
Return the number of available lights to render the scene,
only considering lights which pass the filter option.