CustomComputeColor - This example shows custom color for
SoAlgebraicShape.
DESCRIPTION:
This example demonstrates how to implement custom color shader slot for a SoAlgebraicShape by providing a shader file corresponding to a custom shading per fragment. Moreover, it provides an example on how to handle a texture by computing fake texture coordinates and use a texture embedded in the scene graph. It also shows how to generate transparent fragment without setting a transparent material.
SEE ALSO
SoAlgebraicShape, SoAlgebraicSphere, SoFragmentShader
SCREENSHOT:
FILES:
-
Inventor/examples/Features/AlgebraicShape/CustomComputeColor/CustomComputeColor.cxx
-
Inventor/examples/Features/AlgebraicShape/CustomComputeColor/textures/noise.png
-
Inventor/examples/Features/AlgebraicShape/CustomComputeColor/shaders/CustomComputeColor_frag.glsl