Build 7794
SVN-
Generale
Fix an OG Duke bug where projectiles would bounce off the tops of sprites instead of registering a hit
Nickname SVN e nomi Git sono unificati per persona.
Fix an OG Duke bug where projectiles would bounce off the tops of sprites instead of registering a hit
Fix translucent masked wall sorting issue in Polymost
Voxel fix
Fix stupid bug with sprite shadows in Polymost
Voxel fixes from Nuke
osdfuncs.cpp: fix OSD background sometimes not rendering with the correct gl state
Support clamping in polymost1Frag.glsl and use it for sprites
Separate out polymost1Frag and polymost1Vert shaders from polymost.cpp and add rules for building in the GNUmakefile.
Additionally, git ignore the shader's generated headers folder.
polymost.cpp: Adjust shaders to use texture2DGradARB() if available
Voxel fixes from Nuke.YKT
Don't attempt to animate sprites drawn as voxels by picnum
Make shadows on voxels in Polymost look like they do in classic
Add tilehasmodelorvoxel() function and fix instances where voxels for multi-sided sprites would get flipped based on the viewing angle
Prevent uninitialized access to hitwalls[] in clipmove()
Bump MAXCACHEOBJECTS from 9216 to 16384
This is actually the first time we've increased this limit in the entire time the engine source has been available.
Mapster32 Polymost cursor selection omission
Fix 32-bit Polymost issues by enabling SSE instructions and setting GCC to use SSE floating point math exclusively.
Additionally, enable SSE2 to better match 64-bit builds and use -malign-double for the potential performance benefit.
Revert "Patch from Nuke.YKT to improve mouse selection in the editor in Polymost"
Looks like commits made to public SVN after this commit in my local tree resulted in a merge error
Patch from Nuke.YKT to improve mouse selection in the editor in Polymost
game.cpp: When A_Spawn() is spawning from an already existing sprite, do not reset the owner field if it has been overridden from the default.
polymost.cpp: Fix polymost_domost() issue with COMBINE_STRIPS where in certain cases, merging with the viewport nodes caused accidental reading of sentinel node values.
Additional debug code is included for visualizing the state of the vsp data structure. Further, fix issue in drawpoly where it would access out of bounds of dpxy if fewer than 3 vertices were passed in and fix issue where multiple calls to polymost_setVisibility() were repeatedly setting the visibility factor to the same value.
Use stencil buffer in Polymost to restrict mirrors to only render within the region of the screen occupied by the mirror wall.
Additionally, raise minimum number of stencil buffer bits to accomodate future use of the stencil buffer.
Neat Polymost y-shearing patch from Nuke.YKT
Polymost shade table interpolation patch from Nuke.YKT
Organize Polymost cvars a little bit
This intentionally adds CVAR_NOSAVE to r_npotwallmode so that the recently added mode 2 can be more thoroughly tested by users with existing configuration files.
Simplify CON_FINDNEARACTOR family of functions and restore the original behavior of returning the nearest sprite instead of any sprite that satisfies the condition
Replace a handful of accesses to sprite[vm.spriteNum] with accesses to vm.pSprite
It looks like these were simply missed when vm.pSprite was initially added.
engine.cpp: fix sprite sorting/adjustment issue introduced in r7612 that caused sprites with the same y value at the end of the sorted array to not be adjusted properly
polymost.cpp: Fix issue where state would not be reset properly in polymost_drawmaskwall() when rendering translucent maskwalls with no texture
polymost.cpp: fix polymost_dorotatesprite() alpha test/blend issue introduced in r7619
polymost.cpp: fix issue where floors & ceilings with DAMETH_MASKPROPS were not being blended
engine.cpp: fix bug in killsprite where sprites were not being removed properly after sorting changes
Fix Polymer skybox bug introduced in r7620
Remove enabling/disabling of deprecated GL_TEXTURE_2D in Polymost.
For Polymer, temporarily workaround coupling with Polymost and usage of the fixed-function pipeline. Additionally, fix typo in polymost_printtext256().
polymost.cpp: switch from writing gl_FragColor to writing gl_FragData[0] in order to reduce VGPR usage on AMD cards
Fix depth buffer issue causing translucent sprites to not render properly in Polymost.
Use polymost_spriteHasTranslucency() and polymost_maskWallHasTranslucency() to determine if a sprite has translucency. Optimize sprite rendering when in Polymost by only sorting sprites with translucency.
Fix SOS check in clipmove()
Add support for returning the closest point in the sector to getsectordist()
Add SFLAG_QUEUEDFORDELETE, to handle detection and manipulation of things like decal sprites marked for deletion
Introduce a few "new" types for convenience when dealing with pointers to sprites, walls, and sectors that bypass the StructTracker stuff
Add optional output parameter to getwalldist(), to return the coordinates of the closest point on the wall