threejs-shaders
Build Three.js Shaders with GLSL and TSL
Custom Three.js effects require careful handling of shader inputs, color conversion, and renderer compatibility. This skill provides GLSL and TSL examples for building effects and diagnosing common material errors.
التثبيت باستخدام Agent لدي
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
Review the Skillstore skill "threejs-shaders" from https://skillstore.io/skills/cloudai-x-threejs-shaders.md and its manifest at https://skillstore.io/api/skills/cloudai-x-threejs-shaders/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.يجب أن يواصل Agent عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
موارد مهيّأة لـ Agents
استخدم هذه الروابط عندما يحتاج AI Agent أو crawler أو script إلى سياق نظيف بدلًا من قراءة الصفحة كاملة.
اختبرها
جارٍ استخدام "threejs-shaders". My ShaderMaterial renders darker than a built-in material with the same color.
النتيجة المتوقعة:
- Color uniforms created with THREE.Color hold linear values.
- Apply the tone mapping and color space chunks after writing the fragment color.
- Check the render target and output pass before adding another color conversion.
جارٍ استخدام "threejs-shaders". My custom ShaderMaterial stops working after switching to WebGPURenderer.
النتيجة المتوقعة:
- ShaderMaterial and onBeforeCompile belong to the WebGLRenderer workflow.
- Use MeshBasicNodeMaterial for an unlit effect or MeshStandardNodeMaterial for a lit effect.
- Rewrite the effect using TSL nodes and reusable functions instead of passing GLSL shader strings.
جارٍ استخدام "threejs-shaders". All instances overlap when I use my own vertex shader.
النتيجة المتوقعة:
- Declaring an InstancedMesh does not apply its instance transforms inside a custom shader.
- Apply instanceMatrix before the model-view and projection transforms.
- Custom offset attributes also require bounds that account for the displacement.
التدقيق الأمني
آمنAll 118 static findings are false positives from Markdown formatting, JavaScript shader strings, GLSL entry points, and shader chunk keys. The reviewed documentation contains rendering examples and relative texture loads, with no evidence of shell execution, credential access, reconnaissance, or prompt injection. No evidence found of malicious intent or additional semantic security risks.
عوامل الخطر
⚙️ الأوامر الخارجية (50)
شارك واستشهد بهذا التقرير
شارك تقرير التقييم المرتبط بالإصدار والشارة المحايدة وبطاقة التضمين والاستشهادات. تعرض Skillstore الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
نسخ رابط التقرير
https://skillstore.io/skills/cloudai-x-threejs-shaders/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportشارة Markdown
[](https://skillstore.io/skills/cloudai-x-threejs-shaders?utm_source=security_passport_badge)شارة HTML
<a href="https://skillstore.io/skills/cloudai-x-threejs-shaders?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudai-x-threejs-shaders/security.svg" alt="Skillstore security assessment" loading="lazy"></a>بطاقة قابلة للتضمين
<iframe src="https://skillstore.io/embed/skills/cloudai-x-threejs-shaders.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>الاستشهادات الأكاديمية (APA · BibTeX · CFF)
اقتباس APA
cloudai-x. (2026). threejs-shaders security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudai-x-threejs-shaders/audits/1اقتباس BibTeX
@techreport{cloudai-x-cloudai-x-threejs-shaders-2026,
author = {cloudai-x},
title = {threejs-shaders security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudai-x-threejs-shaders/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "threejs-shaders security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudai-x"
date-released: "2026-11-07"
url: "https://skillstore.io/skills/cloudai-x-threejs-shaders/audits/1"
identifiers:
- type: other
value: "skillstore:cloudai-x-threejs-shaders:audit:1"
description: "Skillstore immutable audit report identifier"
تقييم Skillstore
سبب هذا التقييم موثوقية الأدلة: متوسطما الذي يمكنك بناؤه
Add Animated Product Materials
Create color waves, displacement, or Fresnel effects while keeping shader uniforms and color conversion consistent.
Prototype Game Visual Effects
Adapt dissolve shaders and custom instanced attributes for scene objects, then inspect shader errors and coordinate spaces.
Migrate Effects to TSL
Translate GLSL effects into node materials and reusable TSL functions for WebGPURenderer with its WebGL 2 fallback.
جرّب هذه الموجّهات
Use threejs-shaders to create an animated color wave on a plane in Three.js r186 with WebGLRenderer. Include time uniforms and output color conversion.
Review my Three.js r186 shader: [paste shader and renderer setup]. Diagnose dark colors, missing uniform declarations, and coordinate-space mismatches. Explain the required corrections.
Add animated vertex displacement to my r186 MeshStandardMaterial with onBeforeCompile: [paste material setup]. Preserve lighting and use distinct program cache keys for shader variants.
Port this GLSL dissolve effect to a reusable TSL Fn for Three.js r186: [paste shader]. Use WebGPURenderer, updatable progress, and portable texture sampling. Identify backend-specific assumptions.
أفضل الممارسات
- Check the installed Three.js release and renderer backend before choosing GLSL shaders or TSL node materials.
- Keep lighting vectors in one coordinate space and verify texture color spaces before adjusting shader colors.
- Inspect compiled shader errors and visualize intermediate values before adding more effect logic.
تجنب
- Use ShaderMaterial or onBeforeCompile under WebGPURenderer instead of selecting node materials.
- Mix world-space camera directions with view-space normals when calculating Fresnel or rim lighting.
- Copy obsolete shader chunk names or TSL imports without checking the targeted release.