Seaside Studios
3D Shader
3D Shader
  • What is All In 1 3D Shader
  • Overview
  • First Steps (Must Read)
  • URP And Post Processing Setup
  • Asset Component Features
  • Asset Window
  • Saving Prefabs
  • Convert Materials to 3D Shader
  • Light Models
  • Effects List
  • Scripting
  • Batch Override Materials
  • How to animate effects
  • Advanced Configuration and Key Rendering Concepts
  • How to Enable/Disable Effects at Runtime
  • Random Seed
  • Scaled Time
  • Outlines
  • Wind Effect and Wind Controller
  • Depth Coloring - Stylized Fog
  • Shadow Color
  • Fast Lighting
  • Performance Considerations
  • FAQ (Frequently Asked Questions)
Powered by GitBook
On this page

Effects List

The AllIn1 3D Shader features a custom Material Inspector that allows you to activate and deactivate effects. When an effect is activated, it displays its properties so they can be modified. In the custom Material Inspector, you can see which effects are activated and access all their properties. Also note the "R" button next to each property - this button will reset the property to its default value set in the shader. All effects can be stacked and combined, meaning that enabled effects will have an additive effect amongst themselves. Note that the effects have an execution order set in the shader. The order has a logic based on the developer experience and intuition of what the users most likely will aim to do with said effects. It's possible that a slight effect order change is needed in some projects. Please reach out to support if you are unsure how to do that. To understand the perforance implications of this system you can checkout this section: Performance Considerations

Lighting Effects

  1. Light Model: Explained in Light Models.

  2. Shading Model: Explained in Light Models.

  3. Specular Model: Explained in Light Models.

  4. Reflections: Manages how environment reflections are handled, with options for controlling intensity and blending. The Shading model will have a great influence in this effect. You probably want to keep this property in the low values.

  5. Normal Map: Adds surface detail without adding geometry, making surfaces appear more complex and detailed by affecting how light interacts with the surface.

  6. Custom Shadow Color: Overrides Unity's default shadow color, allowing for stylized colored shadows.

  7. Affected by Lightmaps: When enabled, the object will receive baked lighting information from Unity's lightmapping system.

  8. Custom Ambient Light: Overrides the Lighting->Environment Lighting with a desired color

  9. Cast Shadows: Controls whether the object casts shadows

  10. Enable Shadows: Controls whether the object receives shadows

Color Effects

  1. Color Ramp: Maps the object's colors to a gradient texture, allowing for complete color palette customization.

  2. AO Map: Adds ambient occlusion from a texture map to enhance surface details and depth.

  3. Highlights: Creates customizable glossy highlights on surfaces for various material types.

  4. Rim or Fresnel: Adds edge highlighting that's visible at grazing angles, perfect for energy shields, glass, backlighting, hit effects. Can be complemented witht he Highlights effect that is somewhat similar.

  5. Greyscale: Removes color information while maintaining luminosity, with optional tinting.

  6. Posterize: Reduces the number of colors, creating a banded or cel-shaded look.

  7. Hue Shift: Rotates colors around the color wheel with adjustable saturation and brightness.

  8. Emission: Overexposes the RGB values. Allowing the object to Glow if Post Processing is setup with Bloom.

  9. Hologram: Creates a sci-fi hologram effect with horizontal scan lines and transparency fluctuations.

  10. Matcap: Uses a spherical environment map to create complex lighting effects with minimal performance cost.

  11. Hit Effect: Creates a flash or pulse effect, ideal for damage indication or power-ups.

  12. Contrast and Brightness: Simple adjustments to the overall contrast and brightness of the model.

  13. Height Gradient: Applies a gradient based on object height, useful for terrain or buildings. Can be done both in Local and World space.

  14. Intersection Glow: Creates a glow effect where objects intersect with other geometry.

  15. Albedo From Vertex Color: Uses the mesh's vertex colors as the base color, useful for hand-painted assets or when trying to be super efficient and use no textures.

  16. Triplanar Mapping: Ignores the texture coordinates and projects textures from three directions onto the object. Useful when texturing big environments or when not using texture coordinates.

  17. Texture Blending: Blends 3 or 2 texures form a noise map or from Vertex Colors. You can use Poly Brush free tool to pain the vertex colors. The 3 textures blend mode will use and RGB mask and the 2 textures blend mode will use a black and white mask, so you can use any typical noise texture that you can also generate with the Asset Window.

  18. Depth Coloring: Changes color based on distance from the camera, useful for fog effects. See Depth Coloring - Stylized Fog for more info.

  19. Fake Subsurface Scattering: Simulates light scattering through translucent materials like skin, wax, or leaves.

Alpha Effects

  1. Alpha Cutoff: Discards and avoids drawing pixels under an alpha threshold. This is the only way we have to use alpha related effects in Opaque objects. That's why this effects is automatically enabled with the Opaque preset as explained in Advanced Configuration and Key Rendering Concepts.

  2. Fade: Provides progressive transparency controlled by a texture with optional burning edge effect.

  3. Intersection Fade: Makes objects gradually fade out when they intersect with other objects.

  4. Alpha Round: Rounds the alpha value to the nearest integer.

  5. Fade By Cam Distance: It fades the object gradually from Min to Max distance.

  6. Dither: Alpha is displayed with a dither pattern.

Mesh Effects

  1. Vertex Shake: Adds random movement to vertices, creating wobbling or vibration effects.

  2. Vertex Inflate: Expands the mesh along its normals, useful for growth effects or power-ups.

  3. Vertex Distortion: Distorts the mesh based on a noise texture, great for melting or warping effects.

  4. Voxelize: Creates a blocky, voxel-like appearance without changing the underlying mesh.

  5. Glitch: Produces digital distortion artifacts, perfect for sci-fi or horror effects.

  6. Recalculate Normals: In case the mesh has been distorted, inflated or manipulated in any way this effect will recalculate new normals based on the vertex positions.

  7. Wind: Sways the mesh as if affected by wind. Check it out here Wind Effect and Wind Controller

UV Effects

  1. Scroll Texture: Animates the texture by scrolling it in the X and/or Y direction at customizable speeds.

  2. Screen Space UV: Uses screen coordinates instead of the model's UVs for texturing, makes it look as you can see through the object.

  3. Pixelate: Creates a pixel art or low-resolution appearance by reducing the effective resolution of the texture.

  4. Stochastic Sampling: Breaks up tiling patterns in textures by randomly sampling nearby pixels, creating more natural-looking repeating textures.

  5. Wave UV: Distorts UVs using a wave pattern, creating rippling or flowing effects.

  6. Hand Drawn: Adds a frame-by-frame jittering to the UVs, simulating the imperfections of hand-drawn animation.

  7. Distortion: Warps texture UVs using a noise map, allowing for effects like heat haze, underwater distortion, or psychedelic warping.

Other effects

  1. Outline Type: Properly explained in Outlines section. Adds a customizable outline around the object with various styles:

  • None: No outline

  • Simple: Basic outline with adjustable width and color

  • Constant: Outline with constant screen-space width regardless of distance

  • FadeWithDistance: Outline that becomes more visible as objects get closer to the camera

PreviousLight ModelsNextScripting

Last updated 9 days ago