Create a texture projector node
<vizfx>.addProjector( | |
texture | |
blend = vizfx.BLEND_SPOTLIGHTBLEND | |
useAlpha = True | |
) |
Mode | Description |
vizfx.BLEND_NORMAL | |
vizfx.BLEND_AVERAGE | |
vizfx.BLEND_ADD | |
vizfx.BLEND_SUBTRACT | |
vizfx.BLEND_DARKEN | |
vizfx.BLEND_MULTIPLY | |
vizfx.BLEND_COLORBURN | |
vizfx.BLEND_LINEARBURN | |
vizfx.BLEND_LIGHTEN | |
vizfx.BLEND_SCREEN | |
vizfx.BLEND_COLORDODGE | |
vizfx.BLEND_LINEARDODGE | |
vizfx.BLEND_SPOTLIGHT | |
vizfx.BLEND_SPOTLIGHTBLEND | |
vizfx.BLEND_OVERLAY | |
vizfx.BLEND_SOFTLIGHT | |
vizfx.BLEND_HARDLIGHT | |
vizfx.BLEND_PINLIGHT | |
vizfx.BLEND_HARDMIX | |
vizfx.BLEND_DIFFERENCE | |
vizfx.BLEND_EXCLUSION | |
vizfx.BLEND_HUE | |
vizfx.BLEND_SATURATION | |
vizfx.BLEND_COLOR | |
vizfx.BLEND_LUMINOSITY |
Method | Description |
getEffect() | Get the <effect> object associated with the projector. |
setVisible(mode) | Set the visibility of the projector effect. |
getVisible() | Get the visibility of the projector effect. |
setAlpha(value) | Set the alpha multiplier for the projected texture. |
getAlpha() | Get the alpha multiplier for the projected texture. |
setTexture(texture) | Set the texture to project. |
getTexture() | Get the texture being projected. |
setProjectionMatrix(matrix) | Set the projection matrix to use when projecting 2D textures. |
getProjectionMatrix() | Get the projection matrix being used to project the texture. |
setFov(vert, ratio=1.0) | Shortcut for setting a perspective projection matrix using the specified vertical FOV and aspect ratio. |
setOrtho(size) | Shortcut for setting an orthographic projection matrix using the specified [width,height] size. |