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)
20 lines
311 B
GLSL
20 lines
311 B
GLSL
/**
|
|
* @file starsF.glsl
|
|
*
|
|
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
|
|
* $/LicenseInfo$
|
|
*/
|
|
|
|
|
|
|
|
uniform sampler2D diffuseMap;
|
|
|
|
void main()
|
|
{
|
|
vec4 col = gl_Color * texture2D(diffuseMap, gl_TexCoord[0].xy);
|
|
|
|
gl_FragData[0] = col;
|
|
gl_FragData[1] = vec4(0,0,0,0);
|
|
gl_FragData[2] = vec4(0,0,1,0);
|
|
}
|