Original Post
delete [Edited by - LEdxP37 on April 29, 2007 1:49:01 PM]
Quote:
..my sun glare is 0-.1...
int position[2];position[1] = abs((int)SunPosition[1] - SCREEN_X/2);position[2] = abs((int)SunPosition[2] - SCREEN_Y/2);GLfloat sun_distance = sqrt(position[1] * position[1] + position[2] * position[2]);GLfloat alpha = 1.0 - sun_distance / 500.0;glColor4f(1.0f, 1.0f, 1.0f, alpha );drawStuffs.This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more