$specmap_texture
$specmap_texture
is a material shader parameter available in Black Mesa.
This shader is used for surfaces to give PBR style shiny speculars. Works with VertexLitGeneric and LightmappedGeneric. This shader work only with deferred rendering lighting entities which support and use SpecularMultiplier
parametr (in the game code or as kayvalue), the entities is: NewLight_Point, NewLight_Spot, npc_zombie_hev (flashlight), prop_barrel_cactus, prop_barrel_cactus_semilarge, prop_barrel_interloper, prop_barrel_interloper_small, env_cascade_light, bmortar, npc_plantlight, npc_plantlight_stalker, player (flashlight).
Contents
Parameters and Effects
|
$specmap_mode
value.
|
|
|
$bumpmap
or $normalmap
as a specular mask. $specmap_texture
will be used as an additional mask or glossiness mask if $specmap_mode
is set. This allows a blendable specular mask on LightmappedGeneric
.
$envmapmask
or $basealphaenvmapmask
and others affect newlight specular.Bugs/Limitations
World geometry doesn't work with env_cascade_light
Unlike models - speculars doesn't work with env_cascade_light for world geometry.
Fullbright glitch with $specmap_mode
If values are used in $specmap_mode that were not thought out for use - surface will get fullbright and you'll get message in the console:
See also
- $phong (for diffuse reflection)
newLight_Point
newLight_Spot
NewLights_settings
env_cascade_light
light_environment
- Advanced Lighting
- Effect flags (dynamic light effects)
- BlackMesa XenEngine: Part 4 – Lighting & Shadows (page from Black Mesa developer about new lights)
- BlackMesa XenEngine: Part2 – How a Frame is Rendered (page from Black Mesa developer about how a frame rendered, include Godrays.)
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as XenEngine)