author | Florian Link |
package | MeVisLab/Standard |
dll | SoImageSamplers |
definition | SoImageSamplers.def |
see also | SoVertexShader, SoFragmentShader, SoMLSampler2D |
keywords | 2D, 3D, cubemap, dds, hdr, texture, array |
The SoImageFileSampler module allows to load an image file as a texture sampler for a SoFragmentShader. In addition it allows load cube map textures from a "cross" image, see Create Cube Map From Cross.
It supports (at least) the following file formats:
*.dds - Direct Draw Surface (2D, 3D and cube maps)
*.hdr - High Dynamic Range float images
*.png
*.jpg, *.jpe
*.pnm, *.ppm, *.pgm
*.jpe
*.bmp
*.tif
*.tiff
*.dcm, *.dicom
*.mlimage
See the example network.
Note that images are loaded on demand, so the image will only get loaded if the sampler is actually used in a shader.
Border Color: Vector4 | Texture Is Cube Map: Bool | use16BitFloat: Bool |
Create Cube Map From Cross: Bool | Texture Is Valid: Bool | Wrap R: Enum |
Enable Border: Bool | Texture Is3D: Bool | Wrap S: Enum |
Filename: String | Texture Size X: Integer | Wrap T: Enum |
Mag Filter: Enum | Texture Size Y: Integer | |
Min Filter: Enum | Texture Size Z: Integer | |
Name: String | textureIsCompressed: Bool | |
Needs Texture Coordinates: Bool | Use Texture Arrays: Bool |
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 |
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 |
Values:
Title | Name |
---|---|
Repeat | REPEAT |
Clamp | CLAMP |
Clamp To Edge | CLAMP_TO_EDGE |
Clamp To Border | CLAMP_TO_BORDER |
Mirrored Repeat | MIRRORED_REPEAT |
Values:
Title | Name |
---|---|
Repeat | REPEAT |
Clamp | CLAMP |
Clamp To Edge | CLAMP_TO_EDGE |
Clamp To Border | CLAMP_TO_BORDER |
Mirrored Repeat | MIRRORED_REPEAT |
Values:
Title | Name |
---|---|
Repeat | REPEAT |
Clamp | CLAMP |
Clamp To Edge | CLAMP_TO_EDGE |
Clamp To Border | CLAMP_TO_BORDER |
Mirrored Repeat | MIRRORED_REPEAT |
Enables usage of texture arrays instead of a 3D textures.