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

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

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

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

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

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

...als`下 顶点着色器 `simpleShader.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; uniform mat4 u_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...

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

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

...als`下 顶点着色器 `simpleShader.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; uniform mat4 u_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...

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

14. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 43%]

... should check the texture file format add shader include file err, has add:Lighting.glsl,这个问题是什么,我就一句代码都会出现这个问题 Swift中接入其他都正常,但是在你们的conchConfig中,报错'string' file not found 微信游戏多次加载出现:copyFile:fai...

来源: Laya_社区 发布时间: 20180715

15. 分享水波一个shader [ 42%]

...N precision highp float; #else precision mediump float; #endif  #include "Lighting.glsl";   uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time;  varying vec2 v_textcoord; v...

来源: Laya_社区 发布时间: 20190923

16. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 42%]

... 'u_MainCol': Laya.Shader3D.PERIOD_MATERIAL }; var vs:string = ` #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec3 a_Normal; attribute vec2 a_Texcood0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; varying vec3 v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { gl...

来源: Laya_社区 发布时间: 20190814

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

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

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

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

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

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

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

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

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

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

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

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