1#ifndef OIV_LEGACY_SHADER_HELPER_H
2#define OIV_LEGACY_SHADER_HELPER_H
13gl_MaterialParameters OivFrontMaterial()
15 gl_MaterialParameters mat;
24gl_MaterialParameters OivBackMaterial()
26 gl_MaterialParameters params;
43gl_LightSourceParameters OivLightSourceParameters(
int i )
45 gl_LightSourceParameters params;
64gl_LightModelParameters OivLightModel()
66 gl_LightModelParameters params;
75gl_LightModelProducts OivFrontLightModelProduct()
77 gl_LightModelProducts params;
83gl_LightModelProducts OivBackLightModelProduct()
85 gl_LightModelProducts params;
96gl_LightProducts OivFrontLightProduct(
int i )
98 gl_LightProducts params;
105gl_LightProducts OivBackLightProduct(
int i )
107 gl_LightProducts params;
117gl_FogParameters OivFogParameters()
119 gl_FogParameters params;
132gl_PointParameters OivPointParameters()
134 gl_PointParameters params;
135 params.size = gl_PointSize;
138 params.fadeThresholdSize = 0;
139 params.distanceConstantAttenuation = 0;
140 params.distanceLinearAttenuation = 0;
141 params.distanceQuadraticAttenuation = 0;
vec4 OivFrontLightProductDiffuse(int id)
Get product of diffuse component between back material and id'th light.
float OivLightSourceLinearAttenuation(int id)
Get the light linear attenuation value.
float OivFrontMaterialShininess()
Get front material shininess value.
float OivLightSourceSpotExponent(int id)
Get the light spot exponent.
vec3 OivLightSourceSpotDirection(int id)
Get the light spot direction.
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)
vec4 OivFogColor()
Get the fog color.
vec4 OivFrontMaterialAmbient()
Get front material ambient color.
vec4 OivBackLightProductSpecular(int id)
Get product of specular component between back material and id'th light.
vec4 OivBackMaterialEmissive()
Get back material emissive color.
vec4 OivFrontLightProductSpecular(int id)
Get product of specular component between back material and id'th light.
vec4 OivFrontLightProductAmbient(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.
float OivBackMaterialShininess()
Get back material shininess value.
vec4 OivGlobalAmbient()
Gets the global ambient color value.
vec4 OivLightSourcePosition(int id)
Get the light position.
float OivLightSourceSpotCutoff(int id)
Get the light spot cutoff.
float OivLightSourceSpotCosCutoff(int id)
Get the light spot cutoff cosine.
vec4 OivLightSourceSpecular(int id)
Get the light specular color.
float OivLightSourceConstantAttenuation(int id)
Get the light constant attenuation value.
float OivLightSourceQuadraticAttenuation(int id)
Get the light quadratic attenuation value.
vec4 OivFrontMaterialDiffuse()
Get front material diffuse color.
vec4 OivBackLightProductAmbient(int id)
Get product of ambient component between back material and id'th light.
vec4 OivLightSourceDiffuse(int id)
Get the light diffuse color.
float OivFogDensity()
Get fog density used in exponential fog equations.
vec4 OivLightSourceAmbient(int id)
Get the light ambient color.
vec4 OivFrontMaterialEmissive()
Get front material emissive color.
vec4 OivBackMaterialSpecular()
Get back material specular color.
vec4 OivFrontMaterialSpecular()
Get front material specular color.
vec4 OivBackMaterialDiffuse()
Get back material diffuse color.
vec4 OivBackMaterialAmbient()
Get back material ambient color.