资源简介
修复了ShaderForge编辑器无法在Unity2018下正常工作的问题。代码基于Github上FreyaHolmer/ShaderForge和SolitaryFume/ShaderForge_2018基础上修改。已在Unity 2018.3.11f1下测试通过。本人没有用过该工具,因此不清楚还有没有其他问题,如果您遇到问题,可以留言
代码片段和文件信息
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace ShaderForge {
public enum DepthTestStencil { Less Greater LEqual GEqual Equal NotEqual Always Never };
public enum StencilOp { Keep Zero Replace Invert IncrSat DecrSat IncrWrap DecrWrap };
public enum DepthTest { Less Greater LEqual GEqual Equal NotEqual Always };
public enum RenderType { None Opaque Transparent TransparentCutout Background Overlay TreeOpaque TreeTransparentCutout TreeBillboard Grass GrassBillboard };
public enum BlendModePreset {
Opaque
AlphaBlended
AlphaBlendedPremultiplied
Additive
Screen
Multiplicative
Custom
};
public enum ShaderFogMode{ Global Linear Exp Exp2 };
public enum BlendMode { One Zero SrcColor SrcAlpha DstColor DstAlpha OneMinusSrcColor OneMinusSrcAlpha OneMinusDstColor OneMinusDstAlpha };
public enum Queue { Background Geometry AlphaTest Transparent Overlay };
public enum Dithering { Off Dither2x2 Dither3x3 Dither4x4 };
[System.Serializable]
public class SFPSC_Blending : SFPS_Category {
public static string[] strDepthTestStencil = new string[] { “<“ “>“ “\u2264“ “\u2265“ “=“ “\u2260“ “Always (Default)“ “Never“ };
public static string[] strStencilOp = new string[] { “Keep (Default)“ “Zero“ “Replace“ “Invert“ “Increase (Clamped)“ “Decrease (Clamped)“ “Increase (Wrapped)“ “Decrease (Wrapped)“ };
public static string[] strDepthTest = new string[] { “<“ “>“ “\u2264 (Default)“ “\u2265“ “=“ “\u2260“ “Always“ };
public static int[] queueNumbers = new int[] { 1000 2000 2450 3000 4000 };
public static string[] strQueue = new string[] { “Background (1000)“ “Opaque Geometry (2000)“ “Alpha Clip (2450)“ “Transparent (3000)“ “Overlay (4000)“ };
public static string[] strDithering = new string[] { “Off“ “2x2 matrix“ “3x3 matrix“ “4x4 matrix“ };
public static string[] strBlendModePreset = new string[] {
“Opaque“
“Alpha Blended“
“Alpha Blended (Premultiplied)“
“Additive“
“Screen“
“Multiplicative“
““
};
// Vars
public BlendModePreset blendModePreset = BlendModePreset.Opaque;
public BlendMode blendSrc = BlendMode.One;
public BlendMode blendDst = BlendMode.Zero;
public DepthTest depthTest = DepthTest.LEqual;
public byte stencilValue = 128;
public byte stencilMaskRead = 255;
public byte stencilMaskWrite = 255;
public DepthTestStencil stencilComparison = DepthTestStencil.Always;
public StencilOp stencilPass = StencilOp.Keep;
public StencilOp stencilFail = StencilOp.Keep;
public StencilOp stencilFailZ = StencilOp.Keep;
public int offsetFactor = 0;
public int offsetUnits = 0;
// colorMask is a bitmask
// 0 = ____
// 1 = ___A
// 2 = __B_
// 3 = __BA
// 4 = _G__
// 5 = _G_A
// 6 = _GB_
// 7 = _GBA
// 8 = R___
// 9 = R__A
// 10 = R_B_
// 11 = R_BA
// 12 = RG__
// 13 = RG_A
// 14 = RGB_
// 15 = RGBA
public int colorMask = 15;
publ
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 27943 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Blending.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Blending.cs.me
文件 2639 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Console.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Console.cs.me
文件 1961 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Experimental.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Experimental.cs.me
文件 5685 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Geometry.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Geometry.cs.me
文件 11249 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Lighting.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Lighting.cs.me
文件 9219 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_me
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_me
文件 14449 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Properties.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPSC_Properties.cs.me
文件 8990 2018-09-07 06:13 ShaderForge\Editor\Code\SFPS_Category.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SFPS_Category.cs.me
文件 7068 2018-09-07 06:13 ShaderForge\Editor\Code\SF_Dependencies.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_Dependencies.cs.me
文件 66414 2018-09-07 06:13 ShaderForge\Editor\Code\SF_Editor.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_Editor.cs.me
文件 10844 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeBrowser.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeBrowser.cs.me
文件 8526 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeData.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeData.cs.me
文件 24903 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeView.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_EditorNodeView.cs.me
文件 1533 2018-09-07 06:13 ShaderForge\Editor\Code\SF_ErrorEntry.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_ErrorEntry.cs.me
文件 4710 2018-09-07 06:13 ShaderForge\Editor\Code\SF_FeatureChecker.cs
文件 178 2018-09-07 06:13 ShaderForge\Editor\Code\SF_FeatureChecker.cs.me
............此处省略1262个文件信息
- 上一篇:行人检测跟踪
- 下一篇:图像增强方法的研究与实现
相关资源
- ShaderX5 PDF
- unity游戏开发UI专用音效资源
- unity 2D跳跃游戏源码
- unity2D塔防游戏源码Tower Defense 2D 0.9.
- Unity结合Kinect2体感开发:KinectForWind
- unity强化画面效果专用插件-Beautify
- UML工具JUDE-Community_5.5.2_典藏绿色汉化
- 太空大战Unity3D教程第一课成品
- Unity Offline Render
- UnityTestTools
- unity3d 双面贴图
- Shader Forge 1.3.8 最新版
- unity3d官方赛车游戏教程中文版
- VText 1.37.unitypackage
- MapNav-Geolocation Toolkit 1.5.0
- NPC Populator 1.0 - 群集角色制作插件.r
- Fast Shadow Receiver v1.5.unitypackage
- Fast Shadow Receiver1.4.2 for unity3d 5
- unity插件——WorldComposer
- unity3d虚拟摇杆贴图集合
- Unity 1127 如何制作塔防游戏基于Unity
- Unity3d UGUI 官方
- ARKIT-Unity资源包
- unity3d烟花特效部分带音效.zip
- ZBrush材质球350个
- unity anima2d
- unity+tuio实现触屏demo
- unity 烟花粒子特效
- Unity3d5.x《我的世界》游戏工程源码
- Unity在线地图插件
评论
共有 条评论