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
// maojingkai (oammix@gmail.com) | |
// 2022/09/07 | |
using UnityEngine; | |
using Unity.Mathematics; | |
using System.Collections.Generic; | |
namespace SPGF |
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 "Cell Shading" | |
{ | |
Properties | |
{ | |
_DiffTex("Diffuse Texture", 2D) = "white" {} | |
_NormalMap("Normal Map", 2D) = "bump" {} | |
_RampTex("Ramp Texture", 2D) = "white" {} | |
_SpecExp("Specular Exponent", Range(0.1, 150)) = 20.0 | |
_SpecBoost("Specular Boost", Float) = 0.3 | |
_RimExp("Rim Light Exponent", Range(0.1, 150)) = 4.0 |
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
-- maojingkai(oammix@gmail.com) | |
local _getmetatable = getmetatable | |
local _setmetatable = setmetatable | |
local _rawset = rawset | |
local _rawget = rawget | |
local metatable = {} | |
metatable['__tostring'] = 'metamethod' | |
metatable['__call'] = 'metamethod' |