
commit bb3be793ca5db3df43679f2d6c34c75f768047a1 Author: SAIPO <grasste0403@hotmail.com> Date: Wed Dec 22 07:46:07 2021 +0800 修改佛教Boss关卡和伊斯兰Boss关卡的粒子特效 commit 1987a63954402be8894f9cc9805545432afefa18 Author: SAIPO <grasste0403@hotmail.com> Date: Tue Dec 21 20:55:05 2021 +0800 任务:编写shader,完善数据库类 1.完善了PlayerInfo类,用以数据库功能 1) 编写GetSqlData()函数,使用多线程获取用户信息,使用前请先设置公关变量name。 2) 编写CreateUser(string username)函数,在用户表内创建一个用户。 3) 编写hasName(string _searchName)函数,判断是否存在这个用户。 4) 编写GetBoardInfo(int WorldId)函数,获取指定世界的留言板链表。 5) 编写GetDeadInfo(int WorldId)函数,获取指定世界的死亡信息链表。 6) 编写CreateDead(int WorldId, Vector2 postion)函数,创建一条死亡信息。 7) 编写CreateBoard(int WorldId, Vector2 postion,string text)函数,创建一条留言信息。 8) 编写UpdatePlayerInfo()函数,将类里储存的信息上传到数据库。 2.实装相关Shader 1)完善以撒关卡的屏幕后特效,使其可以在发怒场景发出红色辉光。 2)完善以撒鬼魂的粒子,并且颜色和发怒与否关联。 3)实装以撒关卡的窗户辉光效果。 4)实装伊斯兰Boss关卡炸弹弹反的粒子特效。 5)实装伊斯兰Boss关卡的尘土特效(需要重做) 6)实装佛教Boss关卡的敲钟声波特效。 7)实装佛教Boss关卡的钟声受击灰尘(需要重做) 3.目前发现的bug 1)当人物恰好调到角落里会卡动画。 2)伊斯兰Boss关卡,特洛伊木马吐出的炸弹落到特效小怪上会闪退。 commit c06b842382051bc260d9f509491c683a41ca2a4c Author: SAIPO <grasste0403@hotmail.com> Date: Tue Dec 21 14:08:06 2021 +0800 Squashed commit of the following: commit e7dcdec1d9913e283f42d42f72f1030f0c8b6fda Author: Roman <1325980292@qq.com> Date: Tue Dec 21 00:45:50 2021 +0800 任务:搭建前置关卡,编写演出逻辑 1.流程化游戏 (1.制作转移器,内含字典,根据玩家的静态属性“阶段”来决定到转移点后将会移动到哪一个场景 (2.制作转场器,水平方向从左到右 下班 commit 74f926815ec8d00fa051192eb3b978ff4b3c01a6 Author: Roman <1325980292@qq.com> Date: Mon Dec 20 23:33:14 2021 +0800 任务:搭建前置关卡,编写演出逻辑 1.编写基督前置关卡 (1.放置平台、怪物和男童 (2.修改男童类,外加OnSaveEvent,OnSave时若有事件则触发该Event (3.编写开幕演出,与yi前置类似 (4.编写男童解救演出 ((1.触发Fungus对话 ((2.对话结束后,开启通往上层的门 2.搭建村场景 (1.放置平台和元素 (2.为可动元素制作动画 3.为玩家添加static属性,进度。0:刚开,1进村,2通佛,3通伊,4.通基 4.制作死亡重开功能 (1.当玩家生命值降到0及以下,触发死亡事件 (2.死亡后reload当前场景,并设记录员,关闭某些事件和演出不再执行 *优化和修复 (1.尝试制作击中卡肉效果,目前打击感太弱。也可以尝试粒子效果 *至此,全部前置关卡搭建完毕,村场景搭建完毕。 *明天可以完成流程化,接下来就是填充剧情、UI、死亡标记和留言板等系统了 下班 commit f257b40d10373a13380e9c395fe94d6559a82a0f Author: Roman <1325980292@qq.com> Date: Sun Dec 19 23:57:44 2021 +0800 任务:搭建前置关卡,编写演出逻辑 1.编写佛教前置关开场演出 (*.休整地形,使得左边多出一块地面,方便演出正常运作 (*.项目后期再通过逻辑触发该演出,目前先用调试方式触发演出 (1.关闭空气墙 (2.修改玩家inputDir使玩家从屏幕外冲进到屏幕内部 (3.等待一段时间 (4.此时玩家应该走到某个合适的位置,停止玩家的inputDir (5.等待一小段时间给玩家反应 (6.修改相机offset,使其对准对话的两个小怪 (7.等待一小段时间给玩家反应 (8.触发Fungus对话 (9.Fungus对话结束后,返回标记命令演出Main继续执行 *.修改NormalEnemy,添加标识isInFoStage,在Update中判断,若是,使该怪物水平方向上追踪玩家,可以参考爱欲品的Seek (10.修改左边小怪的isInFoStage (11.开启右边小怪的Path动画,表现其慌忙逃跑 (12.Invoke一个延时,等右边小怪逃出视野后删除它 (13.触发善后和结束事件 (14.重写善后事件,重新开启空气墙 2.搭建伊斯兰前置关卡 3.创建伊斯兰前置关卡演出 (1.关闭空气墙 (2.修改玩家inputDir使玩家从屏幕外冲进到屏幕内部 (3.等待一段时间 (4.此时玩家应该走到某个合适的位置,停止玩家的inputDir (5.等待一小段时间给玩家反应 (6.触发善后与结束事件 4.创建玩家隔间触发事件 (1.是进入式触发器对象 (2.触发时Call隔间演出 5.编写隔间演出逻辑 (1.表现关门 (2.左右晃一下镜头,中心移动到左右门处,表示门被关闭 (3.镜头回到玩家处,同时压缩相机可移动范围更窄 (4.打开隔间墙壁的空气墙 (5.设置EndEvent为伊斯兰事件 6.编写召唤伊斯兰事件 (1.摘自木马的召唤攻击,稍作修改 (2.当召唤的伊斯兰全部挂了,触发隔间结束事件 7.编写隔间结束事件 (1.表现开门 (2.关闭隔间的空气墙 (3.重设相机移动范围 8.搭建基督前置关卡 *.至此,第一关、第二关前置关卡的逻辑基本开发完毕 *.明天能做完所有前置关,顺便应该能搭完村场景,后天可以开始搭建新系统,目前还差留言、死亡标记等系统等待编写 下班 commit cd22966ad7637a84c0f08c3a716d5ec549699749 Author: Roman <1325980292@qq.com> Date: Sun Dec 19 14:12:05 2021 +0800 Squashed commit of the following: commit 26aff356971bdc2c2a6a3bd444eeb50c4bf7ec14 Author: SAIPO <grasste0403@hotmail.com> Date: Sun Dec 19 02:20:44 2021 +0800 导入近期制作的一些Shader 1.合并分支 2.完成了人物描边的流动shader制作,并且可以对Bloom屏幕后处理产生反应。 3.完成了基督教boss关卡,彩色窗户辉光的shader制作,可以对Bloom产生反应。 4.完成了伊斯兰教弹反的炸弹拖尾粒子shader的制作。 5.完成了火焰粒子shader的制作(可以用在基督教的以撒鬼魂上)。 6.完成了灰尘粒子像素化的shader制作。 7.完成了边缘扭曲的shader制作,可以用在一些树木上,让画面产生动感。 明天制作敲钟的声波Shader # Conflicts: # UserSettings/EditorUserSettings.asset commit 26aff356971bdc2c2a6a3bd444eeb50c4bf7ec14 Author: SAIPO <grasste0403@hotmail.com> Date: Sun Dec 19 02:20:44 2021 +0800 导入近期制作的一些Shader 1.合并分支 2.完成了人物描边的流动shader制作,并且可以对Bloom屏幕后处理产生反应。 3.完成了基督教boss关卡,彩色窗户辉光的shader制作,可以对Bloom产生反应。 4.完成了伊斯兰教弹反的炸弹拖尾粒子shader的制作。 5.完成了火焰粒子shader的制作(可以用在基督教的以撒鬼魂上)。 6.完成了灰尘粒子像素化的shader制作。 7.完成了边缘扭曲的shader制作,可以用在一些树木上,让画面产生动感。 明天制作敲钟的声波Shader # Conflicts: # Assets/Scenes/TeLuoYiStageTest.unity # Assets/Shader/火焰粒子shader/particle.shadergraph # Assets/Shader/灰尘粒子用shader/Pixel_My.shader # Assets/Shader/灰尘粒子用shader/Unlit_Pixel_My 1.mat # Assets/Shader/灰尘粒子用shader/Unlit_Pixel_My 2.mat # Assets/Shader/灰尘粒子用shader/Unlit_Pixel_My.mat # Logs/ApiUpdaterCheck.txt # UserSettings/EditorUserSettings.asset
691 lines
36 KiB
C#
691 lines
36 KiB
C#
// Amplify Shader Editor - Visual Shader Editing Tool
|
|
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
|
|
|
|
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AmplifyShaderEditor
|
|
{
|
|
|
|
public struct Constants
|
|
{
|
|
public readonly static string[] FaceMacros =
|
|
{
|
|
"#if defined(SHADER_API_GLCORE) || defined(SHADER_API_GLES) || defined(SHADER_API_GLES3) || defined(SHADER_API_D3D9)",
|
|
"#define FRONT_FACE_SEMANTIC VFACE",
|
|
"#define FRONT_FACE_TYPE float",
|
|
"#else",
|
|
"#define FRONT_FACE_SEMANTIC SV_IsFrontFace",
|
|
"#define FRONT_FACE_TYPE bool",
|
|
"#endif"
|
|
};
|
|
|
|
/*public readonly static string[] CustomASEStandardArgsMacros =
|
|
{
|
|
"#if defined(SHADER_API_D3D11) || defined(SHADER_API_XBOXONE) || defined(UNITY_COMPILER_HLSLCC)//ASE Args Macros",
|
|
"#define ASE_TEXTURE2D_ARGS(textureName) Texture2D textureName, SamplerState sampler##textureName",
|
|
"#define ASE_TEXTURE3D_ARGS(textureName) Texture3D textureName, SamplerState sampler##textureName",
|
|
"#define ASE_TEXTURECUBE_ARGS(textureName) TextureCube textureName, SamplerState sampler##textureName",
|
|
"#define ASE_TEXTURE2D_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURE3D_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURECUBE_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURE2D_ARRAY_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#else//ASE Args Macros",
|
|
"#define ASE_TEXTURE2D_ARGS(textureName) sampler2D textureName",
|
|
"#define ASE_TEXTURE3D_ARGS(textureName) sampler3D textureName",
|
|
"#define ASE_TEXTURECUBE_ARGS(textureName) samplerCUBE textureName",
|
|
"#define ASE_TEXTURE2D_PARAMS(textureName) textureName",
|
|
"#define ASE_TEXTURE3D_PARAMS(textureName) textureName",
|
|
"#define ASE_TEXTURECUBE_PARAMS(textureName) textureName",
|
|
"#define ASE_TEXTURE2D_ARRAY_PARAMS(textureName) textureName",
|
|
"#endif//ASE Args Macros\n"
|
|
};
|
|
|
|
public readonly static string[] CustomASEDeclararionMacros =
|
|
{
|
|
"#define ASE_TEXTURE2D(textureName) {0}2D(textureName)",
|
|
"#define ASE_TEXTURE2D_ARRAY(textureName) {0}2D_ARRAY(textureName)",
|
|
"#define ASE_TEXTURE3D(textureName) {0}3D(textureName)",
|
|
"#define ASE_TEXTURECUBE(textureName) {0}CUBE(textureName)\n"
|
|
};
|
|
|
|
public readonly static string[] CustomASEStandarSamplingMacrosHelper =
|
|
{
|
|
"#if defined(SHADER_API_D3D11) || defined(SHADER_API_XBOXONE) || defined(UNITY_COMPILER_HLSLCC)//ASE Sampling Macros",
|
|
"#else//ASE Sampling Macros",
|
|
"#endif//ASE Sampling Macros\n"
|
|
};*/
|
|
|
|
/*public readonly static string[] CustomASESamplingMacros =
|
|
{
|
|
"#define ASE_SAMPLE_TEXTURE2D(textureName,{0}coords) {1}2D{2}(textureName,{0}coords)",
|
|
"#define ASE_SAMPLE_TEXTURE2D_LOD(textureName, {0}coord2, lod) {1}2D{2}_LOD(textureName, {0}coord2, lod)",
|
|
"#define ASE_SAMPLE_TEXTURE2D_BIAS(textureName,{0}coord2, bias) {1}2D{2}_BIAS(textureName,{0}coord2, bias)",
|
|
"#define ASE_SAMPLE_TEXTURE2D_GRAD(textureName,{0}coord2, dpdx, dpdy) {1}2D{2}_GRAD(textureName,{0}coord2, dpdx, dpdy)",
|
|
|
|
"#define ASE_SAMPLE_TEXTURE3D(textureName,{0}coord3) {1}3D{2}(textureName,{0}coord3)",
|
|
"#define ASE_SAMPLE_TEXTURE3D_LOD(textureName,{0}coord3, lod) {1}3D{2}_LOD(textureName,{0}coord3, lod)",
|
|
"#define ASE_SAMPLE_TEXTURE3D_BIAS(textureName,{0}coord3, bias) {1}3D{2}_BIAS(textureName,{0}coord3, bias)",
|
|
"#define ASE_SAMPLE_TEXTURE3D_GRAD(textureName,{0}coord3, dpdx, dpdy) {1}3D{2}_GRAD(textureName,{0}coord3, dpdx, dpdy)",
|
|
|
|
"#define ASE_SAMPLE_TEXTURECUBE(textureName,{0}coord3) {1}CUBE{2}(textureName,{0}coord3)",
|
|
"#define ASE_SAMPLE_TEXTURECUBE_LOD(textureName,{0}coord3, lod) {1}CUBE{2}_LOD(textureName,{0}coord3, lod)",
|
|
"#define ASE_SAMPLE_TEXTURECUBE_BIAS(textureName,{0}coord3, bias) {1}CUBE{2}_BIAS(textureName,{0}coord3, bias)\n"
|
|
};*/
|
|
|
|
// SRP
|
|
/*public readonly static string[] CustomASESRPArgsMacros =
|
|
{
|
|
"#define ASE_TEXTURE2D_ARGS(textureName) TEXTURE2D(textureName), SAMPLER(textureName)",
|
|
"#define ASE_TEXTURE3D_ARGS(textureName) TEXTURE3D(textureName), SAMPLER(textureName)",
|
|
"#define ASE_TEXTURECUBE_ARGS(textureName) TEXTURECUBE(textureName), SAMPLER(textureName)",
|
|
"#define ASE_TEXTURE2D_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURE3D_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURECUBE_PARAMS(textureName) textureName, sampler##textureName",
|
|
"#define ASE_TEXTURE2D_ARRAY_PARAMS(textureName) textureName, sampler##textureName\n"
|
|
};*/
|
|
|
|
public readonly static RenderTextureFormat PreviewFormat = RenderTextureFormat.ARGBFloat;
|
|
public readonly static int PreviewSize = 128;
|
|
|
|
public readonly static List<string> UnityNativeInspectors = new List<string>
|
|
{
|
|
"Rendering.HighDefinition.LightingShaderGraphGUI",
|
|
"Rendering.HighDefinition.HDUnlitGUI",
|
|
"UnityEditor.Rendering.HighDefinition.HDLitGUI",
|
|
"UnityEditor.ShaderGraph.PBRMasterGUI",
|
|
"UnityEditor.Rendering.HighDefinition.DecalGUI",
|
|
"UnityEditor.Rendering.HighDefinition.FabricGUI",
|
|
"UnityEditor.Experimental.Rendering.HDPipeline.HDLitGUI",
|
|
"Rendering.HighDefinition.DecalGUI",
|
|
"Rendering.HighDefinition.LitShaderGraphGUI",
|
|
"Rendering.HighDefinition.DecalShaderGraphGUI"
|
|
};
|
|
|
|
public readonly static Dictionary<string, string> CustomInspectorHD7To10 = new Dictionary<string, string>
|
|
{
|
|
{ "UnityEditor.Rendering.HighDefinition.DecalGUI","Rendering.HighDefinition.DecalGUI"},
|
|
{ "UnityEditor.Rendering.HighDefinition.FabricGUI","Rendering.HighDefinition.LightingShaderGraphGUI"},
|
|
{ "UnityEditor.Rendering.HighDefinition.HDLitGUI","Rendering.HighDefinition.LitShaderGraphGUI"},
|
|
{ "UnityEditor.Experimental.Rendering.HDPipeline.HDLitGUI","Rendering.HighDefinition.LitShaderGraphGUI"},
|
|
};
|
|
|
|
|
|
public readonly static Dictionary<string , string> CustomInspectorHDLegacyTo11 = new Dictionary<string , string>
|
|
{
|
|
{ "UnityEditor.Rendering.HighDefinition.DecalGUI","Rendering.HighDefinition.DecalShaderGraphGUI"},
|
|
{ "Rendering.HighDefinition.DecalGUI","Rendering.HighDefinition.DecalShaderGraphGUI"},
|
|
{ "UnityEditor.Rendering.HighDefinition.FabricGUI","Rendering.HighDefinition.LightingShaderGraphGUI"},
|
|
{ "UnityEditor.Rendering.HighDefinition.HDLitGUI","Rendering.HighDefinition.LitShaderGraphGUI"},
|
|
{ "UnityEditor.Experimental.Rendering.HDPipeline.HDLitGUI","Rendering.HighDefinition.LitShaderGraphGUI"},
|
|
};
|
|
|
|
|
|
public readonly static string CustomASEStandardSamplerParams = "#define ASE_TEXTURE_PARAMS(textureName) textureName\n";
|
|
public readonly static string[] CustomASESRPTextureArrayMacros =
|
|
{
|
|
"#define ASE_TEXTURE2D_ARRAY_ARGS(textureName) TEXTURE2D_ARRAY_ARGS(textureName,sampler##textureName)\n" ,
|
|
"#define ASE_TEXTURE2D_ARRAY_PARAM(textureName) TEXTURE2D_ARRAY_PARAM(textureName,sampler##textureName)\n" ,
|
|
"#define ASE_SAMPLE_TEXTURE2D_ARRAY(textureName, coord3) textureName.Sample(sampler##textureName, coord3)",
|
|
"#define ASE_SAMPLE_TEXTURE2D_ARRAY_LOD(textureName, coord3, lod) textureName.SampleLevel(sampler##textureName, coord3, lod)"
|
|
};
|
|
public readonly static string CustomASESRPSamplerParams = "#define ASE_TEXTURE_PARAMS(textureName) textureName, sampler##textureName\n";
|
|
|
|
public readonly static string[] CustomSRPSamplingMacros =
|
|
{
|
|
"#if defined(SHADER_API_D3D11) || defined(SHADER_API_XBOXONE) || defined(UNITY_COMPILER_HLSLCC) || defined(SHADER_API_PSSL) || (defined(SHADER_TARGET_SURFACE_ANALYSIS) && !defined(SHADER_TARGET_SURFACE_ANALYSIS_MOJOSHADER))//3D SRP MACROS",
|
|
"#define SAMPLE_TEXTURE3D_GRAD(textureName, samplerName, coord3, dpdx, dpdy) textureName.SampleGrad(samplerName, coord3, dpdx, dpdy)",
|
|
"#define SAMPLE_TEXTURE3D_BIAS(textureName, samplerName, coord3, bias) textureName.SampleBias(samplerName, coord3, bias)",
|
|
"#else//3D SRP MACROS",
|
|
"#define SAMPLE_TEXTURE3D_GRAD(textureName, samplerName, coord3, dpdx, dpdy) SAMPLE_TEXTURE3D(textureName, samplerName, coord3)",
|
|
"#define SAMPLE_TEXTURE3D_BIAS(textureName, samplerName, coord3, bias) SAMPLE_TEXTURE3D(textureName, samplerName, coord3)",
|
|
"#endif//3D SRP MACROS\n"
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexDeclarationSRPMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"TEXTURE2D({0}); SAMPLER(sampler{0});"},
|
|
{ TextureType.Texture3D,"TEXTURE3D({0}); SAMPLER(sampler{0});"},
|
|
{ TextureType.Cube,"TEXTURECUBE({0}); SAMPLER(sampler{0});"},
|
|
{ TextureType.Texture2DArray,"TEXTURE2D_ARRAY({0}); SAMPLER(sampler{0});"},
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> SamplerDeclarationSRPMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"SAMPLER(sampler{0});"},
|
|
{ TextureType.Texture3D,"SAMPLER(sampler{0});"},
|
|
{ TextureType.Cube,"SAMPLER(sampler{0});"},
|
|
{ TextureType.Texture2DArray,"SAMPLER(sampler{0});"},
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexDeclarationNoSamplerSRPMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"TEXTURE2D({0})"},
|
|
{ TextureType.Texture3D,"TEXTURE3D({0})"},
|
|
{ TextureType.Cube,"TEXTURECUBE({0})"},
|
|
{ TextureType.Texture2DArray,"TEXTURE2D_ARRAY({0})"},
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexSampleSRPMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"SAMPLE_TEXTURE2D{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Texture3D,"SAMPLE_TEXTURE3D{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Cube,"SAMPLE_TEXTURECUBE{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Texture2DArray,"SAMPLE_TEXTURE2D_ARRAY{0}( {1}, {2}, {3} )"},
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexParams = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"ASE_TEXTURE2D_PARAMS({0})"},
|
|
{ TextureType.Texture3D,"ASE_TEXTURE3D_PARAMS({0})"},
|
|
{ TextureType.Cube,"ASE_TEXTURECUBE_PARAMS({0})"},
|
|
{ TextureType.Texture2DArray,"ASE_TEXTURE2D_ARRAY_PARAMS({0})"},
|
|
};
|
|
|
|
public readonly static Dictionary<WirePortDataType, TextureType> WireToTexture = new Dictionary<WirePortDataType, TextureType>
|
|
{
|
|
{ WirePortDataType.SAMPLER1D,TextureType.Texture1D},
|
|
{ WirePortDataType.SAMPLER2D,TextureType.Texture2D},
|
|
{ WirePortDataType.SAMPLER3D,TextureType.Texture3D},
|
|
{ WirePortDataType.SAMPLERCUBE,TextureType.Cube},
|
|
{ WirePortDataType.SAMPLER2DARRAY,TextureType.Texture2DArray},
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, WirePortDataType> TextureToWire = new Dictionary<TextureType, WirePortDataType>
|
|
{
|
|
{ TextureType.Texture1D,WirePortDataType.SAMPLER1D},
|
|
{ TextureType.Texture2D,WirePortDataType.SAMPLER2D},
|
|
{ TextureType.Texture3D, WirePortDataType.SAMPLER3D},
|
|
{ TextureType.Cube,WirePortDataType.SAMPLERCUBE},
|
|
{ TextureType.Texture2DArray,WirePortDataType.SAMPLER2DARRAY},
|
|
{ TextureType.ProceduralTexture,WirePortDataType.SAMPLER2D},
|
|
};
|
|
|
|
public readonly static string SamplingMacrosDirective = "#define ASE_USING_SAMPLING_MACROS 1";
|
|
|
|
// STANDARD
|
|
public readonly static string[] CustomASEStandarSamplingMacrosHelper =
|
|
{
|
|
#if UNITY_2018_1_OR_NEWER
|
|
"#if defined(SHADER_API_D3D11) || defined(SHADER_API_XBOXONE) || defined(UNITY_COMPILER_HLSLCC) || defined(SHADER_API_PSSL) || (defined(SHADER_TARGET_SURFACE_ANALYSIS) && !defined(SHADER_TARGET_SURFACE_ANALYSIS_MOJOSHADER))//ASE Sampler Macros",
|
|
#else
|
|
"#if defined(SHADER_API_D3D11) || defined(SHADER_API_XBOXONE) || defined(UNITY_COMPILER_HLSLCC) || defined(SHADER_API_PSSL)//ASE Sampler Macros",
|
|
#endif
|
|
"#else//ASE Sampling Macros",
|
|
"#endif//ASE Sampling Macros\n"
|
|
};
|
|
|
|
public readonly static string[] CustomASEArraySamplingMacrosRecent =
|
|
{
|
|
"#define UNITY_SAMPLE_TEX2DARRAY(tex,coord) tex.Sample(sampler##tex,coord)",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_LOD(tex,coord,lod) tex.SampleLevel(sampler##tex,coord, lod)",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_BIAS(tex,coord,bias) tex.SampleBias(sampler##tex,coord,bias)",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_GRAD(tex,coord,ddx,ddy) tex.SampleGrad(sampler##tex,coord,ddx,ddy)",
|
|
};
|
|
|
|
public readonly static string[] CustomASEArraySamplingMacrosOlder =
|
|
{
|
|
"#define UNITY_SAMPLE_TEX2DARRAY(tex,coord) tex2DArray(tex,coord)",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_LOD(tex,coord,lod) tex2DArraylod(tex, float4(coord,lod))",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_BIAS(tex,coord,bias) tex2DArray(tex,coord)",
|
|
"#define UNITY_SAMPLE_TEX2DARRAY_GRAD(tex,coord,ddx,ddy) tex2DArray(tex,coord)",
|
|
};
|
|
|
|
public readonly static string[] CustomASEStandarSamplingMacrosRecent =
|
|
{
|
|
"#define SAMPLE_TEXTURE2D(tex,samplerTex,coord) tex.Sample(samplerTex,coord)",
|
|
"#define SAMPLE_TEXTURE2D_LOD(tex,samplerTex,coord,lod) tex.SampleLevel(samplerTex,coord, lod)",
|
|
"#define SAMPLE_TEXTURE2D_BIAS(tex,samplerTex,coord,bias) tex.SampleBias(samplerTex,coord,bias)",
|
|
"#define SAMPLE_TEXTURE2D_GRAD(tex,samplerTex,coord,ddx,ddy) tex.SampleGrad(samplerTex,coord,ddx,ddy)",
|
|
|
|
"#define SAMPLE_TEXTURE3D(tex,samplerTex,coord) tex.Sample(samplerTex,coord)",
|
|
"#define SAMPLE_TEXTURE3D_LOD(tex,samplerTex,coord,lod) tex.SampleLevel(samplerTex,coord, lod)",
|
|
"#define SAMPLE_TEXTURE3D_BIAS(tex,samplerTex,coord,bias) tex.SampleBias(samplerTex,coord,bias)",
|
|
"#define SAMPLE_TEXTURE3D_GRAD(tex,samplerTex,coord,ddx,ddy) tex.SampleGrad(samplerTex,coord,ddx,ddy)",
|
|
|
|
"#define SAMPLE_TEXTURECUBE(tex,samplerTex,coord) tex.Sample(samplerTex,coord)",
|
|
"#define SAMPLE_TEXTURECUBE_LOD(tex,samplerTex,coord,lod) tex.SampleLevel(samplerTex,coord, lod)",
|
|
"#define SAMPLE_TEXTURECUBE_BIAS(tex,samplerTex,coord,bias) tex.SampleBias(samplerTex,coord,bias)",
|
|
"#define SAMPLE_TEXTURECUBE_GRAD(tex,samplerTex,coord,ddx,ddy) tex.SampleGrad(samplerTex,coord,ddx,ddy)",
|
|
|
|
"#define SAMPLE_TEXTURE2D_ARRAY(tex,samplerTex,coord) tex.Sample(samplerTex,coord)",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_LOD(tex,samplerTex,coord,lod) tex.SampleLevel(samplerTex,coord, lod)",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_BIAS(tex,samplerTex,coord,bias) tex.SampleBias(samplerTex,coord,bias)",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_GRAD(tex,samplerTex,coord,ddx,ddy) tex.SampleGrad(samplerTex,coord,ddx,ddy)",
|
|
};
|
|
|
|
public readonly static string[] CustomASEStandarSamplingMacrosOlder =
|
|
{
|
|
"#define SAMPLE_TEXTURE2D(tex,samplerTex,coord) tex2D(tex,coord)",
|
|
"#define SAMPLE_TEXTURE2D_LOD(tex,samplerTex,coord,lod) tex2Dlod(tex,float4(coord,0,lod))",
|
|
"#define SAMPLE_TEXTURE2D_BIAS(tex,samplerTex,coord,bias) tex2Dbias(tex,float4(coord,0,bias))",
|
|
"#define SAMPLE_TEXTURE2D_GRAD(tex,samplerTex,coord,ddx,ddy) tex2Dgrad(tex,coord,ddx,ddy)",
|
|
|
|
"#define SAMPLE_TEXTURE3D(tex,samplerTex,coord) tex3D(tex,coord)",
|
|
"#define SAMPLE_TEXTURE3D_LOD(tex,samplerTex,coord,lod) tex3Dlod(tex,float4(coord,lod))",
|
|
"#define SAMPLE_TEXTURE3D_BIAS(tex,samplerTex,coord,bias) tex3D(tex,coord)",
|
|
"#define SAMPLE_TEXTURE3D_GRAD(tex,samplerTex,coord,ddx,ddy) tex3D(tex,coord)",
|
|
|
|
"#define SAMPLE_TEXTURECUBE(tex,samplertex,coord) texCUBE(tex,coord)",
|
|
"#define SAMPLE_TEXTURECUBE_LOD(tex,samplertex,coord,lod) texCUBElod (tex,half4(coord,lod))",
|
|
"#define SAMPLE_TEXTURECUBE_BIAS(tex,samplertex,coord,bias) texCUBE(tex,coord)",
|
|
"#define SAMPLE_TEXTURECUBE_GRAD(tex,samplertex,coord,ddx,ddy) texCUBE(tex,coord)",
|
|
|
|
"#define SAMPLE_TEXTURE2D_ARRAY(tex,samplertex,coord) tex2DArray(tex,coord)",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_LOD(tex,samplertex,coord,lod) tex2DArraylod(tex, float4(coord,lod))",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_BIAS(tex,samplerTex,coord,bias) tex2DArray(tex,coord)",
|
|
"#define SAMPLE_TEXTURE2D_ARRAY_GRAD(tex,samplerTex,coord,ddx,ddy) tex2DArray(tex,coord)",
|
|
};
|
|
|
|
public readonly static string[] CustomArraySamplingMacros =
|
|
{
|
|
"#if defined(UNITY_COMPILER_HLSL2GLSL) || defined(SHADER_TARGET_SURFACE_ANALYSIS)//ASE Array Sampler Macros",
|
|
"#define ASE_SAMPLE_TEX2DARRAY_GRAD(tex,coord,dx,dy) UNITY_SAMPLE_TEX2DARRAY (tex,coord)",
|
|
"#else//ASE Array Sampler Macros",
|
|
"#define ASE_SAMPLE_TEX2DARRAY_GRAD(tex,coord,dx,dy) tex.SampleGrad (sampler##tex,coord,dx,dy)",
|
|
"#endif//ASE Array Sampler Macros\n"
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexDeclarationStandardMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"UNITY_DECLARE_TEX2D({0});"},
|
|
{ TextureType.Texture3D,"UNITY_DECLARE_TEX3D({0});"},
|
|
{ TextureType.Cube,"UNITY_DECLARE_TEXCUBE({0});"},
|
|
{ TextureType.Texture2DArray,"UNITY_DECLARE_TEX2DARRAY({0});"}
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexDeclarationNoSamplerStandardMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"UNITY_DECLARE_TEX2D_NOSAMPLER({0})"},
|
|
{ TextureType.Texture3D,"UNITY_DECLARE_TEX3D_NOSAMPLER({0})"},
|
|
{ TextureType.Cube,"UNITY_DECLARE_TEXCUBE_NOSAMPLER({0})"},
|
|
{ TextureType.Texture2DArray,"UNITY_DECLARE_TEX2DARRAY_NOSAMPLER({0})"}
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexSampleStandardMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"UNITY_SAMPLE_TEX2D{0}( {1}, {3} )"},
|
|
{ TextureType.Texture3D,"UNITY_SAMPLE_TEX3D{0}( {1}, {3} )"},
|
|
{ TextureType.Cube,"UNITY_SAMPLE_TEXCUBE{0}( {1}, {3} )"},
|
|
{ TextureType.Texture2DArray,"UNITY_SAMPLE_TEX2DARRAY{0}( {1}, {3} )"}
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexSampleSamplerStandardMacros = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"SAMPLE_TEXTURE2D{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Texture3D,"SAMPLE_TEXTURE3D{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Cube,"SAMPLE_TEXTURECUBE{0}( {1}, {2}, {3} )"},
|
|
{ TextureType.Texture2DArray,"SAMPLE_TEXTURE2D_ARRAY{0}( {1}, {2}, {3} )"}
|
|
};
|
|
|
|
public readonly static Dictionary<TextureType, string> TexSampleStandard = new Dictionary<TextureType, string>
|
|
{
|
|
{ TextureType.Texture2D,"tex2D{0}( {1}, {2} )"},
|
|
{ TextureType.Texture3D,"tex3D{0}( {1}, {2} )"},
|
|
{ TextureType.Cube,"texCUBE{0}( {1}, {2} )"},
|
|
{ TextureType.Texture2DArray,"tex2DArray{0}( {1}, {2} )"}
|
|
};
|
|
public readonly static char LineFeedSeparator = '$';
|
|
public readonly static char SemiColonSeparator = '@';
|
|
public readonly static string AppDataFullName = "appdata_full";
|
|
public readonly static string CustomAppDataFullName = "appdata_full_custom";
|
|
public readonly static string CustomAppDataFullBody =
|
|
"\n\t\tstruct appdata_full_custom\n" +
|
|
"\t\t{\n" +
|
|
"\t\t\tfloat4 vertex : POSITION;\n" +
|
|
"\t\t\tfloat4 tangent : TANGENT;\n" +
|
|
"\t\t\tfloat3 normal : NORMAL;\n" +
|
|
"\t\t\tfloat4 texcoord : TEXCOORD0;\n" +
|
|
"\t\t\tfloat4 texcoord1 : TEXCOORD1;\n" +
|
|
"\t\t\tfloat4 texcoord2 : TEXCOORD2;\n" +
|
|
"\t\t\tfloat4 texcoord3 : TEXCOORD3;\n" +
|
|
"\t\t\tfloat4 color : COLOR;\n" +
|
|
"\t\t\tUNITY_VERTEX_INPUT_INSTANCE_ID\n";
|
|
|
|
public readonly static string IncludeFormat = "#include \"{0}\"";
|
|
public readonly static string PragmaFormat = "#pragma {0}";
|
|
public readonly static string DefineFormat = "#define {0}";
|
|
|
|
public readonly static string RenderTypeHelperStr = "RenderType";
|
|
public readonly static string RenderQueueHelperStr = "Queue";
|
|
public readonly static string DisableBatchingHelperStr = "DisableBatching";
|
|
|
|
public readonly static string DefaultShaderName = "New Amplify Shader";
|
|
|
|
public readonly static string UndoReplaceMasterNodeId = "Replacing Master Node";
|
|
public readonly static string UnityLightingLib = "Lighting.cginc";
|
|
public readonly static string UnityAutoLightLib = "AutoLight.cginc";
|
|
public readonly static string UnityBRDFLib = "UnityStandardBRDF.cginc";
|
|
public readonly static string LocalValueDecWithoutIdent = "{0} {1} = {2};";
|
|
public readonly static string CustomTypeLocalValueDecWithoutIdent = "{0} {1} =({0}){2};";
|
|
public readonly static string LocalValueDefWithoutIdent = "{0} {1} {2};";
|
|
public readonly static string TilingOffsetFormat = "{0} * {1} + {2}";
|
|
public static string InvalidPostProcessDatapath = "__DELETED_GUID_Trash";
|
|
//TEMPLATES
|
|
|
|
public static float PlusMinusButtonLayoutWidth = 15;
|
|
|
|
public static float NodeButtonSizeX = 16;
|
|
public static float NodeButtonSizeY = 16;
|
|
public static float NodeButtonDeltaX = 5;
|
|
public static float NodeButtonDeltaY = 11;
|
|
|
|
public readonly static string SafeNormalizeInfoStr = "With Safe Normalize division by 0 is prevented over the normalize operation at the expense of additional instructions on shader.";
|
|
public readonly static string ReservedPropertyNameStr = "Property name '{0}' is reserved and cannot be used";
|
|
public readonly static string NumericPropertyNameStr = "Property name '{0}' is numeric thus cannot be used";
|
|
public readonly static string DeprecatedMessageStr = "Node '{0}' is deprecated. Use node '{1}' instead.";
|
|
public readonly static string DeprecatedNoAlternativeMessageStr = "Node '{0}' is deprecated and should be removed.";
|
|
public readonly static string UndoChangePropertyTypeNodesId = "Changing Property Types";
|
|
public readonly static string UndoChangeTypeNodesId = "Changing Nodes Types";
|
|
public readonly static string UndoMoveNodesId = "Moving Nodes";
|
|
public readonly static string UndoRegisterFullGrapId = "Register Graph";
|
|
public readonly static string UndoAddNodeToCommentaryId = "Add node to Commentary";
|
|
public readonly static string UndoRemoveNodeFromCommentaryId = "Remove node from Commentary";
|
|
public readonly static string UndoCreateDynamicPortId = "Create Dynamic Port";
|
|
public readonly static string UndoDeleteDynamicPortId = "Destroy Dynamic Port";
|
|
public readonly static string UndoRegisterNodeId = "Register Object";
|
|
public readonly static string UndoUnregisterNodeId = "Unregister Object";
|
|
public readonly static string UndoCreateNodeId = "Create Object";
|
|
public readonly static string UndoPasteNodeId = "Paste Object";
|
|
public readonly static string UndoDeleteNodeId = "Destroy Object";
|
|
public readonly static string UndoDeleteConnectionId = "Destroy Connection";
|
|
public readonly static string UndoCreateConnectionId = "Create Connection";
|
|
|
|
public readonly static float MenuDragSpeed = -0.5f;
|
|
public readonly static string DefaultCustomInspector = "ASEMaterialInspector";
|
|
public readonly static string ReferenceTypeStr = "Mode";
|
|
public readonly static string AvailableReferenceStr = "Reference";
|
|
public readonly static string InstancePostfixStr = " (Reference) ";
|
|
|
|
public readonly static string ASEMenuName = "Amplify Shader";
|
|
|
|
public readonly static string LodCrossFadeOption2017 = "dithercrossfade";
|
|
|
|
public readonly static string UnityShaderVariables = "UnityShaderVariables.cginc";
|
|
public readonly static string UnityCgLibFuncs = "UnityCG.cginc";
|
|
public readonly static string UnityStandardUtilsLibFuncs = "UnityStandardUtils.cginc";
|
|
public readonly static string UnityPBSLightingLib = "UnityPBSLighting.cginc";
|
|
public readonly static string UnityDeferredLightLib = "UnityDeferredLibrary.cginc";
|
|
public readonly static string ATSharedLibGUID = "ba242738c4be3324aa88d126f7cc19f9";
|
|
#if UNITY_5_6_OR_NEWER
|
|
public readonly static string CameraDepthTextureValue = "UNITY_DECLARE_DEPTH_TEXTURE( _CameraDepthTexture );";
|
|
|
|
#else
|
|
public readonly static string CameraDepthTextureValue = "uniform sampler2D _CameraDepthTexture;";
|
|
#endif
|
|
//public readonly static string CameraDepthTextureSRPVar = "TEXTURE2D(_CameraDepthTexture);";
|
|
//public readonly static string CameraDepthTextureSRPSampler = "SAMPLER(sampler_CameraDepthTexture);";
|
|
public readonly static string CameraDepthTextureLWEnabler = "REQUIRE_DEPTH_TEXTURE 1";
|
|
|
|
public readonly static string CameraDepthTextureTexelSize = "uniform float4 _CameraDepthTexture_TexelSize;";
|
|
public readonly static string InstanceIdMacro = "UNITY_VERTEX_INPUT_INSTANCE_ID";
|
|
public readonly static string InstanceIdVariable = "UNITY_GET_INSTANCE_ID({0})";
|
|
|
|
|
|
public readonly static string HelpURL = "http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor";
|
|
//public readonly static string NodeCommonUrl = "http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Nodes#";
|
|
//public readonly static string CommunityNodeCommonUrl = "http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Community_Nodes#";
|
|
public readonly static string NodeCommonUrl = "http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/";
|
|
public readonly static string CommunityNodeCommonUrl = "http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/";
|
|
public readonly static Color InfiniteLoopColor = Color.red;
|
|
|
|
public readonly static Color DefaultCategoryColor = new Color( 0.26f, 0.35f, 0.44f, 1.0f );
|
|
public readonly static Color NodeBodyColor = new Color( 1f, 1f, 1f, 1.0f );
|
|
|
|
public readonly static Color ModeTextColor = new Color( 1f, 1f, 1f, 0.25f );
|
|
public readonly static Color ModeIconColor = new Color( 1f, 1f, 1f, 0.75f );
|
|
|
|
public readonly static Color PortTextColor = new Color( 1f, 1f, 1f, 0.5f );
|
|
public readonly static Color PortLockedTextColor = new Color( 1f, 1f, 1f, 0.35f );
|
|
public readonly static Color BoxSelectionColor = new Color( 0.5f, 0.75f, 1f, 0.33f );
|
|
public readonly static Color SpecialRegisterLocalVarSelectionColor = new Color( 0.27f, 0.52f, 1.0f, 1f );
|
|
public readonly static Color SpecialGetLocalVarSelectionColor = new Color( 0.2f, 0.8f, 0.4f, 1f );
|
|
public readonly static Color NodeSelectedColor = new Color( 0.85f, 0.56f, 0f, 1f );
|
|
public readonly static Color NodeDefaultColor = new Color( 1f, 1f, 1f, 1f );
|
|
public readonly static Color NodeConnectedColor = new Color( 1.0f, 1f, 0.0f, 1f );
|
|
public readonly static Color NodeErrorColor = new Color( 1f, 0.5f, 0.5f, 1f );
|
|
public readonly static string NoSpecifiedCategoryStr = "<None>";
|
|
|
|
public readonly static int MINIMIZE_WINDOW_LOCK_SIZE = 630;
|
|
|
|
public readonly static int FoldoutMouseId = 0; // Left Mouse Button
|
|
|
|
public readonly static float SNAP_SQR_DIST = 200f;
|
|
public readonly static int INVALID_NODE_ID = -1;
|
|
public readonly static float WIRE_WIDTH = 7f;
|
|
public readonly static float WIRE_CONTROL_POINT_DIST = 0.7f;
|
|
public readonly static float WIRE_CONTROL_POINT_DIST_INV = 1.7f;
|
|
|
|
public readonly static float IconsLeftRightMargin = 5f;
|
|
public readonly static float PropertyPickerWidth = 16f;
|
|
public readonly static float PropertyPickerHeight = 16f;
|
|
public readonly static float PreviewExpanderWidth = 16f;
|
|
public readonly static float PreviewExpanderHeight = 16f;
|
|
public readonly static float TextFieldFontSize = 11f;
|
|
public readonly static float DefaultFontSize = 15f;
|
|
public readonly static float DefaultTitleFontSize = 13f;
|
|
public readonly static float PropertiesTitleFontSize = 11f;
|
|
public readonly static float MessageFontSize = 40f;
|
|
public readonly static float SelectedObjectFontSize = 30f;
|
|
|
|
public readonly static float PORT_X_ADJUST = 10;
|
|
public readonly static float PORT_INITIAL_X = 10;
|
|
|
|
public readonly static float PORT_INITIAL_Y = 40;
|
|
public readonly static float INPUT_PORT_DELTA_Y = 5;
|
|
public readonly static float PORT_TO_LABEL_SPACE_X = 5;
|
|
|
|
public readonly static float NODE_HEADER_HEIGHT = 32;
|
|
public readonly static float NODE_HEADER_EXTRA_HEIGHT = 5;
|
|
public readonly static float NODE_HEADER_LEFTRIGHT_MARGIN = 10;
|
|
|
|
public readonly static float MULTIPLE_SELECION_BOX_ALPHA = 0.5f;
|
|
public readonly static float RMB_CLICK_DELTA_TIME = 0.1f;
|
|
public readonly static float RMB_SCREEN_DIST = 10f;
|
|
|
|
public readonly static float CAMERA_MAX_ZOOM = 2f;
|
|
public readonly static float CAMERA_MIN_ZOOM = 1f;
|
|
public readonly static float CAMERA_ZOOM_SPEED = 0.1f;
|
|
public readonly static float ALT_CAMERA_ZOOM_SPEED = -0.05f;
|
|
|
|
public readonly static object INVALID_VALUE = null;
|
|
|
|
public readonly static float HORIZONTAL_TANGENT_SIZE = 100f;
|
|
public readonly static float OUTSIDE_WIRE_MARGIN = 5f;
|
|
|
|
public readonly static string SubTitleNameFormatStr = "Name( {0} )";
|
|
public readonly static string SubTitleSpaceFormatStr = "Space( {0} )";
|
|
public readonly static string SubTitleTypeFormatStr = "Type( {0} )";
|
|
public readonly static string SubTitleValueFormatStr = "Value( {0} )";
|
|
public readonly static string SubTitleConstFormatStr = "Const( {0} )";
|
|
public readonly static string SubTitleVarNameFormatStr = "Var( {0} )";
|
|
public readonly static string SubTitleRefNameFormatStr = "Ref( {0} )";
|
|
|
|
public readonly static string CodeWrapper = "( {0} )";
|
|
public readonly static string InlineCodeWrapper = "{{\n{0}\n}}";
|
|
|
|
public readonly static string NodesDumpFormat = "{0}:,{1},{2}\n";
|
|
public readonly static string TagFormat = " \"{0}\" = \"{1}\"";
|
|
|
|
public readonly static string LocalVarIdentation = "\t\t\t";
|
|
public readonly static string SimpleLocalValueDec = LocalVarIdentation + "{0} {1};\n";
|
|
|
|
public readonly static string LocalValueDec = LocalVarIdentation + LocalValueDecWithoutIdent + '\n';
|
|
public readonly static string LocalValueDef = LocalVarIdentation + "{0} = {1};\n";
|
|
public readonly static string CastHelper = "({0}).{1}";
|
|
public readonly static string PropertyLocalVarDec = "{0} {1} = {0}({2});";
|
|
public readonly static string[] UniformDec = { "uniform {0} {1};", "{0} {1};" };
|
|
|
|
public readonly static string PropertyValueLabel = "Value( {0} )";
|
|
public readonly static string ConstantsValueLabel = "Const( {0} )";
|
|
|
|
public readonly static string PropertyFloatFormatLabel = "0.###";
|
|
public readonly static string PropertyBigFloatFormatLabel = "0.###e+0";
|
|
|
|
public readonly static string PropertyIntFormatLabel = "0";
|
|
public readonly static string PropertyBigIntFormatLabel = "0e+0";
|
|
|
|
|
|
public readonly static string PropertyVectorFormatLabel = "0.##";
|
|
public readonly static string PropertyBigVectorFormatLabel = "0.##e+0";
|
|
|
|
|
|
public readonly static string PropertyMatrixFormatLabel = "0.#";
|
|
public readonly static string PropertyBigMatrixFormatLabel = "0.#e+0";
|
|
|
|
public readonly static string NoPropertiesLabel = "No assigned properties";
|
|
|
|
public readonly static string ValueLabel = "Value";
|
|
public readonly static string DefaultValueLabel = "Default Value";
|
|
public readonly static string MaterialValueLabel = "Material Value";
|
|
public readonly static GUIContent DefaultValueLabelContent = new GUIContent( "Default Value" );
|
|
public readonly static GUIContent MaterialValueLabelContent = new GUIContent( "Material Value" );
|
|
|
|
public readonly static string InputVarStr = "i";//"input";
|
|
public readonly static string OutputVarStr = "o";//"output";
|
|
|
|
public readonly static string CustomLightOutputVarStr = "s";
|
|
public readonly static string CustomLightStructStr = "Custom";
|
|
|
|
public readonly static string VertexShaderOutputStr = "o";
|
|
public readonly static string VertexShaderInputStr = "v";//"vertexData";
|
|
public readonly static string VertexDataFunc = "vertexDataFunc";
|
|
|
|
public readonly static string VirtualCoordNameStr = "vcoord";
|
|
|
|
public readonly static string VertexVecNameStr = "vertexVec";
|
|
public readonly static string VertexVecDecStr = "float3 " + VertexVecNameStr;
|
|
public readonly static string VertexVecVertStr = VertexShaderOutputStr + "." + VertexVecNameStr;
|
|
|
|
public readonly static string NormalVecNameStr = "normalVec";
|
|
public readonly static string NormalVecDecStr = "float3 " + NormalVecNameStr;
|
|
public readonly static string NormalVecFragStr = InputVarStr + "." + NormalVecNameStr;
|
|
public readonly static string NormalVecVertStr = VertexShaderOutputStr + "." + NormalVecNameStr;
|
|
|
|
|
|
public readonly static string IncidentVecNameStr = "incidentVec";
|
|
public readonly static string IncidentVecDecStr = "float3 " + IncidentVecNameStr;
|
|
public readonly static string IncidentVecDefStr = VertexShaderOutputStr + "." + IncidentVecNameStr + " = normalize( " + VertexVecNameStr + " - _WorldSpaceCameraPos.xyz)";
|
|
public readonly static string IncidentVecFragStr = InputVarStr + "." + IncidentVecNameStr;
|
|
public readonly static string IncidentVecVertStr = VertexShaderOutputStr + "." + IncidentVecNameStr;
|
|
public readonly static string WorldNormalLocalDecStr = "WorldNormalVector( " + Constants.InputVarStr + " , {0}( 0,0,1 ))";
|
|
|
|
public readonly static string VFaceVariable = "ASEVFace";
|
|
public readonly static string VFaceInput = "half ASEVFace : VFACE";
|
|
|
|
public readonly static string ColorVariable = "vertexColor";
|
|
public readonly static string ColorInput = "float4 vertexColor : COLOR";
|
|
|
|
public readonly static string NoStringValue = "None";
|
|
public readonly static string EmptyPortValue = " ";
|
|
|
|
public readonly static string[] OverallInvalidChars = { "\r", "\n", "\\", " ", ".", ">", ",", "<", "\'", "\"", ";", ":", "[", "{", "]", "}", "=", "+", "`", "~", "/", "?", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-" };
|
|
public readonly static string[] ShaderInvalidChars = { "\r", "\n", "\\", "\'", "\"", };
|
|
public readonly static string[] EnumInvalidChars = { "\r", "\n", "\\", ".", ">", ",", "<", "\'", "\"", ";", ":", "[", "{", "]", "}", "=", "+", "`", "~", "/", "?", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-" };
|
|
public readonly static string[] AttrInvalidChars = { "\r", "\n", "\\", ">", "<", "\'", "\"", ";", ":", "[", "{", "]", "}", "=", "+", "`", "~", "/", "?", "!", "@", "#", "$", "%", "^", "&", "*" };
|
|
public readonly static string[] HeaderInvalidChars = { "\r", "\n", "\\", ">", ",", "<", "\'", "\"", ";", ":", "[", "{", "]", "}", "=", "+", "`", "~", "/", "?", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-" };
|
|
|
|
public readonly static string[] WikiInvalidChars = { "#", "<", ">", "[", "]", "|", "{", "}", "%", "+", "?", "\\", "/", ",", ";", "." };
|
|
|
|
public readonly static string[,] UrlReplacementStringValues =
|
|
{
|
|
{ " = ", "Equals" },
|
|
{ " == ", "Equals" },
|
|
{ " != ", "NotEqual" },
|
|
{ " \u2260 ", "NotEqual" },
|
|
{ " > ", "Greater" },
|
|
{ " \u2265 " , "GreaterOrEqual" },
|
|
{ " >= ", "GreaterOrEqual" },
|
|
{ " < ", "Less" },
|
|
{ " \u2264 ", "LessOrEqual" },
|
|
{ " <= ", "LessOrEqual" },
|
|
{ " ", "_" },
|
|
{ "[", string.Empty },
|
|
{ "]", string.Empty }
|
|
};
|
|
|
|
public readonly static int UrlReplacementStringValuesLen = UrlReplacementStringValues.Length / 2;
|
|
|
|
public readonly static string[,] ReplacementStringValues =
|
|
{
|
|
{ " = ", "Equals" },
|
|
{ " == ", "Equals" },
|
|
{ " != ", "NotEqual" },
|
|
{ " \u2260 ", "NotEqual" },
|
|
{ " > ", "Greater" },
|
|
{ " \u2265 ", "GreaterOrEqual" },
|
|
{ " >= ", "GreaterOrEqual" },
|
|
{ " < ", "Less" },
|
|
{ " \u2264 ", "LessOrEqual" },
|
|
{ " <= ", "LessOrEqual" }
|
|
};
|
|
public readonly static int ReplacementStringValuesLen = ReplacementStringValues.Length / 2;
|
|
|
|
public readonly static string InternalData = "INTERNAL_DATA";
|
|
|
|
|
|
|
|
public readonly static string NoMaterialStr = "None";
|
|
|
|
public readonly static string OptionalParametersSep = " ";
|
|
|
|
public readonly static string NodeUndoId = "NODE_UNDO_ID";
|
|
public readonly static string NodeCreateUndoId = "NODE_CREATE_UNDO_ID";
|
|
public readonly static string NodeDestroyUndoId = "NODE_DESTROY_UNDO_ID";
|
|
|
|
// Custom node tags
|
|
//[InPortBegin:Id:Type:Name:InPortEnd]
|
|
public readonly static string CNIP = "#IP";
|
|
|
|
public readonly static float FLOAT_DRAW_HEIGHT_FIELD_SIZE = 16f;
|
|
public readonly static float FLOAT_DRAW_WIDTH_FIELD_SIZE = 45f;
|
|
public readonly static float FLOAT_WIDTH_SPACING = 3f;
|
|
|
|
public readonly static Color LockedPortColor = new Color( 0.3f, 0.3f, 0.3f, 0.5f );
|
|
|
|
#if UNITY_2018_2_OR_NEWER
|
|
public readonly static int[] AvailableUVChannels = { 0, 1, 2, 3, 4, 5, 6, 7 };
|
|
public readonly static string[] AvailableUVChannelsStr = { "0", "1", "2", "3", "4", "5", "6", "7"};
|
|
public readonly static string AvailableUVChannelLabel = "UV Channel";
|
|
|
|
public readonly static int[] AvailableUVSets = { 0, 1, 2, 3, 4, 5, 6, 7 };
|
|
public readonly static string[] AvailableUVSetsStr = { "1", "2", "3", "4","5", "6", "7", "8" };
|
|
public readonly static string AvailableUVSetsLabel = "UV Set";
|
|
#else
|
|
public readonly static int[] AvailableUVChannels = { 0, 1, 2, 3 };
|
|
public readonly static string[] AvailableUVChannelsStr = { "0", "1", "2", "3" };
|
|
public readonly static string AvailableUVChannelLabel = "UV Channel";
|
|
|
|
public readonly static int[] AvailableUVSets = { 0, 1, 2, 3 };
|
|
public readonly static string[] AvailableUVSetsStr = { "1", "2", "3", "4" };
|
|
public readonly static string AvailableUVSetsLabel = "UV Set";
|
|
#endif
|
|
|
|
public readonly static int[] AvailableUVSizes = { 2, 3, 4 };
|
|
public readonly static string[] AvailableUVSizesStr = { "Float 2", "Float 3", "Float 4" };
|
|
public readonly static string AvailableUVSizesLabel = "Coord Size";
|
|
|
|
|
|
public readonly static string LineSeparator = "________________________________";
|
|
|
|
public readonly static Vector2 CopyPasteDeltaPos = new Vector2( 40, 40 );
|
|
|
|
public readonly static string[] VectorSuffixes = { ".x", ".y", ".z", ".w" };
|
|
public readonly static string[] ColorSuffixes = { ".r", ".g", ".b", ".a" };
|
|
|
|
|
|
public const string InternalDataLabelStr = "Internal Data";
|
|
public const string AttributesLaberStr = "Attributes";
|
|
public const string ParameterLabelStr = "Parameters";
|
|
|
|
public static readonly string[] ReferenceArrayLabels = { "Object", "Reference" };
|
|
|
|
public static readonly string[] ChannelNamesVector = { "X", "Y", "Z", "W" };
|
|
public static readonly string[] ChannelNamesColor = { "R", "G", "B", "A" };
|
|
|
|
public static readonly string SamplerFormat = "sampler{0}";
|
|
public static readonly string SamplerDeclFormat = "SamplerState {0}";
|
|
public static readonly string SamplerDeclSRPFormat = "SAMPLER({0})";
|
|
}
|
|
}
|