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

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

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

...HPRECISION 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_tex...

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

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

...MATERIAL, '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 ma...

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

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

...用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Posi...

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

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

...用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Posi...

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

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

...用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Posi...

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

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

...用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Posi...

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

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

...用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Posi...

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

18. 自定义shader-边缘光照shader [ 31%]

...ighp float;\n" + "#else\n" + "precision mediump float;\n" + "#endif\n" + "#include?DIRECTIONLIGHT||POINTLIGHT||SPOTLIGHT 'LightHelper.glsl';\n" + "varying vec2 v_Texcoord;\n" + "uniform sampler2D u_texture;\n" + "uniform vec3 u_marginalColor;\n" + "varying vec3 v_Normal;\n" + "#if defined(DIRECTIONL...

来源: Laya_示例 发布时间: 20241118

19. 自定义shader-地形shader [ 30%]

...ISION\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\n#include \"LightHelper.glsl\";\n\nuniform sampler2D u_SplatAlphaTexture;\nuniform sampler2D u_NormalTexture;\nuniform sampler2D u_LightMapTexture;\n\nuniform sampler2D u_DiffuseTexture1;\nuniform sampler2D u_DiffuseTexture2;\n...

来源: Laya_示例 发布时间: 20241118