• 大小: 336KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: 其他
  • 标签: Shader  Unity  内置  

资源简介

Unity内置着色器程序。对应Unity的版本是2018.1.0f2 官方正品!

资源截图

代码片段和文件信息

// 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 = EditorGUIUtility.TrTextContent(“Albedo“ “Albedo (RGB) and Transparency (A).“);
            public static GUIContent alphaCutoffText = EditorGUIUtility.TrTextContent(“Alpha Cutoff“ “Threshold for alpha cutoff.“);
            public static GUIContent metallicMapText = EditorGUIUtility.TrTextContent(“metallic“ “metallic (R) and Smoothness (A).“);
            public static GUIContent smoothnessText = EditorGUIUtility.TrTextContent(“Smoothness“ “Smoothness value.“);
            public static GUIContent smoothnessScaleText = EditorGUIUtility.TrTextContent(“Smoothness“ “Smoothness scale factor.“);
            public static GUIContent normalMapText = EditorGUIUtility.TrTextContent(“Normal Map“ “Normal Map.“);
            public static GUIContent emissionText = EditorGUIUtility.TrTextContent(“Color“ “Emission (RGB).“);

            public static GUIContent renderingMode = EditorGUIUtility.TrTextContent(“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 = EditorGUIUtility.TrTextContent(“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 = EditorGUIUtility.TrTextContent(“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 = EditorGUIUtility.TrTextContent(“Two Sided“ “Render both front and back faces of the particle geometry.“);

            public static GUIContent distort

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-27 20:02  CGIncludes\
     文件       15380  2018-04-27 20:05  CGIncludes\AutoLight.cginc
     文件        1741  2018-04-27 20:05  CGIncludes\GLSLSupport.glslinc
     文件       42823  2018-04-27 20:05  CGIncludes\HLSLSupport.cginc
     文件        4836  2018-04-27 20:05  CGIncludes\Lighting.cginc
     文件        3484  2018-04-27 20:05  CGIncludes\SpeedTreeBillboardCommon.cginc
     文件        4094  2018-04-27 20:05  CGIncludes\SpeedTreeCommon.cginc
     文件        5183  2018-04-27 20:05  CGIncludes\SpeedTreeVertex.cginc
     文件       23250  2018-04-27 20:05  CGIncludes\SpeedTreeWind.cginc
     文件       11873  2018-04-27 20:05  CGIncludes\TerrainEngine.cginc
     文件        3889  2018-04-27 20:05  CGIncludes\TerrainSplatmapCommon.cginc
     文件        5390  2018-04-27 20:05  CGIncludes\Tessellation.cginc
     文件        3527  2018-04-27 20:05  CGIncludes\UnityBuiltin2xTreeLibrary.cginc
     文件        6037  2018-04-27 20:05  CGIncludes\UnityBuiltin3xTreeLibrary.cginc
     文件       42756  2018-04-27 20:05  CGIncludes\UnityCG.cginc
     文件        3742  2018-04-27 20:05  CGIncludes\UnityCG.glslinc
     文件        7488  2018-04-27 20:05  CGIncludes\UnityCustomRenderTexture.cginc
     文件        6636  2018-04-27 20:05  CGIncludes\UnityDeferredLibrary.cginc
     文件        5466  2018-04-27 20:05  CGIncludes\UnityDeprecated.cginc
     文件        2409  2018-04-27 20:05  CGIncludes\UnityGBuffer.cginc
     文件       10003  2018-04-27 20:05  CGIncludes\UnityGlobalIllumination.cginc
     文件       21217  2018-04-27 20:05  CGIncludes\UnityImagebasedLighting.cginc
     文件       18432  2018-04-27 20:05  CGIncludes\UnityInstancing.cginc
     文件        1389  2018-04-27 20:05  CGIncludes\UnityLightingCommon.cginc
     文件        8715  2018-04-27 20:05  CGIncludes\UnitymetaPass.cginc
     文件        7939  2018-04-27 20:05  CGIncludes\UnityPBSLighting.cginc
     文件        2043  2018-04-27 20:05  CGIncludes\UnityShaderUtilities.cginc
     文件       11811  2018-04-27 20:05  CGIncludes\UnityShaderVariables.cginc
     文件       43184  2018-04-27 20:05  CGIncludes\UnityShadowLibrary.cginc
     文件        2306  2018-04-27 20:05  CGIncludes\UnitySprites.cginc
     文件       17717  2018-04-27 20:05  CGIncludes\UnityStandardBRDF.cginc
............此处省略216个文件信息

评论

共有 条评论