• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language ShaderLab
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of high customizable unlit shaders for Lightweight Render Pipeline

Lightweight Render Pipeline Shaders

"Lightweight Render Pipeline Shaders" is a collection of shaders designed for Unity 2018 Lightweight Render Pipeline. It's especially useful for VFX and particles.

All shaders are fully customizable and GPU Instancing / GPU Instancing Particles friendly.

2018-04-04 14 09 07 2018-04-04 14 09 52

Available Shaders

  • Lightweight
    • Unlit
      • Color
      • Gradient
      • Texture
      • Texture and Color
    • Particles

Features

Basic Parameters

2018-04-04 14 18 37

This section contains shader specific parameters. Basically, color and texture.

Alpha Clip

2018-04-04 14 18 50

If you check Alpha Clip, alpha clipping is enabled. A pixel with alpha that is less than threshold will be discarded.

Surface

2018-04-04 14 19 01

You can choose one of the following surface types:

  • Opaque
  • Transparent
  • Premultiply
  • Additive
  • Multiply

and Src Blend, Dst Blend, Z Write and Premultiplied Alpha values will automatically be configured to appropriate settings.

If you choose Custom, you can change that values as you like.

Cull

2018-04-04 14 19 13

You can choose a cull mode from:

  • Off
  • Front
  • Back

Default is Back. Off is for double sided material.

Z Test

2018-04-04 14 19 24

You can choose which compare function will be used for Z Test.

GPU Instaincing

2018-04-04 14 19 39

If you check Enable GPU Instancing, a material is automatically configured for GPU Instancing. If you use same mesh and the material with MeshRenderer for rendering, draw call will be automatically instanced.

Also if you check Enable Per Instance Data, you can store per-instance Basic Parameters via MaterialPropertyBlock.

// Set random colors but keep GPU Instancing
foreach (var g in gameObjects)
{
  var property = new MaterialPropertyBlock();
  property.SetColor("_Color", Random.color);
  g.GetComponent<MeshRenderer>().SetProperty(property);
}

GPU Instancing Particle

All Particles shaders works correctly with GPU Instaincing in Particle System.

To enable GPU Instaincing in Particle System, use Mesh render mode and check Enable GPU Instancing in Render section of Particle System inspector.

Minimum

All features are implemented by shader variants. After compilation, code of non-used feature is efficiently striped!

More Repositories

1

UrMotion

Flexible motion engine for non time-based animation in Unity.
C#
266
star
2

LWRPAmbientOcclusion

Post-Processing Stack v2 Ambient Occlusion works on Lightweight Render Pipeline
C#
182
star
3

SVGMeshUnity

Generates mesh from SVG path in realtime for Unity.
C#
161
star
4

social-game-check-list

160
star
5

Uween

Lightweight tween library for Unity.
C#
148
star
6

UrFairy

C# extensions for Unity development
C#
67
star
7

ShaderGraphExtensions

Custom nodes for Shader Graph
C#
29
star
8

KirbyShadow

C#
13
star
9

GPUInstancingParticlesLWRP

GPU Instancing Particle Shader in Lightweight Render Pipeline
HLSL
13
star
10

Public-Game-UI-XD

Fictitious Game UI Asset created by XD in Public Domain
Assembly
12
star
11

ShaderSubGraphLibrary

Custom sub graph library for Shader Graph
10
star
12

SimpleToonShader

C#
9
star
13

ShaderGraphSketches

My shader graph sketches
6
star
14

AnimationExpression

Create animation script asset without compile
C#
5
star
15

Bubbles

5
star
16

PatternDissolve

3
star
17

ShapeMotion

3
star
18

PostProcessing-CustomMSVO

My custom Multi-scale volumetric obscurance from Post-Processing Stack v2
C#
3
star
19

Unity2018UpgradeTools

Collection of codes for upgrading to Unity 2018
C#
3
star
20

golden-ratio-calculator

HTML
2
star
21

LWRP-PostProcessingDisappearingIssue

See https://github.com/Unity-Technologies/ScriptableRenderPipeline/issues/1356
2
star
22

PostProcessingStackv2-RenderTextureFlippingIssue

[SOLVED] https://github.com/Unity-Technologies/PostProcessing/issues/523
1
star
23

beinteractive.github.io

beinteractive.jp
HTML
1
star
24

ProceduralYakiniku

C#
1
star
25

URP-Shadow-Renderer-Memory-Leak-Issue

C#
1
star