大约有 41 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0032 秒)
...ader 在代码中**"组装"** Shader,本段代码添加在 Main.ts 。 > 初始化shader ```typescript //初始化我们的自定义shader initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //...
来源: Laya2.0_文档 发布时间: 20210715
..."./simpleShader.fs"; import simpleShaderVS from "./simpleShader.vs"; ``` > 初始化shader ```typescript //初始化我们的自定义shader initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //...
来源: Laya2.0_文档 发布时间: 20210715
...pleShaderFS:String = __INCLUDESTR__("customShader/simpleShader.ps"); ``` > 初始化shader ```typescript //初始化我们的自定义shader public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexM...
来源: Laya2.0_文档 发布时间: 20210715
...性的值,包括各种uniform值、渲染状态值以及宏定义。 在初始化Shader之后(该Shader的初始化在**SubShader介绍篇**有详细讲解),如果在该Shader中有 PERIOD_MATERIAL(逐材质)的提交的uniform值,开发者就需要使用_shaderValues来绑定Shader属...
来源: Laya2.0_文档 发布时间: 20210715
...性的值,包括各种uniform值、渲染状态值以及宏定义。 在初始化Shader之后(该Shader的初始化在**SubShader介绍篇**有详细讲解),如果在该Shader中有 PERIOD_MATERIAL(逐材质)的提交的uniform值,开发者就需要使用_shaderValues来绑定Shader属...
来源: Laya2.0_文档 发布时间: 20210715
...性的值,包括各种uniform值、渲染状态值以及宏定义。 在初始化Shader之后(该Shader的初始化在**SubShader介绍篇**有详细讲解),如果在该Shader中有 PERIOD_MATERIAL(逐材质)的提交的uniform值,开发者就需要使用_shaderValues来绑定Shader属...
来源: Laya2.0_文档 发布时间: 20210715
...age = Laya.Stage; (function() { //初始化舞台 Laya.init(500, 300); drawSomething(); })(); function drawSomething() { var sp = new Sprite(); Laya.stage.addCh...
来源: Laya2.0_文档 发布时间: 20210715
... constructor() { //初始化舞台 Laya.init(500, 300); this.drawSomething(); } private drawSomething(): void { this.sp = new Spri...
来源: Laya2.0_文档 发布时间: 20210715
...析JSON,并且预编译Shader。修改initShader方法 ```typescript //初始化shader initShader() { ...... //加载获取得到shaderObj let arr= this.shaderObj["GlowingEdgeMaterial"]; for (let = 0; index 使用的官方地形shader示例  ### 2.提取信息,预编译Shader 我...
来源: Laya2.0_文档 发布时间: 20210714
...析JSON,并且预编译Shader。修改initShader方法 ```typescript //初始化shader private initShader(): void { ...... //加载获取得到shaderObj let arr :Array= this.shaderObj["GlowingEdgeMaterial"]; for (let index = 0; index 使用的官方地形shader示例  ### 2.提取信...
来源: Laya2.0_文档 发布时间: 20210714