摘要: float circle(in vec2 st, in float r, in float blur){ float d = distance(st, vec2(.5)); float t = smoothstep(r,r+blur,d);; return t; } void mainImage( 阅读全文
posted @ 2022-06-23 23:35 卑面派对 阅读(31) 评论(0) 推荐(0)
摘要: shadertoy vec3 Rect(vec2 st, float left, float bottom, float right, float top, float blur ){ vec3 col = vec3(0.); float l = smoothstep(left,left+blur, 阅读全文
posted @ 2022-06-22 22:24 卑面派对 阅读(55) 评论(0) 推荐(0)
摘要: 英文纸质在线书 discoverthreejs The Book of Shaders Physically Based Rendering Converting degrees to radians import { MathUtils } from 'three'; const radiansP 阅读全文
posted @ 2022-05-30 17:29 卑面派对 阅读(147) 评论(0) 推荐(0)
摘要: 方法一 parcel npm install -g parcel-bundler parcel *.html 方法二 html <head> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@0.13 阅读全文
posted @ 2022-05-26 15:01 卑面派对 阅读(4080) 评论(0) 推荐(0)
摘要: vscode 配置 插件 eslint stylelint setting.json设置 "editor.codeActionsOnSave": { "source.fixAll": true, }, "eslint.validate": [ "javascript", "typescript", 阅读全文
posted @ 2022-05-12 17:11 卑面派对 阅读(776) 评论(0) 推荐(0)
摘要: vue2 jsx render函数常见问题解决方案 vue/jsx-vue2 自定义组件 element-ui cascader为例 /** * 特别注意 * 由于 el-cascader 需要传递名称为 'props' 的属性 * 而在 vue 的 JSX 语法解析中,'props' 属性无法正常 阅读全文
posted @ 2022-05-07 16:06 卑面派对 阅读(531) 评论(0) 推荐(0)
摘要: 解决方案 添加key属性 <el-cascader :key="form.type" v-model="form.code" ... /> 阅读全文
posted @ 2022-05-07 15:52 卑面派对 阅读(143) 评论(0) 推荐(0)
摘要: 解决方案 更新vscode 阅读全文
posted @ 2022-05-07 15:03 卑面派对 阅读(633) 评论(0) 推荐(0)
摘要: 解决方案 桌面vscode图标右键属性 打开文件位置,找到并复制 Code.exe 文件到目录 C:\Users\YOUR_USERNAME\AppData\Local\Programs\Microsoft VS Code,然后重新运行vscode 检测更新就Ok了 阅读全文
posted @ 2022-05-07 11:47 卑面派对 阅读(1828) 评论(0) 推荐(2)
摘要: 1.新建名为 vscode.reg 的文件。 2.写入下面内容保存双击 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\VSCode] @="Open with Code" "Icon"="D:\\Microsoft V 阅读全文
posted @ 2020-04-16 22:42 卑面派对 阅读(3495) 评论(0) 推荐(0)