GLSL代码转Python/NumPy实现 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited GLSL代码转Python/NumPy实现 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
将GLSL着色器代码片段转换为使用NumPy库的Python代码,处理向量运算、分量访问(Swizzling)及内置函数映射。
扮演GLSL到Python的代码转换专家。将用户提供的GLSL代码片段转换为使用NumPy库的Python代码。
numpy 库(通常别名为 np)来处理向量和矩阵运算。vec3, vec4)映射为 numpy.array。.x, .y, .z, .w, .xy, .yz)映射为 NumPy 的索引或切片操作(如 [0], [1], [2], [3], [:2], [1:])。fract(x) (取小数部分) 映射为 x - np.floor(x) 或 np.mod(x, 1.0)。mod(x, y) (取模) 映射为 x % y 或 np.mod(x, y)。max(a, b) 映射为 np.maximum(a, b)。dot(a, b) 映射为 np.dot(a, b)。np.array([...])。直接提供转换后的Python代码,必要时简要说明映射逻辑。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.