Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 53) sorted by relevance

123

/NW4C-1.3.3/include/nw/gfx/
Dgfx_WorldMatrixUpdater.h129 math::VEC3* scale,
136 math::VEC3* scale,
143 math::VEC3* scale,
149 void MultScale(TMatrix* dstMatrix, const UMatrix* srcMatrix, const math::VEC3& scale) const in MultScale() argument
151 dstMatrix->f._00 = srcMatrix->f._00 * scale.x; in MultScale()
152 dstMatrix->f._10 = srcMatrix->f._10 * scale.x; in MultScale()
153 dstMatrix->f._20 = srcMatrix->f._20 * scale.x; in MultScale()
155 dstMatrix->f._01 = srcMatrix->f._01 * scale.y; in MultScale()
156 dstMatrix->f._11 = srcMatrix->f._11 * scale.y; in MultScale()
157 dstMatrix->f._21 = srcMatrix->f._21 * scale.y; in MultScale()
[all …]
Dgfx_TransformNode.h242 const math::VEC3& scale = math::VEC3(1.0f, 1.0f, 1.0f)
259 math::VEC3Mult(&resultScale, &scale, &resTransform.scale);
277 math::VEC3 scale; in SetResourceScaledTransform() local
279 nw::math::MTX34DecomposeToColumnScale(&scale, &transformMatrix); in SetResourceScaledTransform()
281 NW_ASSERT(scale.x > 0 && scale.y > 0 && scale.z > 0); in SetResourceScaledTransform()
283 matrix.f._00 = transformMatrix.f._00 / scale.x; in SetResourceScaledTransform()
284 matrix.f._10 = transformMatrix.f._10 / scale.x; in SetResourceScaledTransform()
285 matrix.f._20 = transformMatrix.f._20 / scale.x; in SetResourceScaledTransform()
286 matrix.f._01 = transformMatrix.f._01 / scale.y; in SetResourceScaledTransform()
287 matrix.f._11 = transformMatrix.f._11 / scale.y; in SetResourceScaledTransform()
[all …]
Dgfx_CalculatedTransform.h268 void SetScale(const math::VEC3& scale) in SetScale() argument
270 m_Scale = scale; in SetScale()
359 this->m_Scale = transform.scale; in SetTransform()
544 const math::VEC3& scale = this->m_Scale; in UpdateScaleFlags() local
545 if (scale.x == scale.y && scale.x == scale.z) in UpdateScaleFlags()
549 if (scale.x == 1.0f) in UpdateScaleFlags()
Dgfx_Model.h879 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
880 scaleMtx.SetupScale(math::VEC3(scale, scale, scale)); in UpdateModelViewMatrixAndNormalMatrix()
903 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
904 scaleMtx.SetupScale(math::VEC3(scale, scale, scale)); in UpdateModelViewMatrixAndNormalMatrix()
/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_WorldMatrixUpdater.cpp61 math::VEC3* scale, in CalculateWorldXsi() argument
68 NW_NULL_ASSERT(scale); in CalculateWorldXsi()
125 scale->Set(localTransform.m_Scale); in CalculateWorldXsi()
129 math::VEC3Mult(scale, &parentWorldTransform.m_Scale, &localTransform.m_Scale); in CalculateWorldXsi()
137 math::VEC3* scale, in CalculateWorldMayaSsc() argument
144 NW_NULL_ASSERT(scale); in CalculateWorldMayaSsc()
200 scale->Set(localTransform.m_Scale); in CalculateWorldMayaSsc()
204 math::VEC3Mult(scale, &parentWorldTransform.m_Scale, &localTransform.m_Scale); in CalculateWorldMayaSsc()
212 math::VEC3* scale, in CalculateWorldBasic() argument
219 NW_NULL_ASSERT(scale); in CalculateWorldBasic()
[all …]
Dgfx_TransformAnim.cpp246 math::VEC3& scale = transform->m_Scale; in PostBlendAccurateScale() local
247 scale.x = math::FExp(scale.x); in PostBlendAccurateScale()
248 scale.y = math::FExp(scale.y); in PostBlendAccurateScale()
249 scale.z = math::FExp(scale.z); in PostBlendAccurateScale()
468 transform.scale = originalTransform->scale; in EvaluateMemberAnim()
472 transform.scale.x = (flags & anim::ResTransformAnimData::FLAG_SCALE_X_NOT_EXIST) ? in EvaluateMemberAnim()
473 originalTransform->scale.x : transformAnim.EvaluateScaleX(frame); in EvaluateMemberAnim()
474 transform.scale.y = (flags & anim::ResTransformAnimData::FLAG_SCALE_Y_NOT_EXIST) ? in EvaluateMemberAnim()
475 originalTransform->scale.y : transformAnim.EvaluateScaleY(frame); in EvaluateMemberAnim()
476 transform.scale.z = (flags & anim::ResTransformAnimData::FLAG_SCALE_Z_NOT_EXIST) ? in EvaluateMemberAnim()
[all …]
Dgfx_AmbientLight.cpp162 const math::VEC3 scale(1.0f, 1.0f, 1.0f); in CreateResAmbientLight() local
165 resAmbientLight->m_Transform = math::Transform3(scale, rotate, translate); in CreateResAmbientLight()
Dgfx_HemiSphereLight.cpp163 const math::VEC3 scale(1.0f, 1.0f, 1.0f); in CreateResHemiSphereLight() local
166 resHemiSphereLight->m_Transform = math::Transform3(scale, rotate, translate); in CreateResHemiSphereLight()
Dgfx_VertexLight.cpp181 const math::VEC3 scale(1.0f, 1.0f, 1.0f); in CreateResVertexLight() local
184 resVertexLight->m_Transform = math::Transform3(scale, rotate, translate); in CreateResVertexLight()
/NW4C-1.3.3/sources/libraries/snd/
Dsnd_CurveAdshr.cpp350 s16 CurveAdshr::CalcDecibelSquare( int scale ) in CalcDecibelSquare() argument
352 NW_MINMAX_ASSERT( scale, 0, CALC_DECIBEL_SCALE_MAX ); in CalcDecibelSquare()
353 return DecibelSquareTable[ scale ]; in CalcDecibelSquare()
Dsnd_Util.cpp638 u16 Util::CalcLpfFreq( f32 scale ) in CalcLpfFreq() argument
640 scale = ut::Clamp( scale, 0.0f, 1.0f ); in CalcLpfFreq()
646 if ( scale < CALC_LPF_FREQ_INTERCEPT ) in CalcLpfFreq()
650 else if ( scale >= 0.9f ) in CalcLpfFreq()
656 int idx = static_cast<int>( (scale-CALC_LPF_FREQ_INTERCEPT) / (0.1f/3) ); in CalcLpfFreq()
/NW4C-1.3.3/sources/libraries/lyt/
Dlyt_Util.cpp386 a0 = cosR * texSRT.scale.x; in CalcTextureMtx()
389 texSRT.scale.x * (-sinR); in CalcTextureMtx()
391 -sinR * texSRT.scale.y; in CalcTextureMtx()
400 texSRT.scale.y * sinR; in CalcTextureMtx()
402 sinR * texSRT.scale.x; in CalcTextureMtx()
404 a1 = cosR * texSRT.scale.y; in CalcTextureMtx()
Dlyt_Material.cpp48 texSRTs[i].scale = res::Vec2(1.f, 1.f); in InitTexSRT()
244 texSRTs[i].scale = pResTexSRTs[i].scale; in Material()
606 f32 scale = 1.0f / 255.0f; in SetupGraphics() local
618 scale * 1.0f, in SetupGraphics()
619 scale * 1.0f, in SetupGraphics()
620 scale * 1.0f, in SetupGraphics()
621 scale * scale * alpha); in SetupGraphics()
Dlyt_Pane.cpp327 m_Scale = pBlock->scale; in Pane()
596 math::VEC2 scale; in CalculateMtx() local
617 scale.Set(sx, sy); in CalculateMtx()
625 local::MakeMatrixSRT(m_Mtx, scale, m_Rotate, m_Translate); in CalculateMtx()
635 local::MakeMatrixSRT(m_Mtx, scale, m_Rotate.z, m_Translate); in CalculateMtx()
642 local::MultMatrixSRTxST(&m_GlbMtx, pParentMtx, &scale, &m_Translate); in CalculateMtx()
/NW4C-1.3.3/include/nw/lyt/
Dlyt_DrawInfo.h178 void SetLocationAdjustScale(const math::VEC2& scale) in SetLocationAdjustScale() argument
180 m_LocationAdjustScale = scale; in SetLocationAdjustScale()
/NW4C-1.3.3/include/nw/ut/
Dut_ResTypes.h314 ResVec2 scale; member
321 transform.scale = this->scale; in Transform2()
330 ResVec3 scale; member
337 transform.scale = this->scale; in Transform3()
/NW4C-1.3.3/sources/libraries/gfx/res/
Dgfx_ResMesh.cpp116 f32 scale = vertexStream.GetScale(); in ResSeparateDataShape_SetupVertexIrScale() local
118 … if ( commandIndex >= 0 ) { command[ commandIndex ] = ut::Float32::Float32ToBits32(scale); } in ResSeparateDataShape_SetupVertexIrScale()
119 NW_ASSERT( ! ( (commandIndex == BONE_INDEX_SCALE_INDEX) && (scale != 1.0f)) ); in ResSeparateDataShape_SetupVertexIrScale()
/NW4C-1.3.3/sources/libraries/anim/res/
Danim_ResAnim.cpp295 transform.scale.x = (flags & ResTransformAnimData::FLAG_SCALE_X_NOT_EXIST) ? in EvaluateResult()
296 originalTransform.scale.x : EvaluateScaleX(frame); in EvaluateResult()
297 transform.scale.y = (flags & ResTransformAnimData::FLAG_SCALE_Y_NOT_EXIST) ? in EvaluateResult()
298 originalTransform.scale.y : EvaluateScaleY(frame); in EvaluateResult()
299 transform.scale.z = (flags & ResTransformAnimData::FLAG_SCALE_Z_NOT_EXIST) ? in EvaluateResult()
300 originalTransform.scale.z : EvaluateScaleZ(frame); in EvaluateResult()
/NW4C-1.3.3/include/nw/gfx/res/
Dgfx_ResFragmentShader.h416 void SetScaleF32(f32 scale) in SetScaleF32() argument
418 if (scale == 1.0f) { ref().m_Scale = SCALE_1; } in SetScaleF32()
419 else if (scale == 2.0f) { ref().m_Scale = SCALE_2; } in SetScaleF32()
420 else if (scale == 4.0f) { ref().m_Scale = SCALE_4; } in SetScaleF32()
421 else if (scale == 8.0f) { ref().m_Scale = SCALE_8; } in SetScaleF32()
422 else if (scale == 0.25f) { ref().m_Scale = SCALE_0_25; } in SetScaleF32()
423 else if (scale == 0.5f) { ref().m_Scale = SCALE_0_5; } in SetScaleF32()
Dgfx_ResMaterial.h245 void SetVertexColorScale(f32 scale) { ref().m_AmbientAndVertexColorScale.a = scale; } in SetVertexColorScale() argument
1184 void SetScale(const nw::math::VEC2& scale) in SetScale() argument
1186 if (this->ref().m_Scale != scale) in SetScale()
1188 this->ref().m_Scale.Set(scale.x, scale.y); in SetScale()
/NW4C-1.3.3/include/nw/snd/
Dsnd_CurveAdshr.h82 static s16 CalcDecibelSquare( int scale );
/NW4C-1.3.3/tools/DccPlugin/3dsMax/x86/2009/Scripts/Startup/
DNW4C_menu.ms76 …spinner spnMagnify "Magnify: " width:120 height:16 range:[0.0001,10000,1] type:#float scale:0.1 a…
81 spinner spnTimeStart "" width:64 height:16 range:[0,100000,0] type:#integer scale:1 align:#left
82 …spinner spnTimeEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left …
144 …pnReserveUniform "Max Reserved Uniform Registers:" width:160 range:[0,60,0] type:#integer scale:1\
150 …spnReserveUniform "Max Reserved Uniform Registers:" width:80 range:[0,60,0] type:#integer scale:1\
212 …Node Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right …
213 … "Tex Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right
214 …spinner spnToleranceColor "Color:" width:80 height:16 range:[0.0001,100,0.001] type:#float scale:…
216 …" Node Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right …
217 …xR " Tex Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right
[all …]
/NW4C-1.3.3/tools/DccPlugin/3dsMax/x64/2009/Scripts/Startup/
DNW4C_menu.ms76 …spinner spnMagnify "Magnify: " width:120 height:16 range:[0.0001,10000,1] type:#float scale:0.1 a…
81 spinner spnTimeStart "" width:64 height:16 range:[0,100000,0] type:#integer scale:1 align:#left
82 …spinner spnTimeEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left …
144 …pnReserveUniform "Max Reserved Uniform Registers:" width:160 range:[0,60,0] type:#integer scale:1\
150 …spnReserveUniform "Max Reserved Uniform Registers:" width:80 range:[0,60,0] type:#integer scale:1\
212 …Node Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right …
213 … "Tex Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right
214 …spinner spnToleranceColor "Color:" width:80 height:16 range:[0.0001,100,0.001] type:#float scale:…
216 …" Node Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right …
217 …xR " Tex Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right
[all …]
/NW4C-1.3.3/tools/DccPlugin/3dsMax/x86/2010/Scripts/Startup/
DNW4C_menu.ms76 …spinner spnMagnify "Magnify: " width:120 height:16 range:[0.0001,10000,1] type:#float scale:0.1 a…
81 spinner spnTimeStart "" width:64 height:16 range:[0,100000,0] type:#integer scale:1 align:#left
82 …spinner spnTimeEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left …
144 …pnReserveUniform "Max Reserved Uniform Registers:" width:160 range:[0,60,0] type:#integer scale:1\
150 …spnReserveUniform "Max Reserved Uniform Registers:" width:80 range:[0,60,0] type:#integer scale:1\
212 …Node Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right …
213 … "Tex Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right
214 …spinner spnToleranceColor "Color:" width:80 height:16 range:[0.0001,100,0.001] type:#float scale:…
216 …" Node Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right …
217 …xR " Tex Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right
[all …]
/NW4C-1.3.3/tools/DccPlugin/3dsMax/x64/2010/Scripts/Startup/
DNW4C_menu.ms76 …spinner spnMagnify "Magnify: " width:120 height:16 range:[0.0001,10000,1] type:#float scale:0.1 a…
81 spinner spnTimeStart "" width:64 height:16 range:[0,100000,0] type:#integer scale:1 align:#left
82 …spinner spnTimeEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left …
144 …pnReserveUniform "Max Reserved Uniform Registers:" width:160 range:[0,60,0] type:#integer scale:1\
150 …spnReserveUniform "Max Reserved Uniform Registers:" width:80 range:[0,60,0] type:#integer scale:1\
212 …Node Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right …
213 … "Tex Translate:" width:80 height:16 range:[0.0001,100,0.01] type:#float scale:0.01 align:#right
214 …spinner spnToleranceColor "Color:" width:80 height:16 range:[0.0001,100,0.001] type:#float scale:…
216 …" Node Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right …
217 …xR " Tex Rotate:" width:80 height:16 range:[0.0001,100,0.1] type:#float scale:0.01 align:#right
[all …]

123