oiv_include <Inventor/oivShaderStages.h> More...
Go to the source code of this file.
oiv_include <Inventor/oivShaderStages.h>
This file contains fonction to acces built-in GLSL uniforms
Definition in file oivShaderState.h.
| vec4 OivBackLightProductAmbient | ( | int | id | ) |
Get product of ambient component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackLightProductDiffuse | ( | int | id | ) |
Get product of diffuse component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackLightProductSpecular | ( | int | id | ) |
Get product of specular component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackMaterialAmbient | ( | ) |
Get back material ambient color.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackMaterialDiffuse | ( | ) |
Get back material diffuse color.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackMaterialEmissive | ( | ) |
Get back material emissive color.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| float OivBackMaterialShininess | ( | ) |
Get back material shininess value.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivBackMaterialSpecular | ( | ) |
Get back material specular color.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| vec4 OivClipPlane | ( | int | id | ) |
Get the clip plane coordinates.
| id | specifies which clip plane id to ask, must be between 0 and OivMaxClipPlanes()-1. |
| bool OivClipPlaneEnabled | ( | int | id | ) |
Ask if clip plane is enabled.
| id | specifies which clip plane id to ask, must be between 0 and OivMaxClipPlanes()-1. |
| vec4 OivFogColor | ( | ) |
Get the fog color.
| float OivFogDensity | ( | ) |
Get fog density used in exponential fog equations.
| float OivFogEnd | ( | ) |
Get the far distance used in the linear fog equation.
| float OivFogScale | ( | ) |
Get the fog scale derived from start and end parameters : 1.0 / (end - start).
| float OivFogStart | ( | ) |
Get the near distance used in the linear fog equation.
| vec4 OivFrontLightProductAmbient | ( | int | id | ) |
Get product of ambient component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
| vec4 OivFrontLightProductDiffuse | ( | int | id | ) |
Get product of diffuse component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
| vec4 OivFrontLightProductSpecular | ( | int | id | ) |
Get product of specular component between back material and id'th light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
| vec4 OivFrontMaterialAmbient | ( | ) |
Get front material ambient color.
| vec4 OivFrontMaterialDiffuse | ( | ) |
Get front material diffuse color.
| vec4 OivFrontMaterialEmissive | ( | ) |
Get front material emissive color.
| float OivFrontMaterialShininess | ( | ) |
Get front material shininess value.
| vec4 OivFrontMaterialSpecular | ( | ) |
Get front material specular color.
| vec4 OivFrontSceneColor | ( | ) |
Get sum of emissive component of front material and product between front material ambient and global ambient value.
| vec4 OivGlobalAmbient | ( | ) |
Gets the global ambient color value.
| vec4 OivLightSourceAmbient | ( | int | id | ) |
Get the light ambient color.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| float OivLightSourceConstantAttenuation | ( | int | id | ) |
Get the light constant attenuation value.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| vec4 OivLightSourceDiffuse | ( | int | id | ) |
Get the light diffuse color.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| bool OivLightSourceEnabled | ( | int | id | ) |
Ask if the light is enabled.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
| float OivLightSourceLinearAttenuation | ( | int | id | ) |
Get the light linear attenuation value.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| vec4 OivLightSourcePosition | ( | int | id | ) |
Get the light position.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| float OivLightSourceQuadraticAttenuation | ( | int | id | ) |
Get the light quadratic attenuation value.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| vec4 OivLightSourceSpecular | ( | int | id | ) |
Get the light specular color.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| float OivLightSourceSpotCosCutoff | ( | int | id | ) |
Get the light spot cutoff cosine.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| float OivLightSourceSpotCutoff | ( | int | id | ) |
Get the light spot cutoff.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| vec3 OivLightSourceSpotDirection | ( | int | id | ) |
Get the light spot direction.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| float OivLightSourceSpotExponent | ( | int | id | ) |
Get the light spot exponent.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| int OivMaxClipPlanes | ( | ) |
Get the maximum number of clipping planes sets by Open Inventor.
| int OivMaxLights | ( | ) |
Get the maximum number of lights sets by Open Inventor.
| int OivMaxTextureCoordinates | ( | ) |
Get the maximum number of texture coordinates sets by Open Inventor.
| int OivMaxTextureUnits | ( | ) |
Get the maximum number of texture units sets by Open Inventor.
| mat4 OivModelViewMatrix | ( | ) |
Get the combination of model and view transformations (MV), i.e., MV = V * M.
| mat4 OivModelViewMatrixInverse | ( | ) |
Get the inverse of the model-view matrix,.
| mat4 OivModelViewProjectionMatrix | ( | ) |
Get the combination of projection and model-view matrices (MVP), i.e., MVP = P * V * M.
| mat3 OivNormalMatrix | ( | ) |
Get the normal matrix (N), i.e., N = tr(MV^{-1}).
| vec4 OivObjectPlaneQ | ( | int | i | ) |
Get the user-defined planes for texture coordinate generation.
| vec4 OivObjectPlaneR | ( | int | i | ) |
Get the user-defined planes for texture coordinate generation.
| vec4 OivObjectPlaneS | ( | int | i | ) |
Get the user-defined planes for texture coordinate generation.
| vec4 OivObjectPlaneT | ( | int | i | ) |
Get the user-defined planes for texture coordinate generation.
| mat4 OivProjectionMatrix | ( | ) |
Get the projection matrix (P).
| mat4 OivProjectionMatrixInverse | ( | ) |
Get the inverse of the projection matrix (P^{-1}).
| mat4 OivTextureMatrix | ( | int | unit | ) |
Get texture matrices.
| unit | specifies which texture unit between 0 and OivMaxTextureUnit()-1. |