- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
28 lines
428 B
Markdown
28 lines
428 B
Markdown
# Material::SetFloat
|
|
|
|
```cpp
|
|
void SetFloat(const Containers::String& name, float value)
|
|
```
|
|
|
|
设置材质浮点属性。
|
|
|
|
**参数:**
|
|
- `name` - 属性名称
|
|
- `value` - 属性值
|
|
|
|
**返回:** 无
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
mat->SetFloat("roughness", 0.5f);
|
|
mat->SetFloat("metallic", 0.0f);
|
|
mat->SetFloat("emissionStrength", 2.0f);
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [Material 总览](material.md) - 返回类总览
|