大约有 45 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0031 秒)
# PBRStandardMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* 基于物理普通反射材质,硬质表面(也就是建筑材质)而设计的,一般用于做粗糙质感的材质。 ##### 主要属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:B...
来源: Laya2.0_文档 发布时间: 20210714
# PBRStandardMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* 基于物理普通反射材质,硬质表面(也就是建筑材质)而设计的,一般用于做粗糙质感的材质。 ##### 主要属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:B...
来源: Laya2.0_文档 发布时间: 20210714
# PBRStandardMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* 基于物理普通反射材质,硬质表面(也就是建筑材质)而设计的,一般用于做粗糙质感的材质。 ##### 主要属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:B...
来源: Laya2.0_文档 发布时间: 20210715
# SkyBoxMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* SkyBoxMaterial天空盒材质是一个6个面的立方体,包围整个场景,看起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:...
来源: Laya2.0_文档 发布时间: 20210715
# SkyBoxMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* SkyBoxMaterial天空盒材质是一个6个面的立方体,包围整个场景,看起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:...
来源: Laya2.0_文档 发布时间: 20210715
# SkyBoxMaterial材质详解 ###### *version :2.1.0beta Update:2019-5-14* SkyBoxMaterial天空盒材质是一个6个面的立方体,包围整个场景,看起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:...
来源: Laya2.0_文档 发布时间: 20210715
...下: ```c++ attribute vec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++...
来源: Laya2.0_文档 发布时间: 20210714
...directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` **setForward** 平行光的方向,分别代表x、y、z轴上的...
来源: Laya2.0_文档 发布时间: 20210715
...ionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` **setForward** 平行光的方向,分别代表x、y、z轴上的方向,负...
来源: Laya2.0_文档 发布时间: 20210714
...irectionLight.color = new Vector3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` **setForward** 平行光的方向,分别代表x、y、z轴上的方向...
来源: Laya2.0_文档 发布时间: 20210715