HuggingFace Page for model download: https://huggingface.co/hakurei/waifu-diffusion-v1-3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Toon/Lit Swaying" { | |
| Properties { | |
| _Color ("Main Color", Color) = (0.5,0.5,0.5,1) | |
| _MainTex ("Base (RGB)", 2D) = "white" {} | |
| _Ramp ("Toon Ramp (RGB)", 2D) = "gray" {} | |
| _Speed ("MoveSpeed", Range(20,50)) = 25 // speed of the swaying | |
| _Rigidness("Rigidness", Range(1,50)) = 25 // lower makes it look more "liquid" higher makes it look rigid | |
| _SwayMax("Sway Max", Range(0, 0.1)) = .005 // how far the swaying goes | |
| _YOffset("Y offset", float) = 0.5// y offset, below this is no animation | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Original shader by @bgolus, modified slightly by @alexanderameye for URP, modified slightly more | |
| // by @gravitonpunch for ECS/DOTS/HybridRenderer. | |
| // https://twitter.com/bgolus | |
| // https://medium.com/@bgolus/the-quest-for-very-wide-outlines-ba82ed442cd9 | |
| // https://alexanderameye.github.io/ | |
| // https://twitter.com/alexanderameye/status/1332286868222775298 | |
| Shader "Hidden/Outline" | |
| { | |
| Properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "InputModeDetector.h" | |
| #include "Input/Events.h" | |
| FInputModeDetector::FInputModeDetector() | |
| { | |
| // 4 local players should be plenty usually (will expand if necessary) | |
| LastInputModeByPlayer.Init(EInputMode::Mouse, 4); | |
| } | |
| bool FInputModeDetector::HandleKeyDownEvent(FSlateApplication& SlateApp, const FKeyEvent& InKeyEvent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
| import numpy as np | |
| import cPickle as pickle | |
| import gym | |
| # hyperparameters | |
| H = 200 # number of hidden layer neurons | |
| batch_size = 10 # every how many episodes to do a param update? | |
| learning_rate = 1e-4 | |
| gamma = 0.99 # discount factor for reward |