Home
last modified time | relevance | path

Searched refs:resVertexLight (Results 1 – 3 of 3) sorted by relevance

/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_VertexLight.cpp127 ResVertexLightData* resVertexLight = in CreateResVertexLight() local
132 resVertexLight->typeInfo = ResVertexLight::TYPE_INFO; in CreateResVertexLight()
133 resVertexLight->m_Header.revision = ResLight::BINARY_REVISION; in CreateResVertexLight()
134 resVertexLight->m_Header.signature = ResLight::SIGNATURE; in CreateResVertexLight()
136 resVertexLight->m_UserDataDicCount = 0; in CreateResVertexLight()
137 resVertexLight->toUserDataDic.set_ptr( NULL ); in CreateResVertexLight()
139 resVertexLight->toName.set_ptr(AllocateAndCopyString(name, allocator, MAX_NAME_LENGTH)); in CreateResVertexLight()
143 resVertexLight->m_ChildrenTableCount = 0; in CreateResVertexLight()
144 resVertexLight->toChildrenTable.set_ptr( NULL ); in CreateResVertexLight()
145 resVertexLight->m_AnimGroupsDicCount = 0; in CreateResVertexLight()
[all …]
/NW4C-1.2.23/demos/gfx/SceneTreeDemo/sources/
DSceneTreeDemo.cpp257 nw::gfx::ResVertexLight resVertexLight(vertexLight->GetResVertexLight()); in BuildLights() local
258 resVertexLight.SetLightKind(nw::gfx::ResVertexLight::KIND_SPOT); in BuildLights()
259 resVertexLight.GetTransform().translate.Set(0.0f, 15.0f, 5.0f); in BuildLights()
260 resVertexLight.SetAmbient(0.2f, 0.2f, 0.2f); in BuildLights()
261 resVertexLight.SetDiffuse(1.0f, 1.0f, 1.0f); in BuildLights()
262 resVertexLight.SetDistanceAttenuation(0.01f, 0.001f, 0.0001f); in BuildLights()
263 resVertexLight.SetDistanceAttenuationEnabled(true); in BuildLights()
264 resVertexLight.SetSpotFactor(1.0f, NW_MATH_DEG_TO_RAD(90.0f)); in BuildLights()
267 resVertexLight.SetDirection(vertexLightDirection); in BuildLights()
/NW4C-1.2.23/include/nw/gfx/
Dgfx_VertexLight.h262 … static void DestroyResVertexLight(os::IAllocator* allocator, ResVertexLightData* resVertexLight);