View Issue Details

IDProjectCategoryView StatusLast Update
0003121The Dark ModCodingpublic13.05.2012 11:06
Reportertels Assigned Totels  
PrioritylowSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 1.07 
Target VersionTDM 1.08Fixed in VersionTDM 1.08 
Summary0003121: Add particle macro
DescriptionThe 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 InformationThe 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.
TagsNo tags attached.

Relationships

related to 0003122 closednbohr1more Add ambient and frobhighlight macros to the material parser 

Activities

tels

tels

08.05.2012 20:26

reporter   ~0004558

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.
tels

tels

13.05.2012 11:06

reporter   ~0004575

Another one for twosided decals:

TWOSIDED_DECAL_MACRO specifies
  discrete
  nonsolid
  noimpact
  polygonOffset 1
  noShadows
  sort decal
  noselfShadow
  noShadows
  translucent
  twosided

Issue History

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