DaemonEngine / Daemon

The Dæmon game engine. With some bits of ioq3 and XreaL.
https://unvanquished.net
BSD 3-Clause "New" or "Revised" License
293 stars 60 forks source link

Note about polybuffers and Wolf:ET atmospheric effects #319

Open illwieckz opened 4 years ago

illwieckz commented 4 years ago

PR #153 (Nuke IRC, and some other unnecessary code) removed the unused polybuffer code, that change was merged in commit d55c370 (Remove unused code about 'polybuffers').

@ensiform reported me on #etlegacy discord that this polybuffer code was historically a requirement for some Wolf:ET code:

atmosphere effects, flamethrower and one specific type in cg_trails.c rendering utilizes these

An effort to mutualise development on the renderer would require this commit to be reverted.

@ensiform is this code related to environmental snow (railgun map), rain (radar map) that is set as map property in Wolf:ET?

illwieckz commented 4 years ago

Quote from @isRyven:

yes atmospheric effects are the rain and snow in mentioned maps an example usage: https://github.com/etlegacy/etlegacy/blob/master/src/cgame/cg_atmospheric.c#L77 adds snow/rain effect to polybuffer then renders it using the trap https://github.com/etlegacy/etlegacy/blob/a67dc24fff0d9a7bb8e6f034264df1de0b48a967/src/cgame/cg_polybus.c#L121