Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_IpoConvert.cpp
| Show First 20 Lines • Show All 390 Lines • ▼ Show 20 Lines | SG_Controller *BL_CreateMaterialIpo( | ||||
| if ((sinterp = adtList->GetScalarInterpolator("specular_hardness", 0))) { | if ((sinterp = adtList->GetScalarInterpolator("specular_hardness", 0))) { | ||||
| if (!ipocontr) { | if (!ipocontr) { | ||||
| ipocontr = new KX_MaterialIpoController(matname_hash); | ipocontr = new KX_MaterialIpoController(matname_hash); | ||||
| } | } | ||||
| interpolator= new KX_ScalarInterpolator(&ipocontr->m_hard, sinterp); | interpolator= new KX_ScalarInterpolator(&ipocontr->m_hard, sinterp); | ||||
| ipocontr->AddInterpolator(interpolator); | ipocontr->AddInterpolator(interpolator); | ||||
| } | } | ||||
| if ((sinterp = adtList->GetScalarInterpolator("specularity", 0))) { | if ((sinterp = adtList->GetScalarInterpolator("specular_intensity", 0))) { | ||||
| if (!ipocontr) { | if (!ipocontr) { | ||||
| ipocontr = new KX_MaterialIpoController(matname_hash); | ipocontr = new KX_MaterialIpoController(matname_hash); | ||||
| } | } | ||||
| interpolator= new KX_ScalarInterpolator(&ipocontr->m_spec, sinterp); | interpolator= new KX_ScalarInterpolator(&ipocontr->m_spec, sinterp); | ||||
| ipocontr->AddInterpolator(interpolator); | ipocontr->AddInterpolator(interpolator); | ||||
| } | } | ||||
| if ((sinterp = adtList->GetScalarInterpolator("diffuse_reflection", 0))) { | if ((sinterp = adtList->GetScalarInterpolator("diffuse_intensity", 0))) { | ||||
| if (!ipocontr) { | if (!ipocontr) { | ||||
| ipocontr = new KX_MaterialIpoController(matname_hash); | ipocontr = new KX_MaterialIpoController(matname_hash); | ||||
| } | } | ||||
| interpolator= new KX_ScalarInterpolator(&ipocontr->m_ref, sinterp); | interpolator= new KX_ScalarInterpolator(&ipocontr->m_ref, sinterp); | ||||
| ipocontr->AddInterpolator(interpolator); | ipocontr->AddInterpolator(interpolator); | ||||
| } | } | ||||
| if ((sinterp = adtList->GetScalarInterpolator("emit", 0))) { | if ((sinterp = adtList->GetScalarInterpolator("emit", 0))) { | ||||
| Show All 26 Lines | |||||