资源简介
Unity内置着色器源码 版本:builtin_shaders-2017.4.24f1
代码片段和文件信息
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace UnityEditor
{
internal class StandardParticlesShaderGUI : ShaderGUI
{
public enum BlendMode
{
Opaque
Cutout
Fade // Old school alpha-blending mode fresnel does not affect amount of transparency
Transparent // Physically plausible transparency mode implemented as alpha pre-multiply
Additive
Subtractive
Modulate
}
public enum FlipbookMode
{
Simple
Blended
}
public enum ColorMode
{
Multiply
Additive
Subtractive
Overlay
Color
Difference
}
private static class styles
{
public static GUIContent albedoText = new GUIContent(“Albedo“ “Albedo (RGB) and Transparency (A).“);
public static GUIContent alphaCutoffText = new GUIContent(“Alpha Cutoff“ “Threshold for alpha cutoff.“);
public static GUIContent metallicMapText = new GUIContent(“metallic“ “metallic (R) and Smoothness (A).“);
public static GUIContent smoothnessText = new GUIContent(“Smoothness“ “Smoothness value.“);
public static GUIContent smoothnessScaleText = new GUIContent(“Smoothness“ “Smoothness scale factor.“);
public static GUIContent normalMapText = new GUIContent(“Normal Map“ “Normal Map.“);
public static GUIContent emissionText = new GUIContent(“Color“ “Emission (RGB).“);
public static GUIContent renderingMode = new GUIContent(“Rendering Mode“ “Determines the transparency and blending method for drawing the object to the screen.“);
public static GUIContent[] blendNames = Array.ConvertAll(Enum.GetNames(typeof(BlendMode)) item => new GUIContent(item));
public static GUIContent colorMode = new GUIContent(“Color Mode“ “Determines the blending mode between the particle color and the texture albedo.“);
public static GUIContent[] colorNames = Array.ConvertAll(Enum.GetNames(typeof(ColorMode)) item => new GUIContent(item));
public static GUIContent flipbookMode = new GUIContent(“Flip-Book Mode“ “Determines the blending mode used for animated texture sheets.“);
public static GUIContent[] flipbookNames = Array.ConvertAll(Enum.GetNames(typeof(FlipbookMode)) item => new GUIContent(item));
public static GUIContent twoSidedEnabled = new GUIContent(“Two Sided“ “Render both front and back faces of the particle geometry.“);
public static GUIContent distortionEnabled = new GUIContent(“Enable Distortion“ “Use a grab pass and normal map to simulate refraction.“);
public static GUIContent distortionStrengthText = new GU
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-15 11:09 CGIncludes\
文件 12658 2019-03-15 11:17 CGIncludes\AutoLight.cginc
文件 1783 2019-03-15 11:17 CGIncludes\GLSLSupport.glslinc
文件 41401 2019-03-15 11:17 CGIncludes\HLSLSupport.cginc
文件 4807 2019-03-15 11:17 CGIncludes\Lighting.cginc
文件 3484 2019-03-15 11:17 CGIncludes\SpeedTreeBillboardCommon.cginc
文件 4094 2019-03-15 11:17 CGIncludes\SpeedTreeCommon.cginc
文件 5183 2019-03-15 11:17 CGIncludes\SpeedTreeVertex.cginc
文件 23250 2019-03-15 11:17 CGIncludes\SpeedTreeWind.cginc
文件 11873 2019-03-15 11:17 CGIncludes\TerrainEngine.cginc
文件 3889 2019-03-15 11:17 CGIncludes\TerrainSplatmapCommon.cginc
文件 5390 2019-03-15 11:17 CGIncludes\Tessellation.cginc
文件 3527 2019-03-15 11:17 CGIncludes\UnityBuiltin2xTreeLibrary.cginc
文件 6037 2019-03-15 11:17 CGIncludes\UnityBuiltin3xTreeLibrary.cginc
文件 40021 2019-03-15 11:17 CGIncludes\UnityCG.cginc
文件 3742 2019-03-15 11:17 CGIncludes\UnityCG.glslinc
文件 7488 2019-03-15 11:17 CGIncludes\UnityCustomRenderTexture.cginc
文件 6636 2019-03-15 11:17 CGIncludes\UnityDeferredLibrary.cginc
文件 5466 2019-03-15 11:17 CGIncludes\UnityDeprecated.cginc
文件 2409 2019-03-15 11:17 CGIncludes\UnityGBuffer.cginc
文件 10003 2019-03-15 11:17 CGIncludes\UnityGlobalIllumination.cginc
文件 21217 2019-03-15 11:17 CGIncludes\UnityImageba
文件 15420 2019-03-15 11:17 CGIncludes\UnityInstancing.cginc
文件 1389 2019-03-15 11:17 CGIncludes\UnityLightingCommon.cginc
文件 8698 2019-03-15 11:17 CGIncludes\Unityme
文件 8039 2019-03-15 11:17 CGIncludes\UnityPBSLighting.cginc
文件 703 2019-03-15 11:17 CGIncludes\UnityShaderUtilities.cginc
文件 11795 2019-03-15 11:17 CGIncludes\UnityShaderVariables.cginc
文件 41747 2019-03-15 11:17 CGIncludes\UnityShadowLibrary.cginc
文件 2208 2019-03-15 11:17 CGIncludes\UnitySprites.cginc
文件 17728 2019-03-15 11:17 CGIncludes\UnityStandardBRDF.cginc
............此处省略211个文件信息
相关资源
- Unity内置着色器源码 builtin_shaders-5.6
- Unity4.x从入门到精通课本及源码
- Shader编程教程 完整
- Unity3d视频教程
- FXMaker1.5支持最新unity5
- Unity 3D ShaderLab开发实战详解
- 百度语音识别 Unity插件
- Unity插件 Scratch Card 1.6 刮刮卡/刮刮乐
- Unity Asset Bundle Browser tool.unitypackage
- Unity本地保存插件Easy Save
- 《Unity 5.x 完全自学手册》配书资源地
- DOTween Pro 1.0.165 游戏可视化编辑器扩展
- Unity UGUI ui上显示3D模型游戏物体
- [手游] Unity3D《最后一战》全套完整源
- unity官方Stealth 游戏开发素材和游戏源
- FastLineRendererforUnity-GPULineandParticleSys
- ArchVizPRO Interior Vol6室内外下雨
- 小旅馆Horror Environment Pack 2
- 博物馆Museum VR Ancient Cultures Edition I
- UnityAssetsExplorer 1.5
- unity2018破解,unipatcher2018.7z
- Unity3D_4.x_5.x全系列通用一键破解工具
- unity箭头路径指示器插件Procedural Ind
- sprite slicer
- A Dynamic Model for Check-in Behavior in Micro
- SUIMONO Water System v2.1.6最新版
- unity 手机(包含安卓及IOS)蓝牙例程
- 2DDL Pro 2D Dynamic Lights and Shadows v1.4.13
- I2 Localization 2.8.12 f1.unitypackage
- Unity3D一个打地鼠游戏的De‘moemo
评论
共有 条评论