Bug 2956 - sky-shader with 0 stages get sort=7(fog)
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: unspecified
Hardware: All All
: P2 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2006-12-13 14:38 EST by Stefan "#@" Langer
Modified: 2007-05-21 11:27:09 EDT
0 users

See Also:



Description Stefan "#@" Langer 2006-12-13 14:38:23 EST
If a sky box shader has no stages, it will get the sortvalue 7 (fog).
Such skies overdraw transparent surfaces ... this can be seen in some "World of Padman"-maps where marks("bullet holes") on windows can't be seen if there is such a skybox behind the window.

FIX:
in "static shader_t *FinishShader( void )" ( renderer/tr_shader.c ... line: ~2285 )

-	if ( stage == 0 ) {
+	if ( stage == 0 && !shader.isSky ) {
Comment 1 Thilo Schulz 2006-12-15 08:53:04 EST
Thank you, that's something that has been bugging alot of people for a while now. Fixed in svn.
Comment 2 Ryan C. Gordon 2007-05-21 11:27:09 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.