drop shadow at zero depth offset, from drose

This commit is contained in:
Dave Schuyler 2001-03-14 04:36:13 +00:00
parent 02f629b118
commit 47e50c1ca2
1 changed files with 6 additions and 1 deletions

View File

@ -444,8 +444,13 @@ do_rebuild() {
if (has_shadow()) {
// Make a shadow by instancing the text behind itself.
// For now, the depth offset is 0.0 because we don't expect to see
// text with shadows in the 3-d world that aren't decals. Maybe
// this will need to be addressed in the future.
LMatrix4f offset =
LMatrix4f::translate_mat(_shadow_offset[0], 0.01, -_shadow_offset[1]);
LMatrix4f::translate_mat(_shadow_offset[0], 0.0, -_shadow_offset[1]);
RenderRelation *shadow_arc =
new RenderRelation(_root, _text_root, _draw_order + 1);
shadow_arc->set_transition(new TransformTransition(offset));