Documentation/Tools/SCS Blender Tools/Supported shaders
With version 1.0 Blender Tools are presenting flavors in materials. Flavors are used for common passes in more shaders. Depending on each shader different flavors can be enabled on it.
Shader preset list now includes only base shader types, which can be later altered with switching different flavors on and off. That's why this page now resembles base shader types and flavors description.
Contents
- 1 Base Shader Types
- 1.1 building.add.env.day
- 1.2 building.day
- 1.3 building.lvcol.day
- 1.4 decalshadow
- 1.5 dif
- 1.6 dif.anim
- 1.7 dif.lum
- 1.8 dif.lum.spec
- 1.9 dif.spec
- 1.10 dif.spec.add.env
- 1.11 dif.spec.add.env.nofresnel
- 1.12 dif.spec.fade.dif.spec
- 1.13 dif.spec.mult.dif.spec
- 1.14 dif.spec.mult.dif.spec.add.env
- 1.15 dif.spec.mult.dif.spec.iamod.dif.spec
- 1.16 dif.spec.oclu
- 1.17 dif.spec.oclu.add.env
- 1.18 dif.spec.over.dif.opac
- 1.19 dif.spec.weight
- 1.20 dif.spec.weight.add.env
- 1.21 dif.spec.weight.mult2
- 1.22 dif.spec.weight.mult2.weight2
- 1.23 dif.spec.weight.weight.dif.spec.weight
- 1.24 dif.weight.dif
- 1.25 fakeshadow
- 1.26 flare
- 1.27 glass
- 1.28 grass
- 1.29 lamp
- 1.30 light.tex
- 1.31 lightmap.night
- 1.32 mlaaweight
- 1.33 none
- 1.34 reflective
- 1.35 shadowmap
- 1.36 shadowonly
- 1.37 sign
- 1.38 sky
- 1.39 truckpaint
- 1.40 unlit.tex
- 1.41 unlit.vcol.tex
- 1.42 water
- 1.43 window.day
- 1.44 window.night
- 2 Flavors
Base Shader Types
building.add.env.day
Use this material if you want your building windows to reflect at day-time and be lit at night. It shall be more or less used on distant "panorama" buildings as they don't need advanced features from #window.day / #window.night.
It effectively switches two materials depending on the time of the day. During the day it uses #dif.spec.add.env material with texture for reflections and at night switches to #dif.lum.spec in order for windows to light at the night.
The texture must have alpha channel on places where it should have reflections and light at night.
building.day
Same as #building.add.env.day without reflection component.
It effectively switches two materials depending on the time of the day. During the day it uses #dif.spec material where alpha is used as specular map and at night switches to #dif.lum.spec in order for windows to light at the night.
building.lvcol.day
Same as #building.day with extra multiplication of vertex color.
During the day vertex color is multiplying specular map, on the other hand during the night vertex color is multiplying luminance.
decalshadow
Used for transparent static baked shadows. Color of surfaces is put together from the base texture multiplied with material diffuse and vertex color.
On the other hand transparency is donated by multiplication of vertex color alpha and base texture alpha channel.
dif
This is one of the most basic shader with diffuse and specular light featuring one texture. Specular light is used directly from value specified in material.
Useful Flavor Combinations
- "dif.a" - the areas on geometries where texture has alpha value 0 will be transparent. Example usage: grills, railings and ladders on far buildings.
- "dif.shadow" - uses geometry also as shadow caster. This type of shader shall be used only in the case of complex animated geometries, because cost of animation calculation may be greater than calculating shadows directly on high poly mesh.
- "dif.shadow.a" - is a combination of "dif.shadow" and "dif.a" which means that areas of geometry which will be transparent also won't cast shadows. This shader may be used for fences models which shall beside begin transparent also cast shadows.
- "dif.over" - in this case alpha map represent transparency blending of material, where alpha with value 0 means completely transparent and alpha with value 255 means non transparent.