为您找到相关结果82,145个
Unity shader实现遮罩效果_C#教程_脚本之家
#pragma vertex vert #pragma fragment frag #define UNITY_PASS_FORWARDBASE #include "UnityCG.cginc" #pragma multi_compile_fwdbase #pragma only_renderers d3d9 d3d11 glcore gles #pragma target 3.0 uniform sampler2D _MainTex; uniform float4 _MainTex_ST; uniform sampler2D _MaskTex; uniform float4 ...
www.jb51.net/article/1571...htm 2025-3-15
Java编程实现基于图的深度优先搜索和广度优先搜索完整代码_java_脚本...
public void BFS(int vertexIndex) { ChainQueue queue = new ChainQueue(); vertexList[vertexIndex].setVisited(true); queue.insert(new QueueNode(vertexIndex)); int nextVertexIndex = getNextVertexIndex(vertexIndex); while(!queue.isEmpty()) { if(nextVertexIndex != -1) { vertexList[nextVertex...
www.jb51.net/article/1300...htm 2025-3-3
vue中使用gojs/jointjs的示例代码_vue.js_脚本之家
removeVertex: function(endType) {}, pointerdown:function(evt, x, y) {} }); export default { data(){ return{ graph:null, paper:null, show:true } }, props:{ graphData:{ type:Object, required:true } }, mounted(){ let w = document.getElementById('container').width ; this.gr...
www.jb51.net/article/1462...htm 2025-3-7
JavaScript使用canvas绘制坐标和线_javascript技巧_脚本之家
ctx.moveTo(vertexRight.x,vertexRight.y); ctx.lineTo(vertexRight.x - arrow.height,vertexRight.y - arrow.width); ctx.lineTo(vertexRight.x - arrow.height/2,vertexRight.y); ctx.lineTo(vertexRight.x - arrow.height,vertexRight.y + arrow.width); ctx.fill(); /* * 在坐标轴中指定位置画...
www.jb51.net/article/2110...htm 2025-2-28