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

资源简介

Unity内置着色器源码 版本: builtin_shaders-5.6.7f1.zip

资源截图

代码片段和文件信息

// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)

using System;
using UnityEngine;

namespace UnityEditor
{
    internal class StandardShaderGUI : ShaderGUI
    {
        private enum WorkflowMode
        {
            Specular
            metallic
            Dielectric
        }

        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
        }

        public enum SmoothnessMapChannel
        {
            SpecularmetallicAlpha
            AlbedoAlpha
        }

        private static class styles
        {
            public static GUIContent uvSetLabel = new GUIContent(“UV Set“);

            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 specularMapText = new GUIContent(“Specular“ “Specular (RGB) and Smoothness (A)“);
            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 smoothnessMapChannelText = new GUIContent(“Source“ “Smoothness texture and channel“);
            public static GUIContent highlightsText = new GUIContent(“Specular Highlights“ “Specular Highlights“);
            public static GUIContent reflectionsText = new GUIContent(“Reflections“ “Glossy Reflections“);
            public static GUIContent normalMapText = new GUIContent(“Normal Map“ “Normal Map“);
            public static GUIContent heightMapText = new GUIContent(“Height Map“ “Height Map (G)“);
            public static GUIContent occlusionText = new GUIContent(“Occlusion“ “Occlusion (G)“);
            public static GUIContent emissionText = new GUIContent(“Color“ “Emission (RGB)“);
            public static GUIContent detailMaskText = new GUIContent(“Detail Mask“ “Mask for Secondary Maps (A)“);
            public static GUIContent detailAlbedoText = new GUIContent(“Detail Albedo x2“ “Albedo (RGB) multiplied by 2“);
            public static GUIContent detailNormalMapText = new GUIContent(“Normal Map“ “Normal Map“);

            public static string primaryMapsText = “Main Maps“;
            public static string secondaryMapsText = “Secondary Maps“;
            public static string forwardText = “Forward Rendering Options“;
            public static string renderingMode = “Rendering Mode“;
            public static string advancedText = “Advanced Options“;
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-25 13:49  CGIncludes\
     文件       12725  2019-02-25 13:57  CGIncludes\AutoLight.cginc
     文件        1741  2019-02-25 13:57  CGIncludes\GLSLSupport.glslinc
     文件       34256  2019-02-25 13:57  CGIncludes\HLSLSupport.cginc
     文件        4807  2019-02-25 13:57  CGIncludes\Lighting.cginc
     文件        3537  2019-02-25 13:57  CGIncludes\SpeedTreeBillboardCommon.cginc
     文件        4147  2019-02-25 13:57  CGIncludes\SpeedTreeCommon.cginc
     文件        5183  2019-02-25 13:57  CGIncludes\SpeedTreeVertex.cginc
     文件       23250  2019-02-25 13:57  CGIncludes\SpeedTreeWind.cginc
     文件       11873  2019-02-25 13:57  CGIncludes\TerrainEngine.cginc
     文件        3889  2019-02-25 13:57  CGIncludes\TerrainSplatmapCommon.cginc
     文件        5390  2019-02-25 13:57  CGIncludes\Tessellation.cginc
     文件        3527  2019-02-25 13:57  CGIncludes\UnityBuiltin2xTreeLibrary.cginc
     文件        4738  2019-02-25 13:57  CGIncludes\UnityBuiltin3xTreeLibrary.cginc
     文件       38494  2019-02-25 13:57  CGIncludes\UnityCG.cginc
     文件        3561  2019-02-25 13:57  CGIncludes\UnityCG.glslinc
     文件        7488  2019-02-25 13:57  CGIncludes\UnityCustomRenderTexture.cginc
     文件        6689  2019-02-25 13:57  CGIncludes\UnityDeferredLibrary.cginc
     文件        5465  2019-02-25 13:57  CGIncludes\UnityDeprecated.cginc
     文件        2409  2019-02-25 13:57  CGIncludes\UnityGBuffer.cginc
     文件       10002  2019-02-25 13:57  CGIncludes\UnityGlobalIllumination.cginc
     文件       21217  2019-02-25 13:57  CGIncludes\UnityImagebasedLighting.cginc
     文件       10220  2019-02-25 13:57  CGIncludes\UnityInstancing.cginc
     文件        1389  2019-02-25 13:57  CGIncludes\UnityLightingCommon.cginc
     文件        8167  2019-02-25 13:57  CGIncludes\UnitymetaPass.cginc
     文件        8039  2019-02-25 13:57  CGIncludes\UnityPBSLighting.cginc
     文件         703  2019-02-25 13:57  CGIncludes\UnityShaderUtilities.cginc
     文件       11338  2019-02-25 13:57  CGIncludes\UnityShaderVariables.cginc
     文件       10619  2019-02-25 13:57  CGIncludes\UnityShadowLibrary.cginc
     文件        2133  2019-02-25 13:57  CGIncludes\UnitySprites.cginc
     文件       17532  2019-02-25 13:57  CGIncludes\UnityStandardBRDF.cginc
............此处省略186个文件信息

评论

共有 条评论