大约有 14 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0031 秒)
...加Include。LayaAir3D引用的类库 ```typescript Shader3D.addInclude("Lighting.glsl", __INCLUDESTR__("files/Lighting.glsl")); Shader3D.addInclude("ShadowHelper.glsl", __INCLUDESTR__("files/ShadowHelper.glsl")); Shader3D.addInclude("BRDF.glsl", __INCLUDESTR__("files/PBRLibs/BRDF.glsl")); Shader3D....
来源: Laya2.0_文档 发布时间: 20210714
...要在 `addPass`之前 > 引用的方式导入文件 ```typescript import LightingGLSL from "./files/Lighting.glsl"; import BRDFGLSL from "./files/PBRLibs/BRDF.glsl"; import PBRSpecularLightingGLSL from "./files/PBRLibs/PBRSpecularLighting.glsl"; import PBRStandardLightingGLSL from "./files/PBRLibs/...
来源: Laya2.0_文档 发布时间: 20210715
...需要在 `addPass`之前 > 引用的方式导入文件 ```typescript let LightingGLSL = `...这里面是Shader源码`; let BRDFGLSL = `...这里面是Shader源码`; let PBRSpecularLightingGLSL = `...这里面是Shader源码`; let PBRStandardLightingGLSL = `...这里面是Shader源码`; let PBRUtils...
来源: Laya2.0_文档 发布时间: 20210715
...pescript //引入Shader需要使用的其他库文件 Shader3D.addInclude("Lighting.glsl", LightingGLSL); Shader3D.addInclude("ShadowSampleTent.glsl", ShadowSampleTentGLSL); Shader3D.addInclude("GlobalIllumination.glsl", GlobalIllumination) Shader3D.addInclude("Shadow.glsl", ShadowGLSL); Shader3D.ad...
来源: Laya2.0_文档 发布时间: 20210714
...pescript //引入Shader需要使用的其他库文件 Shader3D.addInclude("Lighting.glsl", LightingGLSL); Shader3D.addInclude("ShadowSampleTent.glsl", ShadowSampleTentGLSL); Shader3D.addInclude("GlobalIllumination.glsl", GlobalIllumination) Shader3D.addInclude("Shadow.glsl", ShadowGLSL); Shader3D.ad...
来源: Laya2.0_文档 发布时间: 20210715
...pescript //引入Shader需要使用的其他库文件 Shader3D.addInclude("Lighting.glsl", LightingGLSL); Shader3D.addInclude("ShadowSampleTent.glsl", ShadowSampleTentGLSL); Shader3D.addInclude("GlobalIllumination.glsl", GlobalIllumination) Shader3D.addInclude("Shadow.glsl", ShadowGLSL); Shader3D.ad...
来源: Laya2.0_文档 发布时间: 20210715
... 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
...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
...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
... 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