本文へ移動
cccskills
無料GitHub で公開

computer-graphics-expert

Expert-level computer graphics covering the rendering pipeline, rasterization, ray tracing, shaders, transformations, lighting models, and GPU programming.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.6 KB
  • .gitkeep0 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Computer Graphics Expert

Before Starting

  1. Real-time or offline rendering?
  2. Rasterization or ray tracing?
  3. OpenGL, Vulkan, WebGL, or DirectX?

Core Expertise Areas

Rendering Pipeline

Vertex processing: transform 3D positions to clip space. Primitive assembly: group vertices into triangles. Rasterization: convert triangles to fragments, interpolate attributes. Fragment processing: compute color per fragment, depth test. Output merger: blend fragments, write to framebuffer.

Transformations

Model matrix: object space to world space. View matrix: world space to camera space. Projection matrix: camera space to clip space — perspective or orthographic. MVP matrix: Model x View x Projection applied to each vertex. Homogeneous coordinates: 4D vectors allow translations as matrix multiply.

Lighting Models

Phong model: ambient + diffuse + specular components. PBR: physically-based rendering — metallic/roughness workflow, energy conservation. Lambertian diffuse: max(dot(N,L), 0) * diffuse_color. Shadow mapping: render depth from light, compare in main pass. Global illumination: ambient occlusion, SSAO, ray-traced GI.

Shaders

Vertex shader: per-vertex transformation, pass attributes to fragment shader. Fragment shader: per-pixel color computation. Geometry shader: per-primitive processing, can generate new geometry. Compute shader: general GPU computation, not part of fixed pipeline.

Ray Tracing

Ray casting: shoot ray from camera through each pixel. Intersection tests: ray-sphere, ray-triangle, ray-AABB. BVH: bounding volume hierarchy accelerates intersection queries. Path tracing: Monte Carlo integration of rendering equation, handles global illumination.

Best Practices

  • Profile GPU with vendor tools before optimizing
  • Minimize draw calls by batching geometry
  • Use mipmaps to reduce texture aliasing and improve cache performance
  • Prefer compute shaders for non-rasterization workloads

Common Pitfalls

PitfallFix
Z-fightingAdjust near and far clip planes to minimize depth range
Too many draw callsBatch geometry, use instancing
Shader precision issuesUse mediump carefully, prefer highp for positions
Forgetting to normalize vectorsAlways normalize normals and light directions

Related Skills

  • threejs-expert
  • wasm-expert
  • computer-architecture-expert

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert-level abstract algebra knowledge. Use when working with groups, rings, fields, modules, Galois theory, representation theory, or algebraic structures. Also use when the user mentions 'group', 'ring', 'field', 'homomorphism', 'isomorphism', 'normal subgroup', 'quotient group', 'Sylow theorem', 'Galois theory', 'polynomial ring', 'ideal', 'module', 'vector space', or 'representation theory'.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level acoustics knowledge. Use when working with sound waves, acoustic propagation, resonance, standing waves, Doppler effect, room acoustics, ultrasound, noise control, musical acoustics, or architectural acoustics. Also use when the user mentions 'sound wave', 'decibel', 'frequency', 'resonance', 'standing wave', 'Doppler effect', 'acoustic impedance', 'reverberation', 'ultrasound', 'noise control', 'harmonics', or 'sound intensity'.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level aerodynamics covering subsonic and supersonic flow, lift and drag, airfoil theory, boundary layers, compressible flow, and CFD methods.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level air quality engineering covering pollutant sources, atmospheric dispersion, air quality standards, emission controls, and air quality modeling.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level aircraft structures covering structural design philosophy, wing and fuselage analysis, fatigue and damage tolerance, composite structures, and certification.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

Expert-level algorithms and complexity theory covering sorting, searching, graph algorithms, dynamic programming, greedy algorithms, NP-completeness, and algorithm design paradigms.

日本語の概要は準備中です。原文の説明を表示しています。

luokai0/ai-agent-skills-by-luo-kai122026年5月6日 更新

luokai0 のスキルをすべて見る

このスキルの問題を報告する