Node that defines a fragment shader.  
More...
#include <Inventor/nodes/SoFragmentShader.h>
  
 Public Member Functions | |
| virtual SoType | getTypeId () const | 
| SoFragmentShader () | |
| virtual ShaderType | getShaderType () const | 
Static Public Member Functions | |
| static SoType | getClassTypeId () | 
| static SbBool | isSupported (SoShaderObject::SourceType sourceType, SoState *state=NULL) | 
| static unsigned int | getMaxTextureImageUnit () | 
  Node that defines a fragment shader. 
This node defines a fragment shader.
See SoShaderProgram for general information about using shaders and shader parameters.
See parent class SoShaderObject for details about using the inherited fields.
Notes:
// Fragment shader GLSL code // !oiv_include <Inventor/oivDepthPeeling_frag.h> void main() { if (OivDepthPeel( gl_FragCoord.xyz )) { // Compute and set fragment color vec4 color = . . . OivDepthPeelingOutputColor( color ); } }
| sourceProgram | "" | 
| sourceType | FILENAME | 
| isActive | TRUE | 
| parameter | NULL | 
SoGeometryShader, SoShaderObject, SoShaderProgram, SoTessellationControlShader, SoTessellationEvaluationShader, SoUniformShaderParameter, SoVertexShader
InteractiveThresholding, MarkerPicking, OverlayDisplay, ShadersBrowser, CustomAlgebraicShape, CustomComputeColor, GPUGeometry, InterleavedVertexAttribFeedback, SimpleVertexAttribFeedback, VertexAttribFeedback, AnimatedFlag, GeometryShader, PixelLighting, shadowShader, ToonShading, MedicalDentalCurveUnfolding, MedicalMultiChannel, MedicalCutting, MedicalGammaCorrection, MedicalSimpleShader, MedicalMultiTransferFunctions, AmplitudeVelocity, SimpleShader, VolumeProjection, VolumeTransform
| SoFragmentShader::SoFragmentShader | ( | ) | 
Constructor.
| static SoType SoFragmentShader::getClassTypeId | ( | ) |  [static] | 
        
Returns the type identifier for this class.
Reimplemented from SoShaderObject.
| static unsigned int SoFragmentShader::getMaxTextureImageUnit | ( | ) |  [static] | 
        
Returns the maximum number of texture image units.
| virtual ShaderType SoFragmentShader::getShaderType | ( | ) |  const [inline, virtual] | 
        
Returns the shader type.
Implements SoShaderObject.
| virtual SoType SoFragmentShader::getTypeId | ( | ) |  const [virtual] | 
        
Returns the type identifier for this specific instance.
Reimplemented from SoShaderObject.
| static SbBool SoFragmentShader::isSupported | ( | SoShaderObject::SourceType | sourceType, | |
| SoState * |  state = NULL | |||
| ) |  [static] | 
        
Indicates if fragment shaders in the specified language are supported by your graphics board.
When using a debug build of Open Inventor, some "no context available" warning messages may be generated. You can ignore them or see SoGLExtension for an example of using SoGLContext to avoid them.