SoFramebufferSampler
-
InventorModule
-
Purpose
Provides an OpenGL framebuffer object as an shading language sampler.
Details
May read the SoMLImageElement
from the Open Inventor state to adjust the OpenGL framebuffer object precision and size.
Output Fields
self
-
name:
self
, type:
SoNode
Parameter Fields
Hidden Fields
name
-
name:
name
, type:
String
Name of the sampler. Use this to reference the sampler in shaders.
enableBorder
-
name:
enableBorder
, type:
Bool
, default:
FALSE
Enable border to be part of the texture
borderColor
-
name:
borderColor
, type:
Vector4
, default:
0 0 0 0
Border color used to for border texture filtering. Only used if ‘enableBorder’ is FALSE.
minFilter
-
name:
minFilter
, type:
Enum
, default:
LINEAR
Minification filter mode
Values:
Title |
Name |
Nearest |
NEAREST |
Linear |
LINEAR |
Nearest Mipmap Nearest |
NEAREST_MIPMAP_NEAREST |
Nearest Mipmap Linear |
NEAREST_MIPMAP_LINEAR |
Linear Mipmap Nearest |
LINEAR_MIPMAP_NEAREST |
Linear Mipmap Linear |
LINEAR_MIPMAP_LINEAR |
magFilter
-
name:
magFilter
, type:
Enum
, default:
LINEAR
Magnification filter mode
Values:
Title |
Name |
Nearest |
NEAREST |
Linear |
LINEAR |
Nearest Mipmap Nearest |
NEAREST_MIPMAP_NEAREST |
Nearest Mipmap Linear |
NEAREST_MIPMAP_LINEAR |
Linear Mipmap Nearest |
LINEAR_MIPMAP_NEAREST |
Linear Mipmap Linear |
LINEAR_MIPMAP_LINEAR |
wrapS
-
name:
wrapS
, type:
Enum
, default:
REPEAT
Wrapping mode in s dimension.
Values:
Title |
Name |
Repeat |
REPEAT |
Clamp |
CLAMP |
Clamp To Edge |
CLAMP_TO_EDGE |
Clamp To Border |
CLAMP_TO_BORDER |
Mirrored Repeat |
MIRRORED_REPEAT |
use16BitFloat
-
name:
use16BitFloat
, type:
Bool
, default:
TRUE
Enables the usage of 16bit float.
needsTextureCoordinates
-
name:
needsTextureCoordinates
, type:
Bool
, default:
TRUE
If set to true, Open Inventor is forced to send texture coordinates when rendering geometry.
wrapT
-
name:
wrapT
, type:
Enum
, default:
REPEAT
Wrapping mode in t dimension.
Values:
Title |
Name |
Repeat |
REPEAT |
Clamp |
CLAMP |
Clamp To Edge |
CLAMP_TO_EDGE |
Clamp To Border |
CLAMP_TO_BORDER |
Mirrored Repeat |
MIRRORED_REPEAT |
clearColor
-
name:
clearColor
, type:
Color
, default:
0 0 0
Sets a clear color for the framebuffer sampler.
clearAlpha
-
name:
clearAlpha
, type:
Float
, default:
1
Sets a clear alpha value for the framebuffer sampler.
depthBufferTarget
-
name:
depthBufferTarget
, type:
Enum
, default:
RENDERBUFFER
Depth buffer mode.
Values:
Title |
Name |
None |
NONE |
Renderbuffer |
RENDERBUFFER |
Texture |
TEXTURE |
stencilBuffer
-
name:
stencilBuffer
, type:
Bool
, default:
FALSE
If checked, a framebuffer for stencil values is used.
useSizeStateHints
-
name:
useSizeStateHints
, type:
Bool
, default:
FALSE
If checked, the Open Inventor traversal state is checked for the SoMLImageElement to determine the size for the texture.
Note: The texture size is not adapted to the next power of 2.
pixelScale
-
name:
pixelScale
, type:
Float
, default:
1
Sets the scale factor that is applied to pixel sizes and fonts in order to maintain readability on high-resolution images. If the ignore flag is set (which is the default), the previous pixel scale factor is passed-on.
automaticTraversal
-
name:
automaticTraversal
, type:
Bool
, default:
TRUE
If enabled, the framebuffer is re-rendered on each rendering of the scene above.
takeSnapshot
-
name:
takeSnapshot
, type:
Trigger
Triggers an update of the framebuffer texture if automaticTraversal is off.
sizeMultiplier
-
name:
sizeMultiplier
, type:
Float
, default:
1
If useSizeStateHints
is true, the texture size retrieved from SoMLImageElement is multiplied with this value in order to allow for over- or undersampling.
useSeparateRenderAction
-
name:
useSeparateRenderAction
, type:
Bool
, default:
FALSE
If enabled, a separate SoGLRenderAction is used, so the Open Inventor and GL state above the module does not affect the framebuffer scene rendering.
This means that the camera and any lights above the module will no longer affect the rendering of the scene below the sampler.