فهرست منبع

Merge pull request #400 from VaclavElias/master

fix: Minor content updates
Vaclav Elias 8 ماه پیش
والد
کامیت
7ff6b16258
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 3 1
      en/manual/graphics/materials/materials-for-developers.md
  2. 2 1
      en/manual/index.md

+ 3 - 1
en/manual/graphics/materials/materials-for-developers.md

@@ -17,11 +17,13 @@ This diagram shows the Material interfaces and implementation classes:
 
 The file @'Stride.Rendering.Materials.MaterialKeys' contains most material keys you might need to use, have a look through it to figure out which one you might need to get to modify the parameter you are interested in.
 
-Let's say you have this fairly simple material
+Let's say you have this fairly simple material:
+
 ![media/runtime-param-modif-ex.png](media/runtime-param-modif-ex.png)
 
 And you want to clone that material, but change its color to red at runtime.
 Searching through the different keys contained in @'Stride.Rendering.Materials.MaterialKeys' you would find `MaterialKeys.DiffuseValue` and use it as the key to set the new color value you want:
+
 ```csharp
 var clone = SerializerExtensions.Clone(MyMaterial);
 clone.Passes[0].Parameters.Set(MaterialKeys.DiffuseValue, new Color4(1, 0, 0));

+ 2 - 1
en/manual/index.md

@@ -13,6 +13,7 @@ These pages contain information about how to use Stride, an open-source C# game
 
 #### Manual
 
+- <span class="badge text-bg-info">Updated</span> [Graphics - Materials - Materials for developers ](graphics/materials/materials-for-developers.md) - Modifying parameters at runtime added
 - <span class="badge text-bg-success">New</span> [Scripts](scripts/best-practice.md) - Best Practises docs added
 - <span class="badge text-bg-success">New</span> [Physics](physics/index.md) - Bepu Physics docs added
 - <span class="badge text-bg-info">Updated</span> [Bullet Physics](physics-bullet/index.md) - Bullet Physics docs moved
@@ -23,7 +24,7 @@ These pages contain information about how to use Stride, an open-source C# game
 
 #### Contributing
 
-- <span class="badge text-bg-info">Updated</span> [Contributing - Roadmap](../contributors/roadmap.md) - GitHup Project - Roadmap link added
+- <span class="badge text-bg-info">Updated</span> [Contributing - Roadmap](../contributors/roadmap.md) - GitHub Project - Roadmap link added
 
 ### Previous updates