292 bool IEffectLights.LightingEnabled
309 if (boneTransforms ==
null || boneTransforms.Length == 0)
313 if (boneTransforms.Length > 72)
331 for (
int i = 0; i < valueMatrixArray.Length; i++)
333 valueMatrixArray[i].
M44 = 1f;
335 return valueMatrixArray;
342 DirectionalLight0.Enabled =
true;
346 for (
int i = 0; i < 72; i++)
397 light0 =
new DirectionalLight(base.Parameters[
"DirLight0Direction"], base.Parameters[
"DirLight0DiffuseColor"], base.Parameters[
"DirLight0SpecularColor"], cloneSource?.
light0);
398 light1 =
new DirectionalLight(base.Parameters[
"DirLight1Direction"], base.Parameters[
"DirLight1DiffuseColor"], base.Parameters[
"DirLight1SpecularColor"], cloneSource?.
light1);
399 light2 =
new DirectionalLight(base.Parameters[
"DirLight2Direction"], base.Parameters[
"DirLight2DiffuseColor"], base.Parameters[
"DirLight2SpecularColor"], cloneSource?.
light2);
404 if (parameter.
Name !=
"VSIndices")
406 return parameter.Name !=
"PSIndices";
static string NullNotAllowed
static string SkinnedEffectWeightsPerVertex
static string CantDisableLighting
static string SkinnedEffectMaxBones
static Vector3 EnableDefaultLighting(DirectionalLight light0, DirectionalLight light1, DirectionalLight light2)
static void SetMaterialColor(bool lightingEnabled, float alpha, ref Vector3 diffuseColor, ref Vector3 emissiveColor, ref Vector3 ambientLightColor, EffectParameter diffuseColorParam, EffectParameter emissiveColorParam)
static EffectDirtyFlags SetLightingMatrices(EffectDirtyFlags dirtyFlags, ref Matrix world, ref Matrix view, EffectParameter worldParam, EffectParameter worldInverseTransposeParam, EffectParameter eyePositionParam)
static EffectDirtyFlags SetWorldViewProjAndFog(EffectDirtyFlags dirtyFlags, ref Matrix world, ref Matrix view, ref Matrix projection, ref Matrix worldView, bool fogEnabled, float fogStart, float fogEnd, EffectParameter worldViewProjParam, EffectParameter fogVectorParam)
unsafe Vector3 GetValueVector3()
unsafe float GetValueSingle()
unsafe void SetValue(Texture value)
unsafe Matrix[] GetValueMatrixArray(int count)
unsafe Texture2D GetValueTexture2D()
SkinnedEffect(SkinnedEffect cloneSource)
DirectionalLight DirectionalLight0
void CacheEffectParameters(SkinnedEffect cloneSource)
void EnableDefaultLighting()
bool PreferPerPixelLighting
EffectParameter specularPowerParam
EffectParameter fogColorParam
EffectParameter bonesParam
void SetBoneTransforms(Matrix[] boneTransforms)
override bool WantParameter(EffectParameter parameter)
EffectParameter fogVectorParam
Vector3 AmbientLightColor
EffectParameter emissiveColorParam
DirectionalLight DirectionalLight2
Matrix[] GetBoneTransforms(int count)
EffectDirtyFlags dirtyFlags
DirectionalLight DirectionalLight1
EffectParameter specularColorParam
EffectParameter worldViewProjParam
Vector3 ambientLightColor
SkinnedEffect(GraphicsDevice device)
bool preferPerPixelLighting
EffectParameter worldParam
EffectParameter eyePositionParam
EffectParameter diffuseColorParam
EffectParameter textureParam
EffectParameter worldInverseTransposeParam
EffectParameter shaderIndexParam
static CultureInfo CurrentCulture