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

大约有 615 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)

21. vs code launch.json调试配置 [ 77%]

... 不知道对大家有用没 { // 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

22. 自定义shader-边缘光照shader [ 77%]

... { 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

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

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

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

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

25. 角色模型的材质列表切换后,不播放动作了 [ 76%]

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

26. 我想动态改自定义shader里的值,应该怎么写?? [ 74%]

...是绿色,我想换成其他颜色,如何操作? 求问shader中的attribute变量怎么动态修改 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 2.2.0beta4,微信上动态合批报错. app启动...

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

27. 自定义shader-简单shader [ 74%]

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

28. OpenGL报错 [ 74%]

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

29. List anchor问题 [ 73%]

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

30. 分享水波一个shader [ 71%]

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