EtG Modding Guide
  • ETG Modding Guide
  • Getting started
    • Modding EtG: Installing Mods
    • Modding EtG: Creating a Mod
    • Uploading a Mod
    • Useful Tools
      • Using IlSpy
  • Making An Item
    • Creating A Passive
    • Creating An Active
    • Creating An Ammolet
    • Creating A Guon
    • Synergies
  • Making a Gun
    • Creating A Gun
      • Setting Up Gun Sprite Folders
      • Creating Gun Jsons/Jtk2ds
        • Pixel Measurement Conversions
    • Setting Up Projectiles
      • Adding Components To A Projectile
      • Projectile HitEffects (Visual Effects)
      • Adding status effects to a projectile
    • Continuous Fire Animations
    • Gun Ammo Types
  • Custom Characters
    • Creating A Standalone Custom Character
  • Making a Floor
    • Introduction
    • Setup
    • Making The Dungeon
    • Tileset
    • Rooms
    • Making the flow
    • Making the Entrance
    • All Files
  • Text, Text Boxes, Etc
    • Textboxes
    • Text Formatting
  • Sounds
    • Using Custom Sounds
    • Customising Gun Sounds
    • Basegame Sound List
    • wwise Sound Dump
  • Misc
    • Making Asset bundles
    • Assetbundles: How-To
    • How to create a hook
    • Creating A Command
    • Subscribing Methods to Actions
    • Reversing Player Controls
    • Undodgeable Projectiles
    • Creating An Enemy
  • Shaders
    • Creating Shaders
  • All things Spriting
    • Important Sprite Creation Information.
    • Importing a Sprite To Visual Studios
  • Monobehaviour Documentation
    • BounceProjModifier
    • PierceProjModifier
    • KeyProjModifier
    • CompanionFollowPlayerBehaviour
  • Various Lists of IDs, Sounds, Etc.
    • List of Item and Gun IDs
    • Enemy Guids
    • List of Base Game Synergies
    • dfSpriteList
    • All Custom Ammo Types
    • Gun .Json Dump
  • OFF TOPIC MEMES
    • Modders Anthem
Powered by GitBook
On this page
  • Setup
  • Making the shader
  • Some Examples

Was this helpful?

  1. Shaders

Creating Shaders

PreviousCreating An EnemyNextImportant Sprite Creation Information.

Last updated 3 years ago

Was this helpful?

Shaders are ways that we can cause the sprites of objects to render in different ways. Some examples you are most likely familliar with are the Jammed shader which is what is used to change the appearance of Jammed enemies, the Rainbow shader which is how Rainbow Chests have their animated texture, and the Paradox shader, which is what the Paradox character uses.

Setup

Firstly, if you don't have it already, install for Unity 2017.4.40, as it makes creating shaders actually bearable and this tutorial relies on it.

Making the shader

Open Unity after installing Shaderforge and navigate to the tabs at the top and select Window > Shader Forge

You will be met with a screen like this:

Click "New Shader", then select "Sprite" (Note: this doesn't lock any features of ShaderForge, rather it is just a template for Sprites)

You'll be met with a screen that looks like this:

While this may seem complex, there are only a few basic things that are required by the Shader to function with Gungeon's sprites:

Some Examples

This shader causes enemies to pulse an orange color over time.

This one creates a cool-looking orb effect.

Shaderforge