Skip to content

Commit

Permalink
Property attributes and drawers
Browse files Browse the repository at this point in the history
  • Loading branch information
knapeczadam committed Oct 30, 2018
1 parent d119dc3 commit 73a74da
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 0 deletions.
142 changes: 142 additions & 0 deletions Assets/Materials/160-169/169_Property_Attributes_Drawers.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: 169_Property_Attributes_Drawers
m_Shader: {fileID: 4800000, guid: 81ba4f80483af564693b5544fd7ab89d, type: 3}
m_ShaderKeywords: ETC1_EXTERNAL_ALPHA
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AlphaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 45d13d870c17539419ffe99cab5cb392, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpTex:
m_Texture: {fileID: 2800000, guid: 45d13d870c17539419ffe99cab5cb392, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 8900000, guid: 39cc8589db99d7546886df0d60a37688, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DecalTex:
m_Texture: {fileID: 2800000, guid: 1569b820fef3ea74e9e8735c0a1e0e42, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Detail:
m_Texture: {fileID: 2800000, guid: cfe130fbb72f5f742adbc0ce71f9936e, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DispTex:
m_Texture: {fileID: 2800000, guid: d475badf3201bab429f32014a18f30b3, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _HDRTex:
m_Texture: {fileID: 8900000, guid: 04bfe9229de6de8429dbd8c69b781954, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _HiddenTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Illum:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 44c5d3a47d44ac34098c0f6d523f25f7, type: 3}
m_Scale: {x: 5, y: 5}
m_Offset: {x: 0, y: 0}
- _MainTex1:
m_Texture: {fileID: 2800000, guid: 37426dfe5cfb14626a6e1c60f8d927eb, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 2800000, guid: 566e37aaa2f9cc54ba4ff450d9c49bec, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 2800000, guid: b67c7820c03073c42aeeb2dafc30fd70, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 2800000, guid: d475badf3201bab429f32014a18f30b3, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpriteTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- PixelSnap: 0
- _BumpScale: 1
- _Cutoff: 0.5
- _Density: 30
- _DetailNormalMapScale: 1
- _Displacement: 0.3
- _DstBlend: 0
- _EdgeLength: 15
- _Emission: 1
- _EnableExternalAlpha: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Phong: 0.5
- _Shininess: 0.078125
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Tess: 4
- _Tiling: 1
- _UVSec: 0
- _ZWrite: 1
- _sRGB: 1
m_Colors:
- _Color: {r: 0.9811321, g: 0.9811321, b: 0.9811321, a: 1}
- _ColorBack: {r: 0.7, g: 1, b: 0.7, a: 1}
- _ColorFront: {r: 1, g: 0.7, b: 0.7, a: 1}
- _Emission: {r: 0, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _ReflectColor: {r: 1, g: 1, b: 1, a: 0.5}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions Assets/Shaders/160-169/169_Property_Attributes_Drawers.shader
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Shader "Custom/160-169/169_Property_Attributes_Drawers"
{
Properties
{
[HideInInspector] _HiddenTex ("Please hide me", 2D) = "white" {}
[NoScaleOffset] _MainTex ("No scale, no offset", 2D) = "white" {}
[Normal] _BumpTex ("R U Normal?", 2D) = "bump" {}
[HDR] _HDRTex ("High dynamic range", CUBE) = "white" {}
[Gamma] _sRGB ("sRGB value", Float) = 1.0
[PerRendererData] _SpriteTex ("Sprite texture", 2D) = "white" {}
}

SubShader
{
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag

sampler2D _MainTex;

struct v2f
{
float4 pos : SV_POSITION;
float2 uv : TEXCOORD0;
};

v2f vert(float4 vertex : POSITION, float2 texcoord : TEXCOORD0)
{
v2f o;
o.pos = UnityObjectToClipPos(vertex);
o.uv = texcoord;
return o;
}

fixed4 frag(v2f i) : SV_TARGET
{
return tex2D(_MainTex, i.uv);
}
ENDCG
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73a74da

Please sign in to comment.