Skip to content

Instantly share code, notes, and snippets.

Artyom Sovetnikov Elringus

Block or report user

Report or block Elringus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Elringus / RenderMyCustomPass.cs
Last active Dec 3, 2019
Example for adding custom render passes via renderer features for lightweight render pipeline (LWRP)
View RenderMyCustomPass.cs
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.LWRP;
// Inheriting from `ScriptableRendererFeature` will add it to the
// `Renderer Features` list of the custom LWRP renderer data asset.
public class RenderMyCustomPass : ScriptableRendererFeature
private class MyCustomPass : ScriptableRenderPass
View rfc5646-language-tags.js
// List of language tags according to RFC 5646.
// See <> for info on how to parse
// these language tags. Some duplicates have been removed.
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
View BlendOp.shader
Shader "BlendOp"
_MainTex ("Texture", 2D) = "white" {}
[Enum(UnityEngine.Rendering.BlendOp)] _BlendOp("Blend Operation", Float) = 0.0
[Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1.0
[Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 1.0
View TilemapRendererExtension.cs
using UnityEngine.Tilemaps;
using BlendModes;
public class TilemapRendererExtension : RendererExtension<TilemapRenderer>
public override string[] GetSupportedShaderFamilies ()
return new[] {
View InverseSmoothStep.cs
using Live2D.Cubism.Core;
using Live2D.Cubism.Framework;
using System.Collections.Generic;
using System.Linq;
using UnityCommon;
using UnityEngine;
namespace Naninovel
Elringus / Program.cs
Created Jun 25, 2018
Stubble render empty lines for non-existing tags
View Program.cs
using Stubble.Core.Builders;
using System;
class Program
static string template =
@"Lorem ipsum dolor sit amet, consectetur adipiscing elit.
View StringUtils.cs
/// <summary>
/// Checks whether string is null, empty or consists of whitespace chars.
/// </summary>
public static bool IsNullEmptyOrWhiteSpace (string content)
if (String.IsNullOrEmpty(content))
return true;
return String.IsNullOrEmpty(content.TrimFull());
Elringus / SpriteGradientHSBC.shader
Last active Jan 8, 2018
Incorporates HSBC effects and gradient overlay blending for sprites.
View SpriteGradientHSBC.shader
// Incorporates HSBC effects and gradient overlay blending for sprites.
Shader "BlendModes/Extra/SpriteGradientHSBC"
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_OverlayTex("Overlay Texture", 2D) = "white" {}
_OpacityTex("Opacity Mask", 2D) = "clear" {}
View ImageOutline.shader
Shader "UI/Outline"
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}
_Color("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap("Pixel snap", Float) = 0
[Toggle]_IsOutlineEnabled("Enable Outline", int) = 0
[HDR]_OutlineColor("Outline Color", Color) = (1,1,1,1)
View NovelActorPerformance.cs
using UnityCommon;
/// <summary>
/// Represents a set of async actions performed by a <see cref="INovelActor"/> over time.
/// </summary>
public class NovelActorPerformance : AsyncAction<INovelActor>
public INovelActor Actor { get { return State; } }
private int performancesCount;
You can’t perform that action at this time.