You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- r_drawSun is now default 1 (was 0), because...
- sunShader key - allows sky shaders to explicitly define a shader to use for the sun. In addition to that, a flare type number and a size multiplier number can follow for a little more customization. Partially inspired by RTCW's sunshader key, which only dealt with the image (and never finished their lens flare reflections)
- Suns with a portal on screen won't cancel out the sun or its flare
- If no sun flare is specified, don't draw a sun flare at all. should be one less unnecessary depth read
- r_drawSun 2 is the old 'always show sun' behavior
- sun shader now correctly orientated
- drawing the sun uses a quadstamp
- some 'low end video' alternative shader loading that current does not work. May revert
- ifdefing out shademethod LOD for fixing later
vec3_tsunLight; // from the sky shader for this level
1195
1196
vec3_tsunDirection;
1197
+
intsunFlare; // leilei - sun flare type
1198
+
floatsunOn; // leilei - allow the sun to be drawn, if a sunShader is specified by a sky shader. This is a float so we can multiply the size of the sun in the shader
1196
1199
1197
1200
frontEndCounters_tpc;
1198
1201
intfrontEndMsec; // not in pc due to clearing issue
@@ -1255,7 +1258,7 @@ extern glstate_t glState; // outside of TR since it shouldn't be cleared during
0 commit comments