updated InlineMaterial.md
This commit is contained in:
parent
f1972908a1
commit
5a04295f17
@ -1,9 +1,20 @@
|
|||||||
# 程序内嵌材质/Shader
|
# 程序内嵌材质/Shader
|
||||||
|
# Material/Shader embedded in program code
|
||||||
|
|
||||||
|
问题(Question):
|
||||||
|
|
||||||
|
```
|
||||||
即然可以从文件中加载材质了,那为什么还需要有程序代码中内嵌的材质/Shader呢?
|
即然可以从文件中加载材质了,那为什么还需要有程序代码中内嵌的材质/Shader呢?
|
||||||
|
|
||||||
|
I can load a material from a file. Why do we need a few materials/shaders embedded in the code?
|
||||||
|
```
|
||||||
|
|
||||||
这个问题很好,答案也很简单:
|
这个问题很好,答案也很简单:
|
||||||
|
|
||||||
|
Good question, the answer is straightforward:
|
||||||
|
|
||||||
```
|
```
|
||||||
因为我们需要在资产损坏或丢失的情况下,至少还能渲染一点点东西。
|
我们需要在资产损坏或丢失的情况下,依然可以渲染一些内容, 比如: 一个报错对话框。
|
||||||
|
|
||||||
|
We need to be able to render some content, such as an error dialog box, even if the asset is damaged or lost.
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user