大约有 110 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0029 秒)
...式,在相机绘制出来的内容中,透明材质部分会混合2d的顶点颜色。 可以这样处理: 1、更改2D的混合模式,在绘制中不混合RenderTexture的alpha部分,只混合颜色 2、或者可以更改使用的RenderTexture的格式,使用RGB格式而不是RGBA格式...
来源: Laya_社区 发布时间: 20241225
...r。本次是在LayaAirIDE的3D示例项目基础上修改。 #### 1.编写顶点着色器与片元着色器程序。 放在项目代码同级的文件夹 `customMaterials`下 顶点着色器 `simpleShader.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; uniform mat4 u...
来源: Laya2.0_文档 发布时间: 20210715
...re:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1中,左边使用的BlinnPhong材质,右边使用的就是Unlit材质。两个...
来源: Laya2.0_文档 发布时间: 20210714
...s IVertex VertexPositionNormalColor 类用于创建位置、法线、颜色顶点结构。 Public Properties PropertyDefined By color : Vector4[read-only] VertexPositionNormalColor normal : Vector3[read-only] VertexPositionNormalColor position : Vector3[read-only] VertexPositionNormalColor...
来源: laya_api 发布时间: 20170929
...r。本次是在LayaAirIDE的3D示例项目基础上修改。 #### 1.编写顶点着色器与片元着色器程序。 放在项目代码同级的文件夹 `customMaterials`下 顶点着色器 `simpleShader.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; uniform mat4 u...
来源: Laya2.0_文档 发布时间: 20210715
...首先来看下着色器代码: ##### 第一个Pass使用的着色器: 顶点着色器 `outline.vs` 代码如下: ```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_...
来源: Laya2.0_文档 发布时间: 20210715
...地址https://ask.layabox.com/question/4242 模型表面的颜色应该是顶点色导致 2017-08-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dinghn 相关问题 【屏幕适配】在LayaAir上面是竖屏,为什么到微信开...
来源: Laya_社区 发布时间: 20170830
...首先来看下着色器代码: ##### 第一个Pass使用的着色器: 顶点着色器 `outline.vs` 代码如下: ```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_...
来源: Laya2.0_文档 发布时间: 20210715
...PositionNormalColorTangent 类用于创建位置、法线、颜色、切线顶点结构。 Public Properties PropertyDefined By color : Vector4[read-only] VertexPositionNormalColorTangent normal : Vector3[read-only] VertexPositionNormalColorTangent position : Vector3[read-only] VertexPosit...
来源: laya_api 发布时间: 20170929
...PositionNormalColorTexture 类用于创建位置、法线、颜色、纹理顶点结构。 Public Properties PropertyDefined By color : Vector4[read-only] VertexPositionNormalColorTexture normal : Vector3[read-only] VertexPositionNormalColorTexture position : Vector3[read-only] VertexPosit...
来源: laya_api 发布时间: 20170929