Files: SpriteDiffuse.shader
Path: "CGF/Shaders/Lit"
Shader menu: "CG Framework/Lit/Sprite Diffuse"
Description
Unity shader CG Framework/Lit/Sprite Diffuse.
Reference

- Texture (RGBA) – Main texture.
- Pixel Snap – Pixel snapping.
- Use Alpha Clip – Enables Alpha Clip.
- Alpha cutoff – Alpha Cutoff value.
- Color (RGBA) – Main color.
- Color Gradient – Color Gradient.
- Top Color – Color of the top part of the gradient.
- Center – Gradient center.
- Width – Gradient width.
- Revert – Revert the orientation of the gradient.
- Change Direction – Change direction of the gradient.
- Rotation – Gradient rotation.
- Color Fill – Color Fill.
- Color Fill Level – Level of color fill in relation the source color.
- Top Color Fill Level – Level of top color fill in relation the source color.
- Emission – Manages emission settings. See Common Features / Emission.
- Color Mask – Color Mask.
- Color Mask Map (RGB) – Color Mask Map (RGB).
- Color Mask Color R (RGB) – Color Mask Color R (RGB).
- Color Mask Color G (RGB) – Color Mask Color G (RGB).
- Color Mask Color B (RGB) – Color Mask Color B (RGB).
- Color Mask Level – Color Mask Level.
- Sprite Outline – Outline for sprites.
- Outline Color (RGBA) – Color of the outline.
- Outline Width – Width of the outline.
- Outline Sharp – Hard edge for the external part of the outline.
- Inner Sharp – Hard edge for the internal part of the outline.
- Disable Top Left Outline – If enabled disables the top left outline.
- Disable Top Outline – If enabled disables the top outline.
- Disable Right Outline – If enabled disables the right outline.
- Disable Bottom Right Outline – If enabled disables the bottom right outline.
- Disable Right Outline – If enabled disables the right outline.
- Disable Bottom Outline – If enabled disables the bottom outline.
- Disable Bottom Left Outline – If enabled disables the bottom left outline.
- Disable Left Outline – If enabled disables the left outline.
- Top Left Distance – Distance of top left outline.
- Top Distance – Distance of top outline.
- Top Right Distance – Distance of top right outline.
- Right Distance – Distance of right outline.
- Bottom Right Distance – Distance of bottom right outline.
- Bottom Distance – Distance of bottom outline.
- Bottom Left Distance – Distance of bottom left outline.
- Left Distance – Distance of left outline.
- Sprite Pixel Outline – Pixel art outline for sprites.
- Outline Color (RGBA) – Color of the outline.
- Outline Width – Width of the outline.
- Outer Outline – If enabled outlines is created from external part of the sprite.
- Outline Reverse – If enabled outlines is created from center of the sprite.
- Discard Transparent Pixels – If enabled outline doesn't affect to non opaque pixels.
- Disable Top Left Outline – If enabled disables the top left outline.
- Disable Top Outline – If enabled disables the top outline.
- Disable Bottom Left Outline – If enabled disables the bottom left outline.
- Disable Bottom Right Outline – If enabled disables the bottom right outline.
- Disable Right Outline – If enabled disables the right outline.
- Disable Bottom Outline – If enabled disables the bottom outline.
- Disable Right Outline – If enabled disables the right outline.
- Disable Left Outline – If enabled disables the left outline.
- Top Left Distance – Distance of top left outline.
- Top Distance – Distance of top outline.
- Bottom Left Distance – Distance of bottom left outline.
- Right Distance – Distance of right outline.
- Top Right Distance – Distance of top right outline.
- Bottom Distance – Distance of bottom outline.
- Left Distance – Distance of left outline.
- Bottom Right Distance – Distance of bottom right outline.
- Flip UV Horizontal – Flip UV Horizontal.
- Flip UV Vertical – Flip UV Vertical.
Use
Assign the shader from CG Framework/Lit/Sprite Diffuse to a material.
Configure the grouped material properties listed in Reference from the Unity material inspector.