会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
G
Q
Q
and
M
E
sunyan
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2023年5月29日
r3f喷雾火焰组件
摘要: ``` import { useTexture } from "@react-three/drei"; import { useFrame, useThree } from "@react-three/fiber"; import React, { useRef } from "react"; im
阅读全文
posted @ 2023-05-29 14:58 sy0313
阅读(80)
评论(0)
推荐(0)
2023年4月11日
three.js中某个物体跟随camera进行旋转
摘要: const camera = useThree().camera; const borderRef = useRef(); useFrame(()=>{ //通过反正切函数,获得在Y轴旋转的角度。由欧拉角定义可如此设置。 borderRef.current.rotation.y = Math.ata
阅读全文
posted @ 2023-04-11 10:37 sy0313
阅读(758)
评论(0)
推荐(0)
2023年3月6日
Vue父子组件渲染顺序
摘要: 创建基本组件结构 父组件 //father.vue <template> <div class="father"> 父组件 <span>父组件数值:{{val}}</span> <button @click="add">父组件+1</button> <button @click="switchChi
阅读全文
posted @ 2023-03-06 14:04 sy0313
阅读(329)
评论(0)
推荐(0)
2023年2月10日
gitHub Action 指南
摘要: 原文链接: https://zhuanlan.zhihu.com/p/164744104
阅读全文
posted @ 2023-02-10 09:27 sy0313
阅读(13)
评论(0)
推荐(0)
2023年2月7日
nginx基础知识
摘要: 原文链接:https://juejin.cn/post/6844904129987526663 nginxg常用命令 # 启动ningx service nginx start # 停止nginx service nginx stop # 热重载nginx sudo nginx -s reload
阅读全文
posted @ 2023-02-07 11:21 sy0313
阅读(29)
评论(0)
推荐(0)
2022年11月8日
mongoDB数据库安装与配置
摘要: mongoDB数据库安装与配置 https://www.jianshu.com/p/137297d9fe8e
阅读全文
posted @ 2022-11-08 13:30 sy0313
阅读(17)
评论(0)
推荐(0)
React Native中的DeviceEventEmitter的使用
摘要: react-native中采用了DeviceEventEmitter来实现对事件的监听,实现非父子关系的页面之间的通信。具体来说,我们可以在一个页面中通过DeviceEventEmitter来对特定名称的事件进行监听,此后每当其它位置发送该名称的事件,都会触发这个监听的响应并执行对应的函数。 Dev
阅读全文
posted @ 2022-11-08 13:23 sy0313
阅读(218)
评论(0)
推荐(0)
r3f给物体不同的面设置不同的材质
摘要: <mesh> <boxGeometry args={[40, 10, 10]} /> {/* 右边 */} <meshStandardMaterial attach="material-0" color="red" /> {/* 左边 */} <meshStandardMaterial attach
阅读全文
posted @ 2022-11-08 13:18 sy0313
阅读(77)
评论(0)
推荐(0)
2022年11月7日
react中GraphQL的简单应用
摘要: express服务端实现GraphQL 创建node项目 安装graphQL相关库 mkdir node_server cd node_server npm init -y yarn add graphql express-graphql express axios 创建入口文件server.js
阅读全文
posted @ 2022-11-07 15:57 sy0313
阅读(55)
评论(0)
推荐(0)
2022年10月20日
three.js中使用r3f在模型上打多处孔洞(模型相减)
摘要: 在日常开发中接到一个需求,需要在three.js构建的3D场景中模拟激光打孔的操作,通过一个名为three-csg-ts库实现模型相减的操作。 之前使用一个名为@react-three/csg的库,但是官方文档中也注明,此库功能不算完善,使用之后发现,多个模型相减做不到相对动态的构建。所以换了thr
阅读全文
posted @ 2022-10-20 13:27 sy0313
阅读(599)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告