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

资源简介

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\UnityImagebasedLighting.cginc
     文件       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\UnitymetaPass.cginc
     文件        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个文件信息

评论

共有 条评论