Skip to content

Commit 7ff6b16

Browse files
authored
Merge pull request #400 from VaclavElias/master
fix: Minor content updates
2 parents 56097ad + af7c2e3 commit 7ff6b16

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

en/manual/graphics/materials/materials-for-developers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ This diagram shows the Material interfaces and implementation classes:
1717

1818
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.
1919

20-
Let's say you have this fairly simple material
20+
Let's say you have this fairly simple material:
21+
2122
![media/runtime-param-modif-ex.png](media/runtime-param-modif-ex.png)
2223

2324
And you want to clone that material, but change its color to red at runtime.
2425
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:
26+
2527
```csharp
2628
var clone = SerializerExtensions.Clone(MyMaterial);
2729
clone.Passes[0].Parameters.Set(MaterialKeys.DiffuseValue, new Color4(1, 0, 0));

en/manual/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ These pages contain information about how to use Stride, an open-source C# game
1313

1414
#### Manual
1515

16+
- <span class="badge text-bg-info">Updated</span> [Graphics - Materials - Materials for developers ](graphics/materials/materials-for-developers.md) - Modifying parameters at runtime added
1617
- <span class="badge text-bg-success">New</span> [Scripts](scripts/best-practice.md) - Best Practises docs added
1718
- <span class="badge text-bg-success">New</span> [Physics](physics/index.md) - Bepu Physics docs added
1819
- <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
2324

2425
#### Contributing
2526

26-
- <span class="badge text-bg-info">Updated</span> [Contributing - Roadmap](../contributors/roadmap.md) - GitHup Project - Roadmap link added
27+
- <span class="badge text-bg-info">Updated</span> [Contributing - Roadmap](../contributors/roadmap.md) - GitHub Project - Roadmap link added
2728

2829
### Previous updates
2930

0 commit comments

Comments
 (0)