Imported existing code

This commit is contained in:
Hazim Gazov
2010-04-02 02:48:44 -03:00
parent 48fbc5ae91
commit 7a86d01598
13996 changed files with 2468699 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/**
* @file atmosphericsF.glsl
*
* Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
* $License$
*/
vec3 atmosLighting(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}

View File

@@ -0,0 +1,34 @@
/**
* @file atmosphericsHelpersV.glsl
*
* Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
* $License$
*/
vec3 atmosAmbient(vec3 light)
{
return gl_LightModel.ambient.rgb + light;
}
vec3 atmosAffectDirectionalLight(float lightIntensity)
{
return gl_LightSource[0].diffuse.rgb * lightIntensity;
}
vec3 atmosGetDiffuseSunlightColor()
{
return gl_LightSource[0].diffuse.rgb;
}
vec3 scaleDownLight(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}
vec3 scaleUpLight(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}

View File

@@ -0,0 +1,15 @@
/**
* @file atmosphericsV.glsl
*
* Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
* $License$
*/
void setPositionEye(vec3 v);
void calcAtmospherics(vec3 inPositionEye)
{
/* stub function for fallback compatibility on class1 hardware */
setPositionEye(inPositionEye);
}

View File

@@ -0,0 +1,13 @@
/**
* @file atmosphericVarsF.glsl
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
*/
varying vec3 vary_PositionEye;
vec3 getPositionEye()
{
return vary_PositionEye;
}

View File

@@ -0,0 +1,19 @@
/**
* @file atmosphericVarsV.glsl
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
*/
varying vec3 vary_PositionEye;
vec3 getPositionEye()
{
return vary_PositionEye;
}
void setPositionEye(vec3 v)
{
vary_PositionEye = v;
}

View File

@@ -0,0 +1,19 @@
/**
* @file gammaF.glsl
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
*/
uniform vec4 gamma;
/// Soft clips the light with a gamma correction
vec3 scaleSoftClip(vec3 light) {
// For compatibility with lower cards. Do nothing.
return light;
}
vec3 fullbrightScaleSoftClip(vec3 light) {
return scaleSoftClip(light);
}

View File

@@ -0,0 +1,26 @@
/**
* @file transportF.glsl
*
* Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
* $License$
*/
vec3 atmosTransport(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}
vec3 fullbrightAtmosTransport(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}
vec3 fullbrightShinyAtmosTransport(vec3 light)
{
/* stub function for fallback compatibility on class1 hardware */
return light;
}