This file contains fonction to acces built-in GLSL uniforms. More...
Go to the source code of this file.
Macros | |
| #define | OIV_PROJECTION_TYPE_ORTHO 0 |
| #define | OIV_PROJECTION_TYPE_PERSPECTIVE 1 |
| #define | OIV_LIGHT_TYPE_NONE 0 |
| #define | OIV_LIGHT_TYPE_POINT 1 |
| #define | OIV_LIGHT_TYPE_SPOT 2 |
| #define | OIV_LIGHT_TYPE_DIRECTIONAL 3 |
Functions | |
| int | OivMaxLights () |
| Get the maximum number of lights sets by Open Inventor. | |
| int | OivMaxClipPlanes () |
| Get the maximum number of clipping planes 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 | OivModelMatrix () |
| Get transformation of the model (M). | |
| mat4 | OivModelMatrixInverse () |
| Get inverse transformation of the model (M^{-1}). | |
| mat4 | OivViewMatrix () |
| Get transformation of the view (V). | |
| mat4 | OivViewMatrixInverse () |
| Get inverse transformation of the view (V^{-1}). | |
| 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,. | |
| mat3 | OivNormalMatrix () |
| Get the normal matrix (N), i.e., N = tr(MV^{-1}). | |
| mat4 | OivProjectionMatrix () |
| Get the projection matrix (P). | |
| mat4 | OivProjectionMatrixInverse () |
| Get the inverse of the projection matrix (P^{-1}). | |
| mat4 | OivModelViewProjectionMatrix () |
| Get the combination of projection and model-view matrices (MVP), i.e., MVP = P * V * M. | |
| mat4 | OivTextureMatrix (int unit) |
| Get texture matrices. | |
| vec2 | OivViewportSize () |
| Get the size of the viewport. | |
| vec2 | OivViewVolumeSize () |
| Get the near/far view volume of the camera. | |
| int | OivViewProjectionType () |
| Get the projection type of the camera (OIV_PROJECTION_TYPE_ORTHO or OIV_PROJECTION_TYPE_PERSPECTIVE) | |
| bool | OivHasLighting () |
| Ask if lighting is enabled. | |
| bool | OivHasTwoSidedLighting () |
| Ask if two-sided lighting is enabled. | |
| bool | OivHasPerPixelLighting () |
| Ask if per-pixel lighting is enabled. | |
| bool | OivHasColorMaterial () |
| Ask if color material is enabled. | |
| vec4 | OivGlobalAmbient () |
| Gets the global ambient color value. | |
| bool | OivLightSourceEnabled (int id) |
| Ask if the light is enabled. | |
| int | OivLightSourceType (int id) |
| Get the type of the light. | |
| vec4 | OivLightSourcePosition (int id) |
| Get the light position. | |
| vec3 | OivLightSourceSpotDirection (int id) |
| Get the light spot direction. | |
| float | OivLightSourceSpotExponent (int id) |
| Get the light spot exponent. | |
| float | OivLightSourceSpotCutoff (int id) |
| Get the light spot cutoff. | |
| float | OivLightSourceSpotCosCutoff (int id) |
| Get the light spot cutoff cosine. | |
| vec4 | OivLightSourceAmbient (int id) |
| Get the light ambient color. | |
| vec4 | OivLightSourceDiffuse (int id) |
| Get the light diffuse color. | |
| vec4 | OivLightSourceSpecular (int id) |
| Get the light specular color. | |
| float | OivLightSourceConstantAttenuation (int id) |
| Get the light constant attenuation value. | |
| float | OivLightSourceLinearAttenuation (int id) |
| Get the light linear attenuation value. | |
| float | OivLightSourceQuadraticAttenuation (int id) |
| Get the light quadratic attenuation value. | |
| int | OivMaxLightId () |
| vec4 | OivFrontMaterialAmbient () |
| Get front material ambient color. | |
| vec4 | OivFrontMaterialDiffuse () |
| Get front material diffuse color. | |
| vec4 | OivFrontMaterialSpecular () |
| Get front material specular color. | |
| vec4 | OivFrontMaterialEmissive () |
| Get front material emissive color. | |
| float | OivFrontMaterialShininess () |
| Get front material shininess value. | |
| float | OivFrontMaterialSpecularFactor () |
| Get front material specular factor value. | |
| float | OivFrontMaterialRoughness () |
| Get front material roughness value. | |
| float | OivFrontMaterialMetallic () |
| Get front material metallic value. | |
| vec4 | OivBackMaterialAmbient () |
| Get back material ambient color. | |
| vec4 | OivBackMaterialDiffuse () |
| Get back material diffuse color. | |
| vec4 | OivBackMaterialSpecular () |
| Get back material specular color. | |
| vec4 | OivBackMaterialEmissive () |
| Get back material emissive color. | |
| float | OivBackMaterialShininess () |
| Get back material shininess value. | |
| float | OivBackMaterialSpecularFactor () |
| Get back material specular factor value. | |
| float | OivBackMaterialRoughness () |
| Get back material roughness value. | |
| float | OivBackMaterialMetallic () |
| Get back material metallic value. | |
| vec4 | OivFrontSceneColor () |
| Get sum of emissive component of front material and product between front material ambient and global ambient value. | |
| vec4 | OivFrontLightProductAmbient (int id) |
| Get product of ambient component between back material and id'th light. | |
| vec4 | OivFrontLightProductDiffuse (int id) |
| Get product of diffuse component between back material and id'th light. | |
| vec4 | OivFrontLightProductSpecular (int id) |
| Get product of specular component between back material and id'th light. | |
| vec4 | OivBackLightProductAmbient (int id) |
| Get product of ambient component between back material and id'th light. | |
| vec4 | OivBackLightProductDiffuse (int id) |
| Get product of diffuse component between back material and id'th light. | |
| vec4 | OivBackLightProductSpecular (int id) |
| Get product of specular component between back material and id'th light. | |
| bool | OivClipPlaneEnabled (int id) |
| Ask if clip plane is enabled. | |
| vec4 | OivClipPlane (int id) |
| Get the clip plane coordinates. | |
| vec4 | OivFogColor () |
| Get the fog color. | |
| float | OivFogDensity () |
| Get fog density used in exponential fog equations. | |
| float | OivFogStart () |
| Get the near distance used in the linear fog equation. | |
| 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) | |
| int | OivFogType () |
| Get the fog type. | |
| 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. | |
| vec4 | OivObjectPlaneR (int i) |
| Get the user-defined planes for texture coordinate generation. | |
| vec4 | OivObjectPlaneQ (int i) |
| Get the user-defined planes for texture coordinate generation. | |
This file contains fonction to acces built-in GLSL uniforms.
Definition in file oivShaderState.h.
| #define OIV_LIGHT_TYPE_DIRECTIONAL 3 |
Definition at line 171 of file oivShaderState.h.
| #define OIV_LIGHT_TYPE_NONE 0 |
Definition at line 168 of file oivShaderState.h.
| #define OIV_LIGHT_TYPE_POINT 1 |
Definition at line 169 of file oivShaderState.h.
| #define OIV_LIGHT_TYPE_SPOT 2 |
Definition at line 170 of file oivShaderState.h.
| #define OIV_PROJECTION_TYPE_ORTHO 0 |
Definition at line 118 of file oivShaderState.h.
| #define OIV_PROJECTION_TYPE_PERSPECTIVE 1 |
Definition at line 119 of 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 OivBackMaterialMetallic | ( | ) |
Get back material metallic value.
Note that this parameter is relevant only if two side lighting is enabled (i.e. OivHasTwoSidedLighting() returns true).
| float OivBackMaterialRoughness | ( | ) |
Get back material roughness value.
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).
| float OivBackMaterialSpecularFactor | ( | ) |
Get back material specular factor value.
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.
| int OivFogType | ( | ) |
Get the fog type.
| 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 OivFrontMaterialMetallic | ( | ) |
Get front material metallic value.
| float OivFrontMaterialRoughness | ( | ) |
Get front material roughness value.
| float OivFrontMaterialShininess | ( | ) |
Get front material shininess value.
| vec4 OivFrontMaterialSpecular | ( | ) |
Get front material specular color.
| float OivFrontMaterialSpecularFactor | ( | ) |
Get front material specular factor value.
| 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.
| bool OivHasColorMaterial | ( | ) |
Ask if color material is enabled.
| bool OivHasLighting | ( | ) |
Ask if lighting is enabled.
| bool OivHasPerPixelLighting | ( | ) |
Ask if per-pixel lighting is enabled.
| bool OivHasTwoSidedLighting | ( | ) |
Ask if two-sided lighting is enabled.
| 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. |
Note that this parameter is relevant only if lighting is enabled (i.e. OivHasLighting() returns true).
| 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 OivLightSourceType | ( | int | id | ) |
Get the type of the light.
| id | specifies which light id to ask, must be between 0 and OivMaxLights()-1. |
| int OivMaxClipPlanes | ( | ) |
Get the maximum number of clipping planes sets by Open Inventor.
| int OivMaxLightId | ( | ) |
| 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 OivModelMatrix | ( | ) |
Get transformation of the model (M).
| mat4 OivModelMatrixInverse | ( | ) |
Get inverse transformation of the model (M^{-1}).
| 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. |
| mat4 OivViewMatrix | ( | ) |
Get transformation of the view (V).
| mat4 OivViewMatrixInverse | ( | ) |
Get inverse transformation of the view (V^{-1}).
| vec2 OivViewportSize | ( | ) |
Get the size of the viewport.
| int OivViewProjectionType | ( | ) |
Get the projection type of the camera (OIV_PROJECTION_TYPE_ORTHO or OIV_PROJECTION_TYPE_PERSPECTIVE)
| vec2 OivViewVolumeSize | ( | ) |
Get the near/far view volume of the camera.