Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Erfan-Ahmadi/19c8f5e922a83f167eceaf07135995dd to your computer and use it in GitHub Desktop.
Save Erfan-Ahmadi/19c8f5e922a83f167eceaf07135995dd to your computer and use it in GitHub Desktop.
Regex for sampler when translating HLSL to GLSL
Find: (\w*).Sample\((\w*)
Replace: texture(sampler2D($1, $2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment