-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various issues with Ogre2GpuRays (#522)
There were multiple bugs that had to be fixed: - Objects which had no laser_retro set (or an invalid one) would be rendered using regular lighting PBS shaders; causing the retro value to contain garbage instead of the intended default value of 0 - Performance regression in 993bb0b: When ported to Ogre 2.2, ignition would render the scene 4 times instead of 2 (twice for objects, twice for particles). Depth buffer data was created through a 2nd redundant pass. This is inefficient as the depth buffer data is already available from the 1st pass - Bug regression in 993bb0b: In the pass for normal objects, ignition would first use IGN_VISIBILITY_ALL flags for colour, but it would use 0x01000000 for depth. This creates the wrong mix of data because an occluder that had visibility set to 0x01000000 would use the correct depth but the retro value of the object behind it. This bug is implicitly fixed by the previous item (colour and depth data are now obtained from the same pass instead of using multi pass) - PFG_R8_UNORM is nowhere enough to contain all possible laser retro values and would quantize too much. Increased precision to PFG_R16_UNORM - Affects #521. The problem is fixed for Fortress by always overriding setCustomParameter, but likely the fix should be backported to previous versions. Signed-off-by: Matias N. Goldberg <[email protected]> Co-authored-by: Ian Chen <[email protected]>
- Loading branch information
1 parent
da85b07
commit 1505138
Showing
1 changed file
with
41 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters