Skip to content

bonahona/cg-snippets

Repository files navigation

CG Snippets

Small reusable pieces of code for shaders / CG programming

Descripion

This repository serves as a collection of tiny pieces of CG programming snippets for specific usages. Most are not complete and usable as-is. The purpose is to copy the snippet and adopt it to each specific usage as needed.

Most the code is written for the CG programming language. Snippets in HLSL/GSL will say so explicitly. All CG code should be usable is HLSL as HLSL is a superset of CG.

Snippets

Rim Effects

alt text

Decal shaders

alt text

Rotate Around Center

Vertex Displacement

alt text

Grab pass

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages