Click or drag to resize
SoAlgebraicShapeshaderSlots Property

Multi-field for Shader slots of type OIV.Inventor.Nodes.SoShaderObject.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public SoMFNode shaderSlots { get; }

Property Value

Type: SoMFNode
Remarks

Shader slots can contain application provided shader functions and are of the type defined in ASShaderSlot enumeration:

  • COMPUTE_COLOR [optional] is the slot corresponding to the fragment color shading computation. The position and normal defined in the OivASPoint structure are expressed in camera space. Function must be defined as:

vec4 OivASComputeColor ( in OivASPoint p )
{
  DO SOMETHING
  return A_COLOR;
}

  • VERTEX_SHADER_ENTRY [optional] is the slot corresponding to vertex shader entry point for initializing varying parameters from attributes (e.g. mesh attributes or instance parameters). Function must be defined as:

void OivASVertexShaderEntry ()
{
  DO SOMETHING
}

See Also