c++ - Ball of Light (Light, Material?) glutsolidsphere -
i'm programming game called falldown. i'm finished; want design ball. how can light ball such glows these examples?
i created cube glutsolidsphere , ask myself how can light ball.
void ball() { glcolor4f(0, 0, 0.5, 0.5); glutsolidsphere(0.25,40,40); } void initlightsources() { ?????? glenable( gl_lighting ); glenable(gl_depth_test); glenable( gl_light0 ); }
Comments
Post a Comment