大约有 615 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
... 不知道对大家有用没 { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch",...
来源: Laya_社区 发布时间: 20200114
... { earth.transform.rotate(rotation, true); }); function initShader() { var attributeMap = { 'a_BoneIndices': Laya.VertexElementUsage.BLENDINDICES0, 'a_BoneWeights': Laya.VertexElementUsage.BLENDWEIGHT0, 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_...
来源: Laya_示例 发布时间: 20260929
...s使用的着色器: 顶点着色器 `outline.vs` 代码如下: ```c++ attribute vec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * posi...
来源: Laya2.0_文档 发布时间: 20210715
...s使用的着色器: 顶点着色器 `outline.vs` 代码如下: ```c++ attribute vec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * posi...
来源: Laya2.0_文档 发布时间: 20210715
...shader、材质后,动作依然正常? 这是自定义的shader var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord': Laya.VertexElementUsage.TEXTURECOORDINATE0 }; var uniformMap = { 'u_MvpMatrix': [Laya.Sprite3D.MVPMA...
来源: Laya_社区 发布时间: 20170815
...是绿色,我想换成其他颜色,如何操作? 求问shader中的attribute变量怎么动态修改 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 2.2.0beta4,微信上动态合批报错. app启动...
来源: Laya_社区 发布时间: 20170526
...aMonkey.transform.rotate(rotation, false); }); function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0 }; var uniformMap = { 'u_MvpMatrix': [Laya.Sprite3D.MVPMATRIX, Laya.Shader3D.PERIOD_SPRITE], 'u_WorldMat': [Laya.Sp...
来源: Laya_示例 发布时间: 20260929
...LID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 0 [file:///E:/Laya_APP_Hall/Laya_Chess_App/bin/index.html],然后界面会闪烁黑一下,研究好久都找不出什么问题,希望官方提供一下思路(公司项目,暂时不能提供Demo0.0)。 ...
来源: Laya_社区 发布时间: 20181213
...ub.com/layabox/layaair-doc/tree/master/Chinese/LayaAir_AS3/IDE/Design_Mode/Attribute_Set#333-中心位置适配 anchorX和anchorY相关介绍 https://github.com/layabox/layaair-doc/tree/master/Chinese/LayaAir_AS3/IDE/Design_Mode/Attribute_Set#4旋转及缩放属性 先了解这些属性的...
来源: Laya_社区 发布时间: 20170531
...propertyNameToID("u_Time"); constructor() { super(); var vs:string = ` attribute vec4 a_Position; attribute vec2 a_Textcoord; attribute vec3 a_Normal; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { v_te...
来源: Laya_社区 发布时间: 20190923