Skip to content

Commit

Permalink
Add [HeaderHelpURL] to all relevant shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Deml committed Feb 25, 2019
1 parent 18c7df6 commit e706ba5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Scenes/ShaderExamples.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ Light:
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_Bias: 0.15
m_NormalBias: 0.4
m_NearPlane: 0.2
m_Cookie: {fileID: 0}
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Editor/MaterialHeaderHelpURLDecorator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class MaterialHeaderHelpURLDecorator : MaterialPropertyDrawer
private GUIContent headerGuiContent;
private GUIContent buttonGuiContent;
private const float iconWidth = 15f;
private const float iconHeight = 25f;
private const float iconHeight = 20f;
private const float paddingTop = 12f;


Expand Down
6 changes: 3 additions & 3 deletions Shaders/ConfigurableCutoutUnlit.shader
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ Shader "Configurable/Unlit/Cutout"
_MainTex ("Base (RGB)", 2D) = "white" {}
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5

[Header(Rendering)]
[HeaderHelpURL(Rendering, https, github.com supyrb ConfigurableShaders wiki Rendering)]
[Tooltip(Changes the depth value. Negative values are closer to the camera)] _Offset("Offset", Float) = 0.0
[Enum(UnityEngine.Rendering.CullMode)] _Culling ("Cull Mode", Int) = 2
[Enum(Off,0,On,1)] _ZWrite("ZWrite", Int) = 1
[Enum(UnityEngine.Rendering.CompareFunction)] _ZTest ("ZTest", Int) = 4
[Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 14

[Header(Stencil)]
[HeaderHelpURL(Stencil, https, github.com supyrb ConfigurableShaders wiki Stencil)]
[EightBit] _Stencil ("Stencil ID", Int) = 0
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Int) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Int) = 0
Expand All @@ -37,7 +37,7 @@ Shader "Configurable/Unlit/Cutout"
[EightBit] _ReadMask ("ReadMask", Int) = 255
[EightBit] _WriteMask ("WriteMask", Int) = 255

[Header(Blending)]
[HeaderHelpURL(Blending, https, github.com supyrb ConfigurableShaders wiki Blending)]
[Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
[Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
}
Expand Down
6 changes: 3 additions & 3 deletions Shaders/ConfigurableUi.shader
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Shader "Configurable/UI"
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)

[Header(Rendering)]
[HeaderHelpURL(Rendering, https, github.com supyrb ConfigurableShaders wiki Rendering)]
[Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)]_ColorMask ("Color Mask", Float) = 15
[Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 1

[Header(Blending)]
[HeaderHelpURL(Blending, https, github.com supyrb ConfigurableShaders wiki Blending)]
[Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
[Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10

[Header(Stencil)]
[HeaderHelpURL(Stencil, https, github.com supyrb ConfigurableShaders wiki Stencil)]
[EightBit] _Stencil ("Stencil ID", Int) = 0
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Int) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Int) = 0
Expand Down

0 comments on commit e706ba5

Please sign in to comment.