Commit fe2774aa731460c354ab95ac8a6c594671eb26ed
1 parent
744c1c68
Show Light text in shadow-bone-lighting example
Change-Id: I0250ce6fedcc6948aa6b4418bb13b5f742a2d960
Showing
1 changed file
with
3 additions
and
0 deletions
examples/shadow-bone-lighting/shadow-bone-lighting-example.cpp
| ... | ... | @@ -233,6 +233,9 @@ public: |
| 233 | 233 | mCastingLight.SetPosition( Vector3( 0.0f, 0.0f, 800.0f ) * scaleFactor ); |
| 234 | 234 | |
| 235 | 235 | TextLabel text = TextLabel::New( "Light" ); |
| 236 | + text.SetProperty( TextLabel::Property::POINT_SIZE, 20.0f ); | |
| 237 | + text.SetResizePolicy( USE_NATURAL_SIZE, WIDTH ); | |
| 238 | + text.SetResizePolicy( USE_NATURAL_SIZE, HEIGHT ); | |
| 236 | 239 | text.SetColor( Color::BLUE ); |
| 237 | 240 | |
| 238 | 241 | mCastingLight.Add(text); | ... | ... |