public class SoFragmentShader extends SoShaderObject
See SoShaderProgram
for general information about using shaders and shader parameters.
See parent class SoShaderObject
for details about using the inherited fields.
Notes:
SoShaderProgram
node.
// 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 ); } }
SoShaderProgram.generateTransparency
field to true. This ensures that Open Inventor knows to apply the correct handling for the current transparency mode.
SoShadowGroup
for example code.
File format/default:
FragmentShader {
sourceProgram | "" |
sourceType | FILENAME |
isActive | true |
parameter | NULL |
See also:
SoGeometryShader
, SoShaderObject
, SoShaderProgram
, SoTessellationControlShader
, SoTessellationEvaluationShader
, SoUniformShaderParameter
, SoVertexShader
SoShaderObject.ShaderTypes, SoShaderObject.SourceTypes
Inventor.ConstructorCommand
ARB_PROGRAM, CG_PROGRAM, FILENAME, FRAGMENT_SHADER, GEOMETRY_SHADER, GLSL_PROGRAM, isActive, parameter, sourceProgram, sourceType, TESSELLATION_CONTROL_SHADER, TESSELLATION_EVALUATION_SHADER, VERTEX_SHADER
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoFragmentShader()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
getMaxTextureImageUnit()
Returns the maximum number of texture image units.
|
static boolean |
isSupported(SoShaderObject.SourceTypes sourceType)
Calls isSupported(sourceType, (com.openinventor.inventor.misc.SoState)null).
|
static boolean |
isSupported(SoShaderObject.SourceTypes sourceType,
SoState state)
Indicates if fragment shaders in the specified language are supported by your graphics board.
|
getShaderType
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static boolean isSupported(SoShaderObject.SourceTypes sourceType)
public static int getMaxTextureImageUnit()
public static boolean isSupported(SoShaderObject.SourceTypes sourceType, SoState state)
SoGLExtension
for an example of using SoGLContext
to avoid them.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com