Add existing to tracked
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
in vec4 position;
|
||||
|
||||
out vec3 v_outerPositionWC;
|
||||
|
||||
#ifndef PER_FRAGMENT_ATMOSPHERE
|
||||
out vec3 v_mieColor;
|
||||
out vec3 v_rayleighColor;
|
||||
out float v_opacity;
|
||||
out float v_translucent;
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec4 positionWC = czm_model * position;
|
||||
float lightEnum = u_radiiAndDynamicAtmosphereColor.z;
|
||||
vec3 lightDirection = czm_getDynamicAtmosphereLightDirection(positionWC.xyz, lightEnum);
|
||||
|
||||
#ifndef PER_FRAGMENT_ATMOSPHERE
|
||||
computeAtmosphereScattering(
|
||||
positionWC.xyz,
|
||||
lightDirection,
|
||||
v_rayleighColor,
|
||||
v_mieColor,
|
||||
v_opacity,
|
||||
v_translucent
|
||||
);
|
||||
#endif
|
||||
|
||||
v_outerPositionWC = positionWC.xyz;
|
||||
vec4 positionEC = czm_modelView * position;
|
||||
gl_Position = czm_projection * positionEC;
|
||||
}
|
||||
Reference in New Issue
Block a user