mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Delete lots of unused features (#48)
This commit is contained in:
@ -368,20 +368,7 @@ namespace video
|
||||
The specular color of the dynamic lights
|
||||
(SLight::SpecularColor) will influence the the highlight color
|
||||
too, but they are set to a useful value by default when
|
||||
creating the light scene node. Here is a simple example on how
|
||||
to use specular highlights:
|
||||
\code
|
||||
// load and display mesh
|
||||
scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(
|
||||
smgr->getMesh("data/faerie.md2"));
|
||||
node->setMaterialTexture(0, driver->getTexture("data/Faerie2.pcx")); // set diffuse texture
|
||||
node->setMaterialFlag(video::EMF_LIGHTING, true); // enable dynamic lighting
|
||||
node->getMaterial(0).Shininess = 20.0f; // set size of specular highlights
|
||||
|
||||
// add white light
|
||||
scene::ILightSceneNode* light = smgr->addLightSceneNode(0,
|
||||
core::vector3df(5,5,5), video::SColorf(1.0f, 1.0f, 1.0f));
|
||||
\endcode */
|
||||
creating the light scene node.*/
|
||||
f32 Shininess;
|
||||
|
||||
//! Free parameter, dependent on the material type.
|
||||
|
Reference in New Issue
Block a user