2026-03-20 02:35:35 +08:00
|
|
|
# TextureImportSettings::SetNormalMapStrength / GetNormalMapStrength
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
void SetNormalMapStrength(float strength);
|
|
|
|
|
float GetNormalMapStrength() const;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
设置或获取法线贴图强度。
|
|
|
|
|
|
|
|
|
|
**参数:**
|
|
|
|
|
- `strength` - 法线贴图强度系数
|
|
|
|
|
|
|
|
|
|
**返回:** `float` / `void`
|
|
|
|
|
|
|
|
|
|
**线程安全:** ✅
|
|
|
|
|
|
|
|
|
|
**示例:**
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
TextureImportSettings settings;
|
|
|
|
|
settings.SetNormalMapStrength(2.0f);
|
|
|
|
|
float strength = settings.GetNormalMapStrength(); // 2.0f
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 相关文档
|
|
|
|
|
|
2026-03-26 02:41:00 +08:00
|
|
|
- [TextureImportSettings 总览](texture-import-settings.md) - 返回类总览
|