Skip to content

Instantly share code, notes, and snippets.

View smokelore's full-sized avatar

Sebastian Monroy smokelore

View GitHub Profile
@smokelore
smokelore / index.html
Created April 12, 2026 14:37
Repository Wiki — generated by GitNexus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>darkfactory — Wiki</title>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
<style>
@smokelore
smokelore / index.html
Created April 12, 2026 14:30
Repository Wiki — generated by GitNexus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>darkfactory — Wiki</title>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
<style>
Shader "CookbookShaders/Ch08/Blend Mode/OverlayImageEffect.shader"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_BlendTex ("Blend Texture", 2D) = "white" {}
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1
}
SubShader
Shader "CookbookShaders/Ch08/Blend Mode/ScreenImageEffect.shader"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_BlendTex ("Blend Texture", 2D) = "white" {}
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1
}
SubShader
Shader "CookbookShaders/Ch08/Blend Mode/AddImageEffect.shader"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_BlendTex ("Blend Texture", 2D) = "white" {}
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1
}
SubShader
Shader "CookbookShaders/Ch08/Blend Mode/MultiplyImageEffect.shader"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_BlendTex ("Blend Texture", 2D) = "white" {}
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1
}
SubShader
using System.Collections;
using UnityEngine;
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode.
public class Ch8BlendModeImageEffect : MonoBehaviour
{
#region Variables
public Shader curShader;
public Texture2D blendTexture;
Shader "CookbookShaders/Ch08/BSCImageEffect.shader"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_BrightnessAmount ("Brightness Amount", Range(0.0, 1.0)) = 1.0
_SaturationAmount ("Saturation Amount", Range(0.0, 1.0)) = 1.0
_ContrastAmount ("Contrast Amount", Range(0.0, 1.0)) = 1.0
}
using System.Collections;
using UnityEngine;
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode.
public class Ch8BSCImageEffect : MonoBehaviour
{
#region Variables
public Shader curShader;
[Range(0.0f, 2.0f)]
using System.Collections;
using UnityEngine;
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode.
public class Ch8SceneDepthImageEffect : MonoBehaviour
{
#region Variables
public Shader curShader;
[Range(0.0f, 5.0f)] // makes this variable show up as a slider in the Inspector.