Skip to content

Instantly share code, notes, and snippets.

@maoxiaoke
maoxiaoke / cline-system.txt
Last active January 8, 2026 12:42
An example of cline system prompt
You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.
====
TOOL USE
You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
# Tool Use Formatting
## USD 格式 特色
@romainguy
romainguy / anisotropic_ibl.glsl
Last active December 30, 2025 20:27
Anisotropic IBL
vec3 anisotropyDirection = pixel.anisotropy >= 0.0 ? pixel.anisotropicB : pixel.anisotropicT;
vec3 anisotropicTangent = cross(anisotropyDirection, shading_view);
vec3 anisotropicNormal = cross(anisotropicTangent, anisotropyDirection);
float bendFactor = abs(pixel.anisotropy) * saturate(5.0 * pixel.roughness);
vec3 bentNormal = normalize(mix(shading_normal, anisotropicNormal, bendFactor));
vec3 r = reflect(-shading_view, bentNormal);