Plus renamed setupViewport to setup[2|3]DViewport. Migrated mWindowRect to mWindowRectRaw, mVirtualWindowRect to mWindowRectScaled. Slowly updating getwindow/getworldview calls to new v2 variants as I run across them. Cleaned up ascent-related code in llmanip.cpp. Impostor update tweaks. Edgepatch water occlusion changes. (no patch flickering on edges of screen while moving camera)
22 lines
362 B
GLSL
22 lines
362 B
GLSL
/**
|
|
* @file avatarShadowF.glsl
|
|
*
|
|
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
|
|
* $/LicenseInfo$
|
|
*/
|
|
|
|
|
|
|
|
uniform sampler2D diffuseMap;
|
|
|
|
varying vec4 post_pos;
|
|
|
|
void main()
|
|
{
|
|
//gl_FragColor = vec4(1,1,1,gl_Color.a * texture2D(diffuseMap, gl_TexCoord[0].xy).a);
|
|
gl_FragColor = vec4(1,1,1,1);
|
|
|
|
gl_FragDepth = max(post_pos.z/post_pos.w*0.5+0.5, 0.0);
|
|
}
|
|
|