public class Material
表示对材料的引用。
公共方法
ExternalTexture | |
材质 |
makeCopy()
创建此 Material 的新实例。
|
无效 |
setBoolean(String name, boolean x)
|
无效 |
setBoolean2(String name, boolean x, boolean y)
|
无效 |
setBoolean3(String name, boolean x, boolean y, boolean z)
|
无效 |
setBoolean4(String name, boolean x, boolean y, boolean z, boolean w)
|
无效 |
setExternalTexture(字符串名称、ExternalTexture externalTexture)
将
ExternalTexture 设置为此材料上类型为“samplerExternal'”的参数。 |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 | |
无效 |
继承的方法
公共方法
public Material makeCopy ()
创建此 Material 的新实例。
新材料将拥有唯一的材料参数副本,可以单独更改。getFilamentEngine 材料资源不可变,并将在实例之间共享。
public void setExternalTexture (String name, ExternalTexture externalTexture)
将 ExternalTexture
设置为此材料上类型为“samplerExternal'”的参数。
参数
name | 材质中的参数名称 |
---|---|
外部纹理 | 要设置的纹理 |