Skip to content

Instantly share code, notes, and snippets.

View CodeBoy2006's full-sized avatar
📚
Learning CS and SE

codeboy CodeBoy2006

📚
Learning CS and SE
View GitHub Profile
@CodeBoy2006
CodeBoy2006 / Vision3D.js
Last active August 2, 2025 02:52
SillyTavern 3D视野插件 - 让角色的视野可视化 (通过酒馆助手加载)
// ==UserScript==
// @name 全局脚本 - 3D视野组件 (单 Canvas v10.8 Bbox Fixed)
// @version 10.8
// @description 实现遮挡物半透明效果,当模型包裹另一个时,外层模型自动透视,支持玩家显示开关。已优化移动端触摸支持和性能。新增并修复了bbox格式兼容。
// @author Codeboy, 优化 by AI
// @match */*
// @grant none
// ==/UserScript==
(function () {