View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003121 | The Dark Mod | Coding | public | 08.05.2012 19:40 | 13.05.2012 11:06 |
| Reporter | tels | Assigned To | tels | ||
| Priority | low | Severity | feature | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Product Version | TDM 1.07 | ||||
| Target Version | TDM 1.08 | Fixed in Version | TDM 1.08 | ||
| Summary | 0003121: Add particle macro | ||||
| Description | The material shader parser supports DECAL_MACRO as a shortcut for often used definitions. We have a lot of particle material shaders, and these always specify 7 common attributes: noselfShadow noShadows translucent discrete nonsolid noimpact Adding a PARTICLE macro would help cut down on repetive text. | ||||
| Additional Information | The place to add this is in renderer/Material.cpp, and this seems trivial, just copy the code from DECAL_MACRO and adjust it to add the wanted bits and pieces. Technically it would be even better to allow arbitrary #defines like in the GUI, but this is much harder to achive. | ||||
| Tags | No tags attached. | ||||
| related to | 0003122 | closed | nbohr1more | Add ambient and frobhighlight macros to the material parser |
|
Added support for PARTICLE_MACRO: noselfShadow noShadows translucent discrete nonsolid noimpact And GLASS_MACRO: noselfShadow noShadows translucent twosided That should cover the most common situations. If there are other common combos, they can be easily added. |
|
|
Another one for twosided decals: TWOSIDED_DECAL_MACRO specifies discrete nonsolid noimpact polygonOffset 1 noShadows sort decal noselfShadow noShadows translucent twosided |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 08.05.2012 19:40 | tels | New Issue | |
| 08.05.2012 19:40 | tels | Status | new => assigned |
| 08.05.2012 19:40 | tels | Assigned To | => tels |
| 08.05.2012 20:26 | tels | Note Added: 0004558 | |
| 08.05.2012 20:26 | tels | Status | assigned => resolved |
| 08.05.2012 20:26 | tels | Fixed in Version | => TDM 1.08 |
| 08.05.2012 20:26 | tels | Resolution | open => fixed |
| 11.05.2012 08:40 | tels | Relationship added | related to 0003122 |
| 13.05.2012 11:06 | tels | Note Added: 0004575 |