• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)

1. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 100%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; }`; let simpleShaderFS = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump floa...

来源: Laya2.0_文档 发布时间: 20210715

2. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 99%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; gl_Position=remapGLPositionZ(gl_Position); } ``` 片元着色器 `simpleShader.fs` 代码如下: ```c...

来源: Laya2.0_文档 发布时间: 20210715

3. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 98%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; gl_Position=remapGLPositionZ(gl_Position); } ``` 片元着色器 `simpleShader.fs` 代码如下: ```c...

来源: Laya2.0_文档 发布时间: 20210715

4. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 87%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210714

5. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 75%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

6. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 75%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

7. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 74%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

8. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 71%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

9. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 70%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715