GRLap
Member
I am using ext_config to light objects in my track. I have a material (signage) that's used by many objects. I am only lighting one object that uses this texture/material. I am specifying the material to illuminate, not the object, using code:
[CustomEmissive]
ACTIVE = 1
DESCRIPTION = pump_lights
MATERIALS=signage
Resolution= 1024,1024
SHADER=ksPerPixelMultiMap_emissive
@ = CustomEmissive_Rect, Channel = 1, Start = "656, 192", Size = "100, 45", CornerRadius=0.0
[LIGHT_SERIES_...]
...
[MATERIAL_ADJUSTMENT_...]
...
The lighting works as intended on the specified object (specified by the X,Y location on texture), but there is an unwanted side effect: portions of other objects that also use signage are rendering black. Specifically, the black rendering portions are where an object has a UV that maps over alpha channel on the texture.
I think it probably has something to do with the code in block: [MATERIAL_ADJUSTMENT_...], but this is just my guess.
[MATERIAL_ADJUSTMENT_...]
ACTIVE=1
DESCRIPTION = pump_lights
MATERIALS=signage
KEY_...=ksEmissive1
VALUE_0=150,150,150,0.015
VALUE_0_OFF=0, 0, 0
CONDITION=NIGHT_SMOOTH
KEY_... = ksAlphaRef
VALUE_... = -193
[CustomEmissive]
ACTIVE = 1
DESCRIPTION = pump_lights
MATERIALS=signage
Resolution= 1024,1024
SHADER=ksPerPixelMultiMap_emissive
@ = CustomEmissive_Rect, Channel = 1, Start = "656, 192", Size = "100, 45", CornerRadius=0.0
[LIGHT_SERIES_...]
...
[MATERIAL_ADJUSTMENT_...]
...
The lighting works as intended on the specified object (specified by the X,Y location on texture), but there is an unwanted side effect: portions of other objects that also use signage are rendering black. Specifically, the black rendering portions are where an object has a UV that maps over alpha channel on the texture.
I think it probably has something to do with the code in block: [MATERIAL_ADJUSTMENT_...], but this is just my guess.
[MATERIAL_ADJUSTMENT_...]
ACTIVE=1
DESCRIPTION = pump_lights
MATERIALS=signage
KEY_...=ksEmissive1
VALUE_0=150,150,150,0.015
VALUE_0_OFF=0, 0, 0
CONDITION=NIGHT_SMOOTH
KEY_... = ksAlphaRef
VALUE_... = -193