diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-17 22:01:58 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-17 22:01:58 +0300 |
commit | 9af3b8a07e5ec51cc7838f8cbcd130262e2e095e (patch) | |
tree | ba5257d7e7c244aa3968f1f11e30b8c92fd6eeca /source/blender/makesdna/DNA_material_types.h | |
parent | e14ed616fb52bdc8adec8135fcc2d5d5ea7a6def (diff) |
Render control feature: shader-level shadowbuffer bias
Lampbuffers require painful bias tweaking (to prevent aliasing or to
get shadow detail). Sometimes you want this different per object, like
for gras you want less shadow detail, but for the ground you want high
detail. This feature allows to tweak it.
The new "LBias" slider is in shader panel, bottom. Ugly! But, thats for
later...
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_material_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index 1deda6a29d5..d885bfcae82 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -88,8 +88,10 @@ typedef struct Material { float strand_min, strand_widthfade; char strand_uvname[32]; - float sbias; /* shadow bias */ + float sbias; /* shadow bias to prevent terminator prob */ + float lbias; /* factor to multiply lampbias with (0.0 = no mult) */ float shad_alpha; /* in use for irregular shadowbuffer */ + float padf; /* free padding, take me! */ /* for buttons and render*/ char rgbsel, texact, pr_type, use_nodes; |