atmosphericsVarsV.glsl
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:
游戏引擎
开发平台:
C++ Builder
- /**
- * @file atmosphericVars.glsl
- *
- * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
- * $License$
- */
- varying vec3 vary_PositionEye;
- varying vec3 vary_SunlitColor;
- varying vec3 vary_AmblitColor;
- varying vec3 vary_AdditiveColor;
- varying vec3 vary_AtmosAttenuation;
- vec3 getPositionEye()
- {
- return vary_PositionEye;
- }
- vec3 getSunlitColor()
- {
- return vary_SunlitColor;
- }
- vec3 getAmblitColor()
- {
- return vary_AmblitColor;
- }
- vec3 getAdditiveColor()
- {
- return vary_AdditiveColor;
- }
- vec3 getAtmosAttenuation()
- {
- return vary_AtmosAttenuation;
- }
- void setPositionEye(vec3 v)
- {
- vary_PositionEye = v;
- }
- void setSunlitColor(vec3 v)
- {
- vary_SunlitColor = v;
- }
- void setAmblitColor(vec3 v)
- {
- vary_AmblitColor = v;
- }
- void setAdditiveColor(vec3 v)
- {
- vary_AdditiveColor = v;
- }
- void setAtmosAttenuation(vec3 v)
- {
- vary_AtmosAttenuation = v;
- }