Imported existing code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @file atmosphericVarsF.glsl
|
||||
*
|
||||
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
|
||||
* $License$
|
||||
*/
|
||||
|
||||
varying vec3 vary_PositionEye;
|
||||
|
||||
vec3 getPositionEye()
|
||||
{
|
||||
return vary_PositionEye;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user